comp agent
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,68 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
# CombinedVuln_LLVM Dataset
|
| 5 |
+
|
| 6 |
+
[](https://huggingface.co/datasets/compAgent/Combined_LLVM)
|
| 7 |
+
|
| 8 |
+
## Dataset Summary
|
| 9 |
+
|
| 10 |
+
**Combined_LLVM** is a unified dataset for binary vulnerability detection that merges two sources:
|
| 11 |
+
- [CompRealVul_LLVM](https://huggingface.co/datasets/compAgent/CompRealVul_LLVM), based on real-world C vulnerabilities
|
| 12 |
+
- [Juliet_LLVM](https://huggingface.co/datasets/compAgent/Juliet_LLVM), based on the Juliet Test Suite
|
| 13 |
+
|
| 14 |
+
All functions are provided in **LLVM Intermediate Representation (IR)** format and labeled as **vulnerable or non-vulnerable**. This dataset is ideal for training and benchmarking machine learning models that aim to detect vulnerabilities in compiled representations of code, such as LLMs, GNNs, or binary-level classifiers.
|
| 15 |
+
|
| 16 |
+
## Key Features
|
| 17 |
+
|
| 18 |
+
- ✅ **LLVM IR format** (field: `llvm_ir_function`) for architecture-independent representation
|
| 19 |
+
- ✅ Merged from **two train datasets**: Juliet (synthetic) and CompRealVul (real-world)
|
| 20 |
+
- ✅ Clear **binary classification labels** (`label`)
|
| 21 |
+
- ✅ Metadata included: source dataset, original file name, and function name
|
| 22 |
+
|
| 23 |
+
## Dataset Structure
|
| 24 |
+
|
| 25 |
+
Each record in the dataset contains:
|
| 26 |
+
|
| 27 |
+
- `dataset`: The origin of the sample, either `"Juliet"` or `"CompRealVul"`
|
| 28 |
+
- `file`: The source filename of the C function
|
| 29 |
+
- `fun_name`: Name of the function
|
| 30 |
+
- `llvm_ir_function`: LLVM IR representation of the function
|
| 31 |
+
- `label`: `"1"` for vulnerable, `"0"` for non-vulnerable
|
| 32 |
+
- `split`: "train"
|
| 33 |
+
|
| 34 |
+
## Example Entry
|
| 35 |
+
|
| 36 |
+
```json
|
| 37 |
+
{
|
| 38 |
+
"dataset": "Juliet",
|
| 39 |
+
"file": "CWE121/s01.c",
|
| 40 |
+
"fun_name": "CWE121_bad",
|
| 41 |
+
"llvm_ir_function": "define dso_local void @CWE121_bad() { ... }",
|
| 42 |
+
"label": "1",
|
| 43 |
+
"split": "train"
|
| 44 |
+
}
|
| 45 |
+
```
|
| 46 |
+
## Usage
|
| 47 |
+
```python
|
| 48 |
+
from datasets import load_dataset
|
| 49 |
+
|
| 50 |
+
# Load the dataset
|
| 51 |
+
ds = load_dataset("compAgent/CombinedVuln_LLVM", split="train")
|
| 52 |
+
|
| 53 |
+
# View a sample
|
| 54 |
+
print(ds[0])
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## License
|
| 58 |
+
This dataset is released under the Apache 2.0 License.
|
| 59 |
+
|
| 60 |
+
## Citation
|
| 61 |
+
```cite
|
| 62 |
+
@misc{combinedvuln_llvm,
|
| 63 |
+
author = {comp agent},
|
| 64 |
+
title = {CombinedVuln_LLVM: A Unified Dataset of Vulnerable and Non-Vulnerable Functions in LLVM IR},
|
| 65 |
+
howpublished = {\url{https://huggingface.co/datasets/compAgent/CombinedVuln_LLVM}},
|
| 66 |
+
year = {2025}
|
| 67 |
+
}
|
| 68 |
+
```
|