AGENT SKILL

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

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 exod daemon + sandbox (bwrap/seccomp/cgroups). That subject is now built (infra/exec/exod.py, infra/exec/sandbox.py), and the kernel skill cws-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 (see cws-bench), not a missing subject. cws-redteam-sw is still named distinctly and redeems nothing in the P2 cone — every P2 task is validated_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