AI/ML Attack Surface
Grep-driven checklist for ML deserialization, prompt injection, and untrusted model loading
Testowano · Działa
Co robi ten skill
A single-file security reference that catalogs AI/ML-specific vulnerability classes (unsafe torch/pickle/numpy deserialization, prompt injection, Jupyter notebook injection, untrusted HuggingFace model loading, training-data poisoning) with CWE mappings, ready-to-run grep detection commands, and safe alternatives per framework. Triggers on AI security, ML pipeline attack, prompt injection, or unsafe model loading requests.
Raport z testu
Fed it a 29-line file with torch.load, pickle.load, np.load(allow_pickle=True) and an f-string prompt-injection pattern; its own grep battery, run for real, caught all 4 real issues (the dedicated prompt-injection regex actually missed the case and it only surfaced via the generic messages/system grep — a real gap in its own suggested command) and mapped each hit to a CWE plus a concrete safe alternative (weights_only=True, skops.io, safetensors).
Testowano: 2026-07-14 · Claude Code 2.x (agent harness)
Instalacja
git clone https://github.com/allsmog/vuln-scout cd vuln-scout mkdir -p ~/.claude/skills cp -r vuln-scout/skills/ai-ml-attacks ~/.claude/skills/ai-ml-attack-surface
Komendy i przykładowe prompty
/ai-ml-attack-surfaceGrep-driven checklist for ML deserialization, prompt injection, and untrusted model loading
Skille uruchamiają się na zwykłe polecenia — bez komend do zapamiętania. Po instalacji aktywują go prompty takie jak te (po angielsku):
Audit this ML codebase for unsafe model deserializationCheck our inference service for prompt-injection exposureScan this repo for untrusted pickle and model-loading risks