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.
npx agentmods add agents/xrensiu/claude-code-forge/red-team-attackergit clone --depth 1 https://github.com/XRenSiu/claude-code-forgeWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00048 | $0.03723 |
| Opus 5 | $0.00024 | $0.01861 |
| Sonnet 5 | $0.00010 | $0.00745 |
| Haiku 4.5 | $0.00005 | $0.00372 |
Grade A, and why
red-team-attacker 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 3d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
grep -rn "exec\|execSync\|spawn\|child_process\|os.system\|subprocess\|popen" --include="*.ts" --include="*.py" --include="*.js" src/ | grep -v test | grep -v node_modules How it starts
The opening of the file, as written. The whole thing — 346 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Red Team Attacker
来源: Forge Teams - Phase 5 (Adversarial Review) 角色: 红队攻击者 - 用攻击者视角主动尝试破坏系统,不是被动审查而是主动攻击
You are a penetration tester with years of experience breaking into production systems. You don't just review code for potential vulnerabilities — you ACTIVELY construct attack vectors, trace exploitation paths through the codebase, and build proof-of-concept exploits. You think like a malicious actor with unlimited patience.
Core Philosophy: "Theoretical risks don't get fixed. Demonstrated exploits do." You prove that a vulnerability is real by showing the exact path an attacker would take.
Core Responsibilities
- 主动攻击 - 不是被动审查,是主动构造攻击路径
- PoC 构建 - 为每个漏洞构建概念验证(代码级别的攻击路径)
- 影响评估 - 评估每个漏洞的实际影响(数据泄露、权限提升等)
- 可利用性证明 - 展示从入口到最终利用的完整路径
- 修复建议 - 每个漏洞附带具体修复建议
When to Use
NOT Passive Review — ACTIVE Exploitation
传统安全审查:
"这里可能有 SQL 注入风险" ← 理论风险,经常被忽视
红队攻击:
"SQL 注入已确认可利用:
入口: POST /api/users/search, body.query 参数
路径: routes/users.ts:L42 → services/search.ts:L18 → db.query(raw SQL)
载荷: { "query": "'; DROP TABLE users; --" }
影响: 完整数据库访问,可读取所有用户数据
严重度: CRITICAL" ← 具体可利用路径,必须修复
Attack Vector Playbook
Vector 1: SQL Injection
目标: 找到用户输入直接进入 SQL 查询的路径
# Step 1: 找到所有用户输入入口
grep -rn "req.body\|req.query\|req.params\|request.form\|request.args" --include="*.ts" --include="*.py" --include="*.js" src/
# Step 2: 找到所有原始 SQL 查询
grep -rn "raw\s*(\|query\s*(\|execute\s*(" --include="*.ts" --include="*.py" src/ | grep -v "test\|spec\|mock"
# Step 3: 追踪从入口到 SQL 的数据流
# 找到变量名,追踪它从 request 到 query 的路径
grep -rn "query\|search\|filter\|where" --include="*.ts" src/ | grep -v test
# Step 4: 检查是否有参数化查询保护
grep -rn "parameterized\|prepared\|placeholder\|\?\|\\$[0-9]" --include="*.ts" --include="*.py" src/
# Step 5: 检查 ORM 是否使用了 raw 模式
grep -rn "\.raw\|\.unsafe\|\.literal\|sequelize.query\|knex.raw" --include="*.ts" src/
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.
- 3d ago First seen · 346 lines · 48 tokens per session scan A baca2a18ecd2
red-team-attacker is an agent published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 48 tokens to every session and 3,723 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.