race

race is a skill for Claude Code from PentesterFlow/agent. It costs 82 tokens per session (1,044 once invoked), scanned A, original, Apache-2.0.

A security-testing playbook for race conditions, where two operations happen close enough together to interfere with each other. It covers time-of-check/time-of-use bugs, such as redeeming a one-time code twice or reading a file while it is being replaced.

In plain words
What is it for?
Use it to test one-time codes, gift cards, discounts, votes, transfers, 2FA attempts, invitations, email confirmation, or upload-and-read flows for duplicate processing or confused state.
Why use it?
It helps reveal flaws that ordinary one-at-a-time testing misses, especially when a server checks and updates shared state separately. The approach focuses on replaying a real request in parallel.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to test one-time codes, gift cards, discounts, votes, transfers, 2FA attempts, invitations, email confirmation, or upload-and-read flows for duplicate processing or confused state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pentesterflow/agent/race
About the project

PentesterFlow is a terminal-based AI assistant for authorized penetration testing and bug hunting, guiding analysts through reconnaissance, testing, evidence gathering, and reporting while requiring human approval for sensitive actions. Security engineers use it with local or hosted language models and real security tools, and the catalogue add-ons extend its workflows.

PentesterFlow/agent · 1,401 stars · on GitHub · pentesterflow.com

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 PentesterFlow/agent --skill race
Clone the repo
git clone --depth 1 https://github.com/PentesterFlow/agent

Made for: Claude Code.

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 race

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pentesterflow/agent/race"><img src="https://agentmods.dev/badge/skills/pentesterflow/agent/race.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,044 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: 3 findings, up to high

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 →

  • high Tool Misuse · line 54
    Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
    Fix: Limit tool chaining depth and validate the output of each tool before passing it to the next. Require explicit user approval for multi-step chains.
  • medium Tool Misuse · line 39
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
  • medium Data Exfiltration · line 54
    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.00082 $0.01044
Opus 5.5 $0.00033 $0.00418
Sonnet 5.5 $0.00016 $0.00209
Haiku 4.5 $0.00008 $0.00104

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

Security

Grade A, and why

race 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 1mo 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.

seq 50 | xargs -P 50 -I{} curl -s -X POST https://target/redeem \
skills/race/SKILL.md · 96 lines

How it starts

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

Race / TOCTOU playbook

Confirm the target is in scope for stress-style testing (multiple parallel requests can look like abuse). Then identify the candidate operation.

Execution rule: capture a real request for the operation and replay that request with concrete cookies/body values. Never write literal placeholders such as <sess> to files; ask once if a session or replayable request is missing.

Targets worth racing

  • Redeem a gift card / promo code (does the second redeem succeed?)
  • Cast a vote / claim a one-per-user reward
  • Withdraw / transfer balance (does it deduct twice?)
  • Submit a 2FA code (can N parallel guesses each be checked against an unused-attempts counter?)
  • Apply a discount that's supposed to be once-per-cart
  • Send a friend / invite request (creates duplicate rows / privileges)
  • Confirm an email (mark verified twice with different addresses)
  • Upload then read a file (write safe.png, then race a swap to evil.svg before AV scans)

1. Burp-style "single packet attack" (last-byte sync) — preferred

Modern servers buffer HTTP/2 frames. The classic trick: send N requests where each is fully serialized except the last byte. Then in a single TCP write, flush the final byte of all N. The server receives them effectively simultaneously and dispatches them in parallel — bypassing nearly all software-side rate limiting.

You can do this with a small Go/Python script. Skeleton (Python, HTTP/2):

import asyncio, ssl
import httpx

async def main():
    transport = httpx.AsyncHTTPTransport(http2=True)
    async with httpx.AsyncClient(transport=transport, verify=False) as c:
        # Build N partial requests, then race the last byte.
        # In practice: use turbo-intruder or a Go h2 client for byte-level control.
        ...
asyncio.run(main())

For the highest-fidelity version, use Burp Suite's Turbo Intruder (race-single-packet-attack.py template) — it's the de facto tool. The shell tool can run it if installed.

Read the full file on GitHub · 96 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. 1mo ago First seen · 96 lines · 82 tokens per session scan A 2bd287d25f17

Subscribe to this mod's changes

race is a skill published in the GitHub repository PentesterFlow/agent (1,401 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,044 once invoked, about $0.0003 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-08-30.