yaklang avatar

Ai Ml Security

This is a comprehensive attack playbook covering the full spectrum of ML security risks, from pickle deserialization RCE in PyTorch model files to adversarial examples and federated learning poisoning. It walks through concrete exploits like backdooring Hugging Face models, crafting physical-world adversarial patches, and extracting black-box models via API queries. The skill includes actual attack code, detection signals for malicious models, and comparison tables for different threat vectors (FGSM vs PGD vs C&W, safetensors vs pickle formats). Use this when you need to assess ML system security beyond basic prompt injection, especially for supply chain risks in model downloads or when evaluating robustness against data poisoning and model extraction attacks.

skills.sh installs
3.8K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill ai-ml-security --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: AI/ML Security — Expert Attack Playbook

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.

0. RELATED ROUTING


1. MODEL SUPPLY CHAIN ATTACKS

1.1 Malicious Model Files — Pickle RCE

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Security, AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Recommended

More Security
1affaan-m avatarllm-trading-agent-securityaffaan-m/everything-claude-codellm trading agent security3.6Kskills.sh installs
2affaan-m avatardefi-amm-securityaffaan-m/everything-claude-codedefi amm security3.5Kskills.sh installs
3boshu2 avatarsecurityboshu2/agentopsRun authorized repository security scans for1.4Kskills.sh installs
4uniswap avatarv4-security-foundationsuniswap/uniswap-aiSecurity-first Uniswap v4 hook development. Use when user mentions "v4 hooks", "hook security", "PoolManager", "beforeSwap", "afterSwap", or asks about V4 hook 1.2Kskills.sh installs
5ruvnet avataragent-authenticationruvnet/rufloAgent skill for authentication - invoke with $agent-authentication1.1Kskills.sh installs
6davila7 avatarsenior-securitydavila7/claude-code-templatesComprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assess987skills.sh installs