hunt-race-condition

hunt-race-condition is a skill for Claude Code, Codex from adriannoes/awesome-agentic-ai. It costs 31 tokens per session (3,141 once invoked), scanned A, original, MIT.

A security-testing guide for race conditions, where two requests arrive close enough together that the application handles them inconsistently. This can break limits, balances, permissions, or one-time actions.

In plain words
What is it for?
It is for testing payments, credits, coupons, votes, invitations, account upgrades, API-key limits, deletion flows, and other concurrent actions.
Why use it?
It helps find bugs that normal single-request testing misses. An attacker may receive a benefit twice, exceed a quota, reuse a token, or access data during deletion.

Skill for Claude CodeCodex

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

Good fit It is for testing payments, credits, coupons, votes, invitations, account upgrades, API-key limits, deletion flows, and other concurrent actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adriannoes/awesome-agentic-ai/hunt-race-condition
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-race-condition
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-race-condition

README.md
[![agentmods](https://agentmods.dev/badge/skills/adriannoes/awesome-agentic-ai/hunt-race-condition/github.svg)](https://agentmods.dev/skills/adriannoes/awesome-agentic-ai/hunt-race-condition)
Your own site
<a href="https://agentmods.dev/skills/adriannoes/awesome-agentic-ai/hunt-race-condition"><img src="https://agentmods.dev/badge/skills/adriannoes/awesome-agentic-ai/hunt-race-condition/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-race-condition

Your own site · 80×15
<a href="https://agentmods.dev/skills/adriannoes/awesome-agentic-ai/hunt-race-condition"><img src="https://agentmods.dev/badge/skills/adriannoes/awesome-agentic-ai/hunt-race-condition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,141 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 178
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Data Exfiltration · line 115
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00031 $0.03141
Opus 5.5 $0.00012 $0.01256
Sonnet 5.5 $0.00006 $0.00628
Haiku 4.5 $0.00003 $0.00314

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

Security

Grade A, and why

hunt-race-condition scanned grade A with 1 finding 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.

Makes network callslowCapability

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

- `curl` with `&` backgrounding
cursor-claude-codex/skills/bug-hunter/skills/hunt-race-condition/SKILL.md · 254 lines

How it starts

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

Crown Jewel Targets

Race conditions are high-severity findings because they break financial, access control, and integrity assumptions that defenders rarely stress-test. Highest payouts come from:

  • Monetary/credit systems — double-spending gift cards, coupons, referral bonuses, promotional credits, wallet balances
  • Vote/reputation manipulation — upvoting the same content multiple times, gaming leaderboards or trending algorithms
  • Account limits bypass — exceeding free-tier quotas, bypassing "one per user" restrictions on invites, trial activations, or API key generation
  • Privilege escalation — racing role assignment or permission checks during user creation/upgrade flows
  • Deletion bypass — reading or exfiltrating data during a narrow window between "marked for deletion" and "actually deleted"
  • Payment flows — charging a card once but receiving multiple fulfillments

Best-paying asset types: Fintech apps, SaaS platforms with credit/subscription models, social platforms with reputation systems, e-commerce checkout flows, OAuth/SSO token endpoints.


Attack Surface Signals

URL Patterns

/vote, /upvote, /like, /favorite
/redeem, /apply-coupon, /use-code, /claim
/purchase, /checkout, /confirm-order, /pay
/transfer, /withdraw, /send-money
/invite, /referral, /accept-invite
/upgrade, /activate, /trial
/delete, /deactivate, /cancel
/follow, /subscribe

Response Headers That Signal Race-Prone Backends

X-RateLimit-*        # rate limiting exists, but may not be atomic
X-Request-Id         # each request independently tracked
No Cache-Control     # stateful ops not idempotent

JavaScript Patterns to Grep

// Single-use action buttons with client-side disable
button.disabled = true
$('#btn').prop('disabled', true)
// Optimistic UI updates (state set before server confirms)
setState({ used: true })
// Sequential async calls without locking
await useVoucher(); await deductBalance();

Tech Stack Signals

  • Ruby on Rails without with_lock / lock! — ActiveRecord doesn't lock by default
  • Node.js with async/await chains — non-atomic DB reads then writes
  • PHP without SELECT ... FOR UPDATE — common in legacy codebases
  • Microservices — inter-service calls introduce natural TOCTOU windows
  • Redis counters without Lua scripts or INCR atomicity checks
  • Message queues — idempotency keys often missing

Read the full file on GitHub · 254 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 · 254 lines · 31 tokens per session scan A 04979160cb49

Subscribe to this mod's changes

hunt-race-condition is a skill published in the GitHub repository adriannoes/awesome-agentic-ai (108 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 3,141 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

hunt-race-condition compared with skills from other repositories

hunt-race-condition next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hunt-race-conditionadriannoes/awesome-agentic-aiSkill1082d agoMITA31Claude Code, Codex
AI/ML Model TestingPramodDutta/qaskillsSkill25227d agoMITA29Claude Code, Codex
brownfield-driftwednesday-solutions/ai-agent-skillsSkill1746mo agoMITA57Claude Code, Codex
wednesday-gitwednesday-solutions/ai-agent-skillsSkill1746mo agoMITA35Claude Code, Codex
standards-kitwednesday-solutions/ai-agent-skillsSkill1746mo agoMITA35Claude Code, Codex
kill-slopiCodeCraft/anti-slopSkill274mo agoMITA96Claude Code, Codex
pr-hygieneiCodeCraft/anti-slopSkill274mo agoMITA57Claude Code, Codex