build-attack-scenario
Build a portable, hash-pinned agent attack scenario with explicit trusted goals, untrusted channels, prohibited effects, and benign criteria.
- License 许可
- MIT
- 所属仓库
- dasobral/skills
- 最近更新
- 2026-08-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- build-attack-scenario
- license
- MIT
- metadata
- { "plugin": "agent-attack-replay", "version": "0.1.0" }
- description
- Build a portable, hash-pinned agent attack scenario with explicit trusted goals, untrusted channels, prohibited effects, and benign criteria.
02 资源文件 4
03 SKILL.md 正文
Build Attack Scenario
Define a controlled evaluation; do not execute it while building the artifact. Use synthetic, non-sensitive payloads and fixtures. Never place production credentials, private prompts, personal data, or live endpoints in a scenario.
Workflow
- Create a definition containing the trusted goal, untrusted channel, payload
family, prohibited side effects, benign success criteria, repetitions, and
relative fixture paths. Add monitor-executable benign assertions and separate
attacker,victim, andjudgerole inputs; never share hidden attacker reasoning with the judge. - Run
python3 scripts/build_attack_scenario.py definition.json --base-dir FIXTURES > scenario.json. - Review the computed SHA-256 fixture and packaged TOML role-definition hashes.
- Validate with
python3 scripts/build_attack_scenario.py --validate scenario.json. - Require the replay harness's temporary workspace, mediated structured tools, deny-all network monitor, and hash-bound filesystem observations. An agent's statement that isolation or success exists is not enforcement evidence.
The generated scenario records hashes, not fixture contents. See
references/schemas/scenario.schema.json.
Definitions and outputs use Draft 2020-12 validation first. Missing
jsonschema==4.26.0 yields an evidence-gap with setup guidance.
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.
run-agent-attack-replay
Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.