bittersecurity/decepticon/adversarial-ml-evasion
Claude Code and agent skill by bittersecurity/decepticon
- community
Checking that the SKILL.md file is still in the repository.
Craft adversarial examples that cause trained ML classifiers to misclassify at inference time — image recognition, malware detectors, IDS, spam filters.
Install
npx vskill@latest install bittersecurity/decepticon/adversarial-ml-evasionSKILL.md
The same SKILL.md was published earlier as bittersecurity/decepticon/adversarial-ml-evasion.
Adversarial ML Evasion
Adversarial examples are inputs modified with small, deliberate perturbations that reliably cause a trained classifier to produce incorrect predictions. The perturbation is typically imperceptible to humans or functionally irrelevant, while the model's decision boundary is crossed. This is distinct from LLM jailbreaks: the target is a trained discriminative model (CNN, gradient-boosted tree, SVM, LSTM) served via an API or embedded in a product.
Authorized use only. All testing must be conducted against systems you own or haveexplicit written permission to assess. Generating adversarial inputs against productionML APIs without authorization may violate the CFAA and equivalent statutes.
ATT&CK Mapping
| Technique | Use | |
|---|---|---|
| T1562.001 — Impair Defenses: Disable or Modify Tools | Evade ML-based AV/EDR/IDS | |
| T1036 — Masquerading | Make malicious content look benign to a classifier | |
| T1027 — Obfuscated Files or Information | Perturb a file/image to fool static ML analysis |
1. Reconnaissance — understand the target model
Before crafting perturbations, determine the attack surface:
2. White-box evasion (full model access)
Use when you have the model weights (pentest scope, internal system, open-source model).
2a. FGSM — Fast Gradient Sign Method (single step)
2b. PGD — Projected Gradient Descent (iterative, stronger)
2c. C&W — Carlini & Wagner (optimization-based, minimal distortion)
3. Black-box evasion (API access only)
3a. Score-based: NES / ZOO (gradient-free estimation)
When confidence scores are returned, estimate gradient via finite differences:
3b. Transfer attack (surrogate model)
The reference approach from 13o-bbr-bbq/machine_learning_security's CNN_test:
3c. Hard-label: HopSkipJump
When only the predicted label is returned (no scores):
4. Physical-world / domain-specific attacks
4a. Adversarial patches (object detection, face recognition)
Craft a printable patch that fools YOLO/RetinaNet regardless of placement:
4b. Malware binary perturbation (AV/EDR evasion)
For ML-based static AV/EDR (MalConv, EMBER model):
4c. Network traffic / IDS evasion
For ML-based IDS (random-forest or neural-net on flow features):
5. Tooling reference
| Tool | Attack type | Notes | |
|---|---|---|---|
IBM ART (adversarial-robustness-toolbox) | White+black-box, patches, physical | Best all-round; PyTorch/TF/Sklearn | |
| CleverHans | White-box FGSM/PGD | TF2 native | |
| Foolbox | White+black-box | NumPy-first, easy API | |
| AutoZOOM | Black-box score-based | Autoencoder-based gradient compression | |
| deep-pwning | Legacy Metasploit-style | Largely unmaintained |
6. Validation checklist
- [ ] Clean input correctly classified before perturbation (baseline confirmed)
- [ ] Adversarial input misclassified at the same model endpoint
- [ ] Perturbation is within declared epsilon-ball (L-inf or L2 norm verified)
- [ ] For transfer: adversarial success rate on black-box > 30% (non-trivial transfer)
- [ ] For physical: photograph and re-score — confirm printed patch works under camera
7. Detection signals (defender perspective)
- Input pixel distribution deviates from natural image statistics (high-frequency noise)
- Feature-squeeze defence: score changes drastically when input is median-filtered
- Input preprocessing (JPEG re-encode, resize+crop) breaks gradient-based perturbations
- Ensemble disagreement: 3 models with different architectures disagree on the adversarial input
- Activation distribution of adversarial inputs differs from clean examples (mahalanobis-distance detector)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/decepticon/decepticon/skills/standard/analyst/adversarial-ml-evasion/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bittersecurity/decepticon/adversarial-ml-evasion)