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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-3.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: "DRIFT: Longitudinal Benign and DGA Domain Name Dataset (2017-2025)"
|
| 6 |
+
size_categories:
|
| 7 |
+
- 100M<n<1B
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-classification
|
| 10 |
+
tags:
|
| 11 |
+
- security
|
| 12 |
+
- dga
|
| 13 |
+
- domain-generation-algorithm
|
| 14 |
+
- malware
|
| 15 |
+
- concept-drift
|
| 16 |
+
- cybersecurity
|
| 17 |
+
- network-security
|
| 18 |
+
annotations_creators:
|
| 19 |
+
- machine-generated
|
| 20 |
+
source_datasets:
|
| 21 |
+
- original
|
| 22 |
+
configs:
|
| 23 |
+
- config_name: T17_eSLD
|
| 24 |
+
default: true
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path:
|
| 28 |
+
- DRIFT_input_eSLD/T17_benign_train.parquet
|
| 29 |
+
- DRIFT_input_eSLD/T17_dga_train.parquet
|
| 30 |
+
- split: validation
|
| 31 |
+
path:
|
| 32 |
+
- DRIFT_input_eSLD/T17_benign_val.parquet
|
| 33 |
+
- DRIFT_input_eSLD/T17_dga_val.parquet
|
| 34 |
+
- split: test
|
| 35 |
+
path:
|
| 36 |
+
- DRIFT_input_eSLD/T17_benign_test.parquet
|
| 37 |
+
- DRIFT_input_eSLD/T17_dga_test.parquet
|
| 38 |
+
- config_name: T18_eSLD
|
| 39 |
+
data_files:
|
| 40 |
+
- split: train
|
| 41 |
+
path:
|
| 42 |
+
- DRIFT_input_eSLD/T18_benign_train.parquet
|
| 43 |
+
- DRIFT_input_eSLD/T18_dga_train.parquet
|
| 44 |
+
- split: validation
|
| 45 |
+
path:
|
| 46 |
+
- DRIFT_input_eSLD/T18_benign_val.parquet
|
| 47 |
+
- DRIFT_input_eSLD/T18_dga_val.parquet
|
| 48 |
+
- split: test
|
| 49 |
+
path:
|
| 50 |
+
- DRIFT_input_eSLD/T18_benign_test.parquet
|
| 51 |
+
- DRIFT_input_eSLD/T18_dga_test.parquet
|
| 52 |
+
- config_name: T19_eSLD
|
| 53 |
+
data_files:
|
| 54 |
+
- split: train
|
| 55 |
+
path:
|
| 56 |
+
- DRIFT_input_eSLD/T19_benign_train.parquet
|
| 57 |
+
- DRIFT_input_eSLD/T19_dga_train.parquet
|
| 58 |
+
- split: validation
|
| 59 |
+
path:
|
| 60 |
+
- DRIFT_input_eSLD/T19_benign_val.parquet
|
| 61 |
+
- DRIFT_input_eSLD/T19_dga_val.parquet
|
| 62 |
+
- split: test
|
| 63 |
+
path:
|
| 64 |
+
- DRIFT_input_eSLD/T19_benign_test.parquet
|
| 65 |
+
- DRIFT_input_eSLD/T19_dga_test.parquet
|
| 66 |
+
- config_name: T20_eSLD
|
| 67 |
+
data_files:
|
| 68 |
+
- split: train
|
| 69 |
+
path:
|
| 70 |
+
- DRIFT_input_eSLD/T20_benign_train.parquet
|
| 71 |
+
- DRIFT_input_eSLD/T20_dga_train.parquet
|
| 72 |
+
- split: validation
|
| 73 |
+
path:
|
| 74 |
+
- DRIFT_input_eSLD/T20_benign_val.parquet
|
| 75 |
+
- DRIFT_input_eSLD/T20_dga_val.parquet
|
| 76 |
+
- split: test
|
| 77 |
+
path:
|
| 78 |
+
- DRIFT_input_eSLD/T20_benign_test.parquet
|
| 79 |
+
- DRIFT_input_eSLD/T20_dga_test.parquet
|
| 80 |
+
- config_name: T21_eSLD
|
| 81 |
+
data_files:
|
| 82 |
+
- split: train
|
| 83 |
+
path:
|
| 84 |
+
- DRIFT_input_eSLD/T21_benign_train.parquet
|
| 85 |
+
- DRIFT_input_eSLD/T21_dga_train.parquet
|
| 86 |
+
- split: validation
|
| 87 |
+
path:
|
| 88 |
+
- DRIFT_input_eSLD/T21_benign_val.parquet
|
| 89 |
+
- DRIFT_input_eSLD/T21_dga_val.parquet
|
| 90 |
+
- split: test
|
| 91 |
+
path:
|
| 92 |
+
- DRIFT_input_eSLD/T21_benign_test.parquet
|
| 93 |
+
- DRIFT_input_eSLD/T21_dga_test.parquet
|
| 94 |
+
- config_name: T22_eSLD
|
| 95 |
+
data_files:
|
| 96 |
+
- split: train
|
| 97 |
+
path:
|
| 98 |
+
- DRIFT_input_eSLD/T22_benign_train.parquet
|
| 99 |
+
- DRIFT_input_eSLD/T22_dga_train.parquet
|
| 100 |
+
- split: validation
|
| 101 |
+
path:
|
| 102 |
+
- DRIFT_input_eSLD/T22_benign_val.parquet
|
| 103 |
+
- DRIFT_input_eSLD/T22_dga_val.parquet
|
| 104 |
+
- split: test
|
| 105 |
+
path:
|
| 106 |
+
- DRIFT_input_eSLD/T22_benign_test.parquet
|
| 107 |
+
- DRIFT_input_eSLD/T22_dga_test.parquet
|
| 108 |
+
- config_name: T23_eSLD
|
| 109 |
+
data_files:
|
| 110 |
+
- split: train
|
| 111 |
+
path:
|
| 112 |
+
- DRIFT_input_eSLD/T23_benign_train.parquet
|
| 113 |
+
- DRIFT_input_eSLD/T23_dga_train.parquet
|
| 114 |
+
- split: validation
|
| 115 |
+
path:
|
| 116 |
+
- DRIFT_input_eSLD/T23_benign_val.parquet
|
| 117 |
+
- DRIFT_input_eSLD/T23_dga_val.parquet
|
| 118 |
+
- split: test
|
| 119 |
+
path:
|
| 120 |
+
- DRIFT_input_eSLD/T23_benign_test.parquet
|
| 121 |
+
- DRIFT_input_eSLD/T23_dga_test.parquet
|
| 122 |
+
- config_name: T24_eSLD
|
| 123 |
+
data_files:
|
| 124 |
+
- split: train
|
| 125 |
+
path:
|
| 126 |
+
- DRIFT_input_eSLD/T24_benign_train.parquet
|
| 127 |
+
- DRIFT_input_eSLD/T24_dga_train.parquet
|
| 128 |
+
- split: validation
|
| 129 |
+
path:
|
| 130 |
+
- DRIFT_input_eSLD/T24_benign_val.parquet
|
| 131 |
+
- DRIFT_input_eSLD/T24_dga_val.parquet
|
| 132 |
+
- split: test
|
| 133 |
+
path:
|
| 134 |
+
- DRIFT_input_eSLD/T24_benign_test.parquet
|
| 135 |
+
- DRIFT_input_eSLD/T24_dga_test.parquet
|
| 136 |
+
- config_name: T25_eSLD
|
| 137 |
+
data_files:
|
| 138 |
+
- split: train
|
| 139 |
+
path:
|
| 140 |
+
- DRIFT_input_eSLD/T25_benign_train.parquet
|
| 141 |
+
- DRIFT_input_eSLD/T25_dga_train.parquet
|
| 142 |
+
- split: validation
|
| 143 |
+
path:
|
| 144 |
+
- DRIFT_input_eSLD/T25_benign_val.parquet
|
| 145 |
+
- DRIFT_input_eSLD/T25_dga_val.parquet
|
| 146 |
+
- split: test
|
| 147 |
+
path:
|
| 148 |
+
- DRIFT_input_eSLD/T25_benign_test.parquet
|
| 149 |
+
- DRIFT_input_eSLD/T25_dga_test.parquet
|
| 150 |
+
- config_name: T17_raw
|
| 151 |
+
data_files:
|
| 152 |
+
- split: benign
|
| 153 |
+
path: raw_including_TLD/T17_benign.parquet
|
| 154 |
+
- split: dga
|
| 155 |
+
path: raw_including_TLD/T17_dga.parquet
|
| 156 |
+
- config_name: T18_raw
|
| 157 |
+
data_files:
|
| 158 |
+
- split: benign
|
| 159 |
+
path: raw_including_TLD/T18_benign.parquet
|
| 160 |
+
- split: dga
|
| 161 |
+
path: raw_including_TLD/T18_dga.parquet
|
| 162 |
+
- config_name: T19_raw
|
| 163 |
+
data_files:
|
| 164 |
+
- split: benign
|
| 165 |
+
path: raw_including_TLD/T19_benign.parquet
|
| 166 |
+
- split: dga
|
| 167 |
+
path: raw_including_TLD/T19_dga.parquet
|
| 168 |
+
- config_name: T20_raw
|
| 169 |
+
data_files:
|
| 170 |
+
- split: benign
|
| 171 |
+
path: raw_including_TLD/T20_benign.parquet
|
| 172 |
+
- split: dga
|
| 173 |
+
path: raw_including_TLD/T20_dga.parquet
|
| 174 |
+
- config_name: T21_raw
|
| 175 |
+
data_files:
|
| 176 |
+
- split: benign
|
| 177 |
+
path: raw_including_TLD/T21_benign.parquet
|
| 178 |
+
- split: dga
|
| 179 |
+
path: raw_including_TLD/T21_dga.parquet
|
| 180 |
+
- config_name: T22_raw
|
| 181 |
+
data_files:
|
| 182 |
+
- split: benign
|
| 183 |
+
path: raw_including_TLD/T22_benign.parquet
|
| 184 |
+
- split: dga
|
| 185 |
+
path: raw_including_TLD/T22_dga.parquet
|
| 186 |
+
- config_name: T23_raw
|
| 187 |
+
data_files:
|
| 188 |
+
- split: benign
|
| 189 |
+
path: raw_including_TLD/T23_benign.parquet
|
| 190 |
+
- split: dga
|
| 191 |
+
path: raw_including_TLD/T23_dga.parquet
|
| 192 |
+
- config_name: T24_raw
|
| 193 |
+
data_files:
|
| 194 |
+
- split: benign
|
| 195 |
+
path: raw_including_TLD/T24_benign.parquet
|
| 196 |
+
- split: dga
|
| 197 |
+
path: raw_including_TLD/T24_dga.parquet
|
| 198 |
+
- config_name: T25_raw
|
| 199 |
+
data_files:
|
| 200 |
+
- split: benign
|
| 201 |
+
path: raw_including_TLD/T25_benign.parquet
|
| 202 |
+
- split: dga
|
| 203 |
+
path: raw_including_TLD/T25_dga.parquet
|
| 204 |
+
---
|
| 205 |
+
# DRIFT Dataset
|
| 206 |
+
|
| 207 |
+
**Longitudinal Benign and DGA Domain Name Dataset (2017–2025)**
|
| 208 |
+
|
| 209 |
+
- **Authors:** Chaeyoung Lee*, Chaeri Jung*, Seonghoon Jeong (* Equal contribution)
|
| 210 |
+
- **Affiliation:** Division of Artificial Intelligence Engineering, Sookmyung Women's University
|
| 211 |
+
- **Paper:** *DRIFT: Drift-Resilient Invariant-Feature Transformer for DGA Detection*
|
| 212 |
+
- **Venue:** IEEE/IFIP International Conference on Dependable Systems and Networks (**DSN 2026**), accepted
|
| 213 |
+
- **Dataset DOI:** [10.21227/za2s-9e09](https://dx.doi.org/10.21227/za2s-9e09) (IEEE DataPort)
|
| 214 |
+
|
| 215 |
+
---
|
| 216 |
+
|
| 217 |
+
## Description
|
| 218 |
+
|
| 219 |
+
This dataset was curated and used in the paper "DRIFT: Drift-Resilient Invariant-Feature Transformer for DGA Detection", accepted at IEEE/IFIP DSN 2026.
|
| 220 |
+
|
| 221 |
+
This dataset provides a nine-year longitudinal collection (2017–2025) of benign and DGA (Domain Generation Algorithm) domain names, designed to support evaluation of DGA detectors under real-world concept drift. Most existing DGA datasets are constructed from a single time period, which masks how quickly detection models degrade when exposed to evolving domain distributions. This dataset addresses that gap by providing temporally aligned benign and malicious domains, enabling forward-chaining experiments that simulate realistic deployment conditions.
|
| 222 |
+
|
| 223 |
+
| | Count | Source |
|
| 224 |
+
| --------------- | ------------------------ | --------------------------------------------------------- |
|
| 225 |
+
| Benign domains | ~49.4M unique | Alexa Top 1M + Tranco Top 1M |
|
| 226 |
+
| DGA domains | ~149.4M unique | DGArchive · 148 families (133 char-based, 15 word-based) |
|
| 227 |
+
| **Total** | **~198.8M unique** | |
|
| 228 |
+
|
| 229 |
+
### Cumulative Dataset Statistics (from Table I of the paper)
|
| 230 |
+
|
| 231 |
+
| Period | Benign (Total) | Benign (Unique) | DGA (Total) | DGA (Unique) | Unique DGA Families |
|
| 232 |
+
| ---------- | -------------- | --------------- | ----------- | ------------ | ------------------- |
|
| 233 |
+
| 2017 | 1,913,418 | 1,913,418 | 14,888,780 | 14,888,780 | 58 |
|
| 234 |
+
| 2017–2018 | 18,729,906 | 17,129,997 | 30,004,459 | 29,305,992 | 62 |
|
| 235 |
+
| 2017–2019 | 40,508,820 | 29,359,365 | 46,423,032 | 44,940,295 | 65 |
|
| 236 |
+
| 2017–2020 | 58,149,929 | 36,796,092 | 65,116,780 | 62,272,656 | 71 |
|
| 237 |
+
| 2017–2021 | 72,679,722 | 41,856,865 | 84,661,350 | 79,752,910 | 77 |
|
| 238 |
+
| 2017–2022 | 88,262,644 | 47,358,571 | 104,424,484 | 97,107,537 | 80 |
|
| 239 |
+
| 2017–2023 | 92,962,312 | 48,190,058 | 124,186,047 | 114,189,860 | 81 |
|
| 240 |
+
| 2017–2024 | 94,833,375 | 48,805,692 | 144,981,221 | 132,177,150 | 148 |
|
| 241 |
+
| 2017–2025 | 96,849,575 | 49,433,110 | 165,824,441 | 149,405,584 | 148 |
|
| 242 |
+
|
| 243 |
+
> Note: counts above are **cumulative** across years (as reported in the paper). The per-year parquet files in this repository are the per-period snapshots used as model input.
|
| 244 |
+
|
| 245 |
+
---
|
| 246 |
+
|
| 247 |
+
## Data Collection
|
| 248 |
+
|
| 249 |
+
**Benign domains** are sourced from Alexa Top 1M and Tranco Top 1M. Historical Alexa snapshots were retrieved via the Internet Archive Wayback Machine, and historical Tranco lists were obtained through the Tranco API. Yearly snapshots were collected from 2017 to 2025. Domains appearing in both the benign and DGA sets were removed to prevent cross-contamination.
|
| 250 |
+
|
| 251 |
+
**DGA domains** are sourced from **DGArchive**, maintained by Fraunhofer FKIE. DGArchive provides deterministic domain outputs derived directly from reverse-engineered malware algorithms and seeds, along with per-domain timestamps. 148 out of 151 available families were selected based on suitability for longitudinal analysis, covering both character-based (133 families) and word-based (15 families) generation schemes.
|
| 252 |
+
|
| 253 |
+
**Preprocessing:**
|
| 254 |
+
|
| 255 |
+
- All domain names are lowercased
|
| 256 |
+
- Effective second-level domains (eSLDs) are extracted by stripping TLD and ccTLD suffixes
|
| 257 |
+
- Deduplication is performed on effective eSLDs
|
| 258 |
+
- Characters are restricted to alphanumerics, hyphens (`-`), and dots (`.`) per IETF RFC 1035
|
| 259 |
+
|
| 260 |
+
---
|
| 261 |
+
|
| 262 |
+
## Repository Layout
|
| 263 |
+
|
| 264 |
+
```
|
| 265 |
+
dga-detection-drift26dsn/
|
| 266 |
+
├── DRIFT_input_eSLD/ # eSLD, 72 files: T{YY}_{benign,dga}[_{train,val,test}].parquet
|
| 267 |
+
│ ├── T17_benign.parquet # Full 2017 benign (eSLD)
|
| 268 |
+
│ ├── T17_benign_train.parquet # 1,500,000 samples
|
| 269 |
+
│ ├── T17_benign_val.parquet # 150,000 samples
|
| 270 |
+
│ ├── T17_benign_test.parquet # Remaining samples
|
| 271 |
+
│ ├── T17_dga.parquet # Full 2017 DGA (eSLD)
|
| 272 |
+
│ ├── T17_dga_train.parquet
|
| 273 |
+
│ ├── T17_dga_val.parquet
|
| 274 |
+
│ ├── T17_dga_test.parquet
|
| 275 |
+
│ ├── T18_benign.parquet
|
| 276 |
+
│ ├── ... (same pattern for T18–T25)
|
| 277 |
+
│ └── T25_dga_val.parquet
|
| 278 |
+
└── raw_including_TLD/ # raw + family, 18 files: T{YY}_{benign,dga}.parquet
|
| 279 |
+
├── T17_benign.parquet # Full 2017 benign (with TLD)
|
| 280 |
+
├── T17_dga.parquet # Full 2017 DGA (with TLD + family)
|
| 281 |
+
├── T18_benign.parquet
|
| 282 |
+
├── ... (same pattern for T18–T25)
|
| 283 |
+
└── T25_dga.parquet
|
| 284 |
+
```
|
| 285 |
+
|
| 286 |
+
**File naming convention:** `T{YY}_{class}[_{split}].parquet`
|
| 287 |
+
|
| 288 |
+
- `YY`: two-digit year (`17` = 2017 … `25` = 2025)
|
| 289 |
+
- `class`: `benign` or `dga`
|
| 290 |
+
- `split` (optional): `train`, `val`, or `test` — omitted for the full yearly file
|
| 291 |
+
|
| 292 |
+
**Split sizes (`DRIFT_input_eSLD` only):**
|
| 293 |
+
|
| 294 |
+
- `train`: 1,500,000 samples per class per year
|
| 295 |
+
- `val`: 150,000 samples per class per year (10% of train)
|
| 296 |
+
- `test`: remaining samples (varies by year and class)
|
| 297 |
+
|
| 298 |
+
The train size was determined by the smallest yearly class file across all years, ensuring no class/year combination runs out of samples. The full `T{YY}_{class}.parquet` files are the union of train + val + test for that year and class.
|
| 299 |
+
|
| 300 |
+
`raw_including_TLD/` provides only full yearly files (no pre-split), as it is intended for reference and custom preprocessing rather than direct model input.
|
| 301 |
+
|
| 302 |
+
---
|
| 303 |
+
|
| 304 |
+
## Format
|
| 305 |
+
|
| 306 |
+
### `*_eSLD` configs (DRIFT_input_eSLD/)
|
| 307 |
+
|
| 308 |
+
All files are *.parquet with the following columns:
|
| 309 |
+
|
| 310 |
+
| Column | Type | Description |
|
| 311 |
+
| ---------- | ------ | ----------------------------------------------------------------------------- |
|
| 312 |
+
| `domain` | string | Effective second-level domain (eSLD), TLD and ccTLD stripped (e.g.`google`) |
|
| 313 |
+
| `label` | int | `0` = benign, `1` = DGA |
|
| 314 |
+
|
| 315 |
+
**Example rows:**
|
| 316 |
+
|
| 317 |
+
```
|
| 318 |
+
domain,label
|
| 319 |
+
google,0
|
| 320 |
+
vutotoid,1
|
| 321 |
+
runtime-incorrect,1
|
| 322 |
+
```
|
| 323 |
+
|
| 324 |
+
### `*_raw` configs (raw_including_TLD/)
|
| 325 |
+
|
| 326 |
+
All files are *.parquet with the following columns:
|
| 327 |
+
|
| 328 |
+
| Column | Type | Description |
|
| 329 |
+
| ---------- | ------ | ----------------------------------------------------------------------------- |
|
| 330 |
+
| `domain` | string | Raw domain name including TLD (e.g.`google.com`) |
|
| 331 |
+
| `label` | int | `0` = benign, `1` = DGA |
|
| 332 |
+
| `family` | string | DGA family name (e.g.`virut`, `qsnatch`); `"benign"` for benign domains |
|
| 333 |
+
|
| 334 |
+
**Example rows:**
|
| 335 |
+
|
| 336 |
+
```
|
| 337 |
+
domain,label,family
|
| 338 |
+
google.com,0,benign
|
| 339 |
+
sbhya.com,1,virut
|
| 340 |
+
w0gv.gl,1,qsnatch
|
| 341 |
+
```
|
| 342 |
+
|
| 343 |
+
---
|
| 344 |
+
|
| 345 |
+
## Quick Start
|
| 346 |
+
|
| 347 |
+
### Usage
|
| 348 |
+
|
| 349 |
+
This repository exposes **two representations**, each split into **per-year configs** (`T17`–`T25`):
|
| 350 |
+
|
| 351 |
+
- **`T{YY}_eSLD`** — effective second-level domain only (TLD/ccTLD stripped). Benign + DGA are merged into ready-to-train `train` / `validation` / `test` splits; the `label` column distinguishes the class. This is the direct DRIFT model input.
|
| 352 |
+
- **`T{YY}_raw`** — raw domain (including TLD) plus the DGA `family` label. Provided as `benign` / `dga` splits for reference and custom preprocessing.
|
| 353 |
+
|
| 354 |
+
```python
|
| 355 |
+
from datasets import load_dataset
|
| 356 |
+
|
| 357 |
+
# eSLD model input — load one within-year partition of 2020 (benign + DGA, with label).
|
| 358 |
+
# NOTE: `split` here selects a packaged file partition, NOT a forward-chaining role —
|
| 359 |
+
# see the Recommended Evaluation Protocol below for how to assemble train/test by year.
|
| 360 |
+
drift_input = load_dataset("snsec-net/dga-detection-drift26dsn", "T20_eSLD", split="test")
|
| 361 |
+
|
| 362 |
+
# raw, with TLD + DGA family — e.g. 2017 DGA domains
|
| 363 |
+
raw = load_dataset("snsec-net/dga-detection-drift26dsn", "T17_raw", split="dga")
|
| 364 |
+
```
|
| 365 |
+
|
| 366 |
+
### Recommended Evaluation Protocol (Forward-Chaining)
|
| 367 |
+
|
| 368 |
+
DRIFT measures **temporal robustness**, so the train/test distinction is defined **by time, not by the split names.**
|
| 369 |
+
|
| 370 |
+
> **Important — what the `split` names mean.** Each yearly config ships `train` / `validation` / `test` splits, but these are just **within-year partitions of that one year's data** (an artifact of how the files were packaged); they are **not** conventional ML train/test roles. The forward-chaining role of any data is decided by **which year it belongs to** relative to your cutoff — so a *training* year's `test` partition is still training data, and a *test* year's `train` partition is still test data.
|
| 371 |
+
|
| 372 |
+
The protocol, stated temporally:
|
| 373 |
+
|
| 374 |
+
1. **Stand at a point in time** (in the paper, the end of 2019).
|
| 375 |
+
2. **Train** on **all data strictly before** that point (2017–2019), holding out a small slice per year for validation / early stopping.
|
| 376 |
+
3. **Freeze** the model, then **evaluate it year by year** on each later year (2020, 2021, …, 2025) — each year tested independently, so accuracy degradation reveals drift over time.
|
| 377 |
+
|
| 378 |
+
Mapping that onto the packaged splits (`full year = train + validation + test`):
|
| 379 |
+
|
| 380 |
+
| Forward-chaining role | Years | What to load |
|
| 381 |
+
| -------------------------------------------------------------------------------------- | ------------------ | --------------------------------------------------------------------------- |
|
| 382 |
+
| **Training data** | 2017–2019 | full year**minus** the val holdout → `train` + `test` partitions |
|
| 383 |
+
| **Validation** (early stopping / model selection — the one *real* ML val set) | 2017–2019 | the `validation` partition (150k benign + 150k DGA per year) |
|
| 384 |
+
| **Test** (frozen model, scored per year) | each of 2020–2025 | the**whole** year → `train` + `validation` + `test` partitions |
|
| 385 |
+
|
| 386 |
+
So **do not** read `split="train"` as "the training set" or `split="test"` as "the test set": for a training year you want `train`+`test` (the full year minus the val holdout), and for a later year you want the *entire* year. Using `split="train"`/`split="test"` literally would mix the temporal roles and silently drop most of the data — e.g. `split="train"` is capped at 1.5M/class, discarding the `test` partition that holds the bulk of each year (for 2017 DGA, **13.2M of 14.9M** domains live in `test`).
|
| 387 |
+
|
| 388 |
+
```python
|
| 389 |
+
from datasets import load_dataset, concatenate_datasets
|
| 390 |
+
|
| 391 |
+
REPO = "snsec-net/dga-detection-drift26dsn"
|
| 392 |
+
TRAIN_YEARS = ["17", "18", "19"]
|
| 393 |
+
|
| 394 |
+
# Training set: FULL 2017–2019 data minus the 150k/class held-out validation.
|
| 395 |
+
# full = train + validation + test => full - validation = train + test
|
| 396 |
+
train = concatenate_datasets([
|
| 397 |
+
load_dataset(REPO, f"T{y}_eSLD", split="train+test") for y in TRAIN_YEARS
|
| 398 |
+
])
|
| 399 |
+
|
| 400 |
+
# Held-out validation: 150k benign + 150k DGA per training year
|
| 401 |
+
val = concatenate_datasets([
|
| 402 |
+
load_dataset(REPO, f"T{y}_eSLD", split="validation") for y in TRAIN_YEARS
|
| 403 |
+
])
|
| 404 |
+
|
| 405 |
+
# Test on a strictly-newer year — the FULL year (2020–2025 are never used for training)
|
| 406 |
+
test_2020 = load_dataset(REPO, "T20_eSLD", split="train+validation+test")
|
| 407 |
+
```
|
| 408 |
+
|
| 409 |
+
**Not running forward-chaining?** If you are not running a longitudinal (forward-chaining) evaluation — e.g. you are training and testing within a single year, or pooling several years together as one ordinary dataset — you can use the `train` / `validation` / `test` partitions at face value. The temporal caveat above applies only when a year's role is decided by its position relative to a cutoff.
|
| 410 |
+
|
| 411 |
+
---
|
| 412 |
+
|
| 413 |
+
## Citation
|
| 414 |
+
|
| 415 |
+
If you use this dataset, please cite:
|
| 416 |
+
|
| 417 |
+
**Dataset:**
|
| 418 |
+
|
| 419 |
+
```
|
| 420 |
+
C. Lee, C. Jung, and S. Jeong, "Longitudinal Benign and DGA Domain Name Dataset,"
|
| 421 |
+
IEEE DataPort, 2026. doi: 10.21227/za2s-9e09.
|
| 422 |
+
Available: https://dx.doi.org/10.21227/za2s-9e09
|
| 423 |
+
```
|
| 424 |
+
|
| 425 |
+
**Paper:**
|
| 426 |
+
|
| 427 |
+
```
|
| 428 |
+
C. Lee, C. Jung, and S. Jeong, "DRIFT: Drift-Resilient Invariant-Feature Transformer
|
| 429 |
+
for DGA Detection," in Proc. IEEE/IFIP DSN, 2026. [to be updated with DOI upon publication]
|
| 430 |
+
```
|
| 431 |
+
|
| 432 |
+
---
|
| 433 |
+
|
| 434 |
+
## Intended Use & Ethical Considerations
|
| 435 |
+
|
| 436 |
+
This dataset is released **for cybersecurity research** — building and benchmarking DGA detectors, studying concept drift, and improving network defenses. It must **not** be used to operate, register, or distribute malicious domains. Use is restricted to **non-commercial research and personal use** per the license below.
|
| 437 |
+
|
| 438 |
+
---
|
| 439 |
+
|
| 440 |
+
## License
|
| 441 |
+
|
| 442 |
+
DGArchive is governed by the CC BY-NC-SA 3.0 license. Therefore, this dataset may not be used for commercial purposes, but is available for research or personal use. If this license does not meet your needs, we are open to individual licensing agreements.
|
| 443 |
+
|
| 444 |
+
https://creativecommons.org/licenses/by-nc-sa/3.0/
|
| 445 |
+
|
| 446 |
+
---
|
| 447 |
+
|
| 448 |
+
## References
|
| 449 |
+
|
| 450 |
+
[1] D. Plohmann, K. Yakdan, M. Klatt, J. Bader, and E. Gerhards-Padilla, "A comprehensive measurement study of domain generating malware," in *Proc. USENIX Security*, 2016.
|
| 451 |
+
|
| 452 |
+
[2] V. Le Pochat, T. Van Goethem, S. Tajalizadehkhoob, M. Korczynski, and W. Joosen, "Tranco: A research-oriented top sites ranking hardened against manipulation," in *Proc. NDSS*, 2019.
|