comp agent
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,20 +22,18 @@ The dataset bridges the gap between source-level vulnerability datasets and prac
|
|
| 22 |
## Dataset Structure
|
| 23 |
|
| 24 |
- `CompRealVul_Bin.zip`: Contains all compiled `.exe` binary files
|
| 25 |
-
- `
|
| 26 |
|
| 27 |
| Column | Description |
|
| 28 |
|-----------------|-----------------------------------------------------------------------------|
|
| 29 |
-
| `
|
| 30 |
-
| `
|
| 31 |
-
| `
|
| 32 |
-
| `target` | Vulnerability label (`1.0` = vulnerable, `0.0` = non-vulnerable) |
|
| 33 |
-
| `split` | Dataset split (currently only `train`) |
|
| 34 |
|
| 35 |
**Example:**
|
| 36 |
```csv
|
| 37 |
-
|
| 38 |
-
func_123
|
| 39 |
```
|
| 40 |
|
| 41 |
## Usage
|
|
@@ -47,7 +45,7 @@ import pandas as pd
|
|
| 47 |
import zipfile
|
| 48 |
|
| 49 |
# Load metadata
|
| 50 |
-
df = pd.read_csv("
|
| 51 |
|
| 52 |
# Access the ZIP archive
|
| 53 |
with zipfile.ZipFile("CompRealVul_Bin.zip", "r") as zip_ref:
|
|
|
|
| 22 |
## Dataset Structure
|
| 23 |
|
| 24 |
- `CompRealVul_Bin.zip`: Contains all compiled `.exe` binary files
|
| 25 |
+
- `CompRealVul_metadata.csv`: Metadata file with the following fields:
|
| 26 |
|
| 27 |
| Column | Description |
|
| 28 |
|-----------------|-----------------------------------------------------------------------------|
|
| 29 |
+
| `file_name` | Name of the .exe file |
|
| 30 |
+
| `function_name` | The name of the target function in the .exe file |
|
| 31 |
+
| `label` | Vulnerability label (`1.0` = vulnerable, `0.0` = non-vulnerable) |
|
|
|
|
|
|
|
| 32 |
|
| 33 |
**Example:**
|
| 34 |
```csv
|
| 35 |
+
file_name,function_name,label
|
| 36 |
+
func_123.exe,func_123,1.0
|
| 37 |
```
|
| 38 |
|
| 39 |
## Usage
|
|
|
|
| 45 |
import zipfile
|
| 46 |
|
| 47 |
# Load metadata
|
| 48 |
+
df = pd.read_csv("CompRealVul_metadata.csv")
|
| 49 |
|
| 50 |
# Access the ZIP archive
|
| 51 |
with zipfile.ZipFile("CompRealVul_Bin.zip", "r") as zip_ref:
|