--- license: apache-2.0 language: - en tags: - cybersecurity - mitre-attack - ioc-extraction - phishing-detection - log-analysis pretty_name: Astraea Unified Threat Dataset v4 size_categories: 100K **Note:** MITRE and attack-chain tasks currently have no dedicated test split. Hold out a subset of `train.parquet` or report metrics on validation data for those tasks. --- ## Supported Tasks | Task | Head type | Label columns | Eval split | |---|---|---|---| | Log triage | Sequence classification | `is_malicious` | `val` | | IOC extraction | Token classification (NER) | `ioc_spans` | `val` | | MITRE mapping | Multi-label classification | `mitre_tactic`, `mitre_technique` | train holdout | | Attack chain | Sequence / multi-label classification | `attack_stage` | train holdout | | Phishing detection | Sequence classification | `is_malicious` | `test` | --- ## Technical Features - **2026 threat-vector telemetry:** Simulated enterprise attack surfaces including NHI/service-account abuse, CI/CD and OAuth compromise patterns, cloud audit anomalies, EDR alerts, and generative-AI-style spearphishing artifacts. - **Benign background baseline:** Large volumes of benign Windows, Linux, database, cloud, and EDR telemetry to reduce false-positive saturation in production-like settings. - **Malicious augmentations:** Additional malicious Windows, Linux, EDR, cloud, and netflow examples (not present in the legacy unified export) so models cannot rely on log-type shortcuts. - **Token boundary fuzzing:** IPs, domains, hashes, and filenames are randomized across examples to encourage behavioral pattern learning over memorization. - **Public holdout:** All 20,000 public phishing emails are isolated in `test.parquet` for unbiased evaluation. --- ## Data Schema Each row contains 12 structured columns: | Column | Type | Description | |---|---|---| | `row_id` | int64 | Row index **within each split file** (not a global ID across files) | | `text` | string | Log stream or email payload; primary model input | | `source` | string | Provenance label (e.g. `synthetic_cloud`, `public_phishing`) | | `label_type` | string | Task router (`log_classification`, `ioc_extraction`, etc.) | | `mitre_tactic` | string | MITRE ATT&CK tactic or `none` | | `mitre_technique` | string | MITRE technique ID (e.g. `T1059.001`) or `none` | | `ioc_spans` | JSON string | Span annotations: `[{"start": int, "end": int, "type": str, "value": str}]` | | `anomaly_score` | float | Continuous score in [0.0, 1.0] | | `attack_stage` | string | Kill-chain stage label(s) | | `is_malicious` | bool | Binary threat label | | `log_type` | string | Telemetry subtype (e.g. `windows_event`, `kubernetes`, `iam`) | | `metadata` | JSON string | Ancillary provenance fields | ### IOC span types `ip`, `domain`, `email`, `filename`, `hash_md5`, `hash_sha256`, `hash_sha1`, `punycode`, `registry_key` --- ## Quick Start ```python from datasets import load_dataset # Load from a local directory or Hugging Face Hub train = load_dataset("parquet", data_files="train.parquet", split="train") val = load_dataset("parquet", data_files="val.parquet", split="train") test = load_dataset("parquet", data_files="test.parquet", split="train") # Example: log classification logs = train.filter(lambda x: x["label_type"] == "log_classification") print(logs[0]["text"]) print(logs[0]["is_malicious"]) ``` For multi-task fine-tuning, pass the full `text` field (including the `[TASK=...]` prefix) to models such as ModernBERT, and use task-specific classification or token heads keyed on `label_type`. --- ## Citation ```bibtex @misc{astraea-unified-threat-v4, title = {Astraea Unified Threat Dataset v4: Balanced Long-Context Telemetry for Multi-Task SecOps Encoders}, author = {Auren Research}, year = {2026}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/auren-research/astraea-unified-threat}} } ```