session_id large_string | scenario large_string | label large_string | severity large_string | primary_source large_string | source_types list | start_time large_string | end_time large_string | num_events int64 | num_malicious_events int64 | mitre_tactics list | mitre_techniques list | log_text large_string | summary large_string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sess-2e0bb30e27bc | benign_ssh_admin | benign | none | ssh_auth | [
"process_exec",
"ssh_auth"
] | 2025-12-03T03:53:37.107Z | 2025-12-03T04:54:41.979Z | 15 | 0 | [] | [] | Dec 3 03:53:37 bastion-01 sshd[29964]: Accepted publickey for quinn.h46 from 10.0.21.57 port 42868 ssh2: ED25519 SHA256:i6avgzgn3lznqry2ghdvc2lzvea3egvyhtsqwylbdeu
Dec 3 03:53:37 bastion-01 sshd[53356]: pam_unix(sshd:session): session opened for user quinn.h46(uid=1087) by (uid=0)
type=EXECVE msg=audit(1764734078.238... | Administrators logged in with keys from internal addresses and ran routine maintenance. |
sess-543116d9eba5 | cloud_key_compromise | malicious | high | cloudtrail | [
"cloudtrail"
] | 2025-04-06T12:28:02.066Z | 2025-04-06T14:21:00.043Z | 30 | 24 | [
"initial-access",
"discovery",
"privilege-escalation",
"collection"
] | [
"T1078.004",
"T1087.004",
"T1580",
"T1619",
"T1098.003",
"T1530"
] | {"eventVersion":"1.09","userIdentity":{"type":"IAMUser","arn":"arn:aws:iam::000047415949:user/ci-deployer","accountId":"000047415949","accessKeyId":"AKIALWNPZ0H1GEXAMPLE","userName":"ci-deployer"},"eventTime":"2025-04-06T12:28:02Z","eventSource":"s3.amazonaws.com","eventName":"PutObject","awsRegion":"us-east-1","source... | Access key for IAM user 'ci-deployer' was used from unfamiliar IP 203.0.113.229 with a new user agent to enumerate IAM/EC2/S3, attempt privilege escalation (denied), and download objects from s3://acme-customer-exports. |
sess-f149dc4ec32b | ssh_bruteforce_persistence | malicious | high | ssh_auth | [
"process_exec",
"ssh_auth"
] | 2025-02-14T08:14:42.648Z | 2025-02-14T08:21:37.024Z | 116 | 111 | [
"credential-access",
"initial-access",
"discovery",
"command-and-control",
"collection",
"execution",
"persistence"
] | [
"T1110.001",
"T1078",
"T1033",
"T1105",
"T1005",
"T1059.004",
"T1082",
"T1053.003"
] | Feb 14 08:14:42 jump-03 sshd[10398]: Failed password for git from 203.0.113.115 port 50495 ssh2
Feb 14 08:14:45 jump-03 sshd[30485]: Failed password for git from 203.0.113.115 port 44815 ssh2
Feb 14 08:14:48 jump-03 sshd[21110]: Invalid user guest from 203.0.113.115 port 41405
Feb 14 08:14:50 jump-03 sshd[54631]: Inval... | 101 failed SSH logins from 203.0.113.115 against jump-03 preceded a successful password login as 'git', followed by discovery, tool download and cron persistence. |
sess-1786a876d46d | dns_tunneling_exfil | malicious | high | dns_query | [
"dns_query"
] | 2025-06-15T01:37:47.808Z | 2025-06-15T01:46:52.738Z | 164 | 124 | [
"command-and-control",
"exfiltration"
] | [
"T1071.004",
"T1048"
] | 15-Jun-2025 01:37:47.808 queries: info: client @0x7f70d25d 10.0.22.215#3062 (static.example.org): query: static.example.org IN A +E(0) (10.0.13.95)
15-Jun-2025 01:37:54.570 queries: info: client @0x7f407638 10.0.22.215#56961 (cdn.example.net): query: cdn.example.net IN A +E(0) (10.0.13.95)
15-Jun-2025 01:38:12.321 quer... | Internal host 10.0.22.215 issued 124 high-entropy A queries to subdomains of d.sync-update.test, consistent with DNS tunneling for command-and-control and data exfiltration. |
sess-2dab26d6c6b7 | benign_ssh_admin | benign | none | ssh_auth | [
"process_exec",
"ssh_auth"
] | 2025-12-20T19:51:58.728Z | 2025-12-20T20:19:43.922Z | 15 | 0 | [] | [] | Dec 20 19:51:58 app-01 sshd[42319]: Accepted publickey for casey.t82 from 10.0.9.4 port 33919 ssh2: ED25519 SHA256:xtcvqpms7gfzf4esxxbuwr2ztwlhmkxkq7x4viz55ra
Dec 20 19:51:58 app-01 sshd[49299]: pam_unix(sshd:session): session opened for user casey.t82(uid=1059) by (uid=0)
type=EXECVE msg=audit(1766260330.535:641213): ... | Administrators logged in with keys from internal addresses and ran routine maintenance. |
sess-906f68bde115 | ssh_bruteforce_persistence | malicious | high | ssh_auth | [
"process_exec",
"ssh_auth"
] | 2025-04-24T23:25:03.460Z | 2025-04-24T23:29:58.451Z | 79 | 74 | [
"credential-access",
"initial-access",
"execution",
"collection",
"discovery",
"command-and-control",
"persistence"
] | [
"T1110.001",
"T1078",
"T1059.004",
"T1005",
"T1033",
"T1105",
"T1053.003"
] | Apr 24 23:25:03 db-01 sshd[20308]: Invalid user ftpuser from 192.0.2.215 port 39834
Apr 24 23:25:04 db-01 sshd[27371]: Invalid user git from 192.0.2.215 port 48226
Apr 24 23:25:05 db-01 sshd[35515]: Invalid user user from 192.0.2.215 port 53870
Apr 24 23:25:09 db-01 sshd[2059]: Invalid user guest from 192.0.2.215 port ... | 65 failed SSH logins from 192.0.2.215 against db-01 preceded a successful password login as 'deploy', followed by discovery, tool download and cron persistence. |
sess-6593a4836487 | dns_tunneling_exfil | malicious | high | dns_query | [
"dns_query"
] | 2025-05-11T12:34:45.248Z | 2025-05-11T12:44:11.867Z | 186 | 153 | [
"command-and-control",
"exfiltration"
] | [
"T1071.004",
"T1048"
] | 11-May-2025 12:34:45.248 queries: info: client @0x7fbe890c 10.0.26.117#14662 (mail.example.com): query: mail.example.com IN A +E(0) (10.0.25.166)
11-May-2025 12:35:01.125 queries: info: client @0x7f43c9ca 10.0.26.117#10533 (time.example.net): query: time.example.net IN A +E(0) (10.0.25.166)
11-May-2025 12:35:09.844 que... | Internal host 10.0.26.117 issued 153 high-entropy TXT queries to subdomains of t.example-cdn.test, consistent with DNS tunneling for command-and-control and data exfiltration. |
sess-2eff9158456b | benign_ssh_admin | benign | none | ssh_auth | [
"process_exec",
"ssh_auth"
] | 2025-10-06T02:39:57.686Z | 2025-10-06T04:26:34.869Z | 44 | 0 | [] | [] | Oct 6 02:39:57 jump-03 sshd[26441]: Accepted publickey for logan.u10 from 10.0.29.220 port 45069 ssh2: ED25519 SHA256:vlad4unozkliczn62uherqingbiog7uboni7qptjlq4
Oct 6 02:39:57 jump-03 sshd[8840]: pam_unix(sshd:session): session opened for user logan.u10(uid=1042) by (uid=0)
type=EXECVE msg=audit(1759718457.723:60545... | Administrators logged in with keys from internal addresses and ran routine maintenance. |
sess-99e440d12b96 | dns_tunneling_exfil | malicious | high | dns_query | [
"dns_query"
] | 2025-10-17T14:26:31.658Z | 2025-10-17T14:34:06.413Z | 135 | 106 | [
"command-and-control",
"exfiltration"
] | [
"T1071.004",
"T1048"
] | 17-Oct-2025 14:26:31.658 queries: info: client @0x7f4a5d0b 10.0.6.176#27328 (cdn.example.net): query: cdn.example.net IN AAAA +E(0) (10.0.21.211)
17-Oct-2025 14:26:38.805 queries: info: client @0x7f2a6068 10.0.6.176#25307 (repo.example.org): query: repo.example.org IN MX +E(0) (10.0.21.211)
17-Oct-2025 14:26:42.787 que... | Internal host 10.0.6.176 issued 106 high-entropy NULL queries to subdomains of t.example-cdn.test, consistent with DNS tunneling for command-and-control and data exfiltration. |
sess-e8f40cfce818 | benign_cloud_ops | benign | none | cloudtrail | [
"cloudtrail"
] | 2025-08-17T07:43:21.001Z | 2025-08-17T08:21:37.355Z | 10 | 0 | [] | [] | {"eventVersion":"1.09","userIdentity":{"type":"IAMUser","arn":"arn:aws:iam::000021680754:user/sre-oncall","accountId":"000021680754","accessKeyId":"AKIA5U5GUWU4BEXAMPLE","userName":"sre-oncall"},"eventTime":"2025-08-17T07:43:21Z","eventSource":"ec2.amazonaws.com","eventName":"DescribeSecurityGroups","awsRegion":"us-eas... | Routine cloud operations by 'sre-oncall' from a known address, including read-only discovery and deployments. |
Sanitized Incident Logs
A fully synthetic, PII-free corpus of security telemetry containing multi-stage attack timelines and realistic benign activity, labeled at both the session and event level with MITRE ATT&CK tactics and techniques. It is built for training and evaluating security automation models: log anomaly detectors, alert triage classifiers, attack-stage taggers, and LLM incident summarizers.
| Sessions | Events | |
|---|---|---|
| train | 3,163 | 193,521 |
| validation | 419 | 25,421 |
| test | 418 | 25,977 |
| total | 4,000 | 244,919 |
Five log sources are rendered in their native text formats so models learn from what a SOC actually sees:
source_type |
Format | Example |
|---|---|---|
web_access |
Apache combined log | 203.0.113.7 - - [09/Jan/2025:00:48:30 +0000] "GET /item?id=1%27%20OR%20... HTTP/1.1" 200 5123 "-" "sqlmap/1.8..." |
ssh_auth |
sshd / sudo syslog | Feb 14 08:14:42 jump-03 sshd[10398]: Failed password for git from 203.0.113.115 port 50495 ssh2 |
process_exec |
Linux auditd EXECVE |
type=EXECVE msg=audit(1739521151.919:816324): argc=5 a0="curl" a1="-fsSL" ... |
cloudtrail |
AWS CloudTrail record (JSON) | {"eventVersion":"1.09","userIdentity":{...},"eventName":"AttachUserPolicy",...} |
dns_query |
BIND query log | 15-Jun-2025 01:40:04.137 queries: info: client @0x7f350740 10.0.22.215#3298 (...): query: ... IN TXT +E(0) (...) |
Quick start
from datasets import load_dataset
sessions = load_dataset("DaveyD347/sanitized-incident-logs", "sessions") # one row per incident timeline
events = load_dataset("DaveyD347/sanitized-incident-logs", "events") # one row per log line
row = sessions["train"][0]
print(row["scenario"], row["label"], row["mitre_techniques"])
print(row["log_text"][:500])
print(row["summary"])
Scenarios
Each session is one scenario played out on one host (or one AWS account) over a few minutes to a few hours.
Malicious sessions are interleaved with benign background events from the same source, which are labeled
is_malicious = false at the event level.
| Scenario | Label | Primary source | Sessions | Median events | Kill chain (ATT&CK techniques) |
|---|---|---|---|---|---|
web_sqli_webshell |
malicious | web_access + process_exec | 415 | 44 | Vuln scanning (T1595.002) β SQL injection (T1190) β web shell upload/use (T1505.003) β discovery (T1082, T1033, T1005) β optional reverse shell (T1059.004) |
ssh_bruteforce_persistence |
malicious | ssh_auth + process_exec | 372 | 86 | Password guessing (T1110.001) β valid account login (T1078) β discovery β tool download (T1105) β cron persistence (T1053.003) |
credential_stuffing |
malicious | web_access | 367 | 142 | Distributed login attempts from rotating IPs (T1110.004), occasional successes |
cloud_key_compromise |
malicious | cloudtrail | 376 | 28 | Stolen key used from new IP/UA (T1078.004) β IAM/EC2/S3 discovery (T1087.004, T1580, T1619) β AdministratorAccess (T1098.003) β backdoor user + key (T1098.001) β S3 collection (T1530) β StopLogging/DeleteTrail (T1562.008) |
dns_tunneling_exfil |
malicious | dns_query | 287 | 135 | High-entropy subdomain beacons (T1071.004) β bulk exfiltration over DNS (T1048) |
benign_web_traffic |
benign | web_access | 592 | 51 | Normal browsing; hard negatives: a few mistyped logins, broken-link 404s |
benign_ssh_admin |
benign | ssh_auth + process_exec | 603 | 29 | Key-based admin logins, maintenance commands, sudo; hard negatives: typo'd passwords, curl of an install script |
benign_cloud_ops |
benign | cloudtrail | 501 | 20 | Read-only discovery, deploys, Lambda updates; hard negatives: legitimate CreateAccessKey key rotation, ListUsers |
benign_dns |
benign | dns_query | 487 | 77 | Routine resolution; hard negatives: long CDN-style hostnames at low volume |
The hard negatives are deliberate: they share surface features (failed logins, ListUsers, CreateAccessKey,
long hostnames, curl -fsSL) with the attacks, so a model has to use context and sequence, not keywords.
Severity distribution: none 2,183 Β· medium 17 Β· high 1,134 Β· critical 666.
Schema
sessions config (default)
| Field | Type | Description |
|---|---|---|
session_id |
string | Unique id, e.g. sess-3f9a1c2b7d10 |
scenario |
string | One of the nine scenario names above |
label |
string | malicious or benign |
severity |
string | none, medium, high, critical |
primary_source |
string | Main log source of the scenario |
source_types |
list[string] | All log sources present in the session |
start_time, end_time |
string | ISO 8601 UTC with milliseconds |
num_events, num_malicious_events |
int64 | Event counts |
mitre_tactics |
list[string] | ATT&CK tactics in order of first appearance |
mitre_techniques |
list[string] | ATT&CK technique ids in order of first appearance |
log_text |
string | All raw log lines of the session, time-ordered, newline-joined |
summary |
string | One-to-two sentence analyst-style incident summary (reference target for summarization) |
events config
| Field | Type | Description |
|---|---|---|
event_id |
string | <session_id>-<seq> |
session_id |
string | Foreign key to sessions |
seq |
int64 | 0-based position in the session timeline |
timestamp |
string | ISO 8601 UTC with milliseconds |
source_type |
string | web_access, ssh_auth, process_exec, cloudtrail, dns_query |
host |
string | Synthetic hostname (web-01, bastion-01, dns-02, aws) |
src_ip |
string | null | Source address (documentation or RFC 1918 range) |
user |
string | null | Account name, if any |
action |
string | Normalized action (GET /login, login, AttachUserPolicy, query TXT, executable name) |
status |
string | Normalized outcome (200, failure, invalid_user, Success, AccessDenied, executed, NOERROR) |
raw_log |
string | The log line exactly as the source would emit it |
is_malicious |
bool | Event-level ground truth |
mitre_tactic |
string | null | ATT&CK tactic slug (e.g. credential-access); null for benign events |
mitre_technique_id |
string | null | e.g. T1110.001 |
mitre_technique_name |
string | null | e.g. Brute Force: Password Guessing |
scenario |
string | Scenario of the parent session |
Small JSONL previews (one session per scenario) live in data/samples/.
Suggested tasks
- Session triage: classify
log_textas malicious/benign, or into one of nine scenarios. - Event-level detection: predict
is_maliciousperraw_log, with or without preceding context (seq). - ATT&CK tagging: predict
mitre_technique_id/mitre_tacticper event (multi-class) or per session (multi-label). - Incident summarization: generate
summaryfromlog_text. - Log parsing: extract
src_ip,user,action,statusfromraw_logacross heterogeneous formats.
Splits
Splits are assigned by a SHA-256 hash of session_id (β 80 / 10 / 10). All events of a session land in the same
split, so there is no timeline leakage between train and evaluation.
Provenance and sanitization
No real logs were used. Every record is produced by the deterministic generator in
scripts/generate.py (seed 1337) from hand-written scenario templates based on public
descriptions of common attack patterns. Because nothing is derived from real systems, there is no personal data
to remove; instead, every identifier is drawn from ranges reserved for documentation so it cannot collide
with a real person, host or organization:
| Identifier | Source of values |
|---|---|
| External IPv4 | RFC 5737 documentation networks 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 |
| Internal IPv4 | RFC 1918 10.0.0.0/16 |
| Domains | RFC 2606 / RFC 6761 reserved names: example.com/.net/.org, *.test |
| AWS account IDs | 12 digits with a 0000 prefix (not issued by AWS) |
| AWS access keys | AKIA + 9 random chars + EXAMPLE, the AWS documentation placeholder convention |
| Usernames | Generic role names (deploy, ci-deployer) or pseudonyms like jordan.k42 |
| Organization | Fictional acme-* bucket names |
scripts/validate.py enforces this and must pass before release. It checks:
unique ids, every event joined to a session, no split leakage, session label = any event malicious, MITRE fields
present iff malicious, and scans every raw_log and summary for IPv4 addresses outside the allowed ranges,
URL hosts and DNS names outside reserved domains, email addresses, non-placeholder AWS keys, and AWS account ids
outside the reserved prefix. The released version passes all 16 checks.
Reproduce
pip install pandas pyarrow
python scripts/generate.py --out data --sessions 4000 --seed 1337
python scripts/validate.py data
Change --sessions or --seed to generate larger or different corpora.
Limitations and bias
- Synthetic distribution. Patterns come from templates, so they are cleaner and more regular than production telemetry. Expect high scores on this dataset; treat it as a pre-training, curriculum or unit-test corpus, and validate on real (internal) data before deployment.
- Class balance is not realistic. About 45% of sessions and 52% of events are malicious, far above real-world base rates. Reweight or subsample for calibrated alerting experiments.
- Limited coverage. Linux, Apache, BIND and AWS only. No Windows event logs, EDR, Kubernetes, Azure/GCP, email or network flow data. 22 ATT&CK techniques are represented.
- Single-host sessions. Lateral movement across hosts is not modeled.
- Attacker artifacts are realistic strings. Payloads such as SQL injection strings and a reverse-shell one-liner appear verbatim because detectors must see them. All point at documentation IPs and are widely published; no functional malware is included.
- Template summaries. The
summaryfield is generated from templates, so its wording is less varied than human-written incident notes.
Intended use
Defensive security research and education: building and benchmarking detectors, triage models, log parsers and analyst-assist LLMs. Not intended as a substitute for real-world evaluation.
License
Data and scripts are released under CC BY 4.0.
Citation
@misc{sanitized_incident_logs_2026,
title = {Sanitized Incident Logs: Synthetic Multi-Stage Attack Telemetry with MITRE ATT\&CK Labels},
author = {DaveyD347},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/DaveyD347/sanitized-incident-logs}}
}
- Downloads last month
- 140