performing-csrf-attack-simulation

Detect CSRF protections and generate PoC payloads for web applications.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill performing-csrf-attack-simulation-yukiito1999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-csrf-attack-simulation
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/performing-csrf-attack-simulation
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill performing-csrf-attack-simulation-yukiito1999

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps security teams simulate cross-site request forgery scenarios to validate anti-CSRF measures in web applications.

Core Features & Use Cases

  • CSRF protection assessment: Detects presence of anti-CSRF tokens, SameSite cookie attributes, and header-based defenses across endpoints.
  • Form and API testing: Finds state-changing forms and APIs, analyzes token requirements, and crafts PoC payloads for authorized testing.
  • Reporting: Generates a structured vulnerability report and optional PoC artifacts for remediation validation.

Quick Start

Start with an authorized CSRF assessment against the target application and review the generated report

Frequently Asked Questions about performing-csrf-attack-simulation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test anti-CSRF controls and SameSite cookie attributes during a penetration test?

CSRF protection assessment involves detecting anti-CSRF tokens, SameSite cookie attributes, and header-based defenses across endpoints. It analyzes target endpoints, finds state-changing forms and APIs, and crafts PoC payloads to validate remediation efforts.

How do I generate a CSRF PoC payload for authorized security assessments?

You can generate CSRF PoC payloads by analyzing state-changing forms and APIs to evaluate token requirements. This produces optional PoC artifacts and a structured vulnerability report for remediation validation during authorized penetration tests.

Can I use the requests library to automate CSRF testing on web application APIs?

The requests dependency supports CSRF testing by enabling the agent to analyze target endpoints and test anti-CSRF controls across web application APIs. It identifies state-changing requests and reports findings with structured output and PoC payloads.

What is the best way to identify endpoints missing anti-CSRF token validation?

Identifying missing anti-CSRF token validation requires analyzing target endpoints for forms and APIs that submit state-changing requests. The agent detects token presence, evaluates SameSite cookie attributes, and generates a structured vulnerability report.

Does CSRF simulation work for both HTML forms and state-changing API endpoints?

Yes, CSRF simulation works for both forms and APIs. The agent detects state-changing requests across endpoints, evaluates anti-CSRF controls including token validation and referer checks, and generates structured reports with optional PoC payloads.