Skip to content

Tencent/AI-Infra-Guard

Repository files navigation

A.I.G

GitHub Stars License Release Ask DeepWiki

🚀 AI Red Teaming Platform by Tencent Zhuque Lab

A.I.G (AI-Infra-Guard) integrates capabilities such as AI infra vulnerability scan, MCP Server risk scan, and Jailbreak Evaluation, aiming to provide users with the most comprehensive, intelligent, and user-friendly solution for AI security risk self-examination.

Table of Contents

✨ Features

🔍 AI Infra Scan

Precisely identifies 30+ AI framework components
Covers nearly 400 known CVE vulnerabilities
Including Ollama, ComfyUI, vLLM, etc.

🤖 MCP Scan

Powered by AI Agent
Detects 9 major categories of MCP security risks
Supports source code/remote URL scanning

⚡ Jailbreak Evaluation

Rapidly assesses Prompt security risks
Includes multiple curated jailbreak evaluation datasets
Quickly generates Jailbreak Evaluation reports


🖼️ Showcase

A.I.G Main Interface

AIG Main Page

AI Infra Scan

One-click scan to discover AI component security vulnerabilities

MCP Scan

Intelligently analyze MCP Server security risks

Jailbreak Evaluation

Comprehensively evaluate LLM security

Plugin Management


🚀 Quick Start

Deployment with Docker

System Requirements

  • Docker 20.10 or higher
  • At least 4GB of available RAM
  • At least 10GB of available disk space

1. One-Click Install Script (Recommended)

# 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

2. Run with pre-built images (Recommended)

git clone https://github.com/Tencent/AI-Infra-Guard.git
cd AI-Infra-Guard
# This method pulls pre-built images from Docker Hub for a faster start
docker-compose -f docker-compose.images.yml up -d

3. Build from source and run

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
docker-compose up -d

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

Directory Structure

Directory/File Description Mount Path
uploads/ Uploads directory /ai-infra-guard/uploads
db/ Database file directory /ai-infra-guard/db
data/ Knowledge base data directory (fingerprints, vulnerabilities) /ai-infra-guard/data
logs/ Application log directory /ai-infra-guard/logs

📝 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

🙏 Acknowledgements

We extend deep gratitude to these open-source developers:

Keen Lab WeChat Security Fit Security

Thanks to all the developers who have contributed code to the A.I.G project:


💬 Join the Community

WeChat Group

Scan the WeChat QR code to join the A.I.G community group

For collaboration inquiries or feedback, please contact us at: zhuque(at)tencent.com



📄 License

This project is licensed under the MIT License. See the License.txt file for details.

Star History Chart

About

A.I.G (AI-Infra-Guard) is a comprehensive, intelligent, and easy-to-use AI Red Teaming platform developed by Tencent Zhuque Lab.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 12

Languages