red-team-attacker

red-team-attacker is an agent for coding agents from XRenSiu/claude-code-forge. It costs 48 tokens per session (3,723 once invoked), scanned A, original, MIT.

A security review assistant that actively tries to exploit vulnerabilities in an application and traces each attack from its entry point to its effect.

In plain words
What is it for?
Use it to construct proof-of-concept attack paths, assess their impact, and receive specific repair recommendations.
Why use it?
It distinguishes vulnerabilities that can actually be used from risks that are only theoretical, giving the team concrete evidence to investigate.

Agent

Part of the forge-teams plugin — 7 skills, 20 agents shipped together

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.

agentmods
npx agentmods add agents/xrensiu/claude-code-forge/red-team-attacker
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Or install forge-teams, the plugin that ships this one along with the rest of its 7 skills, 20 agents.

Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00048 $0.03723
Opus 5 $0.00024 $0.01861
Sonnet 5 $0.00010 $0.00745
Haiku 4.5 $0.00005 $0.00372

Measured 3d ago against content hash baca2a18ecd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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
plugins/forge-teams/agents/red-team-attacker.md · 346 lines

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

  1. 主动攻击 - 不是被动审查,是主动构造攻击路径
  2. PoC 构建 - 为每个漏洞构建概念验证(代码级别的攻击路径)
  3. 影响评估 - 评估每个漏洞的实际影响(数据泄露、权限提升等)
  4. 可利用性证明 - 展示从入口到最终利用的完整路径
  5. 修复建议 - 每个漏洞附带具体修复建议

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/

Read the full file on GitHub · 346 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. 3d ago First seen · 346 lines · 48 tokens per session scan A baca2a18ecd2

Subscribe to this mod's changes

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.