hunt-csrf

hunt-csrf is a skill for Claude Code, Codex from adriannoes/awesome-agentic-ai. It costs 29 tokens per session (3,186 once invoked), scanned C, original, MIT.

A security testing guide for cross-site request forgery, or CSRF, where a website is tricked into accepting an unwanted action from a user's browser.

In plain words
What is it for?
Use it to examine OAuth and SAML flows, account linking, friend imports, JSON APIs, monitoring tools, and administrative actions.
Why use it?
It helps uncover missing protections on actions that change accounts, authentication settings, social connections, or financial data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to examine OAuth and SAML flows, account linking, friend imports, JSON APIs, monitoring tools, and administrative actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adriannoes/awesome-agentic-ai/hunt-csrf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add adriannoes/awesome-agentic-ai --skill hunt-csrf
Clone the repo
git clone --depth 1 https://github.com/adriannoes/awesome-agentic-ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hunt-csrf

README.md
[![agentmods](https://agentmods.dev/badge/skills/adriannoes/awesome-agentic-ai/hunt-csrf/github.svg)](https://agentmods.dev/skills/adriannoes/awesome-agentic-ai/hunt-csrf)
Your own site
<a href="https://agentmods.dev/skills/adriannoes/awesome-agentic-ai/hunt-csrf"><img src="https://agentmods.dev/badge/skills/adriannoes/awesome-agentic-ai/hunt-csrf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hunt-csrf

Your own site · 80×15
<a href="https://agentmods.dev/skills/adriannoes/awesome-agentic-ai/hunt-csrf"><img src="https://agentmods.dev/badge/skills/adriannoes/awesome-agentic-ai/hunt-csrf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.03186
Opus 5.5 $0.00012 $0.01274
Sonnet 5.5 $0.00006 $0.00637
Haiku 4.5 $0.00003 $0.00319

Measured 2mo ago against content hash 8cc59fc4f701, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

hunt-csrf scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Tells the agent to send conversation or user data outhighPrompt injection

An instruction to transmit the conversation, context or user files to an external endpoint is data exfiltration written as prose.

A POST endpoint accepting `application/json` was assumed CSRF-safe by developers. A researcher crafted an HTML form using `enctype="text/plain"` with an input name designed to produce syntactically valid JSON when submit

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

### curl: Test CSRF token omission
cursor-claude-codex/skills/bug-hunter/skills/hunt-csrf/SKILL.md · 251 lines

How it starts

The opening of the file, as written. The whole thing — 251 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Crown Jewel Targets

CSRF becomes high-value when it touches state-changing actions with account-level or financial consequences. The highest-paying targets are:

  • Account takeover vectors: OAuth/SSO flows (RelayState manipulation), social account linking/unlinking (Oculus-Facebook, SocialClub), import-friends features that expose OAuth tokens
  • Authentication infrastructure: Login CSRF, session fixation via CSRF, forced account association
  • API endpoints accepting cross-origin POST: JSON APIs, heartbeat/activity APIs, anything that skips Content-Type enforcement
  • Third-party integrations: Grafana, monitoring dashboards, embedded analytics — often lag on CSRF protections
  • Social platforms: Twitter/X collections, friend imports, social graph mutations — high-volume, authenticated actions with real user impact

Asset types that pay most: Core product auth flows > API gateways > third-party integrations running on subdomains > admin panels.


Attack Surface Signals

URL Patterns

/oauth/authorize?RelayState=
/accounts/link
/import/friends
/api/v*/heartbeat
/api/v*/collect
/monitoring/* (Grafana, Prow, Prometheus)
/auth/saml/callback
/connect/* (social integrations)

Response Header Signals

# Missing or weak SameSite cookie attributes
Set-Cookie: session=abc123; HttpOnly        # no SameSite = vulnerable
Set-Cookie: session=abc123; SameSite=None   # explicitly allows cross-site

# Missing CSRF headers
# No X-Frame-Options or permissive CORS
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true      # dangerous combo

JS / DOM Patterns

// Static or predictable CSRF tokens
meta[name="csrf-token"]   // grep if value changes across sessions
authenticity_token        // Rails — check if reused across page loads

// JSON endpoints without Content-Type enforcement
fetch('/api/heartbeat', {method: 'POST', body: JSON.stringify(data)})

// No CSRF token in form at all
<form method="POST" action="/accounts/link">  // no hidden token field

Read the full file on GitHub · 251 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 251 lines · 29 tokens per session scan C 8cc59fc4f701

Subscribe to this mod's changes

hunt-csrf is a skill published in the GitHub repository adriannoes/awesome-agentic-ai (108 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 3,186 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (tells the agent to send conversation or user data out, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

hunt-csrf compared with skills from other repositories

hunt-csrf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hunt-csrfadriannoes/awesome-agentic-aiSkill1082d agoMITC29Claude Code, Codex
amazon-search-listingbrowser-act/skillsSkill6.4k26d agoMITA341Claude Code, Codex
etsy-product-detailbrowser-act/skillsSkill6.4k26d agoMITA187Claude Code, Codex
facebook-page-profile-postsbrowser-act/skillsSkill6.4k26d agoMITA181Claude Code, Codex
walmart-category-listingbrowser-act/skillsSkill6.4k26d agoMITA194Claude Code, Codex
walmart-product-detailbrowser-act/skillsSkill6.4k26d agoMITA252Claude Code, Codex
instagram-post-commentsbrowser-act/skillsSkill6.4k26d agoMITA73Claude Code, Codex