| --- |
| license: cc-by-4.0 |
| task_categories: |
| - text-generation |
| - question-answering |
| - text-classification |
| language: |
| - en |
| tags: |
| - cybersecurity |
| - vulnerability-detection |
| - secure-coding |
| - cwe |
| - owasp |
| - jumplander |
| pretty_name: AIForge-03-Security |
| size_categories: |
| - 1K<n<10K |
| --- |
| # AIForge-03-Security |
|
|
| Security Dataset for AI and Programming Tasks |
|
|
| ## Overview |
|
|
| AIForge-03-Security is a curated English dataset designed for AI systems working on security tasks in software engineering and programming. |
|
|
| ## Contents |
|
|
| - `data.jsonl` |
| - `data.json` |
| - `metadata.json` |
|
|
| ## Use Cases |
|
|
| - AI agent training |
| - Supervised fine-tuning |
| - Evaluation and benchmarking |
| - Software engineering research |
|
|
| ## Example Record |
|
|
| ```json |
| { |
| "id": "AISEC_00001", |
| "category": "security", |
| "language": "bash", |
| "vulnerability_type": "SQL Injection", |
| "severity": "Low", |
| "cwe": "CWE-89", |
| "owasp": "A03:2021 Injection", |
| "domain": "uploads", |
| "prompt": "Perform a security review of this Bash code in the uploads domain and explain the vulnerability.", |
| "code": "query = f\"SELECT * FROM users WHERE id = {user_id}\"", |
| "analysis": "User-controlled input is concatenated directly into the SQL query.", |
| "impact": "The issue can expose or manipulate order data in production.", |
| "remediation": "Apply least privilege, input validation, and safe framework APIs.", |
| "secure_code": "cursor.execute('SELECT * FROM users WHERE id = ?', (user_id,))" |
| } |
| ``` |
|
|
| ## License |
|
|
| Released under CC BY 4.0. |
|
|
| ## Source |
|
|
| JumpLander |
|
|