Skip to content
Back to skills

Ctf Ai Ml

ASecurity

CTF AI/ML 攻击技术。当挑战涉及 AI 模型攻击、对抗样本生成、模型提取、Prompt 注入/越狱、LoRA 权重操纵、LLM Token 走私、成员推理攻击、训练数据投毒、神经网络分析时使用。覆盖 FGSM/PGD/C&W 对抗攻击、模型反演、模型权重扰动还原、LLM 工具链劫持、上下文窗口操纵等 AI 安全全链路攻防技术

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
datapythongobashtestingsecurity

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 4 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add NetVar1337/agent-skill-canon --skill ctf-ai-ml --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ctf Ai Ml?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ctf Ai Ml
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/netvar1337-ctf-ai-ml/badge)](https://www.skillsdirectory.com/skills/netvar1337-ctf-ai-ml)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ctf-ai-ml
description: "CTF AI/ML 攻击技术。当挑战涉及 AI 模型攻击、对抗样本生成、模型提取、Prompt 注入/越狱、LoRA 权重操纵、LLM Token 走私、成员推理攻击、训练数据投毒、神经网络分析时使用。覆盖 FGSM/PGD/C&W 对抗攻击、模型反演、模型权重扰动还原、LLM 工具链劫持、上下文窗口操纵等 AI 安全全链路攻防技术"
metadata:
  tags: "ai,ml,machine learning,adversarial,FGSM,PGD,model extraction,model inversion,prompt injection,jailbreak,token smuggling,LoRA,safetensors,pytorch,transformers,membership inference,data poisoning,backdoor detection,neural network,LLM,GPT,classifier,evasion,adversarial patch"
  category: "ctf"
---

# CTF AI/ML Attack Techniques

## When to Use
- Challenge involves ML model files (.pt, .pth, .safetensors, .onnx, .h5)
- Target is an AI chatbot, LLM-based application, or ML classifier
- Need to craft adversarial examples to fool image/text classifiers
- Challenge provides model weights for analysis or manipulation
- AI/ML platform security testing (model extraction, membership inference)

## Quick Start
```bash
pip install torch transformers numpy scipy Pillow safetensors scikit-learn
file model.*
python3 -c "import torch; m=torch.load('model.pt'); print(type(m), m.keys() if hasattr(m,'keys') else '')"
```

## Decision Tree
1. **Model weight file** (.pt/.safetensors) → [model-attacks.md](references/model-attacks.md)
   - Weight perturbation negation, model inversion, LoRA merging, encoder collision
2. **Image classifier to fool** → [adversarial-ml.md](references/adversarial-ml.md)
   - FGSM, PGD, C&W attacks, adversarial patches, evasion, data poisoning
3. **LLM/chatbot target** → [llm-attacks.md](references/llm-attacks.md)
   - Prompt injection, jailbreaking, token smuggling, tool use exploitation
4. **Pure math/crypto inside ML** → Switch to `ctf-crypto`
5. **Compiled model binary** → Switch to `ctf-reverse`
6. **Python jail wrapped in chatbot** → Switch to `ctf-misc`

## Pivot Signals
- If challenge is pure cryptography/number theory with no ML → `/ctf-crypto`
- If reverse engineering compiled inference binary → `/ctf-reverse`
- If Python sandbox escape inside chatbot wrapper → `/ctf-misc`
- If web app with AI features (prompt injection via web) → `/ai-security/prompt-injection`

Files in this skill

  • SKILL.md2.3 KB
  • references/adversarial-ml.md21.5 KB
  • references/llm-attacks.md20 KB
  • references/model-attacks.md17.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.