AGENT SKILL

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

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

  1. 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_actions are 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. Inherited PATH and current-user wrappers are never trusted; no direct host fallback exists.
  2. 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.
  3. Keep secrets, chain-of-thought, credentials, raw tool results, and private data out of the plan and output. Requests/results appear only as hashes.
  4. Set PLUGIN_DATA or pass --state-dir. Run python3 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.
  5. The state directory holds a mode-0600 HMAC key, locked append-only trust ledger, and create-only anchor. Never copy the key into a scenario, summary, executor envelope, or anchor.
  6. 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.
  7. --self-test-scripted-workers tests harness plumbing only. It reports not-applicable and review-required, never security pass/allow. Without an executor config or explicit self-test mode, the command returns evidence-gap. Missing/untrusted Bubblewrap or invalid input manifests likewise return evidence-gap and run no executor.
  8. Bubblewrap unshares network, PID, IPC, UTS, cgroup, and mount namespaces. It exposes only per-role /request and /work, /proc, /dev, /tmp, the executor binary, and minimal runtime library directories—never /home, /workspace, the project tree, or the full host root.
  9. Treat monitor-generated prohibited-side-effect assertions as authoritative. The deterministic judge projection is supporting review evidence only.
  10. 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

dasobral
dasobral/skills

fixture-skill

Fixture skill used to prove trust inventory coverage.

★ 0
dasobral
dasobral/skills

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.

★ 0
dasobral
dasobral/skills

test-crypto-interoperability

Record reproducible cryptographic interoperability cases, including negotiation, fallback, sizes, latency, fragmentation, and negative tests.

★ 0
dasobral
dasobral/skills

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.

★ 0
dasobral
dasobral/skills

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.

★ 0
dasobral
dasobral/skills

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.

★ 0