ctf-ai-ml

Apply AI/ML techniques to solve CTF challenges.

Updated May 15, 2026
One-click install
npx skills add https://github.com/a398275770-ctrl/ctf-skills --skill ctf-ai-ml-a398275770-ctrl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ctf-ai-ml
Source: https://github.com/a398275770-ctrl/ctf-skills/tree/main/ctf-ai-ml
Command: npx skills add https://github.com/a398275770-ctrl/ctf-skills --skill ctf-ai-ml-a398275770-ctrl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, transformers, numpy, scipy, Pillow, safetensors, scikit-learn, keras, tensorflow, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of AI and machine learning techniques specifically designed for solving CTF challenges, covering areas like adversarial examples, model inversion, and LLM attacks.

Core Features & Use Cases

  • Adversarial Example Generation: Create perturbations to fool classifiers.
  • Model Inversion: Reverse-engineer inputs from model outputs.
  • LLM Attacks: Exploit vulnerabilities in language models.
  • Use Case: When you are presented with a machine learning model in a CTF challenge and need to manipulate it or exploit its vulnerabilities to achieve the goal.

Quick Start

To analyze the model at 'model.pt', run the command: inspect_model 'model.pt'.

Frequently Asked Questions about ctf-ai-ml

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate adversarial examples to fool a classifier in a CTF challenge?

Adversarial example generation creates targeted perturbations to fool machine learning classifiers. This Skill automates crafting inputs that manipulate model outputs, specifically optimized for AI puzzles encountered in CTF competitions.

What techniques can I use for model inversion attacks on PyTorch models?

Model inversion reverse-engineers original inputs from model outputs using libraries like torch and numpy. This Skill performs inversion attacks to extract sensitive training data or reconstruct inputs from provided model files.

Can I exploit LLM vulnerabilities and perform membership inference attacks?

Yes, LLM attacks exploit vulnerabilities in language models, while membership inference determines if specific data was in the training set. This Skill uses transformers to execute both attack vectors against target models.

Do I need specific Python libraries to perform AI-ML CTF attacks?

Yes, AI-ML CTF attacks require Python 3 with specific libraries including torch, transformers, numpy, scipy, and scikit-learn. The Skill also uses safetensors and Pillow for comprehensive model analysis and manipulation.

How do I start analyzing a machine learning model file for CTF challenges?

To analyze a model file, use the inspect_model command with your model path, such as 'inspect_model model.pt'. This initiates the Skill's automated analysis to identify vulnerabilities and attack surfaces.

Does this Skill support web exploitation and binary pwn alongside AI attacks?

Yes, the Skill is optimized for web exploitation, binary pwn, crypto, reverse engineering, forensics, and OSINT challenges. It integrates AI-ML attacks with these traditional CTF categories for comprehensive challenge solving.