Skip to content

Guide · Agent skill

How to use the aig-agent-redteam agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

aig-agent-redteam is an agent skill, a folder of instructions and optional helper scripts that an AI coding agent loads so it can follow a set method. This one is for authorized security testing of AI products, agents, MCP servers, third-party skills, code packages and AI infrastructure. After this guide you will know how to install it, how to ask for a test in plain language, what it needs from you before it starts, and what kind of report it produces.

AIG Agent Red-Team DrillTencent/AI-Infra-Guard · Apache-2.0

Quick start

  1. 1Download and unzip. Download the skill ZIP from the page and unzip it. Place the folder in ~/.claude/skills/ or in your project's .claude/skills/ folder.
  2. 2Or upload in the Claude apps. In the Claude apps, open Settings, go to Capabilities, then Skills, and upload the skill.
  3. 3Check Python and data. If you want the helper scripts, install Python 3. Run the status command to see which AI-Infra-Guard data directory is found, or set AIG_DATA_DIR or AIG_ROOT.
  4. 4Define the target. State the target, how to send payloads to it, how to observe responses, that you are authorized, and the boundaries it must not cross.
  5. 5Ask in plain language. Describe what you want tested, for example prompt injection against a staging chatbot or an audit of a third-party MCP server.
  6. 6Review the evidence. Read the findings and the evidence attached to each one. Check whether rule matches were confirmed by real tests.
  7. 7Fix and retest. Apply the suggested fixes in your controlled environment, then ask the agent to rerun the affected tests.

What the skill makes the agent do

Once the skill is loaded, the agent works like a red-team specialist. It first maps the target's capabilities and trust boundaries, then proposes specific risk hypotheses, such as whether untrusted text could change the agent's goals or whether a tool could be used to reach data it should not touch. It tests each hypothesis with harmless canary markers instead of real secrets, adjusts its next attempt by changing one variable at a time, and writes a penetration-test-style report with the evidence behind each finding.

The skill's method is first-principles reasoning, not running a fixed list of attack prompts. The helper scripts only handle deterministic chores such as HTTP fingerprinting and merging results. The agent makes the security judgments.

  • Covered risk areas: prompt injection, indirect injection, tool abuse, data leakage, privilege escalation, SSRF and outbound connections, supply-chain poisoning, and infrastructure exposure.
  • Outputs: findings with evidence, business-language risk descriptions and fix suggestions, in HTML or Markdown.
  • It can reuse fingerprint and vulnerability rule data from the Tencent AI-Infra-Guard project.

Install the aig-agent-redteam skill

Download the skill's ZIP file from the page where you found this guide, then unzip it. For a personal install, place the skill folder in ~/.claude/skills/. For a single project, place it in that project's .claude/skills/ folder. Alternatively, in the Claude apps, open Settings, go to Capabilities, and upload the skill under Skills.

The upstream README also lists an install through the npx skills tool, which requires node and git. Use it only if you are comfortable running that tool.

  • Personal: ~/.claude/skills/aig-agent-redteam/
  • Project: .claude/skills/aig-agent-redteam/ inside your project
  • Claude apps: Settings → Capabilities → Skills → upload
npx skills add https://github.com/Tencent/AI-Infra-Guard.git --skill aig-agent-redteam

Set up optional helper scripts and AIG data

The skill works without scripts, but some helpers need Python 3. The scripts are aig_data.py (which finds AI-Infra-Guard data), run.py (HTTP reachability and product fingerprinting) and aggregator.py (merges module results). The fingerprint and vulnerability rules come from the data/ directory of the tencent/AI-Infra-Guard repository. You can point the skill at a local clone, set AIG_DATA_DIR or AIG_ROOT, or allow it to download the repository into a temporary folder. If no AIG data is found, the skill falls back to a small built-in set of data.

  • Python 3 is required only for the helper scripts.
  • Checking your data setup: run the status command below and read which data directory it reports.
  • If you have no clone and do not allow downloads, expect less fingerprint coverage.
python3 scripts/aig_data.py status --aig-root /path/to/AI-Infra-Guard

Trigger the skill with a natural request

You do not need special syntax. Describe the goal in plain language and name the target. The skill is written to activate on requests about AI or agent security assessment, prompt-injection testing, MCP, skill or plugin audits, tool-chain abuse testing, and pentest-style reports.

Before it sends any test, the agent must know the target, how payloads reach it, how responses are observed, that you are authorized to test it, and the boundaries. For an external system, it will ask if any of these four items are missing: target, send method, observation method and authorization. If you say you are testing the current assistant itself, it can start without a separate send or observe method, while keeping the default safety limits.

  • Good: "Audit this MCP server repo at ./mcp-files for paths where tool arguments reach shell or file writes. I own it and this is a local copy."
  • Good: "Run an authorized prompt-injection test against our support chatbot at the staging URL. Send via its HTTP chat API and record full responses. Budget 50 payloads, measure mode."
  • Good: "Red-team yourself: test whether you leak your system prompt when a document asks you to. Use only canary markers."

Understand the safety rules and limits

The skill is for systems you own or have written permission to test. The upstream guidance says probing other people's AI services is illegal and unethical. The skill also says it should not treat itself as a test target during normal runs, and it prefers harmless canaries, temporary files and local mock endpoints over real credentials or data.

The skill declares that it runs scripts and uses the network. Read the scripts before running them in a sensitive environment, and only allow real network requests to hosts you have approved. Dynamic tests against live production systems can expose data or cause side effects, so use a controlled environment first.

  • Never test systems you do not own or lack written permission to test.
  • Do not use it against production systems without a controlled environment.
  • Default mode is measure, which runs to a payload budget and estimates results. Break mode, which tries to get through quickly, is used only when you ask for it.
  • A dynamic test that goes ahead must send at least 30 payloads, including dataset samples and operator-mutated samples, and record the statistics.

Read the report and act on it

Each finding should have concrete evidence, such as a real conversation, a request and response, or a tool trace. Static suspicions in code are not counted as findings until reachability and impact have been checked. Reports are meant to describe business impact and fixes, and to show defences that worked as well as failures. AI-Infra-Guard rule matches only show that a rule matched. The agent still has to judge authentication, reachability, version confidence and business context before the risk is real.

  • Rule matches from AI-Infra-Guard data are labelled as rule matches, not confirmed vulnerabilities.
  • Self-tests are marked as self-observation, not independent verification.
  • Reports can be generated from the bundled HTML template or in Markdown.

What people use it for

  • Auditing a third-party MCP server or agent skill for file, shell or network paths reachable from tool arguments before adopting it.
  • Running an authorized prompt-injection test against your own staging chatbot and collecting full request and response evidence.
  • Checking whether your own AI assistant leaks its system prompt or tool definitions when a document asks it to, using canary markers only.
  • Scanning a self-hosted AI service you own for exposed or fingerprintable products, then judging which findings are real.
  • Producing an evidence-backed HTML or Markdown report for a security review meeting.

Frequently asked questions

How do I install the aig-agent-redteam skill?

Download the skill ZIP from the page, unzip it, and place the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings, Capabilities, Skills.

Is aig-agent-redteam free to use?

The skill is licensed under Apache-2.0, as listed on its page. Read the license text in the source repository before redistributing it or using it commercially.

What do I need to run the aig-agent-redteam skill?

You need an agent client that supports skills and explicit authorization for the target. Python 3 is required only for the optional helper scripts. A local clone of tencent/AI-Infra-Guard is optional, and the skill can download its data if you allow it.

Can I use it to test someone else's AI service?

No, not without written permission. The skill is for systems you own or are authorized to test, and probing others' AI services is illegal and unethical according to the skill's guidance.

What if the skill cannot find AI-Infra-Guard data?

It falls back to a small built-in set of fingerprint and rule data, so coverage will be smaller. Clone the AI-Infra-Guard repository and pass its path with --aig-root, or set AIG_ROOT, to use the full data directory.

How does it compare with other AI security tools?

This page does not benchmark it against other tools. Its focus is authorized red-team exercises that produce evidence-backed reports, rather than only general AI security advice or a fixed payload list. Compare it against tools you already use on your own test cases.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use aig-agent-redteam if you run authorized red-team exercises on your own AI agents or LLM apps, or you need to audit third-party MCP servers and skills before adopting them. Pick a different tool if you only want general AI security advice or need a fixed, ready-made payload benchmark, because this skill relies on the agent's own reasoning and needs a controlled environment for anything live.

Download the skill

Find exactly what
you're looking for