PwnSkill
Attack · Investigate · Fix

Skills that pass review. Labs that show you where they break.

A deliberately vulnerable, fully offline lab suite built around the unit an AI agent actually trusts without reading line-by-line: the Skill. Every lab ships a real, installable capability that lets an agent read files, run commands, call external services, or consume external content — booby-trapped on purpose, so you can watch an agent decide to run it, then see exactly where that trust breaks. 56 hands-on labs across every category of the OWASP Agentic Skills Top 10, each one fully reproducible and demo-safe on a conference table.

Deliberately Vulnerable Apache 2.0 Self-Hosted No API Keys
0
Hands-on labs
0
OWASP AST categories
0
Automated tests
0
Execution tiers
0
Real sockets opened

A skill's manifest is just text.
PwnSkill proves what happens when you trust it.

Every lab: attack, investigate, fix — not exploit-only
Not a slide deck

Runs on your machine in under a minute

No API keys, no cloud account, no Docker. Once you have repository access, this is the whole setup.

quickstart.sh
$ pip install -e ".[web,live]" # resolves in seconds — pyyaml, rich, flask, mcp. nothing else. $ pwnskill init # builds the sandboxed NovaCorp workspace $ pwnskill run AST01/clawhavoc-lite # Tier 1 — deterministic replay, no LLM involved $ pwnskill serve --port 5000 ✓ dashboard live at http://127.0.0.1:5000
01

Fully offline by default

Every Tier 1 replay runs with zero network access and zero API keys. The attack already happened — you're investigating it, not waiting on a model call.

02

Real protocol when you want it

pwnskill live <lab> --port 9001 opens a genuine MCP server over SSE — point Claude Desktop, Cursor, Cline, or the MCP Inspector at it directly.

03

No install-source trap

There is exactly one package named pwnskill and it only comes from this repository — no PyPI placeholder to accidentally install instead.

For the Review Board

Why this belongs at Arsenal

OWASP's Agentic Skills Top 10 names ten real, distinct ways an AI agent gets compromised by a third-party skill — but until now there has been no standardized, hands-on environment to study them. PwnSkill is that environment, and it is built to run live, unattended, in front of an audience, all day.

NOVELTY

Attack and remediation, both scored

53 of 56 labs expose a real verify_remediation() MCP tool that re-checks the actual attack path against the current policy — not an exploit-only CTF, a closed loop.

REPRODUCIBILITY

Deterministic by construction

Tier 1 of every lab is a scripted replay with no LLM and no probabilistic output — the same demo, byte-identical, on every machine, every time, with 70 automated tests behind it.

SAFETY

Genuinely safe on an open table

Every "network call" and "shell command" in every lab is intercepted and logged. No lab has ever opened a real socket or touched a real filesystem outside its own sandbox.

What a reviewer can verify directly
  • All ten OWASP Agentic Skills Top 10 categories are represented, with between 3 and 7 labs each — see the full chapter ledger below.
  • Every lab runs two ways: a deterministic Tier 1 replay and a real Tier 2 MCP server any MCP client can connect to and genuinely compromise.
  • The demo is a closed loop on video: run the live attack, apply a guided defense preset, watch it get blocked, call verify_remediation() and receive a second flag.
  • 70 automated tests (unit, safety-boundary, evidence-model, API) and a CI pipeline run against the package on every change — this is a maintained package, not a one-off script bundle.
One lab, start to finish

Attack. Investigate. Fix.

NovaCorp is a fictional company with five agents — Squire, Herald, Warden, Steward, Chamberlain. Here's clawhavoc-lite, a malicious "google-workspace" skill with 4,200 installs and a 4.6 rating.

01 — RUN

Squire installs it. Nothing looks wrong.

The scenario runs with malicious events hidden — the point is to go find out afterward what the skill actually did, not to watch an attack happen.

PwnSkill lab catalog, showing the ten Knightfall chapters and lab cards
02 — INVESTIGATE

The evidence timeline tells the real story.

A structured, color-coded timeline with a Declared vs Observed table underneath — the skill promised *.googleapis.com only, then read an SSH key and sent it to a bare IP address.

DECLAREDnetwork: *.googleapis.com only
OBSERVEDread ~/.ssh/id_rsa → POST 185.220.101.47
⚠ capability drift — exceeds declared scope
PwnSkill evidence view showing a malicious network request
03 — FIX IT, FOR REAL

A real MCP server. A real remediation flag.

Connect an actual agent over the Model Context Protocol, re-run the exact attack live, then tighten the enforced policy until verify_remediation() confirms the path is closed.

PwnSkill Live Mode panel showing a real attack running against an MCP server
Knightfall

The full OWASP Agentic Skills Top 10

Ten chapters, one per category, plus a multi-category capstone and two benign controls that prove the suite doesn't just flag everything.

ChapterOWASP CategoryLabs
I — The False Knight
AST01 — Malicious Skills9
II — The Poisoned Forge
AST02 — Supply Chain Compromise7
III — The Hungry Crown
AST03 — Over-Privileged Skills4
IV — The Forged Seal
AST04 — Insecure Metadata7
V — The Whispering Scroll
AST05 — Untrusted External Instructions6
VI — The Broken Wall
AST06 — Weak Isolation4
VII — The Falling Oath
AST07 — Update Drift4
VIII — The Blind Oracle
AST08 — Poor Scanning5
IX — The Shadow Council
AST09 — No Governance3
X — The Fractured Realms
AST10 — Cross-Platform Reuse4
The Support Team (capstone)
AST01+03+04+051
Benign controls
— no false positives —2
Architecture

One request, six checkpoints

Every lab — Tier 1 or Tier 2 — moves through the same pipeline. Nothing about a lab's story changes the mechanics underneath it.

01
Skill installed
Manifest + SKILL.md declare a scope — Squire trusts it on read
02
Agent decides
Tier 2: a real agent chooses what to call, unscripted
03
Tool call intercepted
Every call — file, shell, network — is logged before it executes
04
Declared vs Observed
What the manifest promised, diffed against what actually ran
05
Policy enforced
A PolicyGate blocks the call once the lab is remediated
06
verify_remediation()
Re-runs the real attack path — second flag only on a genuine fix
TIER 1

Deterministic scripted replay

A generator yields the same Think/ToolCall/Observe/Alert sequence every run — no LLM, no API keys, no probabilistic output.

TIER 2

Real MCP servers over SSE

Every lab also runs as a genuine FastMCP server. Point Claude Desktop, Cursor, or the MCP Inspector at it and it gets compromised over the real protocol — not a recording of one.

SANDBOX

The invariant that never bends

Tools only ever touch a sandboxed workspace. No lab makes a real outbound network call, in either tier, no matter what the lab's agent appears to do.

Where PwnSkill sits

Lab suite, not a scanner

PwnSkill isn't competing with static manifest linters or prompt-injection fuzzers — it's the hands-on environment for studying what they'd be checking for.

ApproachTests a real agent's decisionReal MCP protocolScored remediationFully offline
Manual SKILL.md review
NoNoNoYes
Static manifest linter
NoNoNoYes
Generic prompt-injection fuzzer
PartialRarelyNoDepends
PwnSkill
YesYesYesYes
Not exploit-only

Fix the Skill

Guided defense presets show exactly where a partial fix still leaves a gap open, before the learner reaches the policy that actually closes it.

STEP 1
Run live attack
Exfiltration succeeds against the unmodified policy
STEP 2
Block known C2 IP
Network blocked — files are still readable
STEP 3
Full lockdown
Policy matches declared scope — both vectors closed
STEP 4
verify_remediation()
Re-checks real attack targets — second flag earned
pwnskill — AST01/clawhavoc-lite
✓ Remediation verified — the attack path is now blocked. # flag: PWNSKILL{...}:remediation — separately scored from the exploit flag
What's in the repository

Documentation, not just code

Repository access includes the full written trail — not just 56 folders of Python.

README

Architecture & quick start

Install, run, and the full ten-chapter lab ledger — the same structure shown on this page, with exact commands.

PRESENTER SCRIPT

Word-for-word demo script

A scene-by-scene walkthrough for a live 15- or 30-minute Arsenal demo, timed, with a troubleshooting section.

TEST SUITE

70 automated tests

Unit, safety-boundary, evidence-model, and API tests, plus a live-lab verifier that builds and calls every one of the 56 MCP servers.

CONTRIBUTING

How a new lab gets added

Every lab is grounded in an implemented, testable behavior, never an invented mechanic — the contribution guide explains the pattern.

CI

GitHub Actions, on every push

The full test suite and live-lab verification run on Python 3.11 and 3.12 automatically — green CI, not a claim.

LICENSE

Apache 2.0

Permissively licensed from day one — nothing about access is a gate to the terms, only to the private repository itself.

Knightfall · Ten Chapters · One Suite

"Every lab names an organization, an agent, and a skill — not just a manifest. The story is how you remember which attack is which."