Datasets:
Upload CodeSecAudit-RAG v0.1.0 dataset release
Browse files- DATASET_CARD.md +172 -0
- LICENSE_NOTICE.md +26 -0
- README.md +172 -0
- dataset-metadata.json +46 -0
- metadata/codexglue_normalization_summary.json +31 -0
- metadata/owasp_cheatsheets_rag_summary.json +213 -0
- metadata/owasp_python_normalization_summary.json +28 -0
- metadata/release_summary.json +11 -0
- metadata/review_combined_summary.json +175 -0
- rag/rag_corpus.jsonl.gz +3 -0
- review_combined/test.jsonl.gz +3 -0
- review_combined/train.jsonl.gz +3 -0
- review_combined/validation.jsonl.gz +3 -0
DATASET_CARD.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
+
- question-answering
|
| 8 |
+
- text-generation
|
| 9 |
+
- feature-extraction
|
| 10 |
+
pretty_name: CodeSecAudit-RAG
|
| 11 |
+
size_categories:
|
| 12 |
+
- 10K<n<100K
|
| 13 |
+
tags:
|
| 14 |
+
- code-security
|
| 15 |
+
- vulnerability-detection
|
| 16 |
+
- rag
|
| 17 |
+
- secure-coding
|
| 18 |
+
- owasp
|
| 19 |
+
- cwe
|
| 20 |
+
- code-review
|
| 21 |
+
- cybersecurity
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# CodeSecAudit-RAG
|
| 25 |
+
|
| 26 |
+
CodeSecAudit-RAG is a curated defensive dataset for building an Enterprise Code Review and Security Auditor Agent. It combines vulnerability-detection examples with a retrieval-ready secure-coding knowledge corpus.
|
| 27 |
+
|
| 28 |
+
The dataset is designed for practical AIML and MLOps workflows such as vulnerability detection, security review explanation, and RAG-based secure coding guidance retrieval.
|
| 29 |
+
|
| 30 |
+
## Dataset Components
|
| 31 |
+
|
| 32 |
+
### 1. Review Dataset
|
| 33 |
+
|
| 34 |
+
Files:
|
| 35 |
+
|
| 36 |
+
- `review_combined/train.jsonl.gz`
|
| 37 |
+
- `review_combined/validation.jsonl.gz`
|
| 38 |
+
- `review_combined/test.jsonl.gz`
|
| 39 |
+
|
| 40 |
+
Total records: 28,548
|
| 41 |
+
|
| 42 |
+
Sources:
|
| 43 |
+
|
| 44 |
+
- CodeXGLUE Defect Detection: large binary vulnerable/non-vulnerable C examples
|
| 45 |
+
- OWASP Benchmark Python: CWE-labeled Python benchmark examples
|
| 46 |
+
|
| 47 |
+
The review dataset supports binary vulnerability detection and CWE-aware security review.
|
| 48 |
+
|
| 49 |
+
### 2. RAG Corpus
|
| 50 |
+
|
| 51 |
+
File:
|
| 52 |
+
|
| 53 |
+
- `rag/rag_corpus.jsonl.gz`
|
| 54 |
+
|
| 55 |
+
Total chunks: 2,833
|
| 56 |
+
|
| 57 |
+
Source:
|
| 58 |
+
|
| 59 |
+
- OWASP Cheat Sheet Series
|
| 60 |
+
|
| 61 |
+
The RAG corpus contains secure coding guidance chunks for retrieval-augmented generation. It covers topics such as SQL injection prevention, XSS, code injection, OS command injection, authentication, authorization, secrets management, file upload security, SSRF, deserialization, and cryptographic failures.
|
| 62 |
+
|
| 63 |
+
## Intended Use
|
| 64 |
+
|
| 65 |
+
This dataset is intended for defensive security research and educational AI engineering projects, including:
|
| 66 |
+
|
| 67 |
+
- vulnerability detection
|
| 68 |
+
- secure code review
|
| 69 |
+
- security explanation generation
|
| 70 |
+
- RAG-based secure coding assistants
|
| 71 |
+
- MLOps and dataset engineering demonstrations
|
| 72 |
+
|
| 73 |
+
## Not Intended For
|
| 74 |
+
|
| 75 |
+
This dataset is not intended for building offensive exploitation tools, malware generation systems, or automated attack systems. The dataset should be used for defensive code review, secure coding education, and vulnerability remediation workflows.
|
| 76 |
+
|
| 77 |
+
## Schema
|
| 78 |
+
|
| 79 |
+
Review records include:
|
| 80 |
+
|
| 81 |
+
- `id`
|
| 82 |
+
- `source_name`
|
| 83 |
+
- `source_type`
|
| 84 |
+
- `source_split`
|
| 85 |
+
- `original_id`
|
| 86 |
+
- `language`
|
| 87 |
+
- `framework`
|
| 88 |
+
- `task`
|
| 89 |
+
- `cwe_id`
|
| 90 |
+
- `owasp_category`
|
| 91 |
+
- `severity`
|
| 92 |
+
- `is_vulnerable`
|
| 93 |
+
- `vulnerability_name`
|
| 94 |
+
- `input_code`
|
| 95 |
+
- `fixed_code`
|
| 96 |
+
- `explanation`
|
| 97 |
+
- `secure_pattern`
|
| 98 |
+
- `tags`
|
| 99 |
+
- `metadata`
|
| 100 |
+
|
| 101 |
+
RAG records include:
|
| 102 |
+
|
| 103 |
+
- `id`
|
| 104 |
+
- `source_name`
|
| 105 |
+
- `source_type`
|
| 106 |
+
- `doc_type`
|
| 107 |
+
- `source_file`
|
| 108 |
+
- `title`
|
| 109 |
+
- `section_title`
|
| 110 |
+
- `chunk_index`
|
| 111 |
+
- `language`
|
| 112 |
+
- `framework`
|
| 113 |
+
- `task`
|
| 114 |
+
- `cwe_id`
|
| 115 |
+
- `vulnerability_name`
|
| 116 |
+
- `owasp_category`
|
| 117 |
+
- `content`
|
| 118 |
+
- `positive_pattern`
|
| 119 |
+
- `negative_pattern`
|
| 120 |
+
- `tags`
|
| 121 |
+
- `metadata`
|
| 122 |
+
|
| 123 |
+
## Dataset Statistics
|
| 124 |
+
|
| 125 |
+
Review dataset:
|
| 126 |
+
|
| 127 |
+
| Split | Records |
|
| 128 |
+
|---|---:|
|
| 129 |
+
| Train | 22,827 |
|
| 130 |
+
| Validation | 2,846 |
|
| 131 |
+
| Test | 2,875 |
|
| 132 |
+
| Total | 28,548 |
|
| 133 |
+
|
| 134 |
+
RAG corpus:
|
| 135 |
+
|
| 136 |
+
| Component | Count |
|
| 137 |
+
|---|---:|
|
| 138 |
+
| RAG chunks | 2,833 |
|
| 139 |
+
| Covered CWE types | 16 |
|
| 140 |
+
| Average chunk size | ~869 characters |
|
| 141 |
+
|
| 142 |
+
## Loading Example
|
| 143 |
+
|
| 144 |
+
```python
|
| 145 |
+
from datasets import load_dataset
|
| 146 |
+
|
| 147 |
+
review = load_dataset(
|
| 148 |
+
"json",
|
| 149 |
+
data_files={
|
| 150 |
+
"train": "review_combined/train.jsonl.gz",
|
| 151 |
+
"validation": "review_combined/validation.jsonl.gz",
|
| 152 |
+
"test": "review_combined/test.jsonl.gz",
|
| 153 |
+
}
|
| 154 |
+
)
|
| 155 |
+
|
| 156 |
+
rag = load_dataset(
|
| 157 |
+
"json",
|
| 158 |
+
data_files={"train": "rag/rag_corpus.jsonl.gz"}
|
| 159 |
+
)
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
## Limitations
|
| 163 |
+
|
| 164 |
+
CodeXGLUE provides binary labels but does not provide exact CWE labels, so those records use `cwe_id: unknown`. OWASP Benchmark Python provides stronger CWE-specific labels. The RAG corpus is documentation-derived and should be used as retrieval context rather than ground-truth model labels.
|
| 165 |
+
|
| 166 |
+
## Source and License Notice
|
| 167 |
+
|
| 168 |
+
This is a curated derivative dataset built from public security datasets and documentation. Users should review the original source licenses before redistribution or commercial use. The dataset card intentionally uses `license: other` because the final package combines sources with different licensing terms.
|
| 169 |
+
|
| 170 |
+
## Author
|
| 171 |
+
|
| 172 |
+
Created and curated by Om Choksi.
|
LICENSE_NOTICE.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# License and Source Notice
|
| 2 |
+
|
| 3 |
+
CodeSecAudit-RAG is a curated derivative dataset created from multiple public sources.
|
| 4 |
+
|
| 5 |
+
## Included Sources
|
| 6 |
+
|
| 7 |
+
1. CodeXGLUE Defect Detection
|
| 8 |
+
|
| 9 |
+
* Used for binary vulnerable/non-vulnerable code examples.
|
| 10 |
+
* CWE labels are not provided by this source in the normalized records.
|
| 11 |
+
|
| 12 |
+
2. OWASP Benchmark Python
|
| 13 |
+
|
| 14 |
+
* Used for CWE-labeled Python security benchmark examples.
|
| 15 |
+
|
| 16 |
+
3. OWASP Cheat Sheet Series
|
| 17 |
+
|
| 18 |
+
* Used for retrieval-ready secure coding guidance chunks.
|
| 19 |
+
|
| 20 |
+
## License Warning
|
| 21 |
+
|
| 22 |
+
This release uses `license: other` because the package combines sources with different licensing terms. Before commercial use or redistribution, review the license terms of every upstream source.
|
| 23 |
+
|
| 24 |
+
## Responsible Use
|
| 25 |
+
|
| 26 |
+
This dataset is intended for defensive security, secure coding education, vulnerability detection, and code review automation. It should not be used for offensive exploitation, malware generation, or unauthorized testing.
|
README.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
+
- question-answering
|
| 8 |
+
- text-generation
|
| 9 |
+
- feature-extraction
|
| 10 |
+
pretty_name: CodeSecAudit-RAG
|
| 11 |
+
size_categories:
|
| 12 |
+
- 10K<n<100K
|
| 13 |
+
tags:
|
| 14 |
+
- code-security
|
| 15 |
+
- vulnerability-detection
|
| 16 |
+
- rag
|
| 17 |
+
- secure-coding
|
| 18 |
+
- owasp
|
| 19 |
+
- cwe
|
| 20 |
+
- code-review
|
| 21 |
+
- cybersecurity
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# CodeSecAudit-RAG
|
| 25 |
+
|
| 26 |
+
CodeSecAudit-RAG is a curated defensive dataset for building an Enterprise Code Review and Security Auditor Agent. It combines vulnerability-detection examples with a retrieval-ready secure-coding knowledge corpus.
|
| 27 |
+
|
| 28 |
+
The dataset is designed for practical AIML and MLOps workflows such as vulnerability detection, security review explanation, and RAG-based secure coding guidance retrieval.
|
| 29 |
+
|
| 30 |
+
## Dataset Components
|
| 31 |
+
|
| 32 |
+
### 1. Review Dataset
|
| 33 |
+
|
| 34 |
+
Files:
|
| 35 |
+
|
| 36 |
+
- `review_combined/train.jsonl.gz`
|
| 37 |
+
- `review_combined/validation.jsonl.gz`
|
| 38 |
+
- `review_combined/test.jsonl.gz`
|
| 39 |
+
|
| 40 |
+
Total records: 28,548
|
| 41 |
+
|
| 42 |
+
Sources:
|
| 43 |
+
|
| 44 |
+
- CodeXGLUE Defect Detection: large binary vulnerable/non-vulnerable C examples
|
| 45 |
+
- OWASP Benchmark Python: CWE-labeled Python benchmark examples
|
| 46 |
+
|
| 47 |
+
The review dataset supports binary vulnerability detection and CWE-aware security review.
|
| 48 |
+
|
| 49 |
+
### 2. RAG Corpus
|
| 50 |
+
|
| 51 |
+
File:
|
| 52 |
+
|
| 53 |
+
- `rag/rag_corpus.jsonl.gz`
|
| 54 |
+
|
| 55 |
+
Total chunks: 2,833
|
| 56 |
+
|
| 57 |
+
Source:
|
| 58 |
+
|
| 59 |
+
- OWASP Cheat Sheet Series
|
| 60 |
+
|
| 61 |
+
The RAG corpus contains secure coding guidance chunks for retrieval-augmented generation. It covers topics such as SQL injection prevention, XSS, code injection, OS command injection, authentication, authorization, secrets management, file upload security, SSRF, deserialization, and cryptographic failures.
|
| 62 |
+
|
| 63 |
+
## Intended Use
|
| 64 |
+
|
| 65 |
+
This dataset is intended for defensive security research and educational AI engineering projects, including:
|
| 66 |
+
|
| 67 |
+
- vulnerability detection
|
| 68 |
+
- secure code review
|
| 69 |
+
- security explanation generation
|
| 70 |
+
- RAG-based secure coding assistants
|
| 71 |
+
- MLOps and dataset engineering demonstrations
|
| 72 |
+
|
| 73 |
+
## Not Intended For
|
| 74 |
+
|
| 75 |
+
This dataset is not intended for building offensive exploitation tools, malware generation systems, or automated attack systems. The dataset should be used for defensive code review, secure coding education, and vulnerability remediation workflows.
|
| 76 |
+
|
| 77 |
+
## Schema
|
| 78 |
+
|
| 79 |
+
Review records include:
|
| 80 |
+
|
| 81 |
+
- `id`
|
| 82 |
+
- `source_name`
|
| 83 |
+
- `source_type`
|
| 84 |
+
- `source_split`
|
| 85 |
+
- `original_id`
|
| 86 |
+
- `language`
|
| 87 |
+
- `framework`
|
| 88 |
+
- `task`
|
| 89 |
+
- `cwe_id`
|
| 90 |
+
- `owasp_category`
|
| 91 |
+
- `severity`
|
| 92 |
+
- `is_vulnerable`
|
| 93 |
+
- `vulnerability_name`
|
| 94 |
+
- `input_code`
|
| 95 |
+
- `fixed_code`
|
| 96 |
+
- `explanation`
|
| 97 |
+
- `secure_pattern`
|
| 98 |
+
- `tags`
|
| 99 |
+
- `metadata`
|
| 100 |
+
|
| 101 |
+
RAG records include:
|
| 102 |
+
|
| 103 |
+
- `id`
|
| 104 |
+
- `source_name`
|
| 105 |
+
- `source_type`
|
| 106 |
+
- `doc_type`
|
| 107 |
+
- `source_file`
|
| 108 |
+
- `title`
|
| 109 |
+
- `section_title`
|
| 110 |
+
- `chunk_index`
|
| 111 |
+
- `language`
|
| 112 |
+
- `framework`
|
| 113 |
+
- `task`
|
| 114 |
+
- `cwe_id`
|
| 115 |
+
- `vulnerability_name`
|
| 116 |
+
- `owasp_category`
|
| 117 |
+
- `content`
|
| 118 |
+
- `positive_pattern`
|
| 119 |
+
- `negative_pattern`
|
| 120 |
+
- `tags`
|
| 121 |
+
- `metadata`
|
| 122 |
+
|
| 123 |
+
## Dataset Statistics
|
| 124 |
+
|
| 125 |
+
Review dataset:
|
| 126 |
+
|
| 127 |
+
| Split | Records |
|
| 128 |
+
|---|---:|
|
| 129 |
+
| Train | 22,827 |
|
| 130 |
+
| Validation | 2,846 |
|
| 131 |
+
| Test | 2,875 |
|
| 132 |
+
| Total | 28,548 |
|
| 133 |
+
|
| 134 |
+
RAG corpus:
|
| 135 |
+
|
| 136 |
+
| Component | Count |
|
| 137 |
+
|---|---:|
|
| 138 |
+
| RAG chunks | 2,833 |
|
| 139 |
+
| Covered CWE types | 16 |
|
| 140 |
+
| Average chunk size | ~869 characters |
|
| 141 |
+
|
| 142 |
+
## Loading Example
|
| 143 |
+
|
| 144 |
+
```python
|
| 145 |
+
from datasets import load_dataset
|
| 146 |
+
|
| 147 |
+
review = load_dataset(
|
| 148 |
+
"json",
|
| 149 |
+
data_files={
|
| 150 |
+
"train": "review_combined/train.jsonl.gz",
|
| 151 |
+
"validation": "review_combined/validation.jsonl.gz",
|
| 152 |
+
"test": "review_combined/test.jsonl.gz",
|
| 153 |
+
}
|
| 154 |
+
)
|
| 155 |
+
|
| 156 |
+
rag = load_dataset(
|
| 157 |
+
"json",
|
| 158 |
+
data_files={"train": "rag/rag_corpus.jsonl.gz"}
|
| 159 |
+
)
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
## Limitations
|
| 163 |
+
|
| 164 |
+
CodeXGLUE provides binary labels but does not provide exact CWE labels, so those records use `cwe_id: unknown`. OWASP Benchmark Python provides stronger CWE-specific labels. The RAG corpus is documentation-derived and should be used as retrieval context rather than ground-truth model labels.
|
| 165 |
+
|
| 166 |
+
## Source and License Notice
|
| 167 |
+
|
| 168 |
+
This is a curated derivative dataset built from public security datasets and documentation. Users should review the original source licenses before redistribution or commercial use. The dataset card intentionally uses `license: other` because the final package combines sources with different licensing terms.
|
| 169 |
+
|
| 170 |
+
## Author
|
| 171 |
+
|
| 172 |
+
Created and curated by Om Choksi.
|
dataset-metadata.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"title": "CodeSecAudit-RAG",
|
| 3 |
+
"subtitle": "Defensive code security review dataset with RAG-ready secure coding guidance",
|
| 4 |
+
"description": "CodeSecAudit-RAG is a curated defensive dataset for building an Enterprise Code Review and Security Auditor Agent. It includes a combined vulnerability review dataset and an OWASP Cheat Sheet based RAG corpus. Intended for secure coding education, vulnerability detection, security review explanation, and defensive AI engineering workflows.",
|
| 5 |
+
"id": "omchoksi108/codesec-audit-rag",
|
| 6 |
+
"licenses": [
|
| 7 |
+
{
|
| 8 |
+
"name": "other"
|
| 9 |
+
}
|
| 10 |
+
],
|
| 11 |
+
"keywords": [
|
| 12 |
+
"cybersecurity",
|
| 13 |
+
"code",
|
| 14 |
+
"security",
|
| 15 |
+
"rag",
|
| 16 |
+
"machine learning",
|
| 17 |
+
"nlp",
|
| 18 |
+
"artificial intelligence"
|
| 19 |
+
],
|
| 20 |
+
"resources": [
|
| 21 |
+
{
|
| 22 |
+
"path": "review_combined/train.jsonl.gz",
|
| 23 |
+
"description": "Training split for vulnerability detection and security review."
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"path": "review_combined/validation.jsonl.gz",
|
| 27 |
+
"description": "Validation split for vulnerability detection and security review."
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"path": "review_combined/test.jsonl.gz",
|
| 31 |
+
"description": "Test split for vulnerability detection and security review."
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"path": "rag/rag_corpus.jsonl.gz",
|
| 35 |
+
"description": "RAG-ready secure coding guidance corpus from OWASP Cheat Sheet Series."
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"path": "README.md",
|
| 39 |
+
"description": "Dataset card and usage documentation."
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"path": "LICENSE_NOTICE.md",
|
| 43 |
+
"description": "Source and license transparency notice."
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
metadata/codexglue_normalization_summary.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": "CodeXGLUE Defect Detection",
|
| 3 |
+
"task": "vulnerability_detection",
|
| 4 |
+
"language": "c",
|
| 5 |
+
"splits": [
|
| 6 |
+
{
|
| 7 |
+
"split": "train",
|
| 8 |
+
"status": "ok",
|
| 9 |
+
"total": 21854,
|
| 10 |
+
"vulnerable": 10018,
|
| 11 |
+
"clean": 11836,
|
| 12 |
+
"output_path": "data/final/review/train.jsonl"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"split": "validation",
|
| 16 |
+
"status": "ok",
|
| 17 |
+
"total": 2732,
|
| 18 |
+
"vulnerable": 1187,
|
| 19 |
+
"clean": 1545,
|
| 20 |
+
"output_path": "data/final/review/validation.jsonl"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"split": "test",
|
| 24 |
+
"status": "ok",
|
| 25 |
+
"total": 2732,
|
| 26 |
+
"vulnerable": 1255,
|
| 27 |
+
"clean": 1477,
|
| 28 |
+
"output_path": "data/final/review/test.jsonl"
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
metadata/owasp_cheatsheets_rag_summary.json
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": "OWASP Cheat Sheet Series",
|
| 3 |
+
"input_dir": "data/raw/owasp_cheatsheet_series/cheatsheets",
|
| 4 |
+
"output_path": "data/final/rag/rag_corpus.jsonl",
|
| 5 |
+
"total_markdown_files": 120,
|
| 6 |
+
"included_files_count": 113,
|
| 7 |
+
"skipped_files_count": 7,
|
| 8 |
+
"total_rag_chunks": 2833,
|
| 9 |
+
"included_files": [
|
| 10 |
+
"AI_Agent_Security_Cheat_Sheet.md",
|
| 11 |
+
"AJAX_Security_Cheat_Sheet.md",
|
| 12 |
+
"AML_Sanctions_AI_Agent_Payments_Cheat_Sheet.md",
|
| 13 |
+
"Access_Control_Cheat_Sheet.md",
|
| 14 |
+
"Attack_Surface_Analysis_Cheat_Sheet.md",
|
| 15 |
+
"Authentication_Cheat_Sheet.md",
|
| 16 |
+
"Authorization_Cheat_Sheet.md",
|
| 17 |
+
"Authorization_Regression_Testing_Cheat_Sheet.md",
|
| 18 |
+
"Authorization_Testing_Automation_Cheat_Sheet.md",
|
| 19 |
+
"Automotive_Security_Cheat_Sheet.md",
|
| 20 |
+
"Bean_Validation_Cheat_Sheet.md",
|
| 21 |
+
"Bot_Management_and_Anti-Automation_Cheat_Sheet.md",
|
| 22 |
+
"Browser_Extension_Vulnerabilities_Cheat_Sheet.md",
|
| 23 |
+
"Business_Logic_Security_Cheat_Sheet.md",
|
| 24 |
+
"C-Based_Toolchain_Hardening_Cheat_Sheet.md",
|
| 25 |
+
"Choosing_and_Using_Security_Questions_Cheat_Sheet.md",
|
| 26 |
+
"Clickjacking_Defense_Cheat_Sheet.md",
|
| 27 |
+
"Content_Security_Policy_Cheat_Sheet.md",
|
| 28 |
+
"Cookie_Theft_Mitigation_Cheat_Sheet.md",
|
| 29 |
+
"Credential_Stuffing_Prevention_Cheat_Sheet.md",
|
| 30 |
+
"Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.md",
|
| 31 |
+
"Cross_Site_Scripting_Prevention_Cheat_Sheet.md",
|
| 32 |
+
"Cryptographic_Storage_Cheat_Sheet.md",
|
| 33 |
+
"DOM_Clobbering_Prevention_Cheat_Sheet.md",
|
| 34 |
+
"DOM_based_XSS_Prevention_Cheat_Sheet.md",
|
| 35 |
+
"Database_Security_Cheat_Sheet.md",
|
| 36 |
+
"Denial_of_Service_Cheat_Sheet.md",
|
| 37 |
+
"Dependency_Graph_SBOM_Cheat_Sheet.md",
|
| 38 |
+
"Deserialization_Cheat_Sheet.md",
|
| 39 |
+
"Django_REST_Framework_Cheat_Sheet.md",
|
| 40 |
+
"Django_Security_Cheat_Sheet.md",
|
| 41 |
+
"Docker_Security_Cheat_Sheet.md",
|
| 42 |
+
"DotNet_Security_Cheat_Sheet.md",
|
| 43 |
+
"Drone_Security_Cheat_Sheet.md",
|
| 44 |
+
"Email_Validation_and_Verification_Cheat_Sheet.md",
|
| 45 |
+
"Error_Handling_Cheat_Sheet.md",
|
| 46 |
+
"File_Upload_Cheat_Sheet.md",
|
| 47 |
+
"Forgot_Password_Cheat_Sheet.md",
|
| 48 |
+
"GitHub_Actions_Security_Cheat_Sheet.md",
|
| 49 |
+
"GraphQL_Cheat_Sheet.md",
|
| 50 |
+
"HTML5_Security_Cheat_Sheet.md",
|
| 51 |
+
"HTTP_Headers_Cheat_Sheet.md",
|
| 52 |
+
"HTTP_Strict_Transport_Security_Cheat_Sheet.md",
|
| 53 |
+
"Infrastructure_as_Code_Security_Cheat_Sheet.md",
|
| 54 |
+
"Injection_Prevention_Cheat_Sheet.md",
|
| 55 |
+
"Injection_Prevention_in_Java_Cheat_Sheet.md",
|
| 56 |
+
"Input_Validation_Cheat_Sheet.md",
|
| 57 |
+
"Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.md",
|
| 58 |
+
"JAAS_Cheat_Sheet.md",
|
| 59 |
+
"JSON_Web_Token_for_Java_Cheat_Sheet.md",
|
| 60 |
+
"Java_Security_Cheat_Sheet.md",
|
| 61 |
+
"Key_Management_Cheat_Sheet.md",
|
| 62 |
+
"Kubernetes_Security_Cheat_Sheet.md",
|
| 63 |
+
"LDAP_Injection_Prevention_Cheat_Sheet.md",
|
| 64 |
+
"LLM_Prompt_Injection_Prevention_Cheat_Sheet.md",
|
| 65 |
+
"Laravel_Cheat_Sheet.md",
|
| 66 |
+
"Legacy_Application_Management_Cheat_Sheet.md",
|
| 67 |
+
"Logging_Cheat_Sheet.md",
|
| 68 |
+
"Logging_Vocabulary_Cheat_Sheet.md",
|
| 69 |
+
"MCP_Security_Cheat_Sheet.md",
|
| 70 |
+
"Mass_Assignment_Cheat_Sheet.md",
|
| 71 |
+
"Microservices_Security_Cheat_Sheet.md",
|
| 72 |
+
"Microservices_based_Security_Arch_Doc_Cheat_Sheet.md",
|
| 73 |
+
"Mobile_Application_Security_Cheat_Sheet.md",
|
| 74 |
+
"Multi_Tenant_Security_Cheat_Sheet.md",
|
| 75 |
+
"Multifactor_Authentication_Cheat_Sheet.md",
|
| 76 |
+
"NPM_Security_Cheat_Sheet.md",
|
| 77 |
+
"Network_Segmentation_Cheat_Sheet.md",
|
| 78 |
+
"NoSQL_Security_Cheat_Sheet.md",
|
| 79 |
+
"NodeJS_Docker_Cheat_Sheet.md",
|
| 80 |
+
"Nodejs_Security_Cheat_Sheet.md",
|
| 81 |
+
"OAuth2_Cheat_Sheet.md",
|
| 82 |
+
"OS_Command_Injection_Defense_Cheat_Sheet.md",
|
| 83 |
+
"PHP_Configuration_Cheat_Sheet.md",
|
| 84 |
+
"Password_Storage_Cheat_Sheet.md",
|
| 85 |
+
"Pinning_Cheat_Sheet.md",
|
| 86 |
+
"Prototype_Pollution_Prevention_Cheat_Sheet.md",
|
| 87 |
+
"Query_Parameterization_Cheat_Sheet.md",
|
| 88 |
+
"RAG_Security_Cheat_Sheet.md",
|
| 89 |
+
"REST_Assessment_Cheat_Sheet.md",
|
| 90 |
+
"REST_Security_Cheat_Sheet.md",
|
| 91 |
+
"Ruby_on_Rails_Cheat_Sheet.md",
|
| 92 |
+
"SAML_Security_Cheat_Sheet.md",
|
| 93 |
+
"SQL_Injection_Prevention_Cheat_Sheet.md",
|
| 94 |
+
"Secrets_Management_Cheat_Sheet.md",
|
| 95 |
+
"Secure_AI_Model_Ops_Cheat_Sheet.md",
|
| 96 |
+
"Secure_Cloud_Architecture_Cheat_Sheet.md",
|
| 97 |
+
"Secure_Code_Review_Cheat_Sheet.md",
|
| 98 |
+
"Secure_Coding_with_AI_Cheat_Sheet.md",
|
| 99 |
+
"Secure_Product_Design_Cheat_Sheet.md",
|
| 100 |
+
"Securing_Cascading_Style_Sheets_Cheat_Sheet.md",
|
| 101 |
+
"Security_Terminology_Cheat_Sheet.md",
|
| 102 |
+
"Server_Side_Request_Forgery_Prevention_Cheat_Sheet.md",
|
| 103 |
+
"Serverless_FaaS_Security_Cheat_Sheet.md",
|
| 104 |
+
"Session_Management_Cheat_Sheet.md",
|
| 105 |
+
"Subdomain_Takeover_Prevention_Cheat_Sheet.md",
|
| 106 |
+
"Symfony_Cheat_Sheet.md",
|
| 107 |
+
"Third_Party_Javascript_Management_Cheat_Sheet.md",
|
| 108 |
+
"Third_Party_Payment_Gateway_Integration_Cheat_Sheet.md",
|
| 109 |
+
"Transaction_Authorization_Cheat_Sheet.md",
|
| 110 |
+
"Transport_Layer_Security_Cheat_Sheet.md",
|
| 111 |
+
"Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md",
|
| 112 |
+
"User_Privacy_Protection_Cheat_Sheet.md",
|
| 113 |
+
"Virtual_Patching_Cheat_Sheet.md",
|
| 114 |
+
"Vulnerable_Dependency_Management_Cheat_Sheet.md",
|
| 115 |
+
"WebSocket_Security_Cheat_Sheet.md",
|
| 116 |
+
"Web_Service_Security_Cheat_Sheet.md",
|
| 117 |
+
"XML_External_Entity_Prevention_Cheat_Sheet.md",
|
| 118 |
+
"XML_Security_Cheat_Sheet.md",
|
| 119 |
+
"XSS_Filter_Evasion_Cheat_Sheet.md",
|
| 120 |
+
"XS_Leaks_Cheat_Sheet.md",
|
| 121 |
+
"Zero_Trust_Architecture_Cheat_Sheet.md",
|
| 122 |
+
"gRPC_Security_Cheat_Sheet.md"
|
| 123 |
+
],
|
| 124 |
+
"skipped_files_sample": [
|
| 125 |
+
"Abuse_Case_Cheat_Sheet.md",
|
| 126 |
+
"CI_CD_Security_Cheat_Sheet.md",
|
| 127 |
+
"Software_Supply_Chain_Security_Cheat_Sheet.md",
|
| 128 |
+
"TLS_Cipher_String_Cheat_Sheet.md",
|
| 129 |
+
"Threat_Modeling_Cheat_Sheet.md",
|
| 130 |
+
"Transport_Layer_Protection_Cheat_Sheet.md",
|
| 131 |
+
"Vulnerability_Disclosure_Cheat_Sheet.md"
|
| 132 |
+
],
|
| 133 |
+
"top_cwe_counts": {
|
| 134 |
+
"CWE-89": 499,
|
| 135 |
+
"CWE-79": 441,
|
| 136 |
+
"CWE-94": 347,
|
| 137 |
+
"general": 278,
|
| 138 |
+
"CWE-78": 190,
|
| 139 |
+
"CWE-330": 172,
|
| 140 |
+
"CWE-287": 162,
|
| 141 |
+
"CWE-862": 158,
|
| 142 |
+
"CWE-601": 126,
|
| 143 |
+
"CWE-328": 108,
|
| 144 |
+
"CWE-798": 106,
|
| 145 |
+
"CWE-614": 90,
|
| 146 |
+
"CWE-918": 88,
|
| 147 |
+
"CWE-434": 29,
|
| 148 |
+
"CWE-502": 27,
|
| 149 |
+
"CWE-90": 12
|
| 150 |
+
},
|
| 151 |
+
"top_vulnerability_names": {
|
| 152 |
+
"SQL Injection": 499,
|
| 153 |
+
"Cross-Site Scripting": 441,
|
| 154 |
+
"Code Injection": 347,
|
| 155 |
+
"General Secure Coding Guidance": 278,
|
| 156 |
+
"OS Command Injection": 190,
|
| 157 |
+
"Use of Insufficiently Random Values": 172,
|
| 158 |
+
"Improper Authentication": 162,
|
| 159 |
+
"Missing Authorization": 158,
|
| 160 |
+
"Open Redirect": 126,
|
| 161 |
+
"Weak Hashing Algorithm": 108,
|
| 162 |
+
"Hardcoded Credentials": 106,
|
| 163 |
+
"Sensitive Cookie Without Secure Flag": 90,
|
| 164 |
+
"Server-Side Request Forgery": 88,
|
| 165 |
+
"Unrestricted File Upload": 29,
|
| 166 |
+
"Deserialization of Untrusted Data": 27,
|
| 167 |
+
"LDAP Injection": 12
|
| 168 |
+
},
|
| 169 |
+
"top_tags": {
|
| 170 |
+
"cheatsheet": 2833,
|
| 171 |
+
"owasp": 2833,
|
| 172 |
+
"rag-context": 2833,
|
| 173 |
+
"secure-coding": 2833,
|
| 174 |
+
"sql-injection": 507,
|
| 175 |
+
"cwe-89": 499,
|
| 176 |
+
"cwe-79": 441,
|
| 177 |
+
"cwe-94": 347,
|
| 178 |
+
"authentication": 251,
|
| 179 |
+
"authorization": 240,
|
| 180 |
+
"cwe-78": 190,
|
| 181 |
+
"cwe-330": 172,
|
| 182 |
+
"cwe-287": 162,
|
| 183 |
+
"cwe-862": 158,
|
| 184 |
+
"logging": 128,
|
| 185 |
+
"cwe-601": 126,
|
| 186 |
+
"xss": 126,
|
| 187 |
+
"xml-security": 121,
|
| 188 |
+
"cwe-328": 108,
|
| 189 |
+
"cookie-security": 106,
|
| 190 |
+
"cwe-798": 106,
|
| 191 |
+
"cwe-614": 90,
|
| 192 |
+
"cwe-918": 88,
|
| 193 |
+
"secret-management": 87,
|
| 194 |
+
"kubernetes": 80,
|
| 195 |
+
"session-security": 79,
|
| 196 |
+
"file-upload": 58,
|
| 197 |
+
"password-security": 53,
|
| 198 |
+
"api-security": 49,
|
| 199 |
+
"access-control": 43,
|
| 200 |
+
"docker": 41,
|
| 201 |
+
"cryptography": 30,
|
| 202 |
+
"deserialization": 29,
|
| 203 |
+
"cwe-434": 29,
|
| 204 |
+
"error-handling": 27,
|
| 205 |
+
"cwe-502": 27,
|
| 206 |
+
"csrf": 25,
|
| 207 |
+
"oauth": 14,
|
| 208 |
+
"cwe-90": 12,
|
| 209 |
+
"jwt": 3,
|
| 210 |
+
"ssrf": 2
|
| 211 |
+
},
|
| 212 |
+
"created_at": "2026-06-20T05:25:40.920179Z"
|
| 213 |
+
}
|
metadata/owasp_python_normalization_summary.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": "OWASP Benchmark Python",
|
| 3 |
+
"output_path": "data/processed/owasp_benchmark_python/owasp_python_review.jsonl",
|
| 4 |
+
"total_records": 1230,
|
| 5 |
+
"vulnerable": 452,
|
| 6 |
+
"clean": 778,
|
| 7 |
+
"metadata_csv_files": [
|
| 8 |
+
"data/raw/owasp_benchmark_python/expectedresults-0.1.csv"
|
| 9 |
+
],
|
| 10 |
+
"label_map_entries": 1230,
|
| 11 |
+
"cwe_counts": {
|
| 12 |
+
"CWE-22": 168,
|
| 13 |
+
"CWE-328": 151,
|
| 14 |
+
"CWE-330": 326,
|
| 15 |
+
"CWE-501": 37,
|
| 16 |
+
"CWE-502": 54,
|
| 17 |
+
"CWE-601": 34,
|
| 18 |
+
"CWE-611": 28,
|
| 19 |
+
"CWE-614": 39,
|
| 20 |
+
"CWE-643": 186,
|
| 21 |
+
"CWE-78": 20,
|
| 22 |
+
"CWE-79": 89,
|
| 23 |
+
"CWE-89": 16,
|
| 24 |
+
"CWE-90": 29,
|
| 25 |
+
"CWE-94": 53
|
| 26 |
+
},
|
| 27 |
+
"normalized_at": "2026-06-20T05:21:00.735918Z"
|
| 28 |
+
}
|
metadata/release_summary.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": "CodeSecAudit-RAG",
|
| 3 |
+
"version": "v0.1.0",
|
| 4 |
+
"created_at": "2026-06-20T05:29:12.436044Z",
|
| 5 |
+
"files": {
|
| 6 |
+
"review_combined/train.jsonl.gz": 22827,
|
| 7 |
+
"review_combined/validation.jsonl.gz": 2846,
|
| 8 |
+
"review_combined/test.jsonl.gz": 2875,
|
| 9 |
+
"rag/rag_corpus.jsonl.gz": 2833
|
| 10 |
+
}
|
| 11 |
+
}
|
metadata/review_combined_summary.json
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_name": "CodeSecAudit Review Combined",
|
| 3 |
+
"created_at": "2026-06-20T05:23:09.247257Z",
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"inputs": {
|
| 6 |
+
"codexglue": "data/final/review",
|
| 7 |
+
"owasp_python": "data/processed/owasp_benchmark_python/owasp_python_review.jsonl"
|
| 8 |
+
},
|
| 9 |
+
"outputs": {
|
| 10 |
+
"train": "data/final/review_combined/train.jsonl",
|
| 11 |
+
"validation": "data/final/review_combined/validation.jsonl",
|
| 12 |
+
"test": "data/final/review_combined/test.jsonl"
|
| 13 |
+
},
|
| 14 |
+
"splits": {
|
| 15 |
+
"train": {
|
| 16 |
+
"total": 22827,
|
| 17 |
+
"source_counts": {
|
| 18 |
+
"CodeXGLUE Defect Detection": 21854,
|
| 19 |
+
"OWASP Benchmark Python": 973
|
| 20 |
+
},
|
| 21 |
+
"language_counts": {
|
| 22 |
+
"c": 21854,
|
| 23 |
+
"python": 973
|
| 24 |
+
},
|
| 25 |
+
"task_counts": {
|
| 26 |
+
"vulnerability_detection": 21854,
|
| 27 |
+
"security_review": 973
|
| 28 |
+
},
|
| 29 |
+
"vulnerable_counts": {
|
| 30 |
+
"True": 10374,
|
| 31 |
+
"False": 12453
|
| 32 |
+
},
|
| 33 |
+
"top_cwe_counts": {
|
| 34 |
+
"unknown": 21854,
|
| 35 |
+
"CWE-330": 260,
|
| 36 |
+
"CWE-643": 148,
|
| 37 |
+
"CWE-22": 134,
|
| 38 |
+
"CWE-328": 120,
|
| 39 |
+
"CWE-79": 70,
|
| 40 |
+
"CWE-94": 42,
|
| 41 |
+
"CWE-502": 42,
|
| 42 |
+
"CWE-614": 31,
|
| 43 |
+
"CWE-501": 29,
|
| 44 |
+
"CWE-601": 26,
|
| 45 |
+
"CWE-90": 22,
|
| 46 |
+
"CWE-611": 22,
|
| 47 |
+
"CWE-78": 15,
|
| 48 |
+
"CWE-89": 12
|
| 49 |
+
},
|
| 50 |
+
"top_vulnerability_names": {
|
| 51 |
+
"unknown_defect_or_vulnerability": 21854,
|
| 52 |
+
"Use of Insufficiently Random Values": 260,
|
| 53 |
+
"XPath Injection": 148,
|
| 54 |
+
"Path Traversal": 134,
|
| 55 |
+
"Weak Hashing Algorithm": 120,
|
| 56 |
+
"Cross-Site Scripting": 70,
|
| 57 |
+
"Code Injection": 42,
|
| 58 |
+
"Deserialization of Untrusted Data": 42,
|
| 59 |
+
"Sensitive Cookie Without Secure Flag": 31,
|
| 60 |
+
"Trust Boundary Violation": 29,
|
| 61 |
+
"Open Redirect": 26,
|
| 62 |
+
"LDAP Injection": 22,
|
| 63 |
+
"XML External Entity Injection": 22,
|
| 64 |
+
"OS Command Injection": 15,
|
| 65 |
+
"SQL Injection": 12
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"validation": {
|
| 69 |
+
"total": 2846,
|
| 70 |
+
"source_counts": {
|
| 71 |
+
"CodeXGLUE Defect Detection": 2732,
|
| 72 |
+
"OWASP Benchmark Python": 114
|
| 73 |
+
},
|
| 74 |
+
"language_counts": {
|
| 75 |
+
"c": 2732,
|
| 76 |
+
"python": 114
|
| 77 |
+
},
|
| 78 |
+
"task_counts": {
|
| 79 |
+
"vulnerability_detection": 2732,
|
| 80 |
+
"security_review": 114
|
| 81 |
+
},
|
| 82 |
+
"vulnerable_counts": {
|
| 83 |
+
"True": 1228,
|
| 84 |
+
"False": 1618
|
| 85 |
+
},
|
| 86 |
+
"top_cwe_counts": {
|
| 87 |
+
"unknown": 2732,
|
| 88 |
+
"CWE-330": 31,
|
| 89 |
+
"CWE-643": 18,
|
| 90 |
+
"CWE-22": 16,
|
| 91 |
+
"CWE-328": 15,
|
| 92 |
+
"CWE-79": 8,
|
| 93 |
+
"CWE-94": 5,
|
| 94 |
+
"CWE-502": 4,
|
| 95 |
+
"CWE-611": 3,
|
| 96 |
+
"CWE-601": 3,
|
| 97 |
+
"CWE-614": 3,
|
| 98 |
+
"CWE-78": 2,
|
| 99 |
+
"CWE-90": 2,
|
| 100 |
+
"CWE-501": 2,
|
| 101 |
+
"CWE-89": 2
|
| 102 |
+
},
|
| 103 |
+
"top_vulnerability_names": {
|
| 104 |
+
"unknown_defect_or_vulnerability": 2732,
|
| 105 |
+
"Use of Insufficiently Random Values": 31,
|
| 106 |
+
"XPath Injection": 18,
|
| 107 |
+
"Path Traversal": 16,
|
| 108 |
+
"Weak Hashing Algorithm": 15,
|
| 109 |
+
"Cross-Site Scripting": 8,
|
| 110 |
+
"Code Injection": 5,
|
| 111 |
+
"Deserialization of Untrusted Data": 4,
|
| 112 |
+
"XML External Entity Injection": 3,
|
| 113 |
+
"Open Redirect": 3,
|
| 114 |
+
"Sensitive Cookie Without Secure Flag": 3,
|
| 115 |
+
"OS Command Injection": 2,
|
| 116 |
+
"LDAP Injection": 2,
|
| 117 |
+
"Trust Boundary Violation": 2,
|
| 118 |
+
"SQL Injection": 2
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
"test": {
|
| 122 |
+
"total": 2875,
|
| 123 |
+
"source_counts": {
|
| 124 |
+
"CodeXGLUE Defect Detection": 2732,
|
| 125 |
+
"OWASP Benchmark Python": 143
|
| 126 |
+
},
|
| 127 |
+
"language_counts": {
|
| 128 |
+
"c": 2732,
|
| 129 |
+
"python": 143
|
| 130 |
+
},
|
| 131 |
+
"task_counts": {
|
| 132 |
+
"vulnerability_detection": 2732,
|
| 133 |
+
"security_review": 143
|
| 134 |
+
},
|
| 135 |
+
"vulnerable_counts": {
|
| 136 |
+
"True": 1310,
|
| 137 |
+
"False": 1565
|
| 138 |
+
},
|
| 139 |
+
"top_cwe_counts": {
|
| 140 |
+
"unknown": 2732,
|
| 141 |
+
"CWE-330": 35,
|
| 142 |
+
"CWE-643": 20,
|
| 143 |
+
"CWE-22": 18,
|
| 144 |
+
"CWE-328": 16,
|
| 145 |
+
"CWE-79": 11,
|
| 146 |
+
"CWE-502": 8,
|
| 147 |
+
"CWE-501": 6,
|
| 148 |
+
"CWE-94": 6,
|
| 149 |
+
"CWE-601": 5,
|
| 150 |
+
"CWE-614": 5,
|
| 151 |
+
"CWE-90": 5,
|
| 152 |
+
"CWE-78": 3,
|
| 153 |
+
"CWE-611": 3,
|
| 154 |
+
"CWE-89": 2
|
| 155 |
+
},
|
| 156 |
+
"top_vulnerability_names": {
|
| 157 |
+
"unknown_defect_or_vulnerability": 2732,
|
| 158 |
+
"Use of Insufficiently Random Values": 35,
|
| 159 |
+
"XPath Injection": 20,
|
| 160 |
+
"Path Traversal": 18,
|
| 161 |
+
"Weak Hashing Algorithm": 16,
|
| 162 |
+
"Cross-Site Scripting": 11,
|
| 163 |
+
"Deserialization of Untrusted Data": 8,
|
| 164 |
+
"Trust Boundary Violation": 6,
|
| 165 |
+
"Code Injection": 6,
|
| 166 |
+
"Open Redirect": 5,
|
| 167 |
+
"Sensitive Cookie Without Secure Flag": 5,
|
| 168 |
+
"LDAP Injection": 5,
|
| 169 |
+
"OS Command Injection": 3,
|
| 170 |
+
"XML External Entity Injection": 3,
|
| 171 |
+
"SQL Injection": 2
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
}
|
rag/rag_corpus.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82e3ad34cfa1f3a5d96f300435a1ede2e6d69999991583c20b44af3757dbf701
|
| 3 |
+
size 897824
|
review_combined/test.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fb02a20ee6649d663a1fecdfb72f759015b2b4590ce0e6a7bec9bdc7ad415f9
|
| 3 |
+
size 1653561
|
review_combined/train.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d07da4afdd18ba2368916dc610b337012d16df241294bbda6daabee1f3cdcf6
|
| 3 |
+
size 13225467
|
review_combined/validation.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9739c59f2bd46d44461d97ab05df8011e3d250e6885b627bc377c2adf0c8f21c
|
| 3 |
+
size 1624279
|