← 开源
Tencent

AICGSecEval

A.S.E (AICGSecEval) is a repository-level AI-generated code security evaluation benchmark developed by Tencent Wukong Code Security Team.

AI EngineeringTest & guardPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
664
Star
113
Fork
+1
本周
28
贡献者
创建于 2025-07-08 · 更新于 2026-10-13 · 今日第 15296 名
主要开发者
LianKeeCh0sermfmans

Tencent/AICGSecEval 排名第 15,296,有 664 个星标。

同类别比较

Tencent/AICGSecEval 排名第 15,296,此处有 8 个同类条目;moeru-ai/xsai 排名第 15,288。

同类别比较
名称排名指标
SonarSource/sonarqube-mcp-server15,280
语言:
Java
星标数:
665
分叉数:
103
简介:
Official SonarQube MCP Server for code quality and security in AI agents
anasfik/openai15,281
语言:
Dart
星标数:
665
分叉数:
231
简介:
The unofficial OpenAI SDK for Dart & Flutter. Full API coverage + OpenAI-compatible providers (Azure, DeepSeek, LM Studio, Ollama): Responses, Chat, Realtime, Videos, Batch, Fine-tuning.
jamesrochabrun/SwiftOpenAI15,285
语言:
Swift
星标数:
665
分叉数:
130
简介:
The most complete open-source Swift package for interacting with OpenAI's public API.
moeru-ai/xsai15,288
语言:
TypeScript
星标数:
665
分叉数:
62
简介:
🤖💬 AI SDK, extra small.
DataArcTech/ToG15,308
语言:
Python
星标数:
663
分叉数:
74
简介:
This is the official github repo of Think-on-Graph (ICLR 2024). If you are interested in our work or willing to join our research team in Shenzhen, please feel free to contact us by email (xuchengjin@idea.edu.cn)
LucianoCirino/efficiency-nodes-comfyui15,309
语言:
Python
星标数:
663
分叉数:
214
简介:
A collection of ComfyUI custom nodes. ⚠️ WARNING: This repo is no longer maintained.
MatrixAges/polywise15,310
语言:
TypeScript
星标数:
663
分叉数:
34
简介:
The open source agentic content system to make your contents alive. Self-hosted on any platform. ◑
mem0ai/mem0-mcp15,318
语言:
Python
星标数:
663
分叉数:
146
关键参数与规格
关键参数与规格
参数值
语言Python
类别AI Engineering
子类别Test & guard
关键词Security
星标数664
分叉数113
贡献者28
创建日期2025-07-08
更新日期2026-10-13
1 天星标数0
7 天星标数1
排名15,296
上次排名15,117
排名变化-179
7 天星标排名10,995
上次 7 天星标排名11,057
7 天星标排名变化62
总星标排名15,489
上次总星标排名15,466
总星标排名变化-23
国家China
README 摘录

E (AICGSecEval)** provides a **project-level benchmark for evaluating the security of AI-generated code**, designed to assess the security performance of AI-assisted programming by simulating real-world development workflows: **Code Generation Tasks** – Derived from real-world GitHub projects and authoritative CVE patches, ensuring both practical relevance and security sensitivity. **Code Generation Process** – Automatically extracts project-level code context to accurately simulate realistic AI programming scenarios. **Code Security Evaluation** – Integrates a hybrid evaluation suite combining static and dynamic analysis

, balancing detection coverage and verification precision to enhance the scientific rigor and practical value of security assessments. E (AICGSecEval)** into an **open, reproducible, and continuously evolving community project**. You are welcome to contribute through **Star**, **Fork**, **Issue**, or **Pull Request** to help expand the dataset and improve the evaluation framework. Your attention and contributions will help **A. E** grow, advancing both **industrial adoption** and **academic research** in **AI-generated code security**. 0 Major Upgrades 🚀 Quick Start 📖 Citation 🤝 Contribution Guide 🙏 Acknowledgements

📱 Join the Community 📄 License ✨ A. 0 Major Upgrades 1️⃣ **Dataset Upgrade – Broader Coverage of Code Generation Vulnerability Scenarios** Includes key risks from the OWASP Top 10 and CWE Top 25, covering 29 CWE vulnerability types across major programming languages such as C/C++, PHP, Java, Python, and JavaScript. 2️⃣ **Evaluation Target Upgrade – Support for Agentic Programming Tools** Expands evaluation dimensions to better reflect real-world AI programming scenarios. 3️⃣ **Code Evaluation Upgrade – Static and Dynamic Hybrid Assessment** Introduces a dynamic

evaluation scheme based on test cases and vulnerability PoCs, forming a hybrid assessment framework that balances detection breadth and verification precision, significantly enhancing the scientific rigor and practical value of the evaluation process. Run Evaluation with One Command** **Notes** 1️⃣ A full evaluation may take a long time depending on your hardware. 📖 Citation If your research uses or references **A. E** or its evaluation results, please cite it as follows: 🤝 Contribution Guide **A. E** aims to build an **open, reproducible

, and continuously evolving ecosystem** for evaluating the security of AI-generated code. We welcome developers and researchers from academia, industry, and the open-source community to collaborate and contribute to the project. Contribution Areas 🧠 **Dataset Contribution**:Expand real-world vulnerability samples, enrich SAST tools/rules, and provide code functionality test cases and vulnerability PoCs. ⚙️ **Framework Optimization**:Improve code generation logic, evaluation metrics, and context extraction strategies; support Agent integration and code refactoring. 💡 **Discussions & Suggestions**:Propose new ideas, co-develop evaluation

strategies, or share best practices. 💬 Beyond the above, we welcome any form of participation and support, including contributing real-world use cases, providing feedback, improving documentation, or joining community discussions. Reference Documents 📌 If you plan to contribute, please read the following guides first to understand the data format, submission process, and validation standards. 📘 Dataset Contribution Guide Static Dataset Contribute Dynamic Dataset Contribute 📘 Agent Integration Guide Community Interaction 💭 Report issues or suggestions: via Issues 💡 Brainstorm and discuss: join Discussions Your engagement

and contributions will help A. E evolve faster, expand its coverage, and advance the open standardization of AI-generated code

常见问题

记录了多少星标和分叉?

Tencent/AICGSecEval 有 664 个星标和 113 个分叉。

仓库排名是多少?

Tencent/AICGSecEval 排名第 15,296。

记录的语言和类别是什么?

Tencent/AICGSecEval 有 664 个星标,语言为 Python,类别为 AI Engineering。

哪个仓库排名最接近?

Tencent/AICGSecEval 与 moeru-ai/xsai 比较,后者排名第 15,288,有 665 个星标。

README

    [中文](./README_zh.md) |
    [English](#)

🚀 Repository-level AI-generated Code Security Evaluation Framework by
「Tencent Wukong Code Security Team」

A.S.E (AICGSecEval) provides a project-level benchmark for evaluating the security of AI-generated code, designed to assess the security performance of AI-assisted programming by simulating real-world development workflows:

We are committed to building A.S.E (AICGSecEval) into an open, reproducible, and continuously evolving community project. You are welcome to contribute through Star, Fork, Issue, or Pull Request to help expand the dataset and improve the evaluation framework. Your attention and contributions will help A.S.E grow, advancing both industrial adoption and academic research in AI-generated code security.

![点亮Star](https://img.shields.io/badge/⭐-Give A.S.E a Star-yellow?style=flat&logo=github)

Table of Contents

✨ A.S.E Framework Design

🧱 2.0 Major Upgrades

1️⃣ Dataset Upgrade – Broader Coverage of Code Generation Vulnerability Scenarios
Includes key risks from the OWASP Top 10 and CWE Top 25, covering 29 CWE vulnerability types across major programming languages such as C/C++, PHP, Java, Python, and JavaScript.

2️⃣ Evaluation Target Upgrade – Support for Agentic Programming Tools
Expands evaluation dimensions to better reflect real-world AI programming scenarios.

3️⃣ Code Evaluation Upgrade – Static and Dynamic Hybrid Assessment
Introduces a dynamic evaluation scheme based on test cases and vulnerability PoCs, forming a hybrid assessment framework that balances detection breadth and verification precision, significantly enhancing the scientific rigor and practical value of the evaluation process.

🚀 Quick Start

System Requirements

Memory Disk Space Python Docker
Recommended ≥16GB ≥100GB ≥3.11 ≥27

1. Install Python Dependencies

pip install -r requirements.txt

2. Run Evaluation with One Command

# Basic Usage
python3 invoke.py [options...] {--llm | --agent} [llm_options... | agent_options...]

# View all available options
python3 invoke.py -h

# Example: LLM Evaluation
python3 invoke.py \
  --llm \
  --model_name gpt-4o-2024-11-20 \
  --base_url https://api.openai.com/v1/ \
  --api_key sk-xxxxxx \
  --batch_id v1.0 \
  --dataset_path ./data/data_v2.json \
  --output_dir ./outputs
  --max_workers 1
  --github_token xxxxx // If not provided, anonymous cloning will be used, which may be subject to clone rate limiting.

# Example: Agent Evaluation
When running Agent-based evaluations, note that different Agents may require distinct configurations (e.g., model parameters, credentials, or APIs).
The launcher automatically forwards all unrecognized arguments (i.e., those not listed in -h) to the corresponding Agent module for parsing, allowing flexible extension of Agent-specific parameters.

For example, to evaluate Claude Code, run:

python3 invoke.py \
  --agent \
  --agent_name claude_code \
  --batch_id v1.0 \
  --dataset_path ./data/data_v2.json \
  --claude_api_url https://ai.nengyongai.cn \
  --claude_api_key sk-XXXXX \
  --claude_model claude-sonnet-4-20250514
  --github_token xxxxx // If not provided, anonymous cloning will be used, which may be subject to clone rate limiting.

The --claude_XXX options are parsed and used directly by the Agent evaluation module.

Notes
1️⃣ A full evaluation may take a long time depending on your hardware. You can adjust --max_workers to increase concurrency and reduce total runtime.
2️⃣ The tool supports automatic checkpoint recovery — if execution is interrupted, simply rerun the command to resume from the last state.

📖 Citation

If your research uses or references A.S.E or its evaluation results, please cite it as follows:

@misc{lian2025aserepositorylevelbenchmarkevaluating,
      title={A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code}, 
      author={Keke Lian and Bin Wang and Lei Zhang and Libo Chen and Junjie Wang and Ziming Zhao and Yujiu Yang and Miaoqian Lin and Haotong Duan and Haoran Zhao and Shuang Liao and Mingda Guo and Jiazheng Quan and Yilu Zhong and Chenhao He and Zichuan Chen and Jie Wu and Haoling Li and Zhaoxuan Li and Jiongchi Yu and Hui Li and Dong Zhang},
      year={2025},
      eprint={2508.18106},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2508.18106}, 
}

🤝 Contribution Guide

A.S.E aims to build an open, reproducible, and continuously evolving ecosystem for evaluating the security of AI-generated code. We welcome developers and researchers from academia, industry, and the open-source community to collaborate and contribute to the project.

Contribution Areas

  • 🧠 Dataset Contribution:Expand real-world vulnerability samples, enrich SAST tools/rules, and provide code functionality test cases and vulnerability PoCs.
  • ⚙️ Framework Optimization:Improve code generation logic, evaluation metrics, and context extraction strategies; support Agent integration and code refactoring.
  • 💡 Discussions & Suggestions:Propose new ideas, co-develop evaluation strategies, or share best practices.

💬 Beyond the above, we welcome any form of participation and support, including contributing real-world use cases, providing feedback, improving documentation, or joining community discussions.

Reference Documents

📌 If you plan to contribute, please read the following guides first to understand the data format, submission process, and validation standards.

Community Interaction

  • 💭 Report issues or suggestions: via Issues
  • 💡 Brainstorm and discuss: join Discussions

Your engagement and contributions will help A.S.E evolve faster, expand its coverage, and advance the open standardization of AI-generated code security evaluation.

![点亮Star](https://img.shields.io/badge/⭐-Give A.S.E a Star-yellow?style=flat&logo=github)

🙏 Acknowledgements

A.S.E​ is collaboratively developed by Tencent Security Platform Department with the following academic partners:

  • ​Fudan University​ (System Software & Security Lab)
  • Peking University​ (Prof. Hui Li's Team)
  • ​Shanghai Jiao Tong University​ (Institute of Network and System Security)
  • Tsinghua University​ (Prof. Yujiu Yang's Team)
  • Zhejiang University​ (Asst. Prof. Ziming Zhao's Team)

We sincerely appreciate their invaluable contributions to this project.

🙌 Contributors

📱 Join the Community

🔗 Recommended Security Tools

If you are interested in AI infrastructure security, refer to A.I.G (AI-Infra-Guard), a comprehensive, intelligent, and easy-to-use AI Red Teaming platform developed by Tencent Zhuque Lab.

📄 License

This project is open source under the Apache-2.0 License. For more details, please refer to the License.txt file.


排名相邻
同类项目