How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Ai Security (Engineering domain).

Static scan of AI/ML code for prompt injection, unsafe model loading, data poisoning, model extraction and insecure serving, plus an agent and tool-use threat checklist. Use when reviewing an LLM app, model API or ML pipeline for security.

> **Category:** Engineering > **Domain:** AI/ML Security The **AI Security** skill provides specialized threat scanning for AI and machine learning systems. It identifies vulnerabilities unique to AI workloads including prompt injection, data poisoning, model extraction, adversarial inputs, and inse

## Your Key Capabilities
- ai_threat_scanner.py
- Agent and tool-use threats (review by hand)
- Full AI Security Audit
- Pre-Deployment Security Gate
- Delimiters as the only injection defence
- Loading pickles from anywhere

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/ai-security

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/ai-security ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/ai-security your-project/
# The skill is available in your Codex workspace at:
.codex/skills/ai-security/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/ai-security your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/ai-security/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/ai-security your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/ai-security/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/ai-security your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/ai-security your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/ai-security

Run Python Tools

python engineering/ai-security/scripts/tool_name.py --help

Python Tools

ai_threat_scanner.py

Performs static analysis of source code by matching regular expressions one line at a time. A finding means a line matched a known risky pattern. The scanner cannot see that something is absent (for example rate limiting, authentication, integrity checks or signature verification), so it flags the places where those controls belong and leaves the confirmation to you:

Agent and tool-use threats (review by hand)

The scanner sees single lines of code; the highest-impact risks in agents are about data flow and

Quick Start

# Scan a codebase for AI-specific security threats
python scripts/ai_threat_scanner.py --path ./my-ai-project

# Scan with JSON output
python scripts/ai_threat_scanner.py --path ./my-ai-project --format json

# Scan only for prompt injection vulnerabilities
python scripts/ai_threat_scanner.py --path ./src --category prompt-injection

# Scan with severity threshold, skipping tests and fixtures
python scripts/ai_threat_scanner.py --path ./src --min-severity high --exclude 'tests/*' --exclude '*_fixture.py'

# Bundled vulnerable sample: 8 findings (2 critical), exit 1
python scripts/ai_threat_scanner.py --path assets/sample_vulnerable_app.py
**Exit codes.** `0` no critical or high finding; `1` at least one critical or high finding; `2` the path does not exist.

Related Skills in Engineering

View on GitHub