Full Guide
Executive Summary
A dataset is often the most-cited part of a paper — long after your specific technique is patched, your labeled corpus of attack telemetry remains useful to every defender training a detector. Yet most practitioners end an experiment with a folder of raw PCAPs and EVTX files that nobody, including their future self, can use. The gap between "I captured telemetry" and "I released a dataset" is schema, labeling, cleaning, versioning, de-identification, and documentation.
This module turns the messy artifacts from your trial loop (Module 16) into a structured, labeled, versioned, ethically-releasable dataset with a schema and a Datasheet that make it reusable by the whole community.
The one-line mental model: Raw logs are exhaust. A dataset is a designed artifact — schema'd, labeled, versioned, and documented well enough that a stranger trusts and reuses it.
Learning Outcomes
By the end of this module you will be able to:
- Design a schema for attack telemetry.
- Label, clean, and version datasets (DVC, Datasheets).
- De-identify sensitive fields for release.
- Document a dataset with a Datasheet for Datasets.
1. From Raw Artifacts to a Designed Schema
Raw telemetry is heterogeneous — PCAP, EVTX, JSON, vendor logs — with different time formats and no common key. The first move is a unifying schema that normalizes every source into joinable records keyed on your ground truth.
flowchart LR
R1["PCAP"] --> N["Normalizer"]
R2["Sysmon EVTX"] --> N
R3["ETW"] --> N
R4["EDR telemetry"] --> N
GT["Ground-truth log<br/>(trial_id, action, ts)"] --> N
N --> S["Unified records<br/>(common schema, joined on<br/>trial_id + timestamp)"]
style GT fill:#0c2a22,stroke:#10e793,color:#d1fae5
style S fill:#1a230c,stroke:#fca311,color:#fef3c7A workable core schema:
| Field | Type | Source | Notes |
|---|---|---|---|
trial_id | string | orchestrator | Join key to run log (Mod 16) |
ts | int64 (epoch ns) | normalized | Clock-synced (Mod 13) |
source | enum | which sensor | sysmon/etw/pcap/edr |
event_type | enum | mapped | proccreate, netconn, alert... |
attack_action | string | ground truth | ATT&CK ID or benign |
label | enum | derived | malicious / benign / detected |
raw_ref | string | pointer | path/offset into raw artifact |
The attack_action and label columns are what make this a supervised dataset — every record knows whether it came from an attacker action and whether the defender caught it.
2. Labeling: The Value Multiplier
Labels are what turn telemetry into a benchmark. Your ground-truth action log (Module 13/16) is the labeling oracle: any event within a known action window inherits that action's label.
LABELING BY JOIN (ground truth → events) Ground truth: t=130.40 ACTION=injection (T1055.012) trial=7 window = [130.40, 132.40] (2s attribution window) Events in window: t=130.41 sysmon proc_create → label: malicious / T1055.012 t=130.55 etw remote_thread → label: malicious / T1055.012 t=131.02 edr (silent) → label: malicious, detected=FALSE t=131.90 pcap c2_beacon → label: malicious / T1071 Events outside any window → label: benignTwo labeling hazards: the attribution window must be tuned (too wide and benign noise gets mislabeled malicious; too narrow and you miss delayed effects), and ambiguous events (could be attack or background) need a documented tie-break rule. Reviewers will ask how you labeled — a precise, rule-based answer (not "manually, by inspection") is what they want.
3. Cleaning and Versioning
A releasable dataset is cleaned (deduped, validated, gaps documented) and versioned (so a citation pins an exact snapshot). Version with DVC or Git-LFS, not by emailing a .zip.
flowchart LR
RAW["Raw capture"] --> VAL["Validate<br/>(schema, ranges, nulls)"]
VAL --> DED["De-dup +<br/>resolve conflicts"]
DED --> DOC["Document gaps<br/>(missing trials, censored)"]
DOC --> VER["Version<br/>(DVC hash + tag v1.0)"]
VER --> REL["Release<br/>(Zenodo DOI)"]
style VER fill:#0c2a22,stroke:#10e793,color:#d1fae5
style REL fill:#1a230c,stroke:#fca311,color:#fef3c7Cleaning is documented, never silent: if you drop trials, say how many and why (it reconciles with your run-log exclusions from Module 16). Versioning gives the dataset a hash and a tag (v1.0) so that "we evaluate on dataset v1.0 (DOI ...)" pins exactly what you used, satisfying reproducibility (Module 14) and letting others compare against the same data.
4. De-Identification for Release
Attack telemetry captured even in a lab can carry sensitive content — internal IPs, hostnames, usernames, tokens, and (if any real traffic leaked in) PII. Releasing it without de-identification is an ethics violation and a desk-reject risk.
| Sensitive field | Risk | De-identification |
|---|---|---|
| Internal IPs | Network topology leak | Consistent pseudonymization (10.0.0.5→hostA) |
| Usernames | PII / org exposure | Hash or map to user_01 |
| Tokens / creds | Live secret leak | Redact entirely (never hash) |
| Payload bytes | May contain real C2 / PII | Keep only if synthetic; else redact |
| Timestamps | Re-identification by correlation | Optionally offset to epoch 0 |
Use consistent pseudonymization — the same real IP maps to the same fake IP everywhere — so analytical relationships survive while identity does not. Secrets get redacted, never merely hashed (hashes of low-entropy secrets are reversible). Document exactly what you transformed, so users know the data's fidelity limits.
5. The Datasheet for Datasets
The artifact that makes a dataset trustworthy and reusable is a Datasheet (Gebru et al.) — a structured document answering the questions a reuser will have. It is to a dataset what a methodology section is to an experiment.
DATASHEET (abridged) — fields a reviewer/reuser expects Motivation : why collected, for what task Composition : N records, classes, label scheme, time span Collection : lab setup (Mod 11), sensors (Mod 13), trial protocol Preprocessing : normalization, labeling rule, cleaning decisions Distribution : license, DOI, format, schema doc Limitations : known biases, gaps, de-id fidelity loss Ethics : authorization, de-identification, intended useThe Limitations and Ethics rows are where credibility is won. Honestly stating "labels rely on a 2s attribution window; events with >2s delayed effects may be under-labeled" tells reusers exactly how far to trust the data — and tells reviewers you understand your own artifact. A dataset with a real datasheet is the kind that earns the Available + Reusable badges and the long-tail citations.
Step-by-Step Practical Exercise
Goal: Convert the trial artifacts from Module 16 into a small, schema'd, labeled, de-identified, documented dataset.
Time: ~90 minutes. You need: artifacts + run log from ≥10 trials (Module 16).
Step 1 — Define the schema (15 min). Write the §1 schema table for your sources. Confirm every record can join to a trial_id and a ts.
Step 2 — Normalize + label (25 min). Write a normalizer that maps each source into the schema and applies the §2 labeling join (with a stated attribution window and tie-break rule).
Step 3 — Clean + document (15 min). Validate ranges, de-dup, and document any dropped trials with reasons (reconcile with your run-log exclusions).
Step 4 — De-identify (15 min). Apply consistent pseudonymization to IPs/usernames and redact any secrets (§4). Write down exactly what you transformed.
Step 5 — Write the datasheet (20 min). Fill the seven §5 rows, with honest Limitations and Ethics entries. Tag the dataset v0.1 and note where it would be archived (Zenodo).
Deliverable: a schema'd, labeled, cleaned, de-identified dataset (≥10 trials) plus a datasheet. This is a citable artifact in its own right and the input to your statistics (Module 19) and figures (Module 20).
Where to go next
- Module 19 — Quantifying Evasion Efficacy and Attack Impact runs inferential statistics on this labeled dataset.
- Module 20 — Creating Data Visualizations builds publication-grade figures from these records.
Related reading on the blog: "Your PCAP Folder Is Not a Dataset" and "Datasheets for Attack Telemetry: A Reuse Story".