Software-tier red-team corpus
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Software-tier red-team corpus
- perks
- [ "rt-tamper-script", "rt-snippet-toctou", "rt-ledger-tamper", "rt-grant-replay", "rt-grant-expired", "rt-grant-forged" ]
- skill
- cws-redteam-sw
02 资源文件 40
- 参考文档blueprint.json3.8 KB
- 参考文档index.json4.6 KB
- 参考文档ledger.json296 B
- 参考文档perks.json1.7 KB
- 参考文档perks/rt-grant-expired/manifesto.json262 B
- 参考文档perks/rt-grant-expired/metadata.json846 B
- 参考文档perks/rt-grant-expired/src/contracts.json256 B
- 脚本perks/rt-grant-expired/src/rt_grant_expired.py2.1 KB
- 脚本perks/rt-grant-expired/src/rt_grant_expired.sh158 B
- 参考文档perks/rt-grant-expired/test/case.json265 B
- 参考文档perks/rt-grant-forged/manifesto.json259 B
- 参考文档perks/rt-grant-forged/metadata.json835 B
- 参考文档perks/rt-grant-forged/src/contracts.json255 B
- 脚本perks/rt-grant-forged/src/rt_grant_forged.py2.3 KB
- 脚本perks/rt-grant-forged/src/rt_grant_forged.sh156 B
- 参考文档perks/rt-grant-forged/test/case.json264 B
- 参考文档perks/rt-grant-replay/manifesto.json259 B
- 参考文档perks/rt-grant-replay/metadata.json847 B
- 参考文档perks/rt-grant-replay/src/contracts.json255 B
- 脚本perks/rt-grant-replay/src/rt_grant_replay.py2.0 KB
- 脚本perks/rt-grant-replay/src/rt_grant_replay.sh156 B
- 参考文档perks/rt-grant-replay/test/case.json264 B
- 参考文档perks/rt-ledger-tamper/manifesto.json262 B
- 参考文档perks/rt-ledger-tamper/metadata.json1007 B
- 参考文档perks/rt-ledger-tamper/src/contracts.json256 B
- 脚本perks/rt-ledger-tamper/src/rt_ledger_tamper.py2.0 KB
- 脚本perks/rt-ledger-tamper/src/rt_ledger_tamper.sh252 B
- 参考文档perks/rt-ledger-tamper/test/case.json265 B
- 参考文档perks/rt-snippet-toctou/manifesto.json265 B
- 参考文档perks/rt-snippet-toctou/metadata.json1.0 KB
- 参考文档perks/rt-snippet-toctou/src/contracts.json257 B
- 脚本perks/rt-snippet-toctou/src/rt_snippet_toctou.py3.2 KB
- 脚本perks/rt-snippet-toctou/src/rt_snippet_toctou.sh255 B
- 参考文档perks/rt-snippet-toctou/test/case.json266 B
- 参考文档perks/rt-tamper-script/manifesto.json262 B
- 参考文档perks/rt-tamper-script/metadata.json1.0 KB
- 参考文档perks/rt-tamper-script/src/contracts.json256 B
- 脚本perks/rt-tamper-script/src/rt_tamper_script.py2.7 KB
- 脚本perks/rt-tamper-script/src/rt_tamper_script.sh252 B
- 参考文档perks/rt-tamper-script/test/case.json265 B
03 SKILL.md 正文
cws-redteam-sw — Software-tier red-team corpus (SV-1 / SV-2)
An adversarial expected-refusal corpus against the boundaries cyberware enforces today in software: the executor's tamper + per-step snippet gates and the Ledger-v2 chain verifier. Each perk MOUNTS a real attack in a throwaway sandbox and asserts the boundary refuses it (a recorded refusal is evidence — meta-rule M4), with an oracle: a clean control must be accepted, so a perk goes RED the moment its gate goes silently no-op. The pass is "the boundary held — it failed the attack on purpose under observation."
Honest scope — this is the SOFTWARE tier, NOT the SV-3 kernel gate. SV-3 ("execution becomes a kernel-enforced boundary") demands the ≥12-behavior corpus refuse with the software scan DISABLED, over the
exoddaemon + sandbox (bwrap/seccomp/cgroups). That subject is now built (infra/exec/exod.py,infra/exec/sandbox.py), and the kernel skillcws-redteam(P2-T08) drives the corpus through it — M3 / SV-3 reaches 9/10 on this hardware, the one residual being the microVM perf budget that needs/dev/kvm(seecws-bench), not a missing subject.cws-redteam-swis still named distinctly and redeems nothing in the P2 cone — every P2 task isvalidated_by: cws-redteam, so a same-named pass would falsely close M3 — and remains the software-tier precursor that runs the same attacks against today's in-process gates.
Perks
| perk | tool | attack → boundary that must refuse |
|---|---|---|
rt-tamper-script |
rt_tamper_script |
edit a compiled script after the snapshot → executor tamper check (exit 4) |
rt-snippet-toctou |
rt_snippet_toctou |
mutate a perk porter after blessing → per-step snippet check (exit 8) |
rt-ledger-tamper |
rt_ledger_tamper |
flip a Ledger-v2 record → chainverify.verify_chain |
rt-grant-replay |
rt_grant_replay |
replay a spent grant nonce → grants.verify_grant (replay) |
rt-grant-expired |
rt_grant_expired |
present an expired grant → grants.verify_grant (expired, ±60s skew) |
rt-grant-forged |
rt_grant_forged |
tamper a signed grant claim → grants.verify_grant (bad_signature, offline) |
Each perk takes no inputs and writes redteam.json ({attack, clean_accepted, refused, boundary_held});
exit 0 iff the boundary held.
How to use it
Pick a perk, copy ledger.json → task-ledger.json, set record_store, then validate → compose →
compile → oversight → executor. Drive the whole corpus through govd to produce a governed refusal record.
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.