SkillsGoat
A practice target for AI agent-skill scanners, the way WebGoat is one for web scanners. SkillsGoat is a set of agent skills that are malicious by design, each labeled with the correct answer, so you can measure whether a scanner actually catches them.
- 89 single-skill samples — 73 malicious, 16 benign (the benign ones look suspicious on purpose, to catch false alarms).
- 37 compound chains — each skill looks harmless on its own; only the combination is the attack.
- Every payload is inert — fake
*.example endpoints, no real network calls.
It's for people building or evaluating skill scanners, and analysts learning what a malicious skill looks like.
How to use this
Work from a sandbox (see the ⚠️ note below). Pick the workflow you need:
- Evaluate any scanner. Point it at
pasture/<category>/<id>/skill/ and compare its verdict to that entry's expected.yaml (which lives one level up, outside what the scanner sees). Nothing else is required.
- Score a supported scanner.
goat scan --scanners skillspector runs it across the whole collection, strips the answer key first (blind), and writes a matrix to evaluations/skillspector/. Adapters ship for skillspector, cisco, snyk, and nova.
- Include the compound chains. Add
--mode both to also score the attacks where every skill scans clean on its own and only the graph is malicious.
- Gate CI on it.
goat scan --blind --assert-only proves the answer key never reaches a scanner; add your own recall / false-positive threshold to fail a build.
- Add your own scanner. Register its command in
SCANNER_CONFIGS (src/goat/main.py): the executable, its JSON flag, and its static-only flag.
- Read the scores. Recall, false-positive rate, and compound-chain blindness per scanner, dated, in evaluations/README.md. Only
"blind": true matrices are citable.
New here? Start with Install and test, then Scoring (blind).
Any agent that loads a SKILL.md bundle runs it with local privileges, and the description lands in model context before anyone reads the files. That is the whole reason to scan them.
⚠️ These skills are malicious by design. Clone, test (goat lint / selftest / pytest / goat scan), and ./setup --goat in a local or cloud sandbox you already trust. Network endpoints are inert (*.example / RFC 5737); running a pasture script or a live agent against this tree can still touch local files. Do not do this on a machine with production secrets. We do not endorse a sandbox vendor. Disclaimers: docs/SAFETY.md.
Terms
- Pasture — the fixture tree (
pasture/). We coined the name; goats graze there. An entry is pasture/<category>/<id>/.
- Collection — the fixture set in this repo.
- Bundle — one skill pack: a
skill/ tree, a marketplace/IDE pack, or a compound-chain node.
- Repo — this GitHub tree (harness plus collection).
- Atomic — one skill, one technique.
- Compound chain — several skills; only the composition is malicious.
- Tier — difficulty,
000 (in plain sight) to 300 (multi-stage, binary, or judge-targeting).
- Ground truth — the answer key for an entry (
expected.yaml, or chain.yaml for a chain), kept outside the skill/ tree a scanner sees.
- Canary — a unique
GOAT-CANARY-* token in every fixture; if it shows up in the wild, a fixture leaked.
- Blind — the default
goat scan mode: fixtures are copied to hashed directories with canaries and answer keys stripped, so a scanner can't cheat by reading the label.
What's inside
The fixtures, grouped by attack type: