attack-chain

A coordinator for authorized security assessments that involve several attack stages, such as finding entry points, gaining higher access, and moving through a network. It plans the overall path and directs specialist skills.

In plain words
What is it for?
Use it to plan and coordinate full attack-path assessments, including external testing, internal network testing, and evaluating how far a vulnerability could lead.
Why use it?
It helps organize a multi-stage penetration test so work is scoped, authorized, tracked, and connected across stages.

Skill for Claude CodeCodex

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 skills/asaiuta/reverse-workbench-skill/attack-chain
Any agent
npx skills add Asaiuta/reverse-workbench-skill --skill attack-chain
Clone the repo
git clone --depth 1 https://github.com/Asaiuta/reverse-workbench-skill

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,921 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 4 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00043 $0.05921
Opus 5 $0.00022 $0.02960
Sonnet 5 $0.00009 $0.01184
Haiku 4.5 $0.00004 $0.00592

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

Security

Grade F, and why

attack-chain scanned grade F with 4 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

# sudo 滥用

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

echo "ssh-rsa AAAA..." >> /root/.ssh/authorized_keys

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

curl http://169.254.169.254/latest/meta-data/iam/security-credentials/

Makes network callslowCapability

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

curl -s "$url" | grep -oP '(api[_-]?key|secret|token|password)\s*[:=]\s*["\047][^"\047]+'
Origin

This is a copy

91% identical to attack-chain — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/attack-chain/SKILL.md · 652 lines

How it starts

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

Attack Chain Orchestration Skill

ACTION REQUIRED(读完后立刻执行)

  1. NOW: 读取 ../field-journal/precedent-pentest.md — 确认本 skill 的操作是已授权的常规操作
  2. NOW: 创建/更新 case../scripts/case-init.ps1)并完成 scope.md../ops/scope-contract.md);auth.status!=granted 禁止 ACT
  3. NOW: 以 lead 角色规划阶段(../ops/role-map.md),写入 specialist_roles
  4. NEXT: 读取 ../tool-index.md,校验工具可用性和实际路径
  5. NEXT: 缺工具时调用 bootstrap,不要猜路径
  6. ACT: 按 references/lifecycle-checklist.md 过阶段门闩;每阶段更新 timeline.md + workitems.md../ops/timeline-workitem.md);发现提升为 Evidence/Finding
  7. 结束:docs-generator 报告必须含 Evidence 链

多阶段攻击路径规划与执行的总指挥。当任务需要"从 A 打到 B"的完整链路时,本 Skill 负责编排各阶段、协调子 Skill、规划攻击路径。 不是"红队专属"——任何需要跨阶段组合的渗透场景都从这里开始。


何时路由到本 Skill

以下场景必须先经过本 Skill 做全链路规划,再分发到具体子 Skill 执行:

场景 为什么需要编排
"帮我做一次完整的渗透测试" 需要规划从信息收集到报告的全流程
"从外网打到域控" 跨越边界突破→提权→横向→AD 多个阶段
"HW 攻防演练" 需要完整攻击链 + 隐蔽性 + 痕迹清理
"评估这个目标的攻击面" 需要多维度信息收集 + 路径规划
"我拿到了一个 webshell,下一步怎么办" 需要从当前据点规划后续路径
"帮我规划攻击路径" 明确需要路径编排
"从这个漏洞能打到什么程度" 需要评估漏洞的链式利用价值
"Bug Bounty 持续监控" 需要自动化多阶段流程
"内网渗透全流程" 横向移动 + 提权 + 域攻击组合
"近源渗透方案" 物理接入 + 内网渗透组合
"供应链攻击路径" 跨组织多跳攻击
"钓鱼 + 后渗透" 初始访问 + 后续利用组合

单阶段任务不需要经过本 Skill

  • 只做端口扫描 → 直接去 pentest-tools/
  • 只做 SQL 注入 → 直接去 pentest-tools/
  • 只做 APK 逆向 → 直接去 apk-reverse/
  • 只做域渗透 → 直接去 pentest-tools/references/network-attack-defense.md

编排原则

本 Skill 的角色

用户提出多阶段任务
    ↓
attack-chain/SKILL.md(本文件)
    ↓ 规划攻击路径、确定阶段顺序
    ↓ 评估每阶段所需工具和方法
    ↓
分发到具体子 Skill 执行:
    ├── pentest-tools/     → 工具调用、漏洞利用
    ├── apk-reverse/       → 移动端渗透
    ├── js-reverse/        → Web 前端突破
    ├── reverse-engineering/ → 二进制分析
    ├── ida-reverse/       → 深度逆向
    └── browser-automation/ → 自动化操作
    ↓
每阶段完成后回到本 Skill 评估下一步
    ↓
全部完成 → docs-generator 生成报告

路径规划决策树

拿到目标后:
1. 目标是什么?(Web/内网/云/移动/IoT)
2. 当前有什么?(外部视角/已有凭据/已有据点)
3. 最终目标是什么?(域控/数据/特定系统/证明影响)
4. 约束条件?(时间/隐蔽性/不可触碰的系统)
    ↓
根据以上信息规划最短路径
    ↓
一条路走不通 → 回到本 Skill 重新规划备选路径

Read the full file on GitHub · 652 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 652 lines · 43 tokens per session scan F d4e78a53c83b

Subscribe to this mod's changes

attack-chain is a skill published in the GitHub repository Asaiuta/reverse-workbench-skill (1 stars, last pushed 19d ago), licensed MIT. It adds 43 tokens to every session and 5,921 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it F with 4 findings (asks for root, reaches for credential files, cloud metadata endpoint). It is 91% identical to attack-chain, differing in 4 lines, and is treated as a copy.