File size: 2,695 Bytes
7c48ebd 3ef8023 7c48ebd d363869 7c48ebd 261b055 7c48ebd ba13dc1 7c48ebd ba13dc1 7c48ebd ba13dc1 7c48ebd ba13dc1 7c48ebd 92bc2a3 7c48ebd 92bc2a3 7c48ebd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
---
license: gpl-3.0
---
# CompRealVul_Bin Dataset
[](https://huggingface.co/datasets/compAgent/CompRealVul_Bin)
## Dataset Summary
**CompRealVul_Bin** is a **binary-level dataset** derived from the [CompRealVul_C](https://huggingface.co/datasets/CCompote/CompRealVul_C) dataset, designed for training and evaluating machine learning models on **vulnerability detection in compiled binaries**. This dataset contains **cross-compiled `.exe` binaries** corresponding to each C function in the source dataset, packaged as a single `.zip` archive.
The dataset bridges the gap between source-level vulnerability datasets and practical binary-level learning pipelines.
## Key Features
- ✅ Matches samples from the original `CompRealVul` dataset
- ✅ Labeled with **vulnerability information** (binary class label)
- ✅ Suitable for binary-focused tasks such as **vulnerability detection**, **similarity learning**, and **binary classification**
- ✅ Provided as a **ZIP archive** for efficient download and storage
## Dataset Structure
- `CompRealVul_Bin.zip`: Contains all compiled `.exe` binary files
- `CompRealVul_metadata.csv`: Metadata file with the following fields:
| Column | Description |
|-----------------|-----------------------------------------------------------------------------|
| `file_name` | Name of the .exe file |
| `function_name` | The name of the target function in the .exe file |
| `label` | Vulnerability label (`1.0` = vulnerable, `0.0` = non-vulnerable) |
**Example:**
```csv
file_name,function_name,label
func_123.exe,func_123,1.0
```
## Usage
You can load the dataset directly using the `datasets` library from Hugging Face:
```python
import pandas as pd
import zipfile
# Load metadata
df = pd.read_csv("CompRealVul_metadata.csv")
# Access the ZIP archive
with zipfile.ZipFile("CompRealVul_Bin.zip", "r") as zip_ref:
# Extract a specific binary
binary_path = df.iloc[0]["binary_path"]
zip_ref.extract(binary_path, "extracted_binaries/")
# Read binary data
with open(f"extracted_binaries/{binary_path}", "rb") as f:
binary_data = f.read()
```
## License
This dataset is released under the GPL-3.0.
## Citation
```cite
@misc{comprealvul_bin,
author = {Compote},
title = {CompRealVul_Bin: A Binary Dataset for Vulnerability Detection},
howpublished = {\url{https://huggingface.co/datasets/compAgent/CompRealVul_Bin}},
year = {2025}
}
``` |