aig-agent-redteam
Skill by Tencent
Runs authorized AI security red team exercises against AI products, agents, MCP servers, skills and code repositories. It is for security teams and developers who need evidence-based findings and pentest-style reports.
Install aig-agent-redteam
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Tencent/AI-Infra-Guard /tmp/AI-Infra-Guard && mkdir -p ~/.claude/skills && cp -r /tmp/AI-Infra-Guard/skills/aig-agent-redteam ~/.claude/skills/aig-agent-redteamRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Tencent/AI-Infra-Guard /tmp/AI-Infra-Guard && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AI-Infra-Guard/skills/aig-agent-redteam ~/.gemini/antigravity-cli/skills/aig-agent-redteamAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
AIG Agent Red Team is a skill that guides an agent through authorized security exercises against AI products, agents, MCP servers, skills, code repositories and AI infrastructure. The agent works from a blue team view. It first models capabilities and trust boundaries, then forms attack hypotheses and tests them with harmless canary markers instead of running fixed payload lists.
Dynamic tests change one variable at a time based on the target's responses, and require at least 30 payloads when dynamic testing is in scope. Static audits trace user-controlled input to high-privilege operations, and infrastructure checks use fingerprinting data from the AI-Infra-Guard project. Results are written as evidence-backed reports in Markdown or HTML. It is intended for people who own the target or are authorized to test it.
Written from the project's SKILL.md and checked against it.
What it can do
- Scope and boundary setupConfirms the target, authorization, allowed hosts and data limits before testing starts.
- Capability modelingMaps tools, data, actions and inputs to trust boundaries and expected defenses.
- Hypothesis generationBuilds attack hypotheses such as prompt injection, data leakage and tool misuse.
- Harmless testingUses canary markers, temporary files and local mock endpoints instead of real secrets.
- Adaptive mutation testingAdjusts one variable per round based on the defense signals in each response.
- Static code and supply chain auditTraces input to sinks in skills, MCP servers and packages, and compares declared and actual behavior.
- Infrastructure reviewFingerprints exposed AI services and matches known vulnerability rules.
- Evidence-based reportsProduces Markdown or HTML reports with evidence chains, business impact and fix advice.
What you need
- Python 3 for the helper scripts
- ripgrep (rg) for local code search
- Authorization to test the target
- Optional: local clone of tencent/AI-Infra-Guard for its data directory
Try asking
- Run an authorized red team review of my MCP server
- Audit this skill package for supply chain risks
- Test my AI agent for prompt injection with canary markers
Good to know
- Dynamic tests need at least 30 payloads, including dataset, mutated and manual samples.
- Self-testing mode only records the agent's own observations and is not independent verification.
- Default boundaries forbid reading real credentials, external exfiltration and destructive writes.
- Scripts are helpers for fingerprinting, evidence merging and report rendering, not the source of security judgments.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/aig-agent-redteam/SKILL.md, skills/aig-agent-redteam/modules/infra-attack/scripts/fingerprint_engine.py, skills/aig-agent-redteam/modules/infra-attack/scripts/run.py, skills/aig-agent-redteam/modules/infra-attack/scripts/vuln_engine.py, skills/aig-agent-redteam/modules/mutation-attack/scripts/encodings.py, skills/aig-agent-redteam/modules/mutation-attack/scripts/render_operator.py, skills/aig-agent-redteam/modules/mutation-attack/scripts/run.py, skills/aig-agent-redteam/modules/mutation-attack/scripts/select_operators.py, skills/aig-agent-redteam/modules/mutation-attack/scripts/validate_ledger.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.gitignore19 B -
README.md2 KB -
README.zh-CN.md2 KB -
SKILL.md29 KB -
assets/templates/report.html18 KB
Show all 182 files
-
modules/code-attack/MODULE.md4 KB -
modules/infra-attack/MODULE.md5 KB -
modules/infra-attack/data/fingerprints/ai-agent-config.yaml5 KB -
modules/infra-attack/data/fingerprints/ai-chatbot.yaml234 B -
modules/infra-attack/data/fingerprints/anythingllm.yaml375 B -
modules/infra-attack/data/fingerprints/bentoml.yaml319 B -
modules/infra-attack/data/fingerprints/blinko.yaml324 B -
modules/infra-attack/data/fingerprints/chat-langchain.yaml330 B -
modules/infra-attack/data/fingerprints/chuanhugpt.yaml256 B -
modules/infra-attack/data/fingerprints/clawdbot.yaml270 B -
modules/infra-attack/data/fingerprints/clickhouse.yaml299 B -
modules/infra-attack/data/fingerprints/comfyui/comfyui-comfy-mtb.yaml331 B -
modules/infra-attack/data/fingerprints/comfyui/comfyui-custom-preview.yaml364 B -
modules/infra-attack/data/fingerprints/comfyui/comfyui-custom-scripts.yaml379 B -
modules/infra-attack/data/fingerprints/comfyui/comfyui.yaml465 B -
modules/infra-attack/data/fingerprints/dask_http.yaml405 B -
modules/infra-attack/data/fingerprints/dify.yaml401 B -
modules/infra-attack/data/fingerprints/fastchat-webui.yaml252 B -
modules/infra-attack/data/fingerprints/fastchat.yaml308 B -
modules/infra-attack/data/fingerprints/fastgpt.yaml363 B -
modules/infra-attack/data/fingerprints/feast.yaml260 B -
modules/infra-attack/data/fingerprints/flowise.yaml493 B -
modules/infra-attack/data/fingerprints/gradio.yaml524 B -
modules/infra-attack/data/fingerprints/huggingface-tgi.yaml367 B -
modules/infra-attack/data/fingerprints/instructlab.yaml460 B
And 152 more files on GitHub.
Alternatives to aig-agent-redteam
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
aig-agent-redteam: common questions
Does it test systems without permission?
No. The source says the user must own the target or be authorized to test it, and external targets require clarified scope before testing starts.
Does it need AI-Infra-Guard?
No. It can reuse the AI-Infra-Guard data directory when available, and falls back to a minimal built-in dataset when it is not found.
Does it send real secrets or data outside?
By default it uses harmless canary markers and does not read real credentials or send data externally.
How do I install aig-agent-redteam?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is aig-agent-redteam free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is aig-agent-redteam safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to aig-agent-redteam?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
