New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Catalog of AI and ML attack techniques for CTF challenges, covering weights, adversarial inputs, and LLMs.

skills.sh installs
8.5K
GitHub stars
3.8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers model weight analysis, adversarial examples, LLM attacks, model extraction, and gradient-based techniques for CTF work
  • Includes quick-start inspection commands for .pt, safetensors, HuggingFace, and LoRA adapter files, plus weight-diff comparison
  • Provides per-technique guidance on FGSM, PGD, C&W, prompt injection, jailbreaking, and membership inference, each pointing to supporting reference files
  • Designed for CTF players who should pivot to crypto, reverse engineering, or misc skills when a challenge leaves the ML domain

Install

$ npx -y skills add ljagiello/ctf-skills --skill ctf-ai-ml -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CTF AI/ML

Quick reference for AI/ML CTF challenges. Each technique has a one-liner here; see supporting files for full details.

Prerequisites

Python packages (all platforms):

pip install torch transformers numpy scipy Pillow safetensors scikit-learn

Linux (apt):

apt install python3-dev

macOS (Homebrew):

brew install python@3

Additional Resources

  • model-attacks.md - Model weight perturbation negation, model inversion via gradient descent, neural network encoder collision, LoRA adapter weight merging, model extraction via query API, membership inference attack
  • adversarial-ml.md - Adversarial example generation (FGSM, PGD, C&W), adversarial patch generation, evasion attacks on ML classifiers, data poisoning, backdoor detection in neural networks
  • llm-attacks.md - Prompt injection (direct/indirect), LLM jailbreaking, token smuggling, context window manipulation, tool use exploitation

When to Pivot

Details

Repository
github.com/ljagiello/ctf-skills
Categories
Security, AI Agents & LLM Apps
First seen
Apr 16, 2026

More from ljagiello/ctf-skills

All 11

Similar to Ctf Ai Ml

More Security