A.I.G

📖 Documentation  |  🌐 🇨🇳 中文 · 🇯🇵 日本語 · 🇪🇸 Español · 🇩🇪 Deutsch · 🇫🇷 Français · 🇰🇷 한국어 · 🇧🇷 Português · 🇷🇺 Русский

GitHub stars GitHub downloads docker

pulls Release Ask DeepWiki

EdgeOne ClawScan EdgeOne Skill Scanner AIG Scanner

OpenClaw Recommended

Tencent%2FAI-Infra-Guard | Trendshift  Tencent%2FAI-Infra-Guard | blackhat  Tencent%2FAI-Infra-Guard | awesome-deepseek-integration


🚀 AI Red Teaming Platform by Tencent Zhuque Lab

A.I.G (AI-Infra-Guard) integrates capabilities such as ClawScan(OpenClaw Security Scan), Agent Scan,AI infra vulnerability scan, MCP Server &

Agent Skills scan, and Jailbreak Evaluation, aiming to provide users with the most comprehensive, intelligent, and user-friendly solution for AI

security risk self-examination.

We are committed to making A.I.G(AI-Infra-Guard) the industry-leading AI red teaming platform. More stars help this project reach a wider audience, attracting more developers to contribute, which accelerates iteration and improvement. Your star is crucial to us!

Give us a Star


📋 User Feedback Survey

Help us improve A.I.G! Please take 3-5 minutes to fill out our [User Feedback

Survey](https://doc.weixin.qq.com/forms/AJEAIQdfAAoAFkA0QbdAFwCNcKSO0BFLf). Users who provide high-quality feedback and leave a valid email address

will receive an exclusive Tencent souvenir gift.


🚀 What's New

  • 2026-08-17 · v4.5.2 — Skill-Scan: .pyc bytecode bypass detection + charset

smuggling defense; MCP-Scan: RCE prevention via tool whitelisting in dynamic mode; new SkillJack research project; vuln library expanded to 2000+ CVE

rules. - 2026-07-30 · v4.5.1 — Jailbreak Evaluation: 4 multi-turn jailbreak

attacks (Many-Shot, PAIR, GOAT, ActorAttack); Agent-Scan: 5 new OWASP skills + web-exfiltration detection (10 skills total); MCP-Scan: 4 new security

rules - 2026-07-27 · v4.5.0 — AI Security Skill Market launched (3 official

skills); frontend fully open-sourced; Skill scan engine upgraded (9 risk categories, SkillTrustBench top score 0.9848); Skill/MCP/Agent scan as

standalone CLI; vuln library expanded to 130 components, 1888 rules - 2026-06-25 ·

v4.1.15 — MCP Scan: 3 new threat detection rules (tool poisoning, credential

exfiltration, command injection); 6 new llama.cpp CVE rules; model.token now optional with system default fallback. - 2026-06-18 ·

v4.1.14 — Prompt Security: 9 new single-turn jailbreak operators; new

aig-agent-redteam skill for comprehensive Agent red-team assessment.

👉 Earlier releases · 🛒 AI Security Skill Market · 🔍 [skill-scan

CLI](https://github.com/Tencent/AI-Infra-Guard/tree/main/skill-scan) · 🔍 mcp-scan CLI

· 🔍 agent-scan CLI · 📊

SkillTrustBench

Table of Contents - 🚀 Quick Start - ✨ Features - 🖼️ Showcase - 📖 User Guide - [🔧 API

Documentation](#-api-documentation) - 🏗️ Architecture Evolution - 📝 Contribution Guide -

🛡️ About the Team - 🙏 Acknowledgements - 💬 Join the Community - [📖

Citation](#-citation) - 📚 Research & Papers - ⚖️ License & Attribution

## 🚀 Quick Start ###

🐳 Deploy A.I.G with Docker

Docker RAM Disk Space
20.10 or higher 4GB+ 10GB+

```bash # This method pulls pre-built images from Docker Hub for a faster start git clone https://github.com/Tencent/AI-Infra-Guard.git cd

AI-Infra-Guard # For Docker Compose V2+, replace 'docker-compose' with 'docker compose' docker-compose -f docker-compose.images.yml up -d ```

Once the service is running, you can access the A.I.G web interface at: http://localhost:8088

Use from OpenClaw

You can also call A.I.G directly from OpenClaw chat via the aig-scanner skill.

clawhub install aig-scanner

Then configure AIG_BASE_URL to point to your running A.I.G service.

For more details, see the aig-scanner README.

More installation options ### Other Installation Methods **Method 2: One-Click Install Script (Recommended)** ```bash # This method will automatically install Docker and launch A.I.G with one command curl https://raw.githubusercontent.com/Tencent/AI-Infra-Guard/refs/heads/main/docker.sh | bash ``` **Method 3: Build and run from source** ```bash git clone https://github.com/Tencent/AI-Infra-Guard.git cd AI-Infra-Guard # This method builds a Docker image from local source code and starts the service # (For Docker Compose V2+, replace 'docker-compose' with 'docker compose') docker-compose up -d ``` Note: The AI-Infra-Guard project is positioned as an AI red teaming platform for internal use by enterprises or individuals. It currently lacks an authentication mechanism and should not be deployed on public networks. For more information, see: [https://tencent.github.io/AI-Infra-Guard/?menu=getting-started](https://tencent.github.io/AI-Infra-Guard/?menu=getting-started)

⚡ Install aig-skill-scan with a Single Command

Agent Skill security audit tool, easily integrated into enterprise CI/CD pipelines. Vulnerability classification aligns with

SkillTrustBench T01–T09 taxonomy. [Learn more

→](https://github.com/Tencent/AI-Infra-Guard/tree/main/skill-scan)

pip install aig-skill-scan

# Set API key via environment variable
export LLM_API_KEY="your-api-key"

# Scan a local Skill project directory
aig-skill-scan --repo /path/to/your/skill \
           -m deepseek-v4-flash \
           --language en \
           -o result.json

Model and API Relay Checker

The checker frontend is deployed separately. Docker deployment keeps the checker APIs available at GET /api/v1/relay/models and `POST

/api/v1/relay/check/stream; API documentation is available athttp://127.0.0.1:8088/api-checker/docs`. To run the checker and unified CLI from

source:

python3 -m venv services/api_checker/.venv
services/api_checker/.venv/bin/pip install -r services/api_checker/requirements.txt
go build -o ai-infra-guard ./cmd/cli/main.go

export AIG_API_CHECKER_PYTHON="$PWD/services/api_checker/.venv/bin/python"
./ai-infra-guard api-checker list
./ai-infra-guard api-checker audit

See the API Checker integration guide for the Agent-embedded runtime architecture, HTTP API, configuration, and security boundaries.

🌟 Try the Online Pro Version Experience the Pro version with advanced features and improved performance. The Pro version requires an [invitation

code](https://wj.qq.com/s2/25099467/25vn/) and is prioritized for contributors who have submitted issues, pull requests, or discussions, or actively

help grow the community. Visit: https://aigsec.ai/.

✨ Features

🔍 aig-skill-scan Performance & Coverage

Performance on SkillTrustBench with different LLMs:

| # | Model | F1 | Precision | Recall | FPR | |:--|:------|:---|:----------|:-------|:----| | 1 | Claude Opus 4.6 | 0.9848 | 0.9725 | 0.9974 |

0.0663 | | 2 | GLM 5.1 | 0.9836 | 0.9701 | 0.9974 | 0.0723 | | 3 | Gemini 3.5 Flash | 0.9792 | 0.9947 | 0.9641 | 0.0120 | | 4 | Kimi 2.6 |

0.9780 | 0.9895 | 0.9667 | 0.0241 | | 5 | DeepSeek v4 Flash | 0.9740 | 0.9868 | 0.9615 | 0.0301 |

Covers 9 categories of Skill security risks (SkillTrustBench T01–T09):

| Layer | Risks | |:------|:--------| | A · Instruction & Memory | T01 Skill Instruction Hijacking, T02 Memory Poisoning | | B · Code Execution | T03

Remote Payload Download & Execution, T04 Embedded Malicious Code | | C · System Privilege | T05 Privilege Escalation & Unauthorized Access, T06 System

Persistence | | D · Toolchain & Dependencies | T07 Tool Hijacking & Spoofing, T08 Insecure Dependencies | | E · Skill Code Quality | T09 Insecure

Coding Practices |

For full leaderboard and details, visit SkillTrustBench.

🔬 Security Scanning & Evaluation

| Feature | More Info | |:--------|:------------| | ClawScan(OpenClaw Security Scan) | Supports

one-click evaluation of OpenClaw security risks. It detects insecure configurations, Skill risks, CVE vulnerabilities, and privacy leakage. | |

Agent Scan | This is an independent, multi-agent automated scanning framework. It is designed to evaluate the security of AI agent workflows.

It seamlessly supports agents running across various platforms, including Dify and Coze. | |

MCP Server & Agent Skills scan | It thoroughly detects 14 major categories of security risks. The detection applies to

both MCP Servers and Agent Skills. It flexibly supports scanning from both source code and remote URLs. | |

AI infra vulnerability scan | This scanner precisely identifies over 100 AI framework components. It covers more than 2000 known

CVE vulnerabilities. Supported frameworks include Ollama, ComfyUI, vLLM, n8n, Triton Inference Server and more. | | Jailbreak Evaluation | It

assesses prompt security risks using carefully curated datasets. The evaluation applies multiple attack methods to test robustness. It also provides

detailed cross-model comparison capabilities. | | Model and API Relay Checker | Model fingerprinting, Claude Signature verification, relay

black-box auditing, PAMELA, and Ventor QTest. |

💎 Additional Benefits - 🖥️ **Modern Web Interface**: User-friendly UI with one-click scanning and real-time progress tracking - 🔌 **Complete API**: Full interface documentation and Swagger specifications for easy integration - 🤖 **Agent-Ready**: Plug-and-play agent skills on ClawHub — [EdgeOne ClawScan](https://clawhub.ai/aigsec/edgeone-clawscan), [EdgeOne Skill Scanner](https://clawhub.ai/aigsec/edgeone-skill-scanner), and [AIG Scanner](https://clawhub.ai/aigsec/aig-scanner) — seamlessly embed security scanning into any AI agent workflow - 🌐 **Multi-Language**: Chinese and English interfaces with localized documentation - 🐳 **Cross-Platform**: Linux, macOS, and Windows support with Docker-based deployment - 🆓 **Free & Open Source**: Completely free under the Apache 2.0 license


🖼️ Showcase

A.I.G Main Interface

A.I.G Main Page

Plugin Management

Plugin Management


🗺️ Quick Usage Guide

After deployment, open http://localhost:8088 in your browser.

AI Infrastructure Vulnerability Scan

What to enter as the target URL / IP?

The target is the network address of a running AI service you want to scan - not a GitHub URL or source code path. A.I.G connects to the live

service and fingerprints it for known CVE vulnerabilities.

| Scenario | Example target | |:---------|:--------------| | A locally running vLLM instance | http://127.0.0.1:8000 | | An Ollama server on your

LAN | http://192.168.1.100:11434 | | A ComfyUI instance exposed internally | http://10.0.0.5:8188 | | Multiple hosts (one per line) |

192.168.1.0/24 (CIDR), 10.0.0.1-10.0.0.20 (range) |

Step-by-step: Scan a local vLLM instance

  1. Start vLLM normally (e.g. python -m vllm.entrypoints.api_server --model meta-llama/...) 2. In the A.I.G web UI, click **"AI基础设施安全扫描 / AI Infra

Scan" 3. Enter http://127.0.0.1:8000 (or the IP/port where vLLM is listening) 4. Click Start Scan** - A.I.G will fingerprint the service and

match it against 2000+ known CVEs 5. View the report: component version, matched vulnerabilities, severity, and remediation links

💡 Tip: To scan the nightly build of vLLM specifically, just run that nightly build and point A.I.G at its address. The scanner detects the version automatically.

MCP Server & Agent Skills Scan

Enter either a remote URL (e.g. https://github.com/user/mcp-server) or upload a local source archive - no running instance required.

Jailbreak Evaluation

Configure the target LLM's API endpoint (base URL + API key) in Settings → Model Config, then select a dataset and start the evaluation.


📖 User Guide

Visit our online documentation: https://tencent.github.io/AI-Infra-Guard/

For more detailed FAQs and troubleshooting guides, visit our documentation.

🔧 API Documentation

A.I.G provides a comprehensive set of task creation APIs that support AI infra scan, MCP Server Scan, and Jailbreak Evaluation capabilities.

After the project is running, visit http://localhost:8088/docs/index.html to view the complete API documentation.

For detailed API usage instructions, parameter descriptions, and complete example code, please refer to the Complete API Documentation.

📝 Contribution Guide

The extensible plugin framework​​ serves as A.I.G's architectural cornerstone, inviting community innovation through Plugin and Feature contributions.​

Plugin Contribution Rules 1. Fingerprint Rules: Add new YAML fingerprint files to the data/fingerprints/ directory. 2. **Vulnerability

Rules: Add new vulnerability scan rules to the data/vuln/ directory. 3. MCP Plugins**: Add new MCP security scan rules to the data/mcp/

directory. 4. Jailbreak Evaluation Datasets: Add new Jailbreak evaluation datasets to the data/eval directory.

Please refer to the existing rule formats, create new files, and submit them via a Pull Request.

Other Ways to Contribute - 🐛 Report a Bug - 💡 [Suggest a New

Feature](https://github.com/Tencent/AI-Infra-Guard/issues) - ⭐ Improve Documentation

🛡️ About the Team

This project is led and developed by Tencent Zhuque Lab, part of the Tencent Security Platform Department. Founded in 2019, [Tencent Zhuque

Lab](https://matrix.tencent.com/) is a top-tier security research lab focused on real-world offensive and defensive research and frontier technology

in the AI security space, covering large model security, AI agent security, AI-empowered security, and AI-generated content detection.

The team has helped major vendors such as NVIDIA, Google, and Microsoft, as well as open-source communities like **OpenClaw, Linux, and Hugging

Face**, fix a large number of high-risk vulnerabilities, and has been publicly acknowledged by them.

We have released open-source AI security products including the AI Red Team Security Testing Platform A.I.G (AI-Infra-Guard) and the **Zhuque

AI Detection Assistant. Our research has been widely published at top international security and AI conferences such as Black Hat, DEF CON, ICLR,

CVPR, NeurIPS, and ACL, and we have authored the book "AI Security: Technology and Practice".

👥 Core Members & Contributions

| Role | Member | Contribution | | --- | --- | --- | | Head of Tencent Security Platform Department | Yong Yang | Initiated A.I.G and proposed

automated assessment of AI agent loss-of-control risks, guiding the platform's expansion from AI infrastructure vulnerability scanning to agent

execution risk, tool misuse, and permission-boundary evaluation. | | Head of Tencent Zhuque Lab | Xing Zheng | Proposed the automated

vulnerability-update and benchmark-alignment mechanism, helping AI Infra fingerprints, CVE/GHSA rules, and benchmarks iterate continuously. | |

Project Lead | Nicky | Frontier security research, product planning, technical-route decisions, internal and external collaboration, and

communications. | | Technical Lead | Python | Overall architecture design, core module development, and version iteration. | | Core Contributor |

Zona | Frontend interaction, product experience, community operations, and user-feedback loop. | | Core Contributor | Fyoung | AI Infra

vulnerability component fingerprint updates and Benchmark system construction. | | Core Contributor | Xiangfan | Security capability development

for Skill risks and agent loss-of-control scenarios. | | Core Contributor | Elwood | Enhancing Agent security scanning capabilities and updating

technical reports. | | Core Contributor | Robert | LLM safety assessment and jailbreak-evaluation strategy operations. | | Core Contributor |

Zoe | LLM safety assessment, jailbreak evaluation, and model-integration module development. | | Contributor | Ronin | Participated in AI

agent security scanning development. | | Contributor | Rsin | Participated in community operations and campaign communications. |


🙏 Acknowledgements

🎓 Academic Collaborations

We thank our academic partners for their research contributions and technical support.

<img

src="https://avatars.githubusercontent.com/u/0?v=4" width="70px;" style="border-radius: 50%;" alt=""/>

Prof. hui Li

<img

src="https://avatars.githubusercontent.com/TheBinKing" width="70px;" style="border-radius: 50%;" alt=""/>
<a

href="mailto:[email protected]"> Bin Wang

<img

src="https://avatars.githubusercontent.com/KPGhat" width="70px;" style="border-radius: 50%;" alt=""/>

Zexin Liu

<img

src="https://avatars.githubusercontent.com/GioldDiorld" width="70px;" style="border-radius: 50%;" alt=""/>
<a

href="mailto:[email protected]"> Hao Yu

<img

src="https://avatars.githubusercontent.com/Jarvisni" width="70px;" style="border-radius: 50%;" alt=""/>

Ao Yang

<img

src="https://avatars.githubusercontent.com/Zhengxi7" width="70px;" style="border-radius: 50%;" alt=""/>
<a

href="mailto:[email protected]"> Zhengxi Lin


Prof. Zhemin Yang

Kangwei Zhong

Jiapeng Lin

Cheng Sheng


👥 Gratitude to Contributing Developers Thanks to all the developers who have contributed to the A.I.G project.
<table border="0"

cellspacing="0" cellpadding="0"> Keen Lab <img

src="img/wechat_security.png" alt="WeChat Security" height="85%"> <img src="img/fit_sec_logo.png" alt="Fit Security"

height="85%"> <img

src="https://contrib.rocks/image?repo=Tencent/AI-Infra-Guard" />

🤝 Appreciation for Our Users

Thanks to the users from the following organizations and teams for using A.I.G and their valuable feedback.


Tencent DeepSeek <img

src="img/antintl.svg" alt="Antintl" height="45px"> Lenovo <img src="img/ICBC.jpg" alt="ICBC"

height="40px"> Vivo Oppo <img src="img/haier.png"

alt="Haier" height="30px"> Abc 招商银行 <img

src="img/中国电信.png" alt="中国电信" height="40px"> Bilibili <img src="img/qunar.png" alt="Qunar"

height="35px"> 蜜雪冰城 IDG <img src="img/kingdee.png"

alt="kingdee" height="40px"> 联通数科 长安汽车 <img

src="img/tiane.png" alt="天鹅到家" height="35px">

清华大学 北京大学 南洋理工大学 复旦大学 浙江大学 南京大学 武汉大学 An-Najah National University 西安交通大学 华中科技大学 南开大学 四川大学 Binus University



💬 Join the Community

🌐 Online Discussions - GitHub Discussions: Join our community discussions - **Issues

& Bug Reports**: Report issues or suggest features

📱 Discussion Community

WeChat Group Discord [link]
WeChat Group <img src="img/discord.png" alt="discord"

width="200">

📧 Contact Us

For collaboration inquiries or feedback, please contact us at: [email protected]

🔗 Recommended Security Tools If you are interested in code security, check out A.S.E (AICGSecEval), the

industry's first repository-level AI-generated code security evaluation framework open-sourced by the Tencent Wukong Code Security Team.



📖 Citation

If you use A.I.G in your research, please cite:

```bibtex @misc{Tencent_AI-Infra-Guard_2025, author={{Tencent Zhuque Lab}}, title={{AI-Infra-Guard: A Comprehensive, Intelligent, and Easy-to-Use AI

Red Teaming Platform}}, year={2025}, howpublished={GitHub repository}, url={https://github.com/Tencent/AI-Infra-Guard} } ```

📚 Research & Papers

Research:

  1. "DeepSeek Harness Indirect Prompt-Injection Assessment" — Authorized security assessment of DeepSeek Harness against indirect prompt-injection

across 14,560 agent runs. [code]

  1. "SkillJack: Persistent Skill Backdoors in Self-Evolving Agents" — Demonstrates how poisoned trajectories can inject persistent backdoors into

self-evolving agent skill systems. [code]

Papers:

  1. "Securing the AI Agent: A Unified Framework for Multi-Layer Agent Red Teaming" — A comprehensive framework for securing AI agent systems

through multi-layer red teaming across infrastructure, supply chain, runtime interaction, and deployment surfaces.

[arXiv] [pdf]

  1. "AI-Infra-Guard: An AI Red Teaming Platform" — Black Hat Europe 2025 Arsenal presentation showcasing A.I.G's capabilities and real-world use

cases. [pdf]

  1. "MCP Unchained: Compromising The AI Agent Ecosystem Via Its Universal Connector" — Black Hat Europe 2025 talk revealing security risks in the

MCP protocol within the AI agent ecosystem. [pdf]

Thanks to the research teams who have cited A.I.G in their academic work (19 papers):

📄 View all 19 cited papers 1. Chenning Li, Pan Hu, Justin Xu et al. **"ADR: An Agentic Detection System for Enterprise Agentic AI Security."** arXiv preprint arXiv:2605.17380 (2026). [[pdf]](http://arxiv.org/abs/2605.17380v1) 2. Zhaojiacheng Zhou. **"Proteus: A Self-Evolving Red Team for Agent Skill Eco