# AI threat testing

> AI threat testing is an open-source agent skill for security. Guides an agent through authorized OWASP LLM Top 10 security tests of AI applications. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/ai-threat-testing
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** ai-threat-testing
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill organizes offensive security testing of LLM-based applications around the OWASP LLM Top 10 (2025 edition). It maps each category to an attack surface, such as prompt injection, sensitive information disclosure, supply chain weaknesses, poisoning, improper output handling, excessive agency, and unbounded consumption including model extraction. A catalogue file controls which playbook covers which category, and two extra local classes cover monitoring evasion and adversarial perturbation of non-text input.

The skill offers three workflows: a full assessment covering all categories, a focused test of a single category, and a supply chain audit that inventories dependencies, scans for CVEs, and checks model provenance. It also describes evidence capture (screenshots, network logs, API responses, console output) and a report format with CVSS-scored findings and proof-of-concept scripts. It is written to complement a general pentest workflow rather than replace it.

The skill is documentation-driven. The repository includes reference playbooks and a catalogue file, and the instructions assume a target LLM application URL, API endpoint, or local model, along with written authorization for the test.

## When your agent uses it

> Offensive AI security testing and exploitation framework. Systematically tests LLM applications for OWASP Top 10 vulnerabilities including prompt injection, model extraction, data poisoning, and supply chain attacks. Integrates with pentest workflows to discover and exploit AI-specific threats.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/ai-threat-testing)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/ai-threat-testing)

## Features

- **OWASP LLM Top 10 coverage:** Maps testing areas to the 2025 edition of the OWASP LLM Top 10 categories.
- **Focused category testing:** Runs a single vulnerability category when a narrower assessment is needed.
- **Supply chain audit:** Inventories dependencies, scans for CVEs, and verifies model provenance.
- **Evidence capture:** Collects screenshots, network logs, API responses, errors and console output.
- **Reproducible findings report:** Produces findings with CVSS scores, PoC scripts and remediation guidance.
- **Pentest integration:** Designed to run alongside a general pentest workflow for combined assessments.

## Good for

- Test a chatbot for prompt injection and system prompt extraction
- Audit an LLM app's plugins and dependencies for known CVEs
- Check whether an AI agent can be pushed into unauthorized tool actions
- Assess an LLM API for token flooding and model extraction risk
- Review an MCP server debugging endpoint for exposed command execution

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/ai-threat-testing` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ai-threat-testing &&
cp -R "$tmp/skills/ai-threat-testing" ~/.claude/skills/ai-threat-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ai-threat-testing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ai-threat-testing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ai-threat-testing &&
cp -R "$tmp/skills/ai-threat-testing" ~/.agents/skills/ai-threat-testing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ai-threat-testing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ai-threat-testing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ai-threat-testing &&
cp -R "$tmp/skills/ai-threat-testing" ~/.cursor/skills/ai-threat-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ai-threat-testing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/ai-threat-testing
```

Or copy the folder to `~/.gemini/skills/ai-threat-testing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ai-threat-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ai-threat-testing &&
cp -R "$tmp/skills/ai-threat-testing" ~/.copilot/skills/ai-threat-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ai-threat-testing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/ai-threat-testing` into your agent's skills folder as `ai-threat-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does AI threat testing require authorization before testing?

Yes. The skill lists written authorization as required before any testing and says testing must stay within defined scope.

### What inputs does AI threat testing need?

A target such as an LLM application URL, an API endpoint or a local model, plus a chosen scope: full OWASP Top 10, a specific vulnerability, or supply chain.

### How does AI threat testing fit with a pentest?

It is described as an extension of the /pentest skill, adding AI-specific tests and combining findings into one report.

### Does AI threat testing run scripts itself?

The skill folder does not include scripts; its instructions and reference playbooks guide the agent's testing.

### How do I install AI threat testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ai-threat-testing to use it in all your projects, or to .claude/skills/ai-threat-testing in one project.

### Does AI threat testing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use AI threat testing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to AI threat testing?

The closest alternatives to AI threat testing are Agentic safety audit, API security, Agent owasp compliance, Server side and Client side.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agentic safety audit](https://ai-powered.com/skills/agentic-safety-audit): Agentic safety audit is an open-source agent skill for security.
- [API security](https://ai-powered.com/skills/api-security): API security is an open-source agent skill for security.
- [Agent owasp compliance](https://ai-powered.com/skills/agent-owasp-compliance): Agent owasp compliance is an open-source agent skill for security.
- [Server side](https://ai-powered.com/skills/server-side): Server side is an open-source agent skill for security.
- [Client side](https://ai-powered.com/skills/client-side): Client side is an open-source agent skill for security.
- [Authentication](https://ai-powered.com/skills/authentication): Authentication is an open-source agent skill for security.
- [System](https://ai-powered.com/skills/system): System is an open-source agent skill for security.
- [Essential tools](https://ai-powered.com/skills/essential-tools): Essential tools is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/ai-threat-testing
