Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# VulnAI / VulnIA - Java Vulnerability Detection Dataset V3
|
| 2 |
+
|
| 3 |
+
## Purpose
|
| 4 |
+
This dataset is designed exclusively for **defensive** Java vulnerability detection using CodeBERT fine-tuning.
|
| 5 |
+
|
| 6 |
+
## Task
|
| 7 |
+
Multi-label classification of Java source code snippets into vulnerability families and fine-grained sub-types.
|
| 8 |
+
|
| 9 |
+
## Labels
|
| 10 |
+
- 0-65: V1 legacy labels (preserved, not modified)
|
| 11 |
+
- 3: XXE_GENERAL (V1 replay)
|
| 12 |
+
- 14: DESER_GENERAL (V1 replay)
|
| 13 |
+
- 66: CRYPTO
|
| 14 |
+
- 67: SAFE
|
| 15 |
+
- 68-78: Fine-grained XXE labels
|
| 16 |
+
- 79-88: Fine-grained Deserialization labels
|
| 17 |
+
|
| 18 |
+
Total labels: 89
|
| 19 |
+
|
| 20 |
+
## Parent / Fine-grained relationship
|
| 21 |
+
- Fine labels 68-78 → parent 3 (XXE)
|
| 22 |
+
- Fine labels 79-88 → parent 14 (DESER)
|
| 23 |
+
- Labels 66, 67 → parent = self
|
| 24 |
+
|
| 25 |
+
## Splits
|
| 26 |
+
- train: 1181
|
| 27 |
+
- validation: 238
|
| 28 |
+
- test: 236
|
| 29 |
+
- total: 1655
|
| 30 |
+
|
| 31 |
+
## Families
|
| 32 |
+
{'deserialization': 580, 'xxe': 575, 'crypto': 300, 'safe': 200}
|
| 33 |
+
|
| 34 |
+
## Preprocessing
|
| 35 |
+
- Anti-leakage cleaning (method/class names, comments)
|
| 36 |
+
- Exact deduplication (SHA-256 on normalized code)
|
| 37 |
+
- Near-duplicate grouping (n-gram Jaccard ≥ 0.85)
|
| 38 |
+
- Token-length handling (max 512 tokens for CodeBERT)
|
| 39 |
+
- Group-based split to prevent leakage
|
| 40 |
+
|
| 41 |
+
## Ethical Use
|
| 42 |
+
- This dataset is for **defensive security research only**.
|
| 43 |
+
- Do NOT use to generate exploits, payloads, or malware.
|
| 44 |
+
- All payloads and secrets have been removed or neutralized.
|
| 45 |
+
|
| 46 |
+
## License
|
| 47 |
+
Apache-2.0
|