run-agent-attack-replay
Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.
- License 许可
- MIT
- 所属仓库
- dasobral/skills
- 最近更新
- 2026-08-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- run-agent-attack-replay
- license
- MIT
- metadata
- { "plugin": "agent-attack-replay", "version": "0.1.0" }
- description
- Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.
02 资源文件 18
- 参考文档index.json674 B
- 参考文档references/examples/regression-summary.json11.6 KB
- 参考文档references/examples/trial-result.json8.0 KB
- 参考文档references/roles/attacker.toml186 B
- 参考文档references/roles/judge.toml156 B
- 参考文档references/roles/victim.toml273 B
- 参考文档references/schemas/executor-config.schema.json2.0 KB
- 参考文档references/schemas/executor-envelope.schema.json2.0 KB
- 参考文档references/schemas/regression-summary.schema.json4.2 KB
- 参考文档references/schemas/replay-anchor.schema.json790 B
- 参考文档references/schemas/replay-ledger-entry.schema.json2.3 KB
- 参考文档references/schemas/replay-plan.schema.json1.3 KB
- 参考文档references/schemas/trial-result.schema.json5.1 KB
- 参考文档references/schemas/worker-envelope.schema.json1006 B
- 参考文档references/schemas/worker-output.schema.json1.3 KB
- 脚本scripts/monitor_state.py13.1 KB
- 脚本scripts/replay_role_worker.py4.6 KB
- 脚本scripts/run_agent_attack_replay.py53.7 KB
03 SKILL.md 正文
Run Agent Attack Replay
Run attacker, victim, and judge as pluggable executor subprocesses over
agent-executor-rpc-v1. Executors receive only role-scoped inputs and use
line-delimited structured tool RPC; the parent alone touches the replay workspace,
mediates network/filesystem effects, and records observations.
Workflow
- Provide an executor config with an argv array for each packaged TOML role.
Include an approved absolute input root and digest-bound manifest for every
absolute argument. Undeclared, out-of-root, changed, or duplicate inputs are
refused before execution.
Caller-declared side effects, success, evidence states, and judge outcomes are
rejected. Plan
role_actionsare used only by explicit harness self-test mode. Security measurement requires fixed/usr/bin/bwrap, or an explicitly configured root-owned executable on a non-writable path. InheritedPATHand current-user wrappers are never trusted; no direct host fallback exists. - Give the attacker only synthetic attack material, the victim only its trusted goal and modeled channel, and the judge only hashed visible tool transcript and monitor evidence. Never give the judge hidden attacker reasoning.
- Keep secrets, chain-of-thought, credentials, raw tool results, and private data out of the plan and output. Requests/results appear only as hashes.
- Set
PLUGIN_DATAor pass--state-dir. Runpython3 scripts/run_agent_attack_replay.py scenario.json replay-plan.json --fixtures-dir FIXTURES --executor-config executors.json --state-dir STATE --anchor-out replay-anchor.json > regression-summary.json. - The state directory holds a mode-
0600HMAC key, locked append-only trust ledger, and create-only anchor. Never copy the key into a scenario, summary, executor envelope, or anchor. - Validate every schema and calculation plus authenticated envelopes,
observations, role templates, scenario, summary, and ledger chain with
python3 scripts/run_agent_attack_replay.py --validate regression-summary.json --state-dir STATE --anchor replay-anchor.json. --self-test-scripted-workerstests harness plumbing only. It reportsnot-applicableandreview-required, never security pass/allow. Without an executor config or explicit self-test mode, the command returnsevidence-gap. Missing/untrusted Bubblewrap or invalid input manifests likewise returnevidence-gapand run no executor.- Bubblewrap unshares network, PID, IPC, UTS, cgroup, and mount namespaces. It
exposes only per-role
/requestand/work,/proc,/dev,/tmp, the executor binary, and minimal runtime library directories—never/home,/workspace, the project tree, or the full host root. - Treat monitor-generated prohibited-side-effect assertions as authoritative. The deterministic judge projection is supporting review evidence only.
- Retain each complete hashed tool transcript. The generated minimized trace is an additional prefix ending at the first objective violation and never replaces the original.
The script requires jsonschema==4.26.0; absence produces an evidence-gap
with setup guidance, never a traceback.
04 同仓库更多 Skills
fixture-skill
Fixture skill used to prove trust inventory coverage.
write-conformant-code
Write code in any language that matches project conventions exactly. Reads CODING_REQUIREMENTS.md, prior review output, or built-in defaults before writing. Part of Codecraft pipeline: analyze → write → review → audit. Use when implementing features, functions, or any code that should fit seamlessly into an existing codebase.
test-crypto-interoperability
Record reproducible cryptographic interoperability cases, including negotiation, fallback, sizes, latency, fragmentation, and negative tests.
scientific-platform-architect
Design scientific computing platforms combining HPC kernels with modern infrastructure. Enforces compute-layer separation (Rust/PyTorch/Python), emulator-first thinking, and right-sized infrastructure. Use for MCMC pipelines, neural emulators, platform design, or scientific code review.
rust-systems
Rust systems engineering for daemons, HTTP APIs, and AOS components. Enforces Tokio/Axum async-first, LiteLLM-compatible OpenAI APIs, workspace layouts, tracing, and systemd-compatible daemon design. Part of AOS Stack plugin. Use for .rs files, Cargo.toml, daemons, or Rust orchestrator services.
review-quality
Language-agnostic code review across four pillars: Clarity, Simplicity, Good Practices, and Security. Produces severity-tagged findings (CRITICAL/WARNING/SUGGESTION). Complements audit-cognitive-debt for dead code and duplication. Part of Codecraft plugin. Use when asked to review code quality, audit security, check best practices, or find code smells.