rypow commited on
Commit
d41f3fb
·
verified ·
1 Parent(s): 62adc1b

v0.2.1 - clean release

Browse files
README.md CHANGED
@@ -35,8 +35,7 @@ a Tetragon-native pipeline. Released for:
35
  - ATT&CK-technique-detectability studies
36
  - **autonomous-attacker behavioral analysis** — see below
37
 
38
- This is the **v0.2.1 release** (re-parsed 2026-04-29 with five correctness
39
- fixes and the 3a′ encoder revisions). The full provenance is in
40
  [`datacard.md`](./datacard.md) and [`datasheet.md`](./datasheet.md).
41
 
42
  ---
@@ -267,6 +266,7 @@ update the `url` and `doi` fields once those are minted.
267
  - **Integer-code → label tables:** [`reproduction/feature_definitions.json`](./reproduction/feature_definitions.json)
268
  - **Anonymizer alias map:** [`reproduction/alias_map.json`](./reproduction/alias_map.json)
269
  - **Per-file integrity:** [`SHA256SUMS`](./SHA256SUMS), machine manifest at [`RELEASE.json`](./RELEASE.json)
 
270
 
271
  ---
272
 
 
35
  - ATT&CK-technique-detectability studies
36
  - **autonomous-attacker behavioral analysis** — see below
37
 
38
+ The full provenance is in
 
39
  [`datacard.md`](./datacard.md) and [`datasheet.md`](./datasheet.md).
40
 
41
  ---
 
266
  - **Integer-code → label tables:** [`reproduction/feature_definitions.json`](./reproduction/feature_definitions.json)
267
  - **Anonymizer alias map:** [`reproduction/alias_map.json`](./reproduction/alias_map.json)
268
  - **Per-file integrity:** [`SHA256SUMS`](./SHA256SUMS), machine manifest at [`RELEASE.json`](./RELEASE.json)
269
+ - **Github:** https://github.com/ryypow/dendroaspis
270
 
271
  ---
272
 
RELEASE.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.2.1",
3
+ "build_timestamp": "2026-05-02T10:12:37Z",
4
+ "huggingface_repo": "rypow/dendroaspis-tetragon-hids",
5
+ "huggingface_revision": null,
6
+ "anonymizer_version": "0.2.1",
7
+ "parser_sha": "03e2204",
8
+ "release_parser_sha": "03e2204",
9
+ "row_counts": {
10
+ "train": 16951950,
11
+ "test": 2349965
12
+ },
13
+ "file_count": 29,
14
+ "total_bytes": 171485224,
15
+ "files": {
16
+ "LICENSE": {
17
+ "sha256": "fa42b7b2d283cc859edccfeb9527996b575dc4043a2f007349a4b410205151e5",
18
+ "size_bytes": 1372
19
+ },
20
+ "README.md": {
21
+ "sha256": "e2c0ecb88072afdc01fcd16205424e0a182192b536e946aaedae0ec78b8a35fc",
22
+ "size_bytes": 10976
23
+ },
24
+ "SHA256SUMS": {
25
+ "sha256": "13496f74cf39df12e135d827731870bbd1aa603873053e9631efcee25ea82bd9",
26
+ "size_bytes": 2805
27
+ },
28
+ "agentic-art-campaign/CAMPAIGN.yaml": {
29
+ "sha256": "3d4aa906b8f1ee25239b15386e200a2f4531a6b65071c91ae5dffc0e512ddf0e",
30
+ "size_bytes": 17472
31
+ },
32
+ "agentic-art-campaign/labels.csv": {
33
+ "sha256": "7b4f674b9a34aea092982c53cb2621c53b827058471c2b16ac1c7abe61668e03",
34
+ "size_bytes": 8286
35
+ },
36
+ "data/test-00000-of-00002.parquet": {
37
+ "sha256": "ba55902d9c0bbb9bcc28c8a3ee4fec6cc8acea797f0a38d642e3617e2dbc5c3a",
38
+ "size_bytes": 16847273
39
+ },
40
+ "data/test-00001-of-00002.parquet": {
41
+ "sha256": "e32756b18e4e6cdb35c9bd2369d934baeaee195ff78d80d240b5a174b031ab6b",
42
+ "size_bytes": 3659263
43
+ },
44
+ "data/train-00000-of-00009.parquet": {
45
+ "sha256": "6de5d6c6db629855c675d44622e75c8dacd942ced3fe3e6ebbce5eb7f4a5f891",
46
+ "size_bytes": 18967327
47
+ },
48
+ "data/train-00001-of-00009.parquet": {
49
+ "sha256": "0584d50bcfe191768f779994df453b7b3f063083a25c0751259cb2e8960a4ae8",
50
+ "size_bytes": 19780882
51
+ },
52
+ "data/train-00002-of-00009.parquet": {
53
+ "sha256": "ad290a091d5c752b1b224291befa67f30af74ccb1cd60ff5fa2e477dd975b21e",
54
+ "size_bytes": 17405683
55
+ },
56
+ "data/train-00003-of-00009.parquet": {
57
+ "sha256": "29f1bd4cc37772651a0fbf18eb02014f32b242c737640151e049666ec30f4330",
58
+ "size_bytes": 18115162
59
+ },
60
+ "data/train-00004-of-00009.parquet": {
61
+ "sha256": "54262554c7dee45fac124b8e06984a49b024e8eee0c38ffcc97f85b9086908be",
62
+ "size_bytes": 18282185
63
+ },
64
+ "data/train-00005-of-00009.parquet": {
65
+ "sha256": "9d2e176d0a929ce24e908a597f2e9c05fd20187842625de7979094aebfa2d8b5",
66
+ "size_bytes": 18918206
67
+ },
68
+ "data/train-00006-of-00009.parquet": {
69
+ "sha256": "da9ec971eeb85d5fee9fac52b27c0c41c3361a74196947ce42653b852d61b72d",
70
+ "size_bytes": 15642911
71
+ },
72
+ "data/train-00007-of-00009.parquet": {
73
+ "sha256": "6c88c52388ced41c9bfc23f39788d66390c4f8a1deb2217b185a59fb613d910b",
74
+ "size_bytes": 14969731
75
+ },
76
+ "data/train-00008-of-00009.parquet": {
77
+ "sha256": "ff4809c170ee636ae2a1199726b0f2343ff1ada908b7eac4042947e138ac7648",
78
+ "size_bytes": 8768242
79
+ },
80
+ "datacard.md": {
81
+ "sha256": "0499a2cf2fddd757beeb6de8e5a530c6fb8d607cc49e731003b08c4bbe8ee10b",
82
+ "size_bytes": 19533
83
+ },
84
+ "datasheet.md": {
85
+ "sha256": "8376455d171cac1c6c1ef1125ffd5c99db32889699ecca8bf9ae19e694543945",
86
+ "size_bytes": 13751
87
+ },
88
+ "dendroaspis.bib": {
89
+ "sha256": "73665486388d6a3fc2424aa0fb1760cecf53b9d1aba0252606f679d095faf991",
90
+ "size_bytes": 636
91
+ },
92
+ "reproduction/alias_map.json": {
93
+ "sha256": "398c52bfa3191c03c8d69f3c2ffb91bf17b672bbd9be9e70904ffd6e315f0ad6",
94
+ "size_bytes": 10026
95
+ },
96
+ "reproduction/allowlist_basenames.txt": {
97
+ "sha256": "9919392e9d46de602de1ac462eaf531ad35a9a9eded777ef7c37320f4f75ea2a",
98
+ "size_bytes": 3333
99
+ },
100
+ "reproduction/feature_definitions.json": {
101
+ "sha256": "41160c9ab6e74ab035a281ba63aab593d1827883f13a131e4a4826afbb48c3ea",
102
+ "size_bytes": 24944
103
+ },
104
+ "reproduction/tetragon-configs/attribute-monitor.yaml": {
105
+ "sha256": "892d549f7b6d26c08dfaf38fbc054b139822f0115aba4a58d0b25691b2c08c1c",
106
+ "size_bytes": 1725
107
+ },
108
+ "reproduction/tetragon-configs/file-monitor.yaml": {
109
+ "sha256": "21405118c10c7700fe04414978655432e20b41a91daf429dfab35c63861b9d2b",
110
+ "size_bytes": 1467
111
+ },
112
+ "reproduction/tetragon-configs/identity_map.yaml": {
113
+ "sha256": "a509ece1d28792404077dad0b93436c78689eb520b851784cf60936db879aadb",
114
+ "size_bytes": 3714
115
+ },
116
+ "reproduction/tetragon-configs/injection-monitor.yaml": {
117
+ "sha256": "4ecd684a2fad114335fbee836d3cdb74a4d4b7fc3654691d364111f1668a9b78",
118
+ "size_bytes": 3161
119
+ },
120
+ "reproduction/tetragon-configs/memory-monitor.yaml": {
121
+ "sha256": "e60fb71b286a67ee3ecb065cd9243c0d04cc2cf6164ab5a83607f68bf6ceb8bf",
122
+ "size_bytes": 1591
123
+ },
124
+ "reproduction/tetragon-configs/network-monitor.yaml": {
125
+ "sha256": "02cf3c59381c6eec7fe477f81a9462ce6bd6403850ce69876df4e6fe065299d4",
126
+ "size_bytes": 2571
127
+ },
128
+ "reproduction/tetragon-configs/privilege-monitor.yaml": {
129
+ "sha256": "a0dece74ce8709f0135cef327a85f6fe8b40a8d48270fd636ce5006962b6fd75",
130
+ "size_bytes": 996
131
+ }
132
+ }
133
+ }
SHA256SUMS ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fa42b7b2d283cc859edccfeb9527996b575dc4043a2f007349a4b410205151e5 LICENSE
2
+ e2c0ecb88072afdc01fcd16205424e0a182192b536e946aaedae0ec78b8a35fc README.md
3
+ 3d4aa906b8f1ee25239b15386e200a2f4531a6b65071c91ae5dffc0e512ddf0e agentic-art-campaign/CAMPAIGN.yaml
4
+ 7b4f674b9a34aea092982c53cb2621c53b827058471c2b16ac1c7abe61668e03 agentic-art-campaign/labels.csv
5
+ ba55902d9c0bbb9bcc28c8a3ee4fec6cc8acea797f0a38d642e3617e2dbc5c3a data/test-00000-of-00002.parquet
6
+ e32756b18e4e6cdb35c9bd2369d934baeaee195ff78d80d240b5a174b031ab6b data/test-00001-of-00002.parquet
7
+ 6de5d6c6db629855c675d44622e75c8dacd942ced3fe3e6ebbce5eb7f4a5f891 data/train-00000-of-00009.parquet
8
+ 0584d50bcfe191768f779994df453b7b3f063083a25c0751259cb2e8960a4ae8 data/train-00001-of-00009.parquet
9
+ ad290a091d5c752b1b224291befa67f30af74ccb1cd60ff5fa2e477dd975b21e data/train-00002-of-00009.parquet
10
+ 29f1bd4cc37772651a0fbf18eb02014f32b242c737640151e049666ec30f4330 data/train-00003-of-00009.parquet
11
+ 54262554c7dee45fac124b8e06984a49b024e8eee0c38ffcc97f85b9086908be data/train-00004-of-00009.parquet
12
+ 9d2e176d0a929ce24e908a597f2e9c05fd20187842625de7979094aebfa2d8b5 data/train-00005-of-00009.parquet
13
+ da9ec971eeb85d5fee9fac52b27c0c41c3361a74196947ce42653b852d61b72d data/train-00006-of-00009.parquet
14
+ 6c88c52388ced41c9bfc23f39788d66390c4f8a1deb2217b185a59fb613d910b data/train-00007-of-00009.parquet
15
+ ff4809c170ee636ae2a1199726b0f2343ff1ada908b7eac4042947e138ac7648 data/train-00008-of-00009.parquet
16
+ 0499a2cf2fddd757beeb6de8e5a530c6fb8d607cc49e731003b08c4bbe8ee10b datacard.md
17
+ 8376455d171cac1c6c1ef1125ffd5c99db32889699ecca8bf9ae19e694543945 datasheet.md
18
+ 73665486388d6a3fc2424aa0fb1760cecf53b9d1aba0252606f679d095faf991 dendroaspis.bib
19
+ 398c52bfa3191c03c8d69f3c2ffb91bf17b672bbd9be9e70904ffd6e315f0ad6 reproduction/alias_map.json
20
+ 9919392e9d46de602de1ac462eaf531ad35a9a9eded777ef7c37320f4f75ea2a reproduction/allowlist_basenames.txt
21
+ 41160c9ab6e74ab035a281ba63aab593d1827883f13a131e4a4826afbb48c3ea reproduction/feature_definitions.json
22
+ 892d549f7b6d26c08dfaf38fbc054b139822f0115aba4a58d0b25691b2c08c1c reproduction/tetragon-configs/attribute-monitor.yaml
23
+ 21405118c10c7700fe04414978655432e20b41a91daf429dfab35c63861b9d2b reproduction/tetragon-configs/file-monitor.yaml
24
+ a509ece1d28792404077dad0b93436c78689eb520b851784cf60936db879aadb reproduction/tetragon-configs/identity_map.yaml
25
+ 4ecd684a2fad114335fbee836d3cdb74a4d4b7fc3654691d364111f1668a9b78 reproduction/tetragon-configs/injection-monitor.yaml
26
+ e60fb71b286a67ee3ecb065cd9243c0d04cc2cf6164ab5a83607f68bf6ceb8bf reproduction/tetragon-configs/memory-monitor.yaml
27
+ 02cf3c59381c6eec7fe477f81a9462ce6bd6403850ce69876df4e6fe065299d4 reproduction/tetragon-configs/network-monitor.yaml
28
+ a0dece74ce8709f0135cef327a85f6fe8b40a8d48270fd636ce5006962b6fd75 reproduction/tetragon-configs/privilege-monitor.yaml
agentic-art-campaign/CAMPAIGN.yaml ADDED
@@ -0,0 +1,410 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dendroaspis v0.2 — Attack Campaign Ground Truth (machine-parseable mirror)
2
+ #
3
+ # This is the YAML mirror of CAMPAIGN.md. Every field here corresponds to a
4
+ # section or row in the markdown document. Use this file when you need to
5
+ # load campaign metadata programmatically;
6
+ #
7
+ # labels.csv is authoritative for what was actually labeled.
8
+
9
+ meta:
10
+ corpus_version: "v0.2"
11
+ total_labeled_intervals: 61
12
+ total_categories: 22
13
+ total_attack_events: 705852
14
+ total_test_events: 2349965
15
+ test_partition_positive_rate: 0.3004
16
+ campaign_window_start_utc: "2026-04-19T22:09:18Z"
17
+ campaign_window_end_utc: "2026-04-20T01:59:45Z"
18
+ campaign_wallclock_hours_active: 3.23
19
+ host:
20
+ platform: "Proxmox 8 / LXC container"
21
+ distro: "Debian 12"
22
+ operator_persona:
23
+ user: "admin"
24
+ uid: 1000
25
+ elevation_policy: "atomics that require root sudo internally; runner script never wrapped in sudo"
26
+ elevated_persona: "container_root"
27
+ elevated_uid: 0
28
+ atomic_red_team:
29
+ repo: "https://github.com/redcanaryco/atomic-red-team"
30
+ pinned_sha: "e575444941e27787bdb1b6ab881628fc2cc904b9"
31
+ cloned_at_utc: "2026-04-19T04:23:08Z"
32
+ sensor:
33
+ name: "Tetragon"
34
+ version: "1.6.1"
35
+ tracing_policies_dir: "reproduction/tetragon-configs"
36
+ tracing_policy_count: 6
37
+ ground_truth_files:
38
+ labels_csv: "data/labels.csv"
39
+ yaml_mirror: "CAMPAIGN.yaml"
40
+
41
+ trial_accounting:
42
+ yaml_planned_intervals: 59
43
+ labels_csv_actual_intervals: 61
44
+ delta: 2
45
+ reconciliation:
46
+ - technique: "T1543.002"
47
+ planned_trials: 2
48
+ actual_trials: 3
49
+ reason: "Yaml v1.1 documented atomic 3 as Debian-distro-gated. The atomic ran anyway and produced a 23-second labeled interval containing the marker pair plus the prereq-failure trace. Yaml header was updated post-execution (commit 6865942 on 2026-04-21) but labels.csv was already frozen with 3 intervals."
50
+ - technique: "CHAIN.CAP01"
51
+ planned_trials: 1
52
+ actual_trials: 2
53
+ reason: "A second capstone trial was added during execution. Trial 2 is a degraded 4-atomic chain (T1059.004 step skipped at invocation due to a missing trial argument)."
54
+
55
+ marker_convention:
56
+ start_format: "/tmp/art_start_<TECHNIQUE>_<TRIAL>"
57
+ end_format: "/tmp/art_end_<TECHNIQUE>_<TRIAL>"
58
+ parser_regex: "/tmp/art_(start|end)_([A-Z0-9.]+)_(\\S+)"
59
+ parser_module: "src/telemetry/tetragon_parser.py"
60
+ labeler_module: "src/processing/art_labeler.py"
61
+ orphan_end_policy: "drop"
62
+ orphan_start_policy: "open_ended_to_stream_end"
63
+ cleanup_position: "before_end_marker" # cleanup events labeled as attack
64
+ cooldown_position: "after_end_marker" # cooldown silence labeled as benign
65
+ inter_trial_cooldown_seconds: 5
66
+
67
+ # ============================================================
68
+ # Per-technique reference
69
+ # ============================================================
70
+ #
71
+ # Each technique entry shape:
72
+ # id: ATT&CK ID (or paper-defined ID)
73
+ # mitre_name: full MITRE ATT&CK name
74
+ # tactic: ATT&CK tactic
75
+ # n_trials: labeled intervals in labels.csv
76
+ # n_events: attack events in test partition
77
+ # degraded: bool — true if any trial is degraded
78
+ # atomics: list of atomics actually invoked at the pinned SHA
79
+ # number: atomic test number
80
+ # name: short Atomic Red Team test name
81
+ # elevation: "user" | "root"
82
+ # degraded: bool — true if this specific atomic's trial is degraded
83
+ # degraded_note: explanation if degraded
84
+ # exclusions: list of atomics deliberately not run, with reasons
85
+ # notes: technique-level provenance / context
86
+
87
+ techniques:
88
+
89
+ # --- Execution ---
90
+
91
+ - id: "T1059.004"
92
+ mitre_name: "Command and Scripting Interpreter: Unix Shell"
93
+ tactic: "execution"
94
+ n_trials: 3
95
+ n_events: 175797
96
+ degraded: false
97
+ atomics:
98
+ - { number: 1, name: "Create and Execute Bash Shell Script", elevation: "user" }
99
+ - { number: 3, name: "Harvest SUID-bit binaries via find", elevation: "user" }
100
+ - { number: 14, name: "Shell creation using awk", elevation: "user" }
101
+ notes: "Largest-mass technique (24.9% of attack events). Locus of the labeling-granularity finding (paper §5.2): the dispatcher process driving every trial is itself bash, so harness scaffolding is co-labeled with the technique."
102
+
103
+ - id: "T1059.006"
104
+ mitre_name: "Command and Scripting Interpreter: Python"
105
+ tactic: "execution"
106
+ n_trials: 3
107
+ n_events: 22675
108
+ degraded: false
109
+ atomics:
110
+ - { number: 1, name: "Execute shell payload via python -c", elevation: "user" }
111
+ - { number: 2, name: "Execute Python script files", elevation: "user" }
112
+ - { number: 4, name: "Python pty.spawn into sh/bash", elevation: "user" }
113
+
114
+ # --- Persistence ---
115
+
116
+ - id: "T1053.003"
117
+ mitre_name: "Scheduled Task/Job: Cron"
118
+ tactic: "persistence"
119
+ n_trials: 3
120
+ n_events: 11217
121
+ degraded: false
122
+ atomics:
123
+ - { number: 1, name: "Replace user crontab from referenced file", elevation: "user" }
124
+ - { number: 2, name: "Drop script into every /etc/cron.* subfolder", elevation: "root" }
125
+ - { number: 3, name: "Drop script under /etc/cron.d/", elevation: "root" }
126
+
127
+ - id: "T1098.004"
128
+ mitre_name: "Account Manipulation: SSH Authorized Keys"
129
+ tactic: "persistence"
130
+ n_trials: 1
131
+ n_events: 3569
132
+ degraded: false
133
+ atomics:
134
+ - { number: 1, name: "Append attacker public key to ~/.ssh/authorized_keys", elevation: "user" }
135
+ notes: "Only one Linux atomic exists at the pinned ART SHA."
136
+
137
+ - id: "T1543.002"
138
+ mitre_name: "Create or Modify System Process: Systemd Service"
139
+ tactic: "persistence"
140
+ n_trials: 3
141
+ n_events: 47901
142
+ degraded: true
143
+ atomics:
144
+ - { number: 1, name: "Create systemd .service unit", elevation: "root", degraded: false }
145
+ - { number: 2, name: "Create SysV-style init script", elevation: "root", degraded: false }
146
+ - number: 3
147
+ name: "Create .service file with reload-and-modify"
148
+ elevation: "root"
149
+ degraded: true
150
+ degraded_note: |
151
+ ART's prereq script (-CheckPrereqs) hardcodes a Debian
152
+ distro-rejection ("System must be Ubuntu, Kali OR CentOS")
153
+ even though the underlying actions work on Debian. The trial's
154
+ marker pair was emitted, the prereq-failure trace was logged,
155
+ and the labeled 23-second window contains those events rather
156
+ than a real systemd-service install.
157
+ notes: "Yaml header was updated post-execution (2026-04-21) to document atomic 3 as dropped, but labels.csv was already frozen with all 3 intervals. Treat ~one-third of T1543.002 events as wrapper-noise."
158
+
159
+ - id: "T1546.004"
160
+ mitre_name: "Event Triggered Execution: Unix Shell Configuration Modification"
161
+ tactic: "persistence"
162
+ n_trials: 3
163
+ n_events: 11179
164
+ degraded: false
165
+ atomics:
166
+ - { number: 2, name: "Append command to ~/.bashrc", elevation: "user" }
167
+ - { number: 5, name: "Append commands to user shell profile file", elevation: "user" }
168
+ - { number: 4, name: "Append commands to system-wide shell profile", elevation: "root" }
169
+
170
+ # --- Privilege Escalation ---
171
+
172
+ - id: "T1548.001"
173
+ mitre_name: "Abuse Elevation Control Mechanism: Setuid and Setgid"
174
+ tactic: "privilege_escalation"
175
+ n_trials: 3
176
+ n_events: 12461
177
+ degraded: false
178
+ atomics:
179
+ - { number: 3, name: "Set SUID flag on attacker-controlled binary", elevation: "root" }
180
+ - { number: 7, name: "Modify binary POSIX capabilities via setcap", elevation: "root" }
181
+ - { number: 9, name: "Recon for SUID-set files", elevation: "user" }
182
+
183
+ - id: "T1548.003"
184
+ mitre_name: "Abuse Elevation Control Mechanism: Sudo and Sudo Caching"
185
+ tactic: "privilege_escalation"
186
+ n_trials: 3
187
+ n_events: 24229
188
+ degraded: false
189
+ atomics:
190
+ - { number: 1, name: "Ordinary sudo invocation (cached creds)", elevation: "root" }
191
+ - { number: 3, name: "Set unlimited sudo cache timeout via sudoers.d", elevation: "root" }
192
+ - { number: 5, name: "Disable tty_tickets so cached creds apply across PTYs", elevation: "root" }
193
+
194
+ - id: "T1574.006"
195
+ mitre_name: "Hijack Execution Flow: Dynamic Linker Hijacking"
196
+ tactic: "privilege_escalation"
197
+ n_trials: 2
198
+ n_events: 7700
199
+ degraded: false
200
+ atomics:
201
+ - { number: 2, name: "Per-process injection via LD_PRELOAD env", elevation: "user" }
202
+ - { number: 1, name: "System-wide injection via /etc/ld.so.preload", elevation: "root" }
203
+ notes: "Only two Linux atomics exist at the pinned ART SHA."
204
+
205
+ # --- Defense Evasion ---
206
+
207
+ - id: "T1027"
208
+ mitre_name: "Obfuscated Files or Information"
209
+ tactic: "defense_evasion"
210
+ n_trials: 1
211
+ n_events: 3705
212
+ degraded: false
213
+ atomics:
214
+ - { number: 1, name: "Decode base64-encoded payload into script and execute", elevation: "user" }
215
+ notes: "Atomic exercises decode-and-execute on disk, not the encoding step. Only one Linux atomic at the pinned ART SHA."
216
+
217
+ - id: "T1036.005"
218
+ mitre_name: "Masquerading: Match Legitimate Name or Location"
219
+ tactic: "defense_evasion"
220
+ n_trials: 1
221
+ n_events: 3641
222
+ degraded: false
223
+ atomics:
224
+ - { number: 1, name: "Execute binary from masqueraded directory path", elevation: "user" }
225
+ notes: "Only one Linux atomic at the pinned ART SHA."
226
+
227
+ - id: "T1070.004"
228
+ mitre_name: "Indicator Removal: File Deletion"
229
+ tactic: "defense_evasion"
230
+ n_trials: 3
231
+ n_events: 11224
232
+ degraded: false
233
+ atomics:
234
+ - { number: 1, name: "Delete a single attacker-created file", elevation: "user" }
235
+ - { number: 2, name: "Delete an entire attacker-created directory", elevation: "user" }
236
+ - { number: 3, name: "Overwrite-then-delete with shred", elevation: "user" }
237
+ exclusions:
238
+ - { number: 8, name: "Delete Filesystem - Linux", reason: "Would destroy the LXC container" }
239
+
240
+ - id: "T1222.002"
241
+ mitre_name: "File and Directory Permissions Modification: Linux"
242
+ tactic: "defense_evasion"
243
+ n_trials: 3
244
+ n_events: 11301
245
+ degraded: false
246
+ atomics:
247
+ - { number: 1, name: "chmod numeric-mode change", elevation: "user" }
248
+ - { number: 5, name: "chown owner-and-group change", elevation: "user" }
249
+ - { number: 9, name: "chattr immutable-attribute removal", elevation: "user" }
250
+
251
+ - id: "T1562.001"
252
+ mitre_name: "Impair Defenses: Disable or Modify Tools"
253
+ tactic: "defense_evasion"
254
+ n_trials: 3
255
+ n_events: 18610
256
+ degraded: false
257
+ atomics:
258
+ - { number: 1, name: "Disable rsyslog via systemctl", elevation: "root" }
259
+ - { number: 39, name: "Clear shell history", elevation: "root" }
260
+ - { number: 40, name: "Suspend shell history recording", elevation: "root" }
261
+ exclusions:
262
+ - { number: 41, name: "Reboot host", reason: "Destabilizes the test host" }
263
+ - { number: 43, name: "Disable swap", reason: "Destabilizes the test host" }
264
+ - { number: 59, name: "Disable ASLR", reason: "Reduces baseline reproducibility" }
265
+
266
+ # --- Credential Access ---
267
+
268
+ - id: "T1003.008"
269
+ mitre_name: "OS Credential Dumping: /etc/passwd and /etc/shadow"
270
+ tactic: "credential_access"
271
+ n_trials: 3
272
+ n_events: 10999
273
+ degraded: false
274
+ atomics:
275
+ - { number: 1, name: "Read /etc/shadow via cat (root)", elevation: "root" }
276
+ - { number: 3, name: "Read /etc/passwd as unprivileged user", elevation: "user" }
277
+ - { number: 4, name: "Read /etc/{passwd,shadow} via non-cat binary", elevation: "root" }
278
+
279
+ - id: "T1552.001"
280
+ mitre_name: "Unsecured Credentials: Credentials In Files"
281
+ tactic: "credential_access"
282
+ n_trials: 3
283
+ n_events: 97493
284
+ degraded: false
285
+ atomics:
286
+ - { number: 1, name: "Search home dir for AWS credential files", elevation: "user" }
287
+ - { number: 3, name: "Recursive grep for password-bearing strings across user dirs", elevation: "user" }
288
+ - { number: 6, name: "Search for GitHub credentials in known config paths", elevation: "user" }
289
+
290
+ # --- Discovery ---
291
+
292
+ - id: "T1057"
293
+ mitre_name: "Process Discovery"
294
+ tactic: "discovery"
295
+ n_trials: 1
296
+ n_events: 4062
297
+ degraded: false
298
+ atomics:
299
+ - { number: 1, name: "Enumerate running processes via ps", elevation: "user" }
300
+ notes: "Only one Linux atomic at the pinned ART SHA."
301
+
302
+ - id: "T1082"
303
+ mitre_name: "System Information Discovery"
304
+ tactic: "discovery"
305
+ n_trials: 3
306
+ n_events: 12066
307
+ degraded: false
308
+ atomics:
309
+ - { number: 3, name: "List OS information via /etc/os-release and uname", elevation: "user" }
310
+ - { number: 8, name: "Discover hostname via hostname/hostnamectl", elevation: "user" }
311
+ - { number: 25, name: "List kernel modules via lsmod and /proc/modules", elevation: "user" }
312
+
313
+ - id: "T1083"
314
+ mitre_name: "File and Directory Discovery"
315
+ tactic: "discovery"
316
+ n_trials: 3
317
+ n_events: 154581
318
+ degraded: false
319
+ atomics:
320
+ - { number: 3, name: "Recursive Unix file/dir enumeration via find/ls (variant 1)", elevation: "user" }
321
+ - { number: 4, name: "Recursive Unix file/dir enumeration (variant 2)", elevation: "user" }
322
+ - { number: 8, name: "SMB/NFS network-share enumeration via smbclient/showmount", elevation: "user" }
323
+ notes: "Second-largest technique by event mass (21.9% of attack events)."
324
+
325
+ # --- Command and Control ---
326
+
327
+ - id: "T1105"
328
+ mitre_name: "Ingress Tool Transfer"
329
+ tactic: "command_and_control"
330
+ n_trials: 3
331
+ n_events: 11609
332
+ degraded: false
333
+ atomics:
334
+ - { number: 27, name: "Download-and-execute remote payload via curl/wget", elevation: "user" }
335
+ - { number: 14, name: "Exfil-via-download using whois as the transport", elevation: "user" }
336
+ - { number: 3, name: "scp push of local file to remote host", elevation: "user" }
337
+ notes: "Mixed pull and push directions in the same technique row."
338
+
339
+ # --- Initial Access (paper-defined research scenario) ---
340
+
341
+ - id: "T1195.002"
342
+ mitre_name: "Supply Chain Compromise: Compromise Software Supply Chain"
343
+ tactic: "initial_access"
344
+ n_trials: 8
345
+ n_events: 15703
346
+ degraded: false
347
+ paper_defined: true
348
+ track: "Track A"
349
+ implementation:
350
+ lineage: "npm -> node -> sh -> curl"
351
+ synthetic_creds_path: "~/.fake_secrets/"
352
+ exfil_endpoint: "127.0.0.1:8888 (loopback only)"
353
+ persistence: "cron entry dropped on subset of trials, removed at trial end"
354
+ modeled_after: "Shai-Hulud npm worm (publicly disclosed)"
355
+ not_implemented:
356
+ - "worm propagation"
357
+ - "real-internet exfil"
358
+ - "real credentials"
359
+ - "sandbox escape"
360
+
361
+ # --- Capstone (paper-defined chained scenario) ---
362
+
363
+ - id: "CHAIN.CAP01"
364
+ mitre_name: "Capstone Chain v0.1 (Supply-Chain Narrative)"
365
+ tactic: "execution"
366
+ n_trials: 2
367
+ n_events: 34130
368
+ degraded: true
369
+ paper_defined: true
370
+ sequence_full:
371
+ - { step: 1, technique: "T1059.004", atomic: 1, label: "shell spawn" }
372
+ - { step: 2, technique: "T1057", atomic: 1, label: "process discovery" }
373
+ - { step: 3, technique: "T1003.008", atomic: 1, label: "/etc/shadow read" }
374
+ - { step: 4, technique: "T1105", atomic: 27, label: "curl-to-loopback ingress (127.0.0.1:8888)" }
375
+ - { step: 5, technique: "T1070.004", atomic: 1, label: "rm evidence cleanup" }
376
+ trials:
377
+ - trial: 1
378
+ sequence: "full"
379
+ degraded: false
380
+ - trial: 2
381
+ sequence: "T1057:1 -> T1003.008:1 -> T1105:27 -> T1070.004:1"
382
+ degraded: true
383
+ degraded_note: "T1059.004 step skipped at script invocation due to missing trial argument"
384
+ labels_csv_notes_verbatim: "broken 4-atomic chain: T1057:1 -> T1003.008:1 -> T1105:27 -> T1070.004:1; T1059.004 skipped due to invocation arg error (trial arg missing)"
385
+ notes: "Wrapped in a single (start, end) marker pair so the chained sequence is one labeled interval rather than five disconnected windows. Cleanup of every step runs inside the marker window; per-step cooldowns are suppressed to avoid fragmenting the chain with visible silences."
386
+
387
+ # ============================================================
388
+ # Techniques deliberately excluded from the campaign
389
+ # ============================================================
390
+
391
+ excluded_techniques:
392
+ - id: "T1569.002"
393
+ mitre_name: "System Services: Service Execution"
394
+ reason: "Only Linux atomic at pinned SHA is psexec.py, which requires a remote target host. No remote target was provisioned."
395
+
396
+ # ============================================================
397
+ # References
398
+ # ============================================================
399
+
400
+ references:
401
+ dendroaspis: "https://github.com/ryypow/dendroaspis"
402
+ mitre_attack: "https://attack.mitre.org/"
403
+ atomic_red_team_repo: "https://github.com/redcanaryco/atomic-red-team"
404
+ atomic_red_team_pinned_sha: "e575444941e27787bdb1b6ab881628fc2cc904b9"
405
+ tetragon: "https://github.com/cilium/tetragon"
406
+ shai_hulud_reference: "https://unit42.paloaltonetworks.com/shai-hulud-npm-supply-chain/"
407
+ paper_title: "Dendroaspis: Detecting Agent-Orchestrated Attacks on High-Entropy Workstations via eBPF and Mamba"
408
+ paper_year: 2026
409
+ paper_author: "Ryan W. Powers"
410
+ labels_csv_path: "data/labels.csv"
agentic-art-campaign/labels.csv ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ host,technique_id,technique_name,tactic,start_ts,end_ts,trial,delivery,notes
2
+ sandbox_host,CHAIN.CAP01,Capstone Chain v0.1 (Supply-Chain Narrative),execution,2026-04-20T01:59:31.920547970Z,2026-04-20T01:59:45.019566446Z,1,art,
3
+ sandbox_host,T1003.008,/etc/passwd and /etc/shadow,credential_access,2026-04-20T00:27:19.544699604Z,2026-04-20T00:27:21.324864544Z,1,art,
4
+ sandbox_host,T1003.008,/etc/passwd and /etc/shadow,credential_access,2026-04-20T00:27:26.330849154Z,2026-04-20T00:27:28.103071204Z,2,art,
5
+ sandbox_host,T1003.008,/etc/passwd and /etc/shadow,credential_access,2026-04-20T00:27:33.109311865Z,2026-04-20T00:27:34.913462371Z,3,art,
6
+ sandbox_host,T1027,Obfuscated Files or Information,defense_evasion,2026-04-20T00:26:44.362314451Z,2026-04-20T00:26:46.260972910Z,1,art,
7
+ sandbox_host,T1036.005,Match Legitimate Name or Location,defense_evasion,2026-04-20T00:27:01.981472730Z,2026-04-20T00:27:03.743904270Z,1,art,
8
+ sandbox_host,T1053.003,Cron,persistence,2026-04-19T23:21:15.318086413Z,2026-04-19T23:21:17.129137323Z,1,art,
9
+ sandbox_host,T1053.003,Cron,persistence,2026-04-19T23:21:22.134835969Z,2026-04-19T23:21:23.928586108Z,2,art,
10
+ sandbox_host,T1053.003,Cron,persistence,2026-04-19T23:21:28.934815378Z,2026-04-19T23:21:30.715299868Z,3,art,
11
+ sandbox_host,T1057,Process Discovery,discovery,2026-04-20T00:30:24.402125645Z,2026-04-20T00:30:26.221544426Z,1,art,
12
+ sandbox_host,T1059.004,Unix Shell,execution,2026-04-19T23:18:01.681365242Z,2026-04-19T23:18:06.719474616Z,1,art,
13
+ sandbox_host,T1059.004,Unix Shell,execution,2026-04-19T23:18:11.725866322Z,2026-04-19T23:18:20.496957475Z,2,art,
14
+ sandbox_host,T1059.004,Unix Shell,execution,2026-04-19T23:18:25.503038168Z,2026-04-19T23:18:27.525715696Z,3,art,
15
+ sandbox_host,T1059.006,Python,execution,2026-04-19T23:18:43.341638054Z,2026-04-19T23:18:45.368727507Z,1,art,
16
+ sandbox_host,T1059.006,Python,execution,2026-04-19T23:18:50.375362308Z,2026-04-19T23:18:52.376624040Z,2,art,
17
+ sandbox_host,T1059.006,Python,execution,2026-04-19T23:18:57.383084874Z,2026-04-19T23:20:59.334084903Z,3,art,
18
+ sandbox_host,T1070.004,File Deletion,defense_evasion,2026-04-20T00:25:41.526420121Z,2026-04-20T00:25:43.370513123Z,1,art,
19
+ sandbox_host,T1070.004,File Deletion,defense_evasion,2026-04-20T00:25:48.376868194Z,2026-04-20T00:25:50.213997357Z,2,art,
20
+ sandbox_host,T1070.004,File Deletion,defense_evasion,2026-04-20T00:25:55.220340905Z,2026-04-20T00:25:57.134692866Z,3,art,
21
+ sandbox_host,T1082,System Information Discovery,discovery,2026-04-20T00:30:41.953754187Z,2026-04-20T00:30:44.050727668Z,1,art,
22
+ sandbox_host,T1082,System Information Discovery,discovery,2026-04-20T00:30:49.057145569Z,2026-04-20T00:30:51.145539391Z,2,art,
23
+ sandbox_host,T1082,System Information Discovery,discovery,2026-04-20T00:30:56.152341899Z,2026-04-20T00:30:58.262445401Z,3,art,
24
+ sandbox_host,T1083,File and Directory Discovery,discovery,2026-04-20T00:31:13.943771670Z,2026-04-20T00:31:15.858295030Z,1,art,
25
+ sandbox_host,T1083,File and Directory Discovery,discovery,2026-04-20T00:31:20.864889022Z,2026-04-20T00:31:30.438740733Z,2,art,
26
+ sandbox_host,T1083,File and Directory Discovery,discovery,2026-04-20T00:31:35.445243985Z,2026-04-20T00:31:37.269590947Z,3,art,
27
+ sandbox_host,T1098.004,SSH Authorized Keys,persistence,2026-04-20T00:14:12.358631741Z,2026-04-20T00:14:14.020111589Z,1,art,
28
+ sandbox_host,T1105,Ingress Tool Transfer,command_and_control,2026-04-20T00:31:52.969294229Z,2026-04-20T00:31:55.663769554Z,1,art,
29
+ sandbox_host,T1105,Ingress Tool Transfer,command_and_control,2026-04-20T00:32:00.671484771Z,2026-04-20T00:32:03.128654301Z,2,art,
30
+ sandbox_host,T1105,Ingress Tool Transfer,command_and_control,2026-04-20T00:32:08.135220672Z,2026-04-20T00:32:10.559928579Z,3,art,
31
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:45:43.962209623Z,2026-04-19T22:45:45.235700734Z,1,art,
32
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:45:51.463755615Z,2026-04-19T22:45:52.756753227Z,2,art,
33
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:45:58.980795684Z,2026-04-19T22:46:00.263649678Z,3,art,
34
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:46:06.486450544Z,2026-04-19T22:46:07.774254382Z,4,art,
35
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:46:13.991062337Z,2026-04-19T22:46:15.276347100Z,5,art,
36
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:46:21.493778083Z,2026-04-19T22:46:22.784321750Z,6,art,
37
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:46:29.005948563Z,2026-04-19T22:46:30.278480726Z,7,art,
38
+ sandbox_host,T1195.002,Compromise Software Supply Chain,initial_access,2026-04-19T22:46:36.495816216Z,2026-04-19T22:46:37.785140546Z,8,art,
39
+ sandbox_host,T1222.002,Linux and Mac File and Directory Permissions Modification,defense_evasion,2026-04-20T00:26:12.922543247Z,2026-04-20T00:26:14.846949090Z,1,art,
40
+ sandbox_host,T1222.002,Linux and Mac File and Directory Permissions Modification,defense_evasion,2026-04-20T00:26:19.853198637Z,2026-04-20T00:26:21.783431606Z,2,art,
41
+ sandbox_host,T1222.002,Linux and Mac File and Directory Permissions Modification,defense_evasion,2026-04-20T00:26:26.789544755Z,2026-04-20T00:26:28.721170208Z,3,art,
42
+ sandbox_host,T1543.002,Systemd Service,persistence,2026-04-19T23:50:59.765650410Z,2026-04-19T23:51:26.521462122Z,1,art,
43
+ sandbox_host,T1543.002,Systemd Service,persistence,2026-04-19T23:52:39.894720646Z,2026-04-19T23:54:17.576136538Z,2,art,
44
+ sandbox_host,T1543.002,Systemd Service,persistence,2026-04-19T23:54:22.582266884Z,2026-04-19T23:54:45.571424667Z,3,art,
45
+ sandbox_host,T1546.004,Unix Shell Configuration Modification,persistence,2026-04-19T23:55:01.568631159Z,2026-04-19T23:55:03.406917745Z,1,art,
46
+ sandbox_host,T1546.004,Unix Shell Configuration Modification,persistence,2026-04-19T23:55:08.413312998Z,2026-04-19T23:55:10.202837668Z,2,art,
47
+ sandbox_host,T1546.004,Unix Shell Configuration Modification,persistence,2026-04-19T23:55:15.209673036Z,2026-04-19T23:55:17.010232860Z,3,art,
48
+ sandbox_host,T1548.001,Setuid and Setgid,privilege_escalation,2026-04-20T00:14:29.982832656Z,2026-04-20T00:14:36.862804138Z,1,art,
49
+ sandbox_host,T1548.001,Setuid and Setgid,privilege_escalation,2026-04-20T00:14:41.869002067Z,2026-04-20T00:14:48.769179332Z,2,art,
50
+ sandbox_host,T1548.001,Setuid and Setgid,privilege_escalation,2026-04-20T00:14:53.775331564Z,2026-04-20T00:14:55.585905430Z,3,art,
51
+ sandbox_host,T1548.003,Sudo and Sudo Caching,privilege_escalation,2026-04-20T00:15:11.314148281Z,2026-04-20T00:17:13.146519169Z,1,art,
52
+ sandbox_host,T1548.003,Sudo and Sudo Caching,privilege_escalation,2026-04-20T00:17:18.152866405Z,2026-04-20T00:17:19.949403438Z,2,art,
53
+ sandbox_host,T1548.003,Sudo and Sudo Caching,privilege_escalation,2026-04-20T00:17:24.955045263Z,2026-04-20T00:17:30.215813570Z,3,art,
54
+ sandbox_host,T1552.001,Credentials In Files,credential_access,2026-04-20T00:27:50.629812895Z,2026-04-20T00:27:52.498058179Z,1,art,
55
+ sandbox_host,T1552.001,Credentials In Files,credential_access,2026-04-20T00:27:57.504584495Z,2026-04-20T00:29:59.576360961Z,2,art,
56
+ sandbox_host,T1552.001,Credentials In Files,credential_access,2026-04-20T00:30:04.583017711Z,2026-04-20T00:30:08.574646575Z,3,art,
57
+ sandbox_host,T1562.001,Disable or Modify Tools,defense_evasion,2026-04-20T00:32:26.379801715Z,2026-04-20T00:33:17.755734382Z,1,art,
58
+ sandbox_host,T1562.001,Disable or Modify Tools,defense_evasion,2026-04-20T00:33:22.761738237Z,2026-04-20T00:33:25.101641640Z,2,art,
59
+ sandbox_host,T1562.001,Disable or Modify Tools,defense_evasion,2026-04-20T00:33:30.108255228Z,2026-04-20T00:33:32.422829942Z,3,art,
60
+ sandbox_host,T1574.006,Dynamic Linker Hijacking,privilege_escalation,2026-04-20T00:19:24.001827850Z,2026-04-20T00:19:25.776246404Z,1,art,
61
+ sandbox_host,T1574.006,Dynamic Linker Hijacking,privilege_escalation,2026-04-20T00:19:30.782463207Z,2026-04-20T00:19:32.576378213Z,2,art,
62
+ sandbox_host,CHAIN.CAP01,Capstone Chain v0.1 (Supply-Chain Narrative),execution,2026-04-20T00:49:29.090978396Z,2026-04-20T00:49:37.045509190Z,2,art,broken 4-atomic chain: T1057:1 -> T1003.008:1 -> T1105:27 -> T1070.004:1; T1059.004 skipped due to invocation arg error (trial arg missing)
datacard.md ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - other
6
+ tags:
7
+ - host-intrusion-detection
8
+ - tetragon
9
+ - ebpf
10
+ - sequence-modeling
11
+ - att-and-ck
12
+ - anomaly-detection
13
+ size_categories:
14
+ - 10M<n<100M
15
+ language: []
16
+ pretty_name: "v0.2 Tetragon-native HIDS corpus (22 technique IDs)"
17
+ ---
18
+
19
+ ## Dataset summary
20
+
21
+ - **Source:** Tetragon 1.6.1 eBPF telemetry on a single LXC container,
22
+ 6-day collection window 2026-04-14 → 2026-04-20.
23
+ - **Population:** all process / file / network / credential / memory events
24
+ attributable to the target container's PID-namespace inum across the
25
+ collection window (parser filters host-namespace events at parse time).
26
+ - **Splits:** chronological — train (2026-04-14T01:41Z → 2026-04-19T22:09Z) /
27
+ test (2026-04-19T21:46Z → 2026-04-20T02:01Z). All ART attack intervals
28
+ fall in the test split; train is benign-only by construction.
29
+ - **Format:** Parquet shards under `data/`, suitable for the Hugging Face
30
+ `datasets` library streaming loader. Labels are a separate `labels.csv`.
31
+ - **License:** CC BY 4.0.
32
+
33
+ ---
34
+
35
+ ## Supported tasks
36
+
37
+ - **Host-telemetry anomaly detection.** Per-event or per-window scoring
38
+ against the time-window labels in `labels.csv`.
39
+ - **Sequence anomaly modeling.** Autoregressive next-event prediction (NLL)
40
+ or masked-event modeling (MEM, including field-aware MEM-FA) over the
41
+ integer-coded feature columns.
42
+ - **Event-stream classification baselines.** N-gram, IsolationForest,
43
+ XGBoost, etc. operate directly on the categorical / hash columns.
44
+
45
+ The corpus is **not** intended for: attack-payload synthesis, ground-truth
46
+ event-level labels (only intervals are labeled), or production deployment
47
+ without recalibration to the operator's own host distribution.
48
+
49
+ ---
50
+
51
+ ## Dataset structure
52
+
53
+ ### Splits
54
+
55
+ | Split | Rows | Time span (UTC)† | Attack events | Attack rate |
56
+ |-------|------------|---------------------------------------------------|---------------|-------------|
57
+ | train | 16,951,950 | 2026-04-14 01:41:13 → 2026-04-19 22:09:18 | 0 | 0.0 % |
58
+ | test | 2,349,965 | 2026-04-19 21:46:27 → 2026-04-20 02:01:27 | 705,852 | 30.0 % |
59
+
60
+ **† Pre-window event timestamps.** ≈295 events (267 train + 28 test, 0.0015 %
61
+ of the corpus) carry `event_time` values that predate the stated collection
62
+ window. All have `f_is_procfs_walk = 1`: parser-synthesized `process_exec`
63
+ records for daemons (`systemd`, `bash`, `dbus-daemon`, `polkitd`, `cron`,
64
+ `sshd`, etc.) that were already running when Tetragon collection started,
65
+ using the daemon's original `process_start_time` as the event timestamp.
66
+ They preserve lineage roots for downstream events. Filter
67
+ `WHERE f_is_procfs_walk = 0` to exclude them from time-window analysis.
68
+
69
+ ### Schema evolution (v0.2.1)
70
+
71
+ The release artifact is the **encoded** parquet (63 columns: 39 model-input
72
+ columns + 7 hash columns + identifier and side-string columns). Compared to
73
+ v0.2.0 the encoded schema gained four 3a′ promoted categoricals
74
+ (`f_path_category`, `f_dst_ip_category`, `f_dst_port_category`,
75
+ `f_object_category`) and lost two constant-zero booleans (`f_in_init_tree`,
76
+ `f_args_truncated`); two hash columns were right-sized
77
+ (`f_proc_name_hash` 1024 → 2048, `f_proc_cwd_hash` 256 → 4096 with depth
78
+ 2 → 4 path components hashed). The full integer-code → label mapping is in
79
+ `reproduction/feature_definitions.json` (schema version 1.1).
80
+
81
+ The release pipeline is three-stage:
82
+
83
+ | Stage | Source field | Stage column | Transformation |
84
+ |-------|-----------------------------------------------|-------------------------------------------|----------------|
85
+ | Raw Tetragon JSON | `process_exec` / `process_exit` / `process_kprobe` envelope | `event_type` | passthrough → vocab `f_event_type` |
86
+ | → Parser (126-col raw, withheld) | `process.binary` | `proc_binary` (full path) | derive basename → `proc_binary_basename` (released, aliased) + hash `f_proc_name_hash` |
87
+ | | `process.cwd` | `proc_cwd` (full path) | normalize → `proc_cwd_normalized` (path-rewritten at release) + hash `f_proc_cwd_hash` |
88
+ | | `process.uid` | `proc_uid` (uint32) | bucket → `f_proc_uid_bucket` (uint8) — raw uid not released |
89
+ | | `process.arguments` | `proc_arguments` | length-bucket → `f_args_length_bucket` (uint8); raw args not released |
90
+ | | `process_kprobe.args[].sock.daddr` | `kp_sock_daddr` | category bucket → `dst_ip_category` (string) — raw IP not released |
91
+ | → Behavior builder (encoded, released) | (event_type, kprobe_function_name) | `f_action_family` (uint8, 15 codes) | derived; see `feature_definitions.json` |
92
+ | | (parent_basename, proc_basename) pair | `f_parent_child_pair_hash` (uint16, 1024 buckets) | hash |
93
+ | | proc_exec_id walk | `f_lineage_depth`, `f_root_ancestor_basename_hash`, `f_process_tree_id_hash` | derived |
94
+
95
+ The **126-column raw parser output is withheld** from the public release.
96
+ All raw paths, raw arguments, raw IPs, raw uids, hostnames, and PID-namespace
97
+ inums are dropped at this stage; see "Personal and sensitive information"
98
+ below for the per-column decisions.
99
+
100
+ ### Feature column inventory (encoded parquet)
101
+
102
+ Full integer-code → label mapping for every categorical column lives in
103
+ `reproduction/feature_definitions.json`. High-level summary:
104
+
105
+ - **22 integer-coded categorical columns** — 18 from v0.2.0 plus the four
106
+ 3a′ promoted categoricals (`f_path_category` 11-way, `f_dst_ip_category`
107
+ 6-way, `f_dst_port_category` 7-way, `f_object_category` 8-way).
108
+ - **4 string-coded categorical columns** (`path_category`, `object_category`,
109
+ `dst_ip_category`, `dst_port_category`) — provenance side columns,
110
+ identical semantics to their `f_*` integer counterparts.
111
+ - **7 hash columns** with declared bucket capacities (2048 / 1024 / 4096 /
112
+ 256 / 1024 / 1024 / 4096 — see *Hash-bucket utilization* below).
113
+ - **6 boolean flag columns** (e.g. `f_is_procfs_walk`, `f_uid_eq_parent`,
114
+ `f_kp_commit_creds_uid_change`).
115
+ - **5 numeric columns** (`delta_t_prev_ns`, `process_age_ns`, mmap/mprotect
116
+ prot bitmasks, fd integer).
117
+ - **3 bucketed log-time columns** (`f_delta_t_log_bucket`,
118
+ `f_process_age_log_bucket`, `f_lineage_depth`).
119
+ - **3 identifier columns** (`event_time`, `proc_exec_id`, `proc_pid`).
120
+ - **7 release-eligible side-string columns** (basenames, normalized cwd,
121
+ parent-child pair, token, process_tree_root_exec_id).
122
+
123
+ ### Class distributions (train split)
124
+
125
+ **`f_event_type`** (4-way; OOV not observed):
126
+
127
+ | Code | Label | Count | % |
128
+ |------|-------------------|-------------|-------|
129
+ | 2 | process_kprobe | 16,413,759 | 96.83 |
130
+ | 1 | process_exit | 288,716 | 1.70 |
131
+ | 0 | process_exec | 249,475 | 1.47 |
132
+
133
+ **`f_action_family`** (15-way; top 10 shown; full table in
134
+ `feature_definitions.json`):
135
+
136
+ | Code | Label | Count |
137
+ |------|--------------------|-------------|
138
+ | 6 | FILE_OPEN | 14,852,286 |
139
+ | 12 | MEM_MAP | 1,168,402 |
140
+ | 1 | PROC_EXIT | 288,716 |
141
+ | 9 | PRIV_CHANGE | 257,709 |
142
+ | 0 | PROC_EXEC | 249,475 |
143
+ | 7 | FILE_DELETE | 44,818 |
144
+ | 5 | NET_SEND | 23,672 |
145
+ | 13 | MEM_PROTECT | 19,059 |
146
+ | 3 | NET_CLOSE | 18,451 |
147
+ | 2 | NET_CONNECT | 16,359 |
148
+
149
+ ### ATT&CK label coverage
150
+
151
+ 61 labeled time intervals span 21 ATT&CK techniques + 1 supply-chain capstone
152
+ chain across 8 tactics. **All attack-positive intervals are in the test
153
+ split.** Per-technique event counts (test split, top 10 by event volume):
154
+
155
+ | ID | Technique | Test events |
156
+ |-------------|------------------------------------------------------------|-------------|
157
+ | T1059.004 | Unix Shell | 175,797 |
158
+ | T1083 | File and Directory Discovery | 154,581 |
159
+ | T1552.001 | Credentials In Files | 97,493 |
160
+ | T1543.002 | Systemd Service | 47,901 |
161
+ | CHAIN.CAP01 | Capstone Chain v0.1 (Supply-Chain Narrative) | 34,130 |
162
+ | T1548.003 | Sudo and Sudo Caching | 24,229 |
163
+ | T1059.006 | Python | 22,675 |
164
+ | T1562.001 | Disable or Modify Tools | 18,610 |
165
+ | T1195.002 | Compromise Software Supply Chain | 15,703 |
166
+ | T1548.001 | Setuid and Setgid | 12,461 |
167
+
168
+ Full per-technique table is reproducible from `notebooks/v0-2_dataset_audit.ipynb`
169
+ (cell 63).
170
+
171
+ ### Hash-bucket utilization (train split, post-3a′ caps)
172
+
173
+ | Column | Capacity | Buckets used | Saturation |
174
+ |---------------------------------|----------|--------------|------------|
175
+ | f_proc_name_hash | 2048 | 269 | 13.1 % |
176
+ | f_parent_proc_hash | 1024 | 121 | 11.8 % |
177
+ | f_proc_cwd_hash | 4096 | 65 | 1.6 % |
178
+ | f_lineage_bag_hash | 256 | 98 | 38.3 % |
179
+ | f_parent_child_pair_hash | 1024 | 490 | 47.9 % |
180
+ | f_root_ancestor_basename_hash | 1024 | 5 | 0.5 % |
181
+ | f_process_tree_id_hash | 4096 | 7 | 0.2 % |
182
+
183
+ Low saturation reflects the single-host single-developer baseline (a small
184
+ real basename / cwd / lineage population). The 3a′ capacity bumps on
185
+ `f_proc_name_hash` and `f_proc_cwd_hash` were sized for plausible multi-host
186
+ saturation rather than this corpus's observed counts; the values are
187
+ documented here so re-trainers can resize the embedding tables.
188
+
189
+ ---
190
+
191
+ ## Dataset creation
192
+
193
+ ### Curation rationale
194
+
195
+ This dataset was assembled to support the v0.2 milestone of an academic
196
+ project investigating Mamba-based anomaly detection on host telemetry. The
197
+ v0.1 predecessor produced an *inverted* AUROC (~0.35) on a similar but
198
+ parser-buggy corpus; v0.2 was rebuilt with a Tetragon-native parser,
199
+ sentinel-window exclusion at parse time, and a two-stage
200
+ parser → behavior-builder design that preserves a raw normalized parquet
201
+ internally for iteration. The **v0.2.1 release** further re-parsed the same
202
+ collection on 2026-04-29 with five correctness fixes:
203
+
204
+ - Procfs-walk synthetic execs are now **tagged, not dropped** (1,346 events
205
+ recovered corpus-wide; lineage gaps for daemons running before agent start
206
+ closed).
207
+ - `delta_t_prev_ns` is keyed **per-process** rather than globally, removing
208
+ 44,947 train + 1,643 test negative residuals.
209
+ - Test-split lineage walking now seeds from the train parquet first,
210
+ resolving 39 % of previously-missing parents (test
211
+ `lineage_missing_parent`: 5.25 % → 2.88 %).
212
+ - Parser parallelized across files via `multiprocessing.Pool`, with DuckDB
213
+ `ORDER BY event_time` for chronological output.
214
+ - Mamba NLL scorer's front-pad alignment fix: `nll_padded[i]` is now event
215
+ *i*'s surprise (was *i+1*'s in v0.2.0).
216
+
217
+ ### Source data
218
+
219
+ - **Sensor:** Tetragon 1.6.1 (Cilium eBPF) running on a Linux host.
220
+ - **Workload:** a single LXC container hosting a developer's daily workspace
221
+ (Node, Python, VSCode, npm). Background services inside the container
222
+ (systemd-resolved, dbus, polkitd, etc.) contribute system noise.
223
+ - **Tracing policies:** 7 YAML policies covering file, network, memory,
224
+ privilege, process-injection, and file-attribute kprobes (bundled in
225
+ `reproduction/tetragon-configs/`).
226
+ - **Attribution:** the parser pins on PID-namespace inum, which uniquely
227
+ identifies the target container across an inum rotation that occurred
228
+ during the collection window. Host-namespace events are dropped at parse
229
+ time.
230
+
231
+ ### Annotations
232
+
233
+ Time-window labels are provided in `labels.csv` (61 rows; 22 distinct
234
+ technique IDs incl. one capstone chain; 8 tactics). Labels were generated
235
+ by an Atomic Red Team campaign run inside the same container during the
236
+ test window, with start/end timestamps captured per-trial. The campaign
237
+ manifest is bundled at `reproduction/agentic-art-campaign/`.
238
+
239
+ ### Personal and sensitive information
240
+
241
+ **component-first anonymization** with deep aliasing across all PII-bearing string
242
+ columns. Summary:
243
+
244
+ - **126-column raw parquet withheld.** All raw paths, raw arguments, raw
245
+ IPs, raw uids, hostnames, and PID-namespace inums are dropped at the
246
+ parser stage. The released parquet is the 63-column encoded form.
247
+ - **Basename aliasing.** A single alias map covers `proc_binary_basename`,
248
+ `parent_binary_basename`, and `root_ancestor_basename`. Distro-standard
249
+ binaries and dev-tooling that anchor the "standardized agentic-research
250
+ workstation" baseline (`bash`, `node`, `python3.12`, `claude`, `gh`,
251
+ `npm`, `code`, `git`, etc.) pass through verbatim. Custom binaries
252
+ (ART trial scripts, build artifacts) become `custom_tool_NNN` (lex-sorted).
253
+ VSCode commit-hash binaries (`code-<40hex>`) collapse to a single
254
+ `vscode_server_bin` alias. The full original → alias map is shipped at
255
+ `reproduction/alias_map.json`.
256
+ - **Composite re-composition.** `parent_child_pair` and `token` are
257
+ regenerated from the aliased atomic columns via the canonical
258
+ `format_token`, so the original (un-aliased) basename never re-enters
259
+ these fields.
260
+ - **Path rewriting.** `proc_cwd_normalized` is rewritten by ordered rules:
261
+ `/home/<user>` → `/home/_user_`, `/Users/<user>` → `/Users/_user_`,
262
+ `/mnt/projects/<X>` → `/workspace/_project_`, `/projects/<X>` →
263
+ `/workspace/_project_`, residual `rypow_` → `custom_`.
264
+ - **Exec-id pseudonymization.** `proc_exec_id` and
265
+ `process_tree_root_exec_id` are rewritten as
266
+ `exec_<32hex>` via salted HMAC-SHA256 (16-byte digest, hex-encoded).
267
+ Equality joins are preserved (lineage walks still work); the original
268
+ base64-encoded `host:ts:pid` payload is erased.
269
+ - **Defensive global string sweep.** A final substring pass over every
270
+ string column substitutes `rypow → research_user`,
271
+ `prox1 → sandbox_host`, `dendroaspis → agent_platform_v02`,
272
+ `ryan_admin → privileged_user` as a safety net.
273
+ - **Post-write assertions.** A regex sweep over the released shards
274
+ (notebook §22-24) confirms zero matches on raw or base64-decoded values
275
+ for any of: `prox1`, `rypow`, `ryan_admin`, `/home/rypow/`,
276
+ `/projects/ml_final_project`, `/mnt/projects/`, `dendroaspis`,
277
+ `/datasets/`, MAC-address pattern. `proc_exec_id` and
278
+ `process_tree_root_exec_id` are format-checked against
279
+ `^exec_[0-9a-f]{32}$`. Every basename in the three basename columns is
280
+ asserted to be in the alias-map closure.
281
+
282
+ ---
283
+
284
+ ## Considerations for using the data
285
+
286
+ ### Sources of bias
287
+
288
+ - **Single host, single developer.** All baseline (benign) telemetry comes
289
+ from one Linux container running one developer's daily workflow over six
290
+ days. Tool habits (VSCode, npm, git, claude-code) appear at high
291
+ frequency; absent activities (CI/CD pipelines, multi-tenant traffic, GPU
292
+ jobs) are simply not represented.
293
+ - **Container-internal UIDs.** Tetragon 1.6.1 emits container-internal UIDs;
294
+ the encoder buckets uids into 5 classes (ROOT / RESEARCH_USER /
295
+ SYSTEM_LOW / DAEMON_HIGH / OTHER) rather than treating them as a
296
+ continuous identifier. Researchers reusing these buckets on multi-host
297
+ data should re-bucket.
298
+ - **Time skew.** Train spans 5 d 20 h, test spans only 4 h 15 m. The test
299
+ window concentrates 30 % attack-event mass, which is unrealistically dense
300
+ for production traffic; downstream metrics (AUROC, AP) on this corpus
301
+ reflect the campaign's deliberate density.
302
+ - **Hash-bucket sparsity.** Hash columns are sized for plausible multi-host
303
+ saturation; on this single-host corpus most are < 50 % utilized (see
304
+ hash-bucket table above).
305
+ - **Aliased basename narrative.** The v0.2.1 anonymizer collapses a long
306
+ tail of one-off custom binaries into `custom_tool_NNN` slots and folds
307
+ per-build VSCode commit-hash binaries into `vscode_server_bin`. The
308
+ resulting parquet looks like a "standardized agentic-research workstation"
309
+ baseline more than the specific developer's machine; the true diversity
310
+ of custom-script names was higher than what survives in the released
311
+ string columns.
312
+
313
+ ### Social impact
314
+
315
+ This is a defensive-research dataset. It enables researchers to develop and
316
+ benchmark host-anomaly-detection models without operating live attack
317
+ infrastructure. The bundled ATT&CK technique inventory is **not** an
318
+ attack tutorial — payload generation requires a separate Atomic Red Team
319
+ installation and is out of scope.
320
+
321
+ ### Known limitations
322
+
323
+ - **No ground-truth event-level labels.** Labels are time-window only; some
324
+ benign system activity (e.g. background daemons running during an ART
325
+ technique window) is *labeled-attack* by association.
326
+ - **Train has zero attack events.** All ART intervals fall in test by
327
+ construction. Unsupervised / self-supervised methods are the natural fit;
328
+ fully supervised classifiers would need to engineer their own
329
+ train-time positives.
330
+ - **Single Tetragon version.** Format quirks of Tetragon 1.6.1 (e.g.
331
+ KPROBE_ACTION enum coverage, ns-PID inum semantics) are baked in. Older
332
+ / newer Tetragon emits slightly different envelopes; the parser pin in
333
+ `reproduction/PARSER_VERSION` documents the exact reference build.
334
+ - **Linux only.** Tetragon is Linux-only; this corpus has no Windows or
335
+ macOS analogue.
336
+
337
+ ### Intended use + dual-use disclaimer
338
+
339
+ **Intended use.** This dataset supports:
340
+
341
+ - training and evaluating sequence / anomaly models on host telemetry,
342
+ - benchmarking baselines (n-gram, XGBoost, IsolationForest, LSTM, Mamba,
343
+ Transformer) on a fixed split,
344
+ - studying ATT&CK-technique-specific detectability,
345
+ - research on attack representations, lineage features, and event encoders.
346
+
347
+ **Not intended use.** The attack telemetry is real ATT&CK technique
348
+ execution but generated in an isolated lab LXC container; the corpus is
349
+ **not** an attack template, **not** a payload library, and **not** a
350
+ substitute for production EDR data. Operators who reuse the bundled
351
+ tracing policies + parser to collect their own corpus are responsible for
352
+ their own sandboxing.
353
+
354
+ ---
355
+
356
+ ## Additional information
357
+
358
+ ### License
359
+
360
+ CC BY 4.0 — see `LICENSE` in this repo. Code under
361
+ `reproduction/scripts/` (in the project repository) is MIT-licensed.
362
+
363
+ ### Citation
364
+
365
+ ```bibtex
366
+ @dataset{dendroaspis_v0_2_2026,
367
+ title = {v0.2 Tetragon-native HIDS corpus with 21 ATT\&CK techniques},
368
+ author = {Powers, Ryan William},
369
+ year = {2026},
370
+ version = {0.2.1},
371
+ doi = {<TBD-on-publish>},
372
+ url = {<TBD-on-publish>}
373
+ }
374
+ ```
375
+
376
+ ### Contact
377
+
378
+ GitHub: [@ryypow](https://github.com/ryypow). Issues / corrections
379
+ preferred via the project repository.
380
+
381
+ repos: https://github.com/ryypow/dendroaspis
datasheet.md ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Datasheet — v0.2 Tetragon-native HIDS corpus
2
+
3
+ Following the [Datasheets for Datasets](https://arxiv.org/abs/1803.09010)
4
+ framework (Gebru et al.). Cross-references the
5
+ [`datacard.md`](./datacard.md) for numerical breakdowns; this document
6
+ covers process and provenance.
7
+
8
+ ---
9
+
10
+ ## 1. Motivation
11
+
12
+ ### Why was this dataset created?
13
+
14
+ To support an academic project investigating
15
+ distributed Mamba state-space models for host-telemetry LLM-orchestrated attack detection.
16
+
17
+ ### Who created this dataset and on behalf of which entity?
18
+
19
+ Ryan William Powers, in the context of an academic course project. No
20
+ commercial entity is involved; collection happened on the author's own
21
+ Linux host.
22
+
23
+ ### Who funded the creation of the dataset?
24
+
25
+ Self-funded.
26
+
27
+ ### Any other comments?
28
+
29
+ The release is contingent on the author's anonymization sweep: per-column decisions
30
+ documented in the datacard's "Personal and sensitive information" section);
31
+ no third-party identifiable data was captured because no third-party
32
+ traffic crosses the isolated LXC container.
33
+
34
+ ---
35
+
36
+ ## 2. Composition
37
+
38
+ ### What do the instances represent?
39
+
40
+ Each instance is a single **OS event** — one row of the parquet —
41
+ emitted by Tetragon eBPF probes inside an LXC container during normal
42
+ developer activity or during a labeled ATT&CK technique trial. Events
43
+ fall into three top-level types: `process_exec`, `process_exit`, and
44
+ `process_kprobe` (with the kprobe sub-type captured in
45
+ `f_kprobe_function`).
46
+
47
+ ### How many instances are there?
48
+
49
+ - Train: 16,951,950 events (no attack labels by design)
50
+ - Test: 2,349,965 events (705,852 inside labeled-attack windows ≈ 30 %)
51
+ - Total: 19,301,915 events
52
+
53
+ ### Does the dataset contain all possible instances?
54
+
55
+ No. The dataset is a **time-bounded sample** from one host between
56
+ 2026-04-14T01:41Z and 2026-04-20T02:01Z. Only events the parser admits
57
+ (post container filter, post sentinel-window exclusion) reach the
58
+ parquet. Procfs-walk synthetic execs are **tagged** (via
59
+ `f_is_procfs_walk = 1`) rather than dropped, so they are present in the
60
+ release; filter on the flag if needed.
61
+
62
+ ### What does each instance consist of?
63
+
64
+ A 63-column row mixing:
65
+ - 22 integer-coded categoricals (`f_event_type`, `f_action_family`, etc.,
66
+ including the four 3a′ promoted categoricals: `f_path_category`,
67
+ `f_dst_ip_category`, `f_dst_port_category`, `f_object_category`)
68
+ - 4 string-coded categoricals (`path_category`, `object_category`,
69
+ `dst_ip_category`, `dst_port_category` — provenance side columns)
70
+ - 7 hash columns (256–4096 buckets each)
71
+ - 6 boolean flags (`f_in_init_tree` and `f_args_truncated` were dropped
72
+ in 3a′ as constant-zero in this corpus)
73
+ - 5 numeric columns (timestamps in ns, capability bitmasks, fd integer)
74
+ - 3 bucketed log-time columns
75
+ - 3 identifier columns (`event_time`, `proc_exec_id`, `proc_pid`)
76
+ - 7 release-eligible side strings (basenames, normalized cwd,
77
+ `parent_child_pair`, `token`, `process_tree_root_exec_id`)
78
+
79
+ Full schema and integer-code → label mapping in
80
+ `reproduction/feature_definitions.json` (schema version 1.1).
81
+
82
+ ### Is there a label or target associated with each instance?
83
+
84
+ Not directly. **Time-window labels** in `labels.csv` provide
85
+ `(host, technique_id, technique_name, tactic, start_ts, end_ts, trial,
86
+ delivery, notes)` per ART trial. To label an instance, join on
87
+ `event_time >= start_ts AND event_time < end_ts` (half-open interval —
88
+ matches the audit notebook); the event inherits the intersected
89
+ interval's technique label. Events outside any interval are benign by
90
+ exclusion.
91
+
92
+ ### Is any information missing from individual instances?
93
+
94
+ Yes, by design:
95
+
96
+ - Raw paths (`proc_binary`, `proc_cwd`, `parent_*`, `kp_*_path`) are dropped.
97
+ - Raw arguments (`proc_arguments`, `parent_arguments`, `kprobe_args_json`)
98
+ are dropped.
99
+ - Raw IPs (`kp_sock_daddr`, `kp_sock_saddr`) are dropped.
100
+ - Raw uids and namespace inums are dropped.
101
+ - Hostnames (`node_name`) are dropped.
102
+ - `proc_exec_id` and `process_tree_root_exec_id` are pseudonymized to
103
+ `exec_<32hex>` via salted HMAC-SHA256; equality joins are preserved
104
+ (lineage walks still work) but the original `host:ts:pid` payload
105
+ is erased.
106
+ - Basenames (`proc_binary_basename`, `parent_binary_basename`,
107
+ `root_ancestor_basename`) are aliased: distro / dev-tooling pass
108
+ through verbatim, custom binaries become `custom_tool_NNN`, VSCode
109
+ commit-hash binaries collapse to `vscode_server_bin`. Full alias map
110
+ at `reproduction/alias_map.json`.
111
+
112
+ These are reachable in the original raw parquet (not released; see §6
113
+ distribution) and are reconstructible from the bundled parser + tracing
114
+ configs by re-collecting one's own data.
115
+
116
+ ### Are relationships between individual instances made explicit?
117
+
118
+ Yes — process lineage is preserved through three columns:
119
+
120
+ - `proc_exec_id` — pseudonymized but stable per-exec identifier.
121
+ - `f_lineage_depth` + `f_lineage_bag_hash` — encoder-side ancestry.
122
+ - `process_tree_root_exec_id` + `f_root_ancestor_basename_hash` — root
123
+ of the process subtree.
124
+
125
+ ### Are there recommended data splits?
126
+
127
+ Yes. **Use the chronological train/test split as shipped.** All ART
128
+ attack intervals fall in test; train is benign-only by construction.
129
+ This is the split the v0.2 paper reports on.
130
+
131
+ ### Is the dataset self-contained?
132
+
133
+ Almost. The parquet shards + `labels.csv` + `feature_definitions.json`
134
+ are the canonical artifact. `reproduction/` contains the configs.
135
+
136
+ ### Does the dataset contain confidential / offensive content?
137
+
138
+ No confidential third-party data — collection happened on an isolated
139
+ LXC container with no external user traffic. ATT&CK technique execution
140
+ is by construction adversarial-style activity but happened only against
141
+ the author's own container. An anonymizer further de-identifies
142
+ the released parquet (basename aliasing, path rewriting, exec-id
143
+ pseudonymization, defensive global string sweep — see
144
+ `datacard.md` "Personal and sensitive information").
145
+
146
+ ---
147
+
148
+ ## 3. Collection process
149
+
150
+ ### How was the data acquired?
151
+
152
+ - **Sensor:** Tetragon 1.6.1 (Cilium eBPF) running as a host-level daemon.
153
+ - **Target:** a single LXC container on the host. The parser pins on the
154
+ container's PID-namespace inum at filter time.
155
+ - **Tracing policies:** 7 YAML policies covering file (fd_install,
156
+ do_unlinkat, chmod_common), network (tcp_connect / close, inet_csk_accept,
157
+ udp_sendmsg), memory (security_mmap_file, security_file_mprotect),
158
+ privilege (commit_creds), process injection (sys_ptrace,
159
+ sys_process_vm_writev), and file-attribute hooks. Bundled in
160
+ `reproduction/tetragon-configs/`.
161
+ - **Output format:** rotated `events-*.json.gz` files written to
162
+ `/var/log/tetragon/` and rsynced to a NAS for archival.
163
+
164
+ ### Is the data sample of a larger set?
165
+
166
+ Yes — a time-bounded slice of the host's Tetragon stream during the
167
+ collection window. Earlier and later data from the same host exists but
168
+ is not part of this release.
169
+
170
+ ### Who collected the data, and how were they compensated?
171
+
172
+ The author. No compensation; this is an academic course project.
173
+
174
+ ### Over what timeframe was the data collected?
175
+
176
+ 2026-04-14T01:41:13Z (first event in train) → 2026-04-20T02:01:27Z (last
177
+ event in test). 6-day collection window, with a brief Tetragon outage on
178
+ 2026-04-18→19 (documented in the project repo's incident log) that
179
+ triggered a PID-namespace inum rotation captured in the multi-inum
180
+ `target_pid_ns_inum` filter.
181
+
182
+ ### Were any ethical-review processes conducted?
183
+
184
+ No formal IRB. The dataset captures only the author's own activity on
185
+ the author's own hardware.
186
+
187
+ ### Were the individuals notified / did they consent?
188
+
189
+ The dataset captures the author's own session; the author is the sole
190
+ subject and consents to the release
191
+
192
+ ---
193
+
194
+ ## 4. Preprocessing / cleaning / labeling
195
+
196
+ ### Was preprocessing / cleaning done?
197
+
198
+ Yes. Two stages:
199
+
200
+ 1. **Parser** (`tetragon_native_parser.py`):
201
+ - Container filter: drops events outside the target PID-namespace
202
+ inum set.
203
+ - Sentinel-window filter: drops events inside four ART setup / dry-run
204
+ / smoke-test intervals on 2026-04-19.
205
+ - Procfs-walk: synthetic execs from Tetragon's startup /proc/ scan
206
+ are **tagged** (`f_is_procfs_walk = 1`), not dropped — they preserve
207
+ lineage roots for daemons that pre-existed the agent.
208
+ - Field normalization: parses RFC3339-ns timestamps to int64 ns,
209
+ hydrates 126 typed columns from the JSONL envelopes.
210
+
211
+ 2. **Behavior builder** (`v0_2_behavior_builder.py`):
212
+ - Lineage walk to populate `f_lineage_*` and `process_tree_*` columns.
213
+ Train→test seeding closes daemon-rooted parents that lived only in
214
+ the train window.
215
+ - Action-family / object-category / path-category / dst-ip-category /
216
+ dst-port-category derivations.
217
+ - Hashing of basenames / lineage bags / parent-child pairs into
218
+ fixed-capacity buckets (3a′ caps: 2048 / 1024 / 4096 / 256 / 1024 /
219
+ 1024 / 4096).
220
+ - Categorical encoding of every kept column to `uint8` / `uint16`.
221
+ - Per-process `delta_t_prev_ns` keying (eliminates global-stream
222
+ ordering artifacts).
223
+
224
+ 3. **Anonymization** (`scripts/anonymize_v0_2_parquet.py`, run after the
225
+ builder): basename aliasing, path rewriting, composite re-composition,
226
+ exec-id salted-HMAC pseudonymization, defensive global string sweep.
227
+ See the datacard "Personal and sensitive information" section.
228
+
229
+ ### Was the "raw" data saved?
230
+
231
+ Yes, internally. The 126-column raw parquet (`raw_train.parquet`,
232
+ `raw_test.parquet`) is not part of the public release because it would
233
+ require column-level scrubbing across 9 path-bearing columns spanning
234
+ 60–95 % of rows. Re-collection from the bundled configs is the supported
235
+ path for raw data.
236
+
237
+ ### Is the preprocessing software available?
238
+
239
+ Yes. Both stages live in the project repository at the parser SHA pinned
240
+ in `reproduction/PARSER_VERSION`. The repo (linked from the
241
+ [Hugging Face dataset card](./datacard.md)) is permissively licensed (MIT).
242
+ - **https://github.com/ryypow/dendroaspis**
243
+
244
+ ---
245
+
246
+ ## 5. Uses
247
+
248
+ ### Has the dataset been used for any tasks?
249
+
250
+ Yes:
251
+
252
+ - **Mamba NLL (autoregressive, Run 2)** — next-event surprise scorer with
253
+ the front-pad alignment fix; test AUROC = 0.7411.
254
+ - **Mamba MEM-FA (field-aware masked-event modeling, Run 2)** —
255
+ per-field categorical CE heads on top of the encoded representation;
256
+ test AUROC = 0.7513 (best Mamba result on this corpus).
257
+ - **Classical-baseline bake-off** — n-gram (token-level), IsolationForest,
258
+ XGBoost, all trained on the same encoded feature columns. Best
259
+ classical: IsolationForest (AUROC 0.6658). Mamba's stack adds ≈0.085
260
+ AUROC over the strongest classical. Raw eval JSONs at
261
+ `mamba-edge/artifacts/v0.2/baseline_*/` in the project repo.
262
+
263
+ ### Is there a repository linking to use cases?
264
+
265
+ - **https://github.com/ryypow/dendroaspis**
266
+
267
+ ### What other tasks could this dataset be used for?
268
+
269
+ - ATT&CK-technique-specific detector evaluation
270
+ - Self-supervised pretraining for host-telemetry transformers
271
+ - Lineage / process-tree representation learning
272
+ - Temporal-anomaly-scoring baselines
273
+ - Sequence-tokenization research (the `token` column is a structured
274
+ composite identifier; alternative tokenizations can be derived)
275
+
276
+ ### Is there anything about the dataset's composition that could result in unfair treatment?
277
+
278
+ Single-host, single-developer baseline. Models trained on this corpus
279
+ **will not generalize** to multi-host or multi-tenant environments
280
+ without recalibration. The datacard's "Sources of bias" enumerates the
281
+ specific limitations.
282
+
283
+ ### Are there tasks for which the dataset should NOT be used?
284
+
285
+ - **Production deployment.** Recalibration is mandatory; the
286
+ hash-bucket sizes are right-sized for plausible multi-host saturation
287
+ but observed utilization here is very low — see datacard's
288
+ hash-bucket utilization table.
289
+ - **Generalization claims about HIDS.** A 21-technique single-host
290
+ evaluation is necessary but not sufficient evidence; use it as one
291
+ bench among many, not the bench.
292
+ - **Attack template / red-team training data.** The corpus is event-side
293
+ telemetry, not payloads.
294
+
295
+ ---
296
+
297
+ ## 6. Distribution
298
+
299
+ ### How will the dataset be distributed?
300
+
301
+ Hugging Face Hub — `<user>/dendroaspis-tetragon-hids` (URL filled in at
302
+ publish time). The release bundle is a directory; the parquet shards are
303
+ under `data/`, datacard / datasheet / license / citation at the root,
304
+ and reproduction artifacts under `reproduction/`. SHA256 manifest
305
+ included (`SHA256SUMS`) plus a JSON release manifest (`RELEASE.json`)
306
+ recording the build timestamp + revision SHA + per-file sha256.
307
+
308
+ ### Is there a fee?
309
+
310
+ No. Public, free.
311
+
312
+ ### When will the dataset be distributed?
313
+
314
+ April 2026
315
+
316
+ ### Will the dataset be distributed under a copyright / IP license?
317
+
318
+ CC BY 4.0 (data) + MIT (bundled scripts).
319
+
320
+ ### Have any third parties imposed IP-based or other restrictions?
321
+
322
+ No.
323
+
324
+ ### Do any export controls / regulatory restrictions apply?
325
+
326
+ No. Behavioral telemetry from a homelab; no controlled technologies are
327
+ captured.
328
+
329
+ ---
330
+
331
+ ## 7. Maintenance
332
+
333
+ ### Who is supporting / hosting / maintaining the dataset?
334
+
335
+ Ryan William Powers via the Hugging Face Hub repo. Bug reports, errata,
336
+ and corrections via GitHub issues on the project repository (linked from
337
+ the datacard).
338
+
339
+ ### How can the manager be contacted?
340
+
341
+ GitHub: [@ryypow](https://github.com/ryypow).
342
+
343
+ ### Will the dataset be updated?
344
+
345
+ No. Future work includes similar experiments using telemetry derivede from other platforms.
346
+ This will remain a stable citation target.
347
+
348
+ ### If others want to contribute extensions / build on the dataset?
349
+
350
+ Forking the dataset repo, applying changes, and citing the original is
351
+ fine under CC BY 4.0. For substantive extensions (e.g. a multi-host
352
+ re-collection), open a GitHub issue first to coordinate naming and
353
+ avoid label-schema drift.
dendroaspis.bib ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @dataset{dendroaspis_v0_2_2026,
2
+ title = {dendroaspis: Tetragon-native HIDS corpus},
3
+ author = {Powers, Ryan William},
4
+ year = {2026},
5
+ month = apr,
6
+ version = {0.2.1},
7
+ doi = {<TBD-on-publish>},
8
+ url = {https://huggingface.co/datasets/rypow/dendroaspis-tetragon-hids},
9
+ howpublished = {Hugging Face Datasets, revision \texttt{a89608d9b8d98730dc34f6586b74a83e2bdace74}},
10
+ note = {Linux eBPF telemetry, 19.3M total events; ~2M evaluation events included LLM-orchestrated MITRE ATT&CK artifacts.
11
+ See datacard, README.md and https://github.com/ryypow/dendroaspis for full numbers.},
12
+ license = {CC BY 4.0}
13
+ }
reproduction/alias_map.json ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "00-header": "00-header",
3
+ "10-help-text": "10-help-text",
4
+ "3": "custom_tool_001",
5
+ "30-systemd-environment-d-generator": "30-systemd-environment-d-generator",
6
+ "50-motd-news": "50-motd-news",
7
+ "9": "custom_tool_002",
8
+ "91-contract-ua-esm-status": "91-contract-ua-esm-status",
9
+ "91-release-upgrade": "91-release-upgrade",
10
+ "92-unattended-upgrades": "92-unattended-upgrades",
11
+ "Alice": "custom_tool_003",
12
+ "Bob": "custom_tool_004",
13
+ "CA": "custom_tool_005",
14
+ "Join": "custom_tool_006",
15
+ "Leave": "custom_tool_007",
16
+ "Merge": "custom_tool_008",
17
+ "Refresh": "custom_tool_009",
18
+ "Setup": "custom_tool_010",
19
+ "VerifyingYourHORSSolution.sh": "custom_tool_011",
20
+ "VerifyingYourSolutionTGDH.sh": "custom_tool_012",
21
+ "agetty": "agetty",
22
+ "apport": "apport",
23
+ "appstreamcli": "appstreamcli",
24
+ "apt": "apt",
25
+ "apt-compat": "apt-compat",
26
+ "apt-config": "apt-config",
27
+ "apt-extracttemplates": "apt-extracttemplates",
28
+ "apt-get": "apt-get",
29
+ "apt-helper": "apt-helper",
30
+ "apt-key": "apt-key",
31
+ "apt.systemd.daily": "apt.systemd.daily",
32
+ "arch": "arch",
33
+ "as": "as",
34
+ "assert_clean_state.sh": "custom_tool_013",
35
+ "awk": "awk",
36
+ "base64": "base64",
37
+ "basename": "basename",
38
+ "bash": "bash",
39
+ "bibtex": "bibtex",
40
+ "browser.sh": "custom_tool_014",
41
+ "c++": "c++",
42
+ "cap": "cap",
43
+ "cat": "cat",
44
+ "cc": "cc",
45
+ "cc1": "cc1",
46
+ "cc1plus": "cc1plus",
47
+ "chattr": "chattr",
48
+ "check-new-release": "check-new-release",
49
+ "chmod": "chmod",
50
+ "chown": "chown",
51
+ "chrome-headless-shell": "chrome-headless-shell",
52
+ "claude": "claude",
53
+ "claude.exe": "claude.exe",
54
+ "cleanup": "cleanup",
55
+ "clear": "clear",
56
+ "clear_console": "clear_console",
57
+ "cloudcode_cli": "cloudcode_cli",
58
+ "cmp": "cmp",
59
+ "cnf-update-db": "cnf-update-db",
60
+ "code": "code",
61
+ "code-41dd792b5e652393e7787322889ed5fdc58bd75b": "vscode_server_bin",
62
+ "code-560a9dba96f961efea7b1612916f89e5d5d4d679": "vscode_server_bin",
63
+ "code-server": "code-server",
64
+ "collect2": "collect2",
65
+ "command-not-found": "command-not-found",
66
+ "containerd": "containerd",
67
+ "cp": "cp",
68
+ "cpuUsage.sh": "custom_tool_015",
69
+ "cron": "cron",
70
+ "crontab": "crontab",
71
+ "curl": "curl",
72
+ "cut": "cut",
73
+ "dash": "dash",
74
+ "date": "date",
75
+ "dbus-daemon": "dbus-daemon",
76
+ "dbus-send": "dbus-send",
77
+ "dbus.postinst": "dbus.postinst",
78
+ "deb-systemd-invoke": "deb-systemd-invoke",
79
+ "debian-sa1": "debian-sa1",
80
+ "diff": "diff",
81
+ "dircolors": "dircolors",
82
+ "dirname": "dirname",
83
+ "dmidecode": "dmidecode",
84
+ "docker": "docker",
85
+ "dpkg": "dpkg",
86
+ "dpkg-db-backup": "dpkg-db-backup",
87
+ "dpkg-deb": "dpkg-deb",
88
+ "dpkg-maintscript-helper": "dpkg-maintscript-helper",
89
+ "dpkg-preconfigure": "dpkg-preconfigure",
90
+ "dpkg-query": "dpkg-query",
91
+ "dpkg-split": "dpkg-split",
92
+ "dpkg-statoverride": "dpkg-statoverride",
93
+ "du": "du",
94
+ "echo": "echo",
95
+ "ed": "ed",
96
+ "env": "env",
97
+ "envsubst": "envsubst",
98
+ "exe": "custom_tool_016",
99
+ "expr": "expr",
100
+ "file": "file",
101
+ "find": "find",
102
+ "findmnt": "findmnt",
103
+ "flock": "flock",
104
+ "friendly-recovery": "friendly-recovery",
105
+ "g++": "g++",
106
+ "gcc": "gcc",
107
+ "gdbus": "gdbus",
108
+ "gemini": "gemini",
109
+ "get_PreReqs.sh": "custom_tool_017",
110
+ "getconf": "getconf",
111
+ "getent": "getent",
112
+ "getopt": "getopt",
113
+ "gettext": "gettext",
114
+ "gh": "gh",
115
+ "git": "git",
116
+ "git-remote-https": "git-remote-https",
117
+ "git-submodule": "git-submodule",
118
+ "gpg-connect-agent": "gpg-connect-agent",
119
+ "gpgconf": "gpgconf",
120
+ "gpgv": "gpgv",
121
+ "grep": "grep",
122
+ "groups": "groups",
123
+ "gtk-update-icon-cache": "gtk-update-icon-cache",
124
+ "gzip": "gzip",
125
+ "head": "head",
126
+ "helpztags": "helpztags",
127
+ "hicolor-icon-theme.postinst": "hicolor-icon-theme.postinst",
128
+ "hostname": "hostname",
129
+ "htop": "htop",
130
+ "http": "http",
131
+ "https": "https",
132
+ "id": "id",
133
+ "install": "install",
134
+ "ip": "ip",
135
+ "jq": "jq",
136
+ "kmod": "kmod",
137
+ "ld": "ld",
138
+ "ld-linux-x86-64.so.2": "ld-linux-x86-64.so.2",
139
+ "ldconfig": "ldconfig",
140
+ "ldconfig.real": "ldconfig.real",
141
+ "ldd": "ldd",
142
+ "less": "less",
143
+ "lesspipe": "lesspipe",
144
+ "libc-bin.postinst": "libc-bin.postinst",
145
+ "ln": "ln",
146
+ "local": "local",
147
+ "locale": "locale",
148
+ "locale-check": "locale-check",
149
+ "login": "login",
150
+ "logrotate": "logrotate",
151
+ "ls": "ls",
152
+ "lsb_release": "lsb_release",
153
+ "lsmod": "lsmod",
154
+ "lspci": "lspci",
155
+ "lxc-start": "lxc-start",
156
+ "lxc-start (deleted)": "lxc-start (deleted)",
157
+ "make": "make",
158
+ "man-db": "man-db",
159
+ "man-db.postinst": "man-db.postinst",
160
+ "mandb": "mandb",
161
+ "master": "master",
162
+ "memfd:lxc-attach (deleted)": "memfd:lxc-attach (deleted)",
163
+ "mkdir": "mkdir",
164
+ "mktemp": "mktemp",
165
+ "mmdc": "mmdc",
166
+ "mount": "mount",
167
+ "mv": "mv",
168
+ "nano": "nano",
169
+ "netplan": "netplan",
170
+ "node": "node",
171
+ "node-gyp": "node-gyp",
172
+ "npm": "npm",
173
+ "nvidia-modprobe": "nvidia-modprobe",
174
+ "nvidia-smi": "nvidia-smi",
175
+ "packagekitd": "packagekitd",
176
+ "pager": "pager",
177
+ "pdfinfo": "pdfinfo",
178
+ "pdflatex": "pdflatex",
179
+ "pet": "pet",
180
+ "pgrep": "pgrep",
181
+ "pickup": "pickup",
182
+ "ping": "ping",
183
+ "pip": "pip",
184
+ "pkill": "pkill",
185
+ "pkttyagent": "pkttyagent",
186
+ "polkit-agent-helper-1": "polkit-agent-helper-1",
187
+ "polkitd": "polkitd",
188
+ "polkitd.postinst": "polkitd.postinst",
189
+ "polkitd.postrm": "polkitd.postrm",
190
+ "polkitd.prerm": "polkitd.prerm",
191
+ "postconf": "postconf",
192
+ "postdrop": "postdrop",
193
+ "postfix-instance-generator": "postfix-instance-generator",
194
+ "prebuild-install": "prebuild-install",
195
+ "preinst": "preinst",
196
+ "printenv": "printenv",
197
+ "printf": "printf",
198
+ "ps": "ps",
199
+ "pwsh": "pwsh",
200
+ "pyenv": "pyenv",
201
+ "pyenv-commands": "pyenv-commands",
202
+ "pyenv-exec": "pyenv-exec",
203
+ "pyenv-hooks": "pyenv-hooks",
204
+ "pyenv-init": "pyenv-init",
205
+ "pyenv-latest": "pyenv-latest",
206
+ "pyenv-prefix": "pyenv-prefix",
207
+ "pyenv-rehash": "pyenv-rehash",
208
+ "pyenv-sh-activate": "pyenv-sh-activate",
209
+ "pyenv-version-file": "pyenv-version-file",
210
+ "pyenv-version-file-read": "pyenv-version-file-read",
211
+ "pyenv-version-name": "pyenv-version-name",
212
+ "pyenv-versions": "pyenv-versions",
213
+ "pyenv-virtualenv-init": "pyenv-virtualenv-init",
214
+ "pyenv-virtualenv-prefix": "pyenv-virtualenv-prefix",
215
+ "pyenv-which": "pyenv-which",
216
+ "python": "python",
217
+ "python3": "python3",
218
+ "python3.12": "python3.12",
219
+ "qmgr": "qmgr",
220
+ "readlink": "readlink",
221
+ "realpath": "realpath",
222
+ "release-upgrade-motd": "release-upgrade-motd",
223
+ "reset": "reset",
224
+ "rg": "rg",
225
+ "rm": "rm",
226
+ "rmdir": "rmdir",
227
+ "rsyslogd": "rsyslogd",
228
+ "ruff": "ruff",
229
+ "run-parts": "run-parts",
230
+ "run-trial.sh": "custom_tool_018",
231
+ "run_atomic_chain.sh": "custom_tool_019",
232
+ "run_atomic_trial.sh": "custom_tool_020",
233
+ "sa1": "sa1",
234
+ "sa2": "sa2",
235
+ "sadc": "sadc",
236
+ "sar.sysstat": "sar.sysstat",
237
+ "savelog": "savelog",
238
+ "scp": "scp",
239
+ "sed": "sed",
240
+ "sendmail": "sendmail",
241
+ "service": "service",
242
+ "setcap": "setcap",
243
+ "setpriv": "setpriv",
244
+ "setup-fake-secrets.sh": "custom_tool_021",
245
+ "sgml-base.postinst": "sgml-base.postinst",
246
+ "sh": "sh",
247
+ "sha256sum": "sha256sum",
248
+ "shred": "shred",
249
+ "sleep": "sleep",
250
+ "snap": "snap",
251
+ "snapd": "snapd",
252
+ "snapd-env-generator": "snapd-env-generator",
253
+ "snapd-generator": "snapd-generator",
254
+ "sort": "sort",
255
+ "ssh": "ssh",
256
+ "sshd": "sshd",
257
+ "sshd-socket-generator": "sshd-socket-generator",
258
+ "stat": "stat",
259
+ "store": "store",
260
+ "stty": "stty",
261
+ "sudo": "sudo",
262
+ "sysstat": "sysstat",
263
+ "systemctl": "systemctl",
264
+ "systemd": "systemd",
265
+ "systemd-cryptsetup-generator": "systemd-cryptsetup-generator",
266
+ "systemd-debug-generator": "systemd-debug-generator",
267
+ "systemd-executor": "systemd-executor",
268
+ "systemd-executor (deleted)": "systemd-executor (deleted)",
269
+ "systemd-fstab-generator": "systemd-fstab-generator",
270
+ "systemd-getty-generator": "systemd-getty-generator",
271
+ "systemd-hibernate-resume-generator": "systemd-hibernate-resume-generator",
272
+ "systemd-integritysetup-generator": "systemd-integritysetup-generator",
273
+ "systemd-journald": "systemd-journald",
274
+ "systemd-logind": "systemd-logind",
275
+ "systemd-logind (deleted)": "systemd-logind (deleted)",
276
+ "systemd-networkd": "systemd-networkd",
277
+ "systemd-networkd-wait-online": "systemd-networkd-wait-online",
278
+ "systemd-rc-local-generator": "systemd-rc-local-generator",
279
+ "systemd-resolved": "systemd-resolved",
280
+ "systemd-run-generator": "systemd-run-generator",
281
+ "systemd-system-update-generator": "systemd-system-update-generator",
282
+ "systemd-sysusers": "systemd-sysusers",
283
+ "systemd-sysv-generator": "systemd-sysv-generator",
284
+ "systemd-timedated": "systemd-timedated",
285
+ "systemd-tmpfiles": "systemd-tmpfiles",
286
+ "systemd-tty-ask-password-agent": "systemd-tty-ask-password-agent",
287
+ "systemd-user-runtime-dir": "systemd-user-runtime-dir",
288
+ "systemd-veritysetup-generator": "systemd-veritysetup-generator",
289
+ "systemd-xdg-autostart-generator": "systemd-xdg-autostart-generator",
290
+ "tail": "tail",
291
+ "tar": "tar",
292
+ "tee": "tee",
293
+ "test": "test",
294
+ "timeout": "timeout",
295
+ "tmux": "tmux",
296
+ "touch": "touch",
297
+ "tr": "tr",
298
+ "trivial-rewrite": "trivial-rewrite",
299
+ "tty": "tty",
300
+ "ubuntu-distro-info": "ubuntu-distro-info",
301
+ "uname": "uname",
302
+ "unattended-upgrade": "unattended-upgrade",
303
+ "uniq": "uniq",
304
+ "unzip": "unzip",
305
+ "update-alternatives": "update-alternatives",
306
+ "update-catalog": "update-catalog",
307
+ "update-icon-caches": "update-icon-caches",
308
+ "update-motd-unattended-upgrades": "update-motd-unattended-upgrades",
309
+ "update-xmlcatalog": "update-xmlcatalog",
310
+ "uptime": "uptime",
311
+ "vim": "vim",
312
+ "vim-common.postinst": "vim-common.postinst",
313
+ "vim-common.postrm": "vim-common.postrm",
314
+ "vim-runtime.postinst": "vim-runtime.postinst",
315
+ "vim-runtime.postrm": "vim-runtime.postrm",
316
+ "vim-tiny.postinst": "vim-tiny.postinst",
317
+ "vim-tiny.prerm": "vim-tiny.prerm",
318
+ "vim.postinst": "vim.postinst",
319
+ "vim.prerm": "vim.prerm",
320
+ "visudo": "visudo",
321
+ "vsce-sign": "vsce-sign",
322
+ "wc": "wc",
323
+ "wget": "wget",
324
+ "which": "which",
325
+ "whoami": "whoami",
326
+ "whois": "whois",
327
+ "xargs": "xargs",
328
+ "xdpyinfo": "xdpyinfo",
329
+ "xrandr": "xrandr",
330
+ "xxd": "xxd",
331
+ "zcat": "zcat",
332
+ "zgrep": "zgrep"
333
+ }
reproduction/allowlist_basenames.txt ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 00-header
2
+ 10-help-text
3
+ 30-systemd-environment-d-generator
4
+ 50-motd-news
5
+ 91-contract-ua-esm-status
6
+ 91-release-upgrade
7
+ 92-unattended-upgrades
8
+ agetty
9
+ apport
10
+ appstreamcli
11
+ apt
12
+ apt-compat
13
+ apt-config
14
+ apt-extracttemplates
15
+ apt-get
16
+ apt-helper
17
+ apt-key
18
+ apt.systemd.daily
19
+ arch
20
+ as
21
+ awk
22
+ base64
23
+ basename
24
+ bash
25
+ bibtex
26
+ c++
27
+ cap
28
+ cat
29
+ cc
30
+ cc1
31
+ cc1plus
32
+ chattr
33
+ check-new-release
34
+ chmod
35
+ chown
36
+ chrome-headless-shell
37
+ claude
38
+ claude.exe
39
+ cleanup
40
+ clear
41
+ clear_console
42
+ cloudcode_cli
43
+ cmp
44
+ cnf-update-db
45
+ code
46
+ code-server
47
+ collect2
48
+ command-not-found
49
+ containerd
50
+ cp
51
+ cron
52
+ crontab
53
+ curl
54
+ cut
55
+ dash
56
+ date
57
+ dbus-daemon
58
+ dbus-send
59
+ dbus.postinst
60
+ deb-systemd-invoke
61
+ debian-sa1
62
+ diff
63
+ dircolors
64
+ dirname
65
+ dmidecode
66
+ docker
67
+ dpkg
68
+ dpkg-db-backup
69
+ dpkg-deb
70
+ dpkg-maintscript-helper
71
+ dpkg-preconfigure
72
+ dpkg-query
73
+ dpkg-split
74
+ dpkg-statoverride
75
+ du
76
+ echo
77
+ ed
78
+ env
79
+ envsubst
80
+ expr
81
+ file
82
+ find
83
+ findmnt
84
+ flock
85
+ friendly-recovery
86
+ g++
87
+ gcc
88
+ gdbus
89
+ gemini
90
+ getconf
91
+ getent
92
+ getopt
93
+ gettext
94
+ gh
95
+ git
96
+ git-remote-https
97
+ git-submodule
98
+ gpg-connect-agent
99
+ gpgconf
100
+ gpgv
101
+ grep
102
+ groups
103
+ gtk-update-icon-cache
104
+ gzip
105
+ head
106
+ helpztags
107
+ hicolor-icon-theme.postinst
108
+ hostname
109
+ htop
110
+ http
111
+ https
112
+ id
113
+ install
114
+ ip
115
+ jq
116
+ kmod
117
+ ld
118
+ ld-linux-x86-64.so.2
119
+ ldconfig
120
+ ldconfig.real
121
+ ldd
122
+ less
123
+ lesspipe
124
+ libc-bin.postinst
125
+ ln
126
+ local
127
+ locale
128
+ locale-check
129
+ login
130
+ logrotate
131
+ ls
132
+ lsb_release
133
+ lsmod
134
+ lspci
135
+ lxc-start
136
+ lxc-start (deleted)
137
+ make
138
+ man-db
139
+ man-db.postinst
140
+ mandb
141
+ master
142
+ memfd:lxc-attach (deleted)
143
+ mkdir
144
+ mktemp
145
+ mmdc
146
+ mount
147
+ mv
148
+ nano
149
+ netplan
150
+ node
151
+ node-gyp
152
+ npm
153
+ nvidia-modprobe
154
+ nvidia-smi
155
+ packagekitd
156
+ pager
157
+ pdfinfo
158
+ pdflatex
159
+ pet
160
+ pgrep
161
+ pickup
162
+ ping
163
+ pip
164
+ pkill
165
+ pkttyagent
166
+ polkit-agent-helper-1
167
+ polkitd
168
+ polkitd.postinst
169
+ polkitd.postrm
170
+ polkitd.prerm
171
+ postconf
172
+ postdrop
173
+ postfix-instance-generator
174
+ prebuild-install
175
+ preinst
176
+ printenv
177
+ printf
178
+ ps
179
+ pwsh
180
+ pyenv
181
+ pyenv-commands
182
+ pyenv-exec
183
+ pyenv-hooks
184
+ pyenv-init
185
+ pyenv-latest
186
+ pyenv-prefix
187
+ pyenv-rehash
188
+ pyenv-sh-activate
189
+ pyenv-version-file
190
+ pyenv-version-file-read
191
+ pyenv-version-name
192
+ pyenv-versions
193
+ pyenv-virtualenv-init
194
+ pyenv-virtualenv-prefix
195
+ pyenv-which
196
+ python
197
+ python3
198
+ python3.12
199
+ qmgr
200
+ readlink
201
+ realpath
202
+ release-upgrade-motd
203
+ reset
204
+ rg
205
+ rm
206
+ rmdir
207
+ rsyslogd
208
+ ruff
209
+ run-parts
210
+ sa1
211
+ sa2
212
+ sadc
213
+ sar.sysstat
214
+ savelog
215
+ scp
216
+ sed
217
+ sendmail
218
+ service
219
+ setcap
220
+ setpriv
221
+ sgml-base.postinst
222
+ sh
223
+ sha256sum
224
+ shred
225
+ sleep
226
+ snap
227
+ snapd
228
+ snapd-env-generator
229
+ snapd-generator
230
+ sort
231
+ ssh
232
+ sshd
233
+ sshd-socket-generator
234
+ stat
235
+ store
236
+ stty
237
+ sudo
238
+ sysstat
239
+ systemctl
240
+ systemd
241
+ systemd-cryptsetup-generator
242
+ systemd-debug-generator
243
+ systemd-executor
244
+ systemd-executor (deleted)
245
+ systemd-fstab-generator
246
+ systemd-getty-generator
247
+ systemd-hibernate-resume-generator
248
+ systemd-integritysetup-generator
249
+ systemd-journald
250
+ systemd-logind
251
+ systemd-logind (deleted)
252
+ systemd-networkd
253
+ systemd-networkd-wait-online
254
+ systemd-rc-local-generator
255
+ systemd-resolved
256
+ systemd-run-generator
257
+ systemd-system-update-generator
258
+ systemd-sysusers
259
+ systemd-sysv-generator
260
+ systemd-timedated
261
+ systemd-tmpfiles
262
+ systemd-tty-ask-password-agent
263
+ systemd-user-runtime-dir
264
+ systemd-veritysetup-generator
265
+ systemd-xdg-autostart-generator
266
+ tail
267
+ tar
268
+ tee
269
+ test
270
+ timeout
271
+ tmux
272
+ touch
273
+ tr
274
+ trivial-rewrite
275
+ tty
276
+ ubuntu-distro-info
277
+ uname
278
+ unattended-upgrade
279
+ uniq
280
+ unzip
281
+ update-alternatives
282
+ update-catalog
283
+ update-icon-caches
284
+ update-motd-unattended-upgrades
285
+ update-xmlcatalog
286
+ uptime
287
+ vim
288
+ vim-common.postinst
289
+ vim-common.postrm
290
+ vim-runtime.postinst
291
+ vim-runtime.postrm
292
+ vim-tiny.postinst
293
+ vim-tiny.prerm
294
+ vim.postinst
295
+ vim.prerm
296
+ visudo
297
+ vsce-sign
298
+ wc
299
+ wget
300
+ which
301
+ whoami
302
+ whois
303
+ xargs
304
+ xdpyinfo
305
+ xrandr
306
+ xxd
307
+ zcat
308
+ zgrep
reproduction/feature_definitions.json ADDED
@@ -0,0 +1,821 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_meta": {
3
+ "schema_version": "1.1",
4
+ "source_modules": [
5
+ "mamba-edge/src/features/v0_2_features.py",
6
+ "mamba-edge/src/processing/v0_2_behavior_builder.py",
7
+ "mamba-edge/src/core/v0_2_event_encoder.py"
8
+ ],
9
+ "note": "Schema 1.1 reflects the 3a' encoder revisions (4 promoted categoricals — f_path_category / f_dst_ip_category / f_dst_port_category / f_object_category — plus hash right-sizing on f_proc_name_hash and f_proc_cwd_hash, cwd depth 2 -> 4) and the v0.2.1 deep-aliasing anonymizer (basename allowlist + custom_tool_NNN, salted-HMAC exec_ids). Integer-coded categorical/bucket columns map an integer to a label + semantic description. String-coded categorical columns (path_category, object_category, dst_ip_category, dst_port_category) map the string value directly. Hash columns list bucket count and the raw-parquet column the parser hashed."
10
+ },
11
+ "categorical_int_columns": {
12
+ "f_event_type": {
13
+ "0": {
14
+ "label": "process_exec",
15
+ "desc": "Process execution event (Tetragon process_exec)"
16
+ },
17
+ "1": {
18
+ "label": "process_exit",
19
+ "desc": "Process termination event"
20
+ },
21
+ "2": {
22
+ "label": "process_kprobe",
23
+ "desc": "Kernel-probe event hooked by Tetragon (file/net/cred/mem)"
24
+ },
25
+ "3": {
26
+ "label": "OOV",
27
+ "desc": "Unknown event type — should not appear; sentinel for parser drift"
28
+ }
29
+ },
30
+ "f_kprobe_function": {
31
+ "0": {
32
+ "label": "fd_install",
33
+ "desc": "File descriptor install (file open in the kernel)"
34
+ },
35
+ "1": {
36
+ "label": "security_mmap_file",
37
+ "desc": "LSM hook for mmap() of a file"
38
+ },
39
+ "2": {
40
+ "label": "commit_creds",
41
+ "desc": "Credential change (setuid/setgid/capset)"
42
+ },
43
+ "3": {
44
+ "label": "tcp_connect",
45
+ "desc": "Outbound TCP connect()"
46
+ },
47
+ "4": {
48
+ "label": "tcp_close",
49
+ "desc": "TCP socket close"
50
+ },
51
+ "5": {
52
+ "label": "udp_sendmsg",
53
+ "desc": "UDP send (port 53 = DNS resolves)"
54
+ },
55
+ "6": {
56
+ "label": "inet_csk_accept",
57
+ "desc": "Inbound TCP accept (server-side)"
58
+ },
59
+ "7": {
60
+ "label": "do_unlinkat",
61
+ "desc": "File unlink (delete)"
62
+ },
63
+ "8": {
64
+ "label": "chmod_common",
65
+ "desc": "File permission change"
66
+ },
67
+ "9": {
68
+ "label": "security_file_mprotect",
69
+ "desc": "LSM hook for mprotect() (memory permission change)"
70
+ },
71
+ "10": {
72
+ "label": "sys_ptrace",
73
+ "desc": "ptrace() syscall (process injection / debugger attach)"
74
+ },
75
+ "11": {
76
+ "label": "sys_process_vm_writev",
77
+ "desc": "process_vm_writev() (cross-process memory write)"
78
+ },
79
+ "12": {
80
+ "label": "NOT_KPROBE",
81
+ "desc": "Row is process_exec / process_exit, not a kprobe event"
82
+ },
83
+ "13": {
84
+ "label": "OOV",
85
+ "desc": "Kprobe function not in the v0.2 vocabulary"
86
+ }
87
+ },
88
+ "f_kprobe_policy": {
89
+ "0": {
90
+ "label": "file-monitor",
91
+ "desc": "Tracing policy for file-system kprobes"
92
+ },
93
+ "1": {
94
+ "label": "memory-monitor",
95
+ "desc": "Tracing policy for memory-related kprobes"
96
+ },
97
+ "2": {
98
+ "label": "privilege-monitor",
99
+ "desc": "Tracing policy for credential / privilege kprobes"
100
+ },
101
+ "3": {
102
+ "label": "network-monitor",
103
+ "desc": "Tracing policy for network kprobes"
104
+ },
105
+ "4": {
106
+ "label": "injection-monitor",
107
+ "desc": "Tracing policy for process-injection kprobes"
108
+ },
109
+ "5": {
110
+ "label": "attribute-monitor",
111
+ "desc": "Tracing policy for file-attribute kprobes"
112
+ },
113
+ "6": {
114
+ "label": "NONE",
115
+ "desc": "Row is not a kprobe (process_exec / process_exit)"
116
+ },
117
+ "7": {
118
+ "label": "OOV",
119
+ "desc": "Tracing policy not in the v0.2 vocabulary"
120
+ }
121
+ },
122
+ "f_kprobe_action": {
123
+ "0": {
124
+ "label": "KPROBE_ACTION_POST",
125
+ "desc": "Tetragon emitted the event without taking action"
126
+ },
127
+ "1": {
128
+ "label": "NONE",
129
+ "desc": "Row is not a kprobe"
130
+ },
131
+ "2": {
132
+ "label": "OOV",
133
+ "desc": "Action not seen in v0.2 (e.g. KILL/OVERRIDE in future Tetragon)"
134
+ }
135
+ },
136
+ "f_proc_uid_bucket": {
137
+ "0": {
138
+ "label": "ROOT",
139
+ "desc": "uid == 0 (container root)"
140
+ },
141
+ "1": {
142
+ "label": "RESEARCH_USER",
143
+ "desc": "uid == 1000 (primary research user in container)"
144
+ },
145
+ "2": {
146
+ "label": "SYSTEM_LOW",
147
+ "desc": "1 <= uid <= 99 (historical Unix system accounts)"
148
+ },
149
+ "3": {
150
+ "label": "DAEMON_HIGH",
151
+ "desc": "100 <= uid <= 999 (modern Linux service accounts)"
152
+ },
153
+ "4": {
154
+ "label": "OTHER",
155
+ "desc": "everything else (incl. uid >= 1001, nobody/65534)"
156
+ }
157
+ },
158
+ "f_dst_port_bucket": {
159
+ "0": {
160
+ "label": "NONE",
161
+ "desc": "row has no dst port (non-network event)"
162
+ },
163
+ "1": {
164
+ "label": "LOOPBACK",
165
+ "desc": "dport == 0 (Tetragon's loopback / unset sentinel)"
166
+ },
167
+ "2": {
168
+ "label": "SSH",
169
+ "desc": "dport == 22"
170
+ },
171
+ "3": {
172
+ "label": "DNS",
173
+ "desc": "dport == 53"
174
+ },
175
+ "4": {
176
+ "label": "WEB",
177
+ "desc": "dport in {80, 443, 8080, 8443}"
178
+ },
179
+ "5": {
180
+ "label": "PRIV",
181
+ "desc": "1 <= dport <= 1023 (reserved/privileged ports)"
182
+ },
183
+ "6": {
184
+ "label": "HIGH",
185
+ "desc": "dport >= 1024 (ephemeral / non-standard high ports)"
186
+ }
187
+ },
188
+ "f_args_length_bucket": {
189
+ "0": {
190
+ "label": "ZERO",
191
+ "desc": "no arguments"
192
+ },
193
+ "1": {
194
+ "label": "LT50",
195
+ "desc": "1 <= len(args) < 50 chars"
196
+ },
197
+ "2": {
198
+ "label": "RANGE_50_200",
199
+ "desc": "50 <= len(args) < 200 chars"
200
+ },
201
+ "3": {
202
+ "label": "RANGE_200_1K",
203
+ "desc": "200 <= len(args) < 1000 chars"
204
+ },
205
+ "4": {
206
+ "label": "RANGE_1K_5K",
207
+ "desc": "1000 <= len(args) < 5000 chars"
208
+ },
209
+ "5": {
210
+ "label": "GT5K",
211
+ "desc": "len(args) >= 5000 chars (suspect / oversize cmdlines)"
212
+ }
213
+ },
214
+ "f_cap_count_bucket": {
215
+ "0": {
216
+ "label": "ZERO",
217
+ "desc": "no Linux capabilities held"
218
+ },
219
+ "1": {
220
+ "label": "RANGE_1_2",
221
+ "desc": "1 or 2 capabilities"
222
+ },
223
+ "2": {
224
+ "label": "RANGE_3_5",
225
+ "desc": "3 to 5 capabilities"
226
+ },
227
+ "3": {
228
+ "label": "RANGE_6_15",
229
+ "desc": "6 to 15 capabilities"
230
+ },
231
+ "4": {
232
+ "label": "GE16",
233
+ "desc": "16 or more capabilities (essentially full root)"
234
+ }
235
+ },
236
+ "f_path_sens_cwd": {
237
+ "0": {
238
+ "label": "SENSITIVE_SYS",
239
+ "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
240
+ },
241
+ "1": {
242
+ "label": "STAGING",
243
+ "desc": "/tmp/, /var/tmp/, /dev/shm/"
244
+ },
245
+ "2": {
246
+ "label": "RUNTIME",
247
+ "desc": "/var/run/, /run/"
248
+ },
249
+ "3": {
250
+ "label": "USER_HOME",
251
+ "desc": "/home/, /Users/"
252
+ },
253
+ "4": {
254
+ "label": "PROC_SELF",
255
+ "desc": "/proc/self/ (own-process introspection)"
256
+ },
257
+ "5": {
258
+ "label": "VSCODE_DEV",
259
+ "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
260
+ },
261
+ "6": {
262
+ "label": "OTHER",
263
+ "desc": "anything else"
264
+ },
265
+ "7": {
266
+ "label": "NONE",
267
+ "desc": "row has no path (non-file event)"
268
+ }
269
+ },
270
+ "f_path_sens_binary": {
271
+ "0": {
272
+ "label": "SENSITIVE_SYS",
273
+ "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
274
+ },
275
+ "1": {
276
+ "label": "STAGING",
277
+ "desc": "/tmp/, /var/tmp/, /dev/shm/"
278
+ },
279
+ "2": {
280
+ "label": "RUNTIME",
281
+ "desc": "/var/run/, /run/"
282
+ },
283
+ "3": {
284
+ "label": "USER_HOME",
285
+ "desc": "/home/, /Users/"
286
+ },
287
+ "4": {
288
+ "label": "PROC_SELF",
289
+ "desc": "/proc/self/ (own-process introspection)"
290
+ },
291
+ "5": {
292
+ "label": "VSCODE_DEV",
293
+ "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
294
+ },
295
+ "6": {
296
+ "label": "OTHER",
297
+ "desc": "anything else"
298
+ },
299
+ "7": {
300
+ "label": "NONE",
301
+ "desc": "row has no path (non-file event)"
302
+ }
303
+ },
304
+ "f_path_sens_kp": {
305
+ "0": {
306
+ "label": "SENSITIVE_SYS",
307
+ "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
308
+ },
309
+ "1": {
310
+ "label": "STAGING",
311
+ "desc": "/tmp/, /var/tmp/, /dev/shm/"
312
+ },
313
+ "2": {
314
+ "label": "RUNTIME",
315
+ "desc": "/var/run/, /run/"
316
+ },
317
+ "3": {
318
+ "label": "USER_HOME",
319
+ "desc": "/home/, /Users/"
320
+ },
321
+ "4": {
322
+ "label": "PROC_SELF",
323
+ "desc": "/proc/self/ (own-process introspection)"
324
+ },
325
+ "5": {
326
+ "label": "VSCODE_DEV",
327
+ "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
328
+ },
329
+ "6": {
330
+ "label": "OTHER",
331
+ "desc": "anything else"
332
+ },
333
+ "7": {
334
+ "label": "NONE",
335
+ "desc": "row has no path (non-file event)"
336
+ }
337
+ },
338
+ "f_kp_fd_install_path_sensitivity": {
339
+ "0": {
340
+ "label": "SENSITIVE_SYS",
341
+ "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
342
+ },
343
+ "1": {
344
+ "label": "STAGING",
345
+ "desc": "/tmp/, /var/tmp/, /dev/shm/"
346
+ },
347
+ "2": {
348
+ "label": "RUNTIME",
349
+ "desc": "/var/run/, /run/"
350
+ },
351
+ "3": {
352
+ "label": "USER_HOME",
353
+ "desc": "/home/, /Users/"
354
+ },
355
+ "4": {
356
+ "label": "PROC_SELF",
357
+ "desc": "/proc/self/ (own-process introspection)"
358
+ },
359
+ "5": {
360
+ "label": "VSCODE_DEV",
361
+ "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
362
+ },
363
+ "6": {
364
+ "label": "OTHER",
365
+ "desc": "anything else"
366
+ },
367
+ "7": {
368
+ "label": "NONE",
369
+ "desc": "row has no path (non-file event)"
370
+ }
371
+ },
372
+ "f_kp_mmap_path_sensitivity": {
373
+ "0": {
374
+ "label": "SENSITIVE_SYS",
375
+ "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
376
+ },
377
+ "1": {
378
+ "label": "STAGING",
379
+ "desc": "/tmp/, /var/tmp/, /dev/shm/"
380
+ },
381
+ "2": {
382
+ "label": "RUNTIME",
383
+ "desc": "/var/run/, /run/"
384
+ },
385
+ "3": {
386
+ "label": "USER_HOME",
387
+ "desc": "/home/, /Users/"
388
+ },
389
+ "4": {
390
+ "label": "PROC_SELF",
391
+ "desc": "/proc/self/ (own-process introspection)"
392
+ },
393
+ "5": {
394
+ "label": "VSCODE_DEV",
395
+ "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
396
+ },
397
+ "6": {
398
+ "label": "OTHER",
399
+ "desc": "anything else"
400
+ },
401
+ "7": {
402
+ "label": "NONE",
403
+ "desc": "row has no path (non-file event)"
404
+ }
405
+ },
406
+ "f_cmdline_entropy": {
407
+ "0": {
408
+ "label": "NULL",
409
+ "desc": "row has no cmdline (non-exec event)"
410
+ },
411
+ "1": {
412
+ "label": "LOW",
413
+ "desc": "Shannon entropy < 2.0 (very repetitive / short)"
414
+ },
415
+ "2": {
416
+ "label": "MID_LOW",
417
+ "desc": "2.0 <= entropy < 3.5"
418
+ },
419
+ "3": {
420
+ "label": "MID",
421
+ "desc": "3.5 <= entropy < 4.5"
422
+ },
423
+ "4": {
424
+ "label": "MID_HIGH",
425
+ "desc": "4.5 <= entropy < 5.5"
426
+ },
427
+ "5": {
428
+ "label": "HIGH",
429
+ "desc": "entropy >= 5.5 (random-looking / encoded payloads)"
430
+ }
431
+ },
432
+ "f_cmdline_compress": {
433
+ "0": {
434
+ "label": "NULL",
435
+ "desc": "row has no cmdline"
436
+ },
437
+ "1": {
438
+ "label": "VERY_COMPRESSIBLE",
439
+ "desc": "ratio < 0.3"
440
+ },
441
+ "2": {
442
+ "label": "COMPRESSIBLE",
443
+ "desc": "0.3 <= ratio < 0.5"
444
+ },
445
+ "3": {
446
+ "label": "MODERATE",
447
+ "desc": "0.5 <= ratio < 0.7"
448
+ },
449
+ "4": {
450
+ "label": "WEAK",
451
+ "desc": "0.7 <= ratio < 0.9"
452
+ },
453
+ "5": {
454
+ "label": "INCOMPRESSIBLE",
455
+ "desc": "ratio >= 0.9 (random / pre-encrypted)"
456
+ }
457
+ },
458
+ "f_time_since_parent_exec": {
459
+ "0": {
460
+ "label": "NULL",
461
+ "desc": "no parent exec_time available"
462
+ },
463
+ "1": {
464
+ "label": "SUB_MS",
465
+ "desc": "< 1 ms since parent exec"
466
+ },
467
+ "2": {
468
+ "label": "MS",
469
+ "desc": "1 ms .. 1 s"
470
+ },
471
+ "3": {
472
+ "label": "SEC",
473
+ "desc": "1 s .. 1 min"
474
+ },
475
+ "4": {
476
+ "label": "MIN",
477
+ "desc": "1 min .. 1 h"
478
+ },
479
+ "5": {
480
+ "label": "HR",
481
+ "desc": ">= 1 h"
482
+ }
483
+ },
484
+ "f_kp_tcp_connect_sock_family": {
485
+ "0": {
486
+ "label": "AF_INET",
487
+ "desc": "IPv4"
488
+ },
489
+ "1": {
490
+ "label": "AF_INET6",
491
+ "desc": "IPv6"
492
+ },
493
+ "2": {
494
+ "label": "NONE",
495
+ "desc": "row is not a network event"
496
+ },
497
+ "3": {
498
+ "label": "OOV",
499
+ "desc": "Socket family outside {AF_INET, AF_INET6}"
500
+ }
501
+ },
502
+ "f_action_family": {
503
+ "0": {
504
+ "label": "PROC_EXEC",
505
+ "desc": "Process execution"
506
+ },
507
+ "1": {
508
+ "label": "PROC_EXIT",
509
+ "desc": "Process termination"
510
+ },
511
+ "2": {
512
+ "label": "NET_CONNECT",
513
+ "desc": "Outbound TCP connect()"
514
+ },
515
+ "3": {
516
+ "label": "NET_CLOSE",
517
+ "desc": "TCP socket close"
518
+ },
519
+ "4": {
520
+ "label": "NET_ACCEPT",
521
+ "desc": "Inbound TCP accept()"
522
+ },
523
+ "5": {
524
+ "label": "NET_SEND",
525
+ "desc": "UDP send (e.g. DNS at dport=53)"
526
+ },
527
+ "6": {
528
+ "label": "FILE_OPEN",
529
+ "desc": "File descriptor install (file open)"
530
+ },
531
+ "7": {
532
+ "label": "FILE_DELETE",
533
+ "desc": "File unlink"
534
+ },
535
+ "8": {
536
+ "label": "FILE_CHMOD",
537
+ "desc": "File permission change"
538
+ },
539
+ "9": {
540
+ "label": "PRIV_CHANGE",
541
+ "desc": "Credential change (setuid / setgid / capset)"
542
+ },
543
+ "10": {
544
+ "label": "PROC_INJECT_PTRACE",
545
+ "desc": "ptrace() — process injection / debugger"
546
+ },
547
+ "11": {
548
+ "label": "PROC_INJECT_VMWRITE",
549
+ "desc": "process_vm_writev() — cross-process memory write"
550
+ },
551
+ "12": {
552
+ "label": "MEM_MAP",
553
+ "desc": "mmap() of a file"
554
+ },
555
+ "13": {
556
+ "label": "MEM_PROTECT",
557
+ "desc": "mprotect() — memory permission change"
558
+ },
559
+ "14": {
560
+ "label": "OTHER",
561
+ "desc": "Catch-all (unknown kprobe in v0.2 corpus)"
562
+ }
563
+ },
564
+ "f_path_category": {
565
+ "0": {
566
+ "label": "VSCODE_DEV",
567
+ "desc": "developer-tooling paths (.vscode-server/, node_modules/, .git/)"
568
+ },
569
+ "1": {
570
+ "label": "SENSITIVE_SYS",
571
+ "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
572
+ },
573
+ "2": {
574
+ "label": "TEMP_STAGING",
575
+ "desc": "/tmp/, /var/tmp/, /dev/shm/"
576
+ },
577
+ "3": {
578
+ "label": "RUNTIME",
579
+ "desc": "/var/run/, /run/, /proc/"
580
+ },
581
+ "4": {
582
+ "label": "LIBRARY",
583
+ "desc": "/usr/lib/, /usr/lib32/, /usr/lib64/, /usr/local/lib/, /lib/, /lib32/, /lib64/ — NEW in 3a'"
584
+ },
585
+ "5": {
586
+ "label": "USR_BIN",
587
+ "desc": "/usr/bin/, /usr/local/bin/, /usr/local/sbin/ — NEW in 3a'"
588
+ },
589
+ "6": {
590
+ "label": "OPT",
591
+ "desc": "/opt/ — NEW in 3a'"
592
+ },
593
+ "7": {
594
+ "label": "USER_HOME",
595
+ "desc": "/home/, /Users/"
596
+ },
597
+ "8": {
598
+ "label": "PROC_SELF",
599
+ "desc": "/proc/self/"
600
+ },
601
+ "9": {
602
+ "label": "OTHER",
603
+ "desc": "anything else"
604
+ },
605
+ "10": {
606
+ "label": "NONE",
607
+ "desc": "row has no path"
608
+ }
609
+ },
610
+ "f_dst_ip_category": {
611
+ "0": {
612
+ "label": "LOOPBACK",
613
+ "desc": "127.0.0.0/8 or ::1"
614
+ },
615
+ "1": {
616
+ "label": "LINK_LOCAL",
617
+ "desc": "169.254.0.0/16 or fe80::/10"
618
+ },
619
+ "2": {
620
+ "label": "PRIVATE",
621
+ "desc": "RFC1918: 10/8, 172.16/12, 192.168/16"
622
+ },
623
+ "3": {
624
+ "label": "MULTICAST",
625
+ "desc": "224.0.0.0/4 or ff00::/8"
626
+ },
627
+ "4": {
628
+ "label": "PUBLIC",
629
+ "desc": "publicly-routable IP (anonymized at parser; only category survives)"
630
+ },
631
+ "5": {
632
+ "label": "NONE",
633
+ "desc": "row has no dst IP"
634
+ }
635
+ },
636
+ "f_dst_port_category": {
637
+ "0": {
638
+ "label": "DNS",
639
+ "desc": "dport == 53"
640
+ },
641
+ "1": {
642
+ "label": "WEB",
643
+ "desc": "dport in {80, 443, 8080, 8443}"
644
+ },
645
+ "2": {
646
+ "label": "SSH",
647
+ "desc": "dport == 22"
648
+ },
649
+ "3": {
650
+ "label": "WELL_KNOWN",
651
+ "desc": "1 <= dport < 1024 (other reserved/privileged ports)"
652
+ },
653
+ "4": {
654
+ "label": "REGISTERED",
655
+ "desc": "1024 <= dport < 49152"
656
+ },
657
+ "5": {
658
+ "label": "HIGH",
659
+ "desc": "dport >= 49152 (ephemeral)"
660
+ },
661
+ "6": {
662
+ "label": "NONE",
663
+ "desc": "row has no dst port (non-network event)"
664
+ }
665
+ },
666
+ "f_object_category": {
667
+ "0": {
668
+ "label": "PROCESS",
669
+ "desc": "process_exec / process_exit"
670
+ },
671
+ "1": {
672
+ "label": "FILE",
673
+ "desc": "file-system kprobe (open/delete/chmod)"
674
+ },
675
+ "2": {
676
+ "label": "NETWORK",
677
+ "desc": "TCP/UDP socket kprobe"
678
+ },
679
+ "3": {
680
+ "label": "MEMORY",
681
+ "desc": "mmap / mprotect"
682
+ },
683
+ "4": {
684
+ "label": "CREDENTIAL",
685
+ "desc": "commit_creds (setuid/setgid/capset)"
686
+ },
687
+ "5": {
688
+ "label": "INJECT",
689
+ "desc": "ptrace / process_vm_writev"
690
+ },
691
+ "6": {
692
+ "label": "OTHER",
693
+ "desc": "kprobe outside the v0.2 vocabulary"
694
+ },
695
+ "7": {
696
+ "label": "NONE",
697
+ "desc": "row has no event_type"
698
+ }
699
+ }
700
+ },
701
+ "categorical_string_columns": {
702
+ "path_category": {
703
+ "VSCODE_DEV": "developer-tooling paths (.vscode-server/, node_modules/, .git/)",
704
+ "SENSITIVE_SYS": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/",
705
+ "TEMP_STAGING": "/tmp/, /var/tmp/, /dev/shm/",
706
+ "RUNTIME": "/var/run/, /run/, /proc/",
707
+ "LIBRARY": "/usr/lib/, /usr/lib32/, /usr/lib64/, /usr/local/lib/, /lib/, /lib32/, /lib64/ (new in 3a')",
708
+ "USR_BIN": "/usr/bin/, /usr/local/bin/, /usr/local/sbin/ (new in 3a')",
709
+ "OPT": "/opt/ (new in 3a')",
710
+ "USER_HOME": "/home/, /Users/",
711
+ "PROC_SELF": "/proc/self/",
712
+ "OTHER": "anything else",
713
+ "NONE": "row has no path"
714
+ },
715
+ "object_category": {
716
+ "PROCESS": "process_exec / process_exit",
717
+ "FILE": "file-system kprobe (open/delete/chmod)",
718
+ "NETWORK": "TCP/UDP socket kprobe",
719
+ "CREDENTIAL": "commit_creds (setuid/setgid/capset)",
720
+ "INJECT": "ptrace / process_vm_writev",
721
+ "MEMORY": "mmap / mprotect",
722
+ "OTHER": "kprobe outside the v0.2 vocabulary",
723
+ "NONE": "row has no event_type"
724
+ },
725
+ "dst_ip_category": {
726
+ "LOOPBACK": "127.0.0.0/8 or ::1",
727
+ "LINK_LOCAL": "169.254.0.0/16 or fe80::/10",
728
+ "PRIVATE": "RFC1918: 10/8, 172.16/12, 192.168/16",
729
+ "MULTICAST": "224.0.0.0/4 or ff00::/8",
730
+ "PUBLIC": "publicly-routable IP (anonymized at parser; only category survives)",
731
+ "NONE": "row has no dst IP"
732
+ },
733
+ "dst_port_category": {
734
+ "DNS": "dport == 53",
735
+ "WEB": "dport in {80, 443, 8080, 8443}",
736
+ "SSH": "dport == 22",
737
+ "WELL_KNOWN": "1 <= dport < 1024 (other reserved/privileged ports)",
738
+ "REGISTERED": "1024 <= dport < 49152",
739
+ "HIGH": "dport >= 49152 (ephemeral)",
740
+ "NONE": "row has no dst port (non-network event)"
741
+ }
742
+ },
743
+ "boolean_flag_columns": {
744
+ "f_is_procfs_walk": "1 if the parser flagged this process_exec as a procfs-walk synthetic event; tag-not-drop policy means these flow through with the flag preserved (1,250 train + 96 test events have value=1).",
745
+ "f_uid_eq_parent": "1 if the process and its parent share the same uid.",
746
+ "f_is_setuid_exec": "1 if the exec was a setuid (uid != parent uid AND was a process_exec).",
747
+ "f_kp_commit_creds_uid_change": "1 on commit_creds events where the uid changed.",
748
+ "f_kp_commit_creds_cap_change": "1 on commit_creds events where the capability set changed.",
749
+ "f_kp_udp_sendmsg_dport_eq_53": "1 on udp_sendmsg events with dport=53 (DNS)."
750
+ },
751
+ "numeric_columns": {
752
+ "f_kp_fd_install_fd_int32": "Raw fd integer from fd_install (int32).",
753
+ "f_kp_mmap_prot_uint": "mmap prot bitmask (uint32).",
754
+ "f_kp_mprotect_prot_uint": "mprotect prot bitmask (uint64).",
755
+ "delta_t_prev_ns": "Nanoseconds since the previous event for the same proc_exec_id (per-process keying landed in the 2026-04-29 rebuild; previously global, which produced 44,947 train + 1,643 test negative residuals — now zero).",
756
+ "process_age_ns": "Nanoseconds since the process started (event_time - proc_start_time)."
757
+ },
758
+ "bucketed_int_columns": {
759
+ "f_delta_t_log_bucket": "Half-decade bucket of log10(delta_t_prev_ns + 1).",
760
+ "f_process_age_log_bucket": "Half-decade bucket of log10(process_age_ns + 1).",
761
+ "f_lineage_depth": "Walked-ancestors depth at parser time (capped per Plan G)."
762
+ },
763
+ "hash_columns": [
764
+ {
765
+ "column": "f_proc_name_hash",
766
+ "buckets": 2048,
767
+ "source_in_raw": "proc_binary (basename)",
768
+ "desc": "Hash of the executable basename (e.g. 'bash', 'curl'). Bumped 1024 -> 2048 in 3a' (audit cell 43 showed 27.7% collision on the old size)."
769
+ },
770
+ {
771
+ "column": "f_parent_proc_hash",
772
+ "buckets": 1024,
773
+ "source_in_raw": "parent_binary (basename)",
774
+ "desc": "Hash of the parent process basename."
775
+ },
776
+ {
777
+ "column": "f_proc_cwd_hash",
778
+ "buckets": 4096,
779
+ "source_in_raw": "proc_cwd (sanitized at release; see anonymization log)",
780
+ "desc": "Hash of the first FOUR path components of proc_cwd. Capacity bumped 256 -> 4096 AND depth 2 -> 4 in 3a' (audit cell 43 showed 90.2% collision on the old depth-2 / 256-bucket sizing). Depth-4 captures per-project granularity."
781
+ },
782
+ {
783
+ "column": "f_lineage_bag_hash",
784
+ "buckets": 256,
785
+ "source_in_raw": "(composite — sorted set of lineage basenames)",
786
+ "desc": "Hash of the bag-of-ancestors basename set; order-invariant."
787
+ },
788
+ {
789
+ "column": "f_parent_child_pair_hash",
790
+ "buckets": 1024,
791
+ "source_in_raw": "(derived: parent_binary_basename + ' -> ' + proc_binary_basename)",
792
+ "desc": "Hash of the (parent_basename, child_basename) pair string."
793
+ },
794
+ {
795
+ "column": "f_root_ancestor_basename_hash",
796
+ "buckets": 1024,
797
+ "source_in_raw": "(derived: lineage walk to the process tree root)",
798
+ "desc": "Hash of the root-of-tree basename (typically systemd / sshd)."
799
+ },
800
+ {
801
+ "column": "f_process_tree_id_hash",
802
+ "buckets": 4096,
803
+ "source_in_raw": "(derived: stable hash of the root proc_exec_id)",
804
+ "desc": "Identifier for the process subtree this event belongs to."
805
+ }
806
+ ],
807
+ "identifier_columns": {
808
+ "event_time": "RFC3339 nanosecond timestamp (timestamp[ns, tz=UTC]).",
809
+ "proc_exec_id": "Salted-HMAC pseudonym of the original Tetragon exec_id (format 'exec_<32hex>'). Equality joins are preserved — lineage walks still work — but the original 'host:ts:pid' payload is erased.",
810
+ "proc_pid": "OS process id at the time of the event (uint32). Container-internal."
811
+ },
812
+ "side_string_columns": {
813
+ "proc_binary_basename": "Basename of the executable. Aliased per the v0.2.1 anonymizer: allowlisted distro / dev-tool basenames pass through verbatim; everything else becomes 'custom_tool_NNN' (lex-sorted) or the fixed 'vscode_server_bin' alias for VSCode commit-hash binaries. See reproduction/alias_map.json.",
814
+ "parent_binary_basename": "Basename of the parent executable. Same alias map as proc_binary_basename.",
815
+ "proc_cwd_normalized": "Sanitized current working directory: '/home/<user>' -> '/home/_user_', '/mnt/projects/<X>' -> '/workspace/_project_', etc. See anonymization log for the full rule set.",
816
+ "root_ancestor_basename": "Basename of the process-tree root. Same alias map as the other basename columns.",
817
+ "process_tree_root_exec_id": "Salted-HMAC pseudonym of the original Tetragon exec_id of the process-tree root (format 'exec_<32hex>').",
818
+ "parent_child_pair": "Parent->child basename pair, re-composed from the aliased basenames after Step B of the anonymizer (component-first guarantee — aliased value flows through).",
819
+ "token": "Composite event identifier of shape '<action_family>:<basename>[:<category>...]'. Re-generated via the canonical format_token() from the aliased basenames + already-bucketed categories, so the original (unaliased) basename never re-enters the token."
820
+ }
821
+ }
reproduction/tetragon-configs/attribute-monitor.yaml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # File attribute monitoring TracingPolicy for Mamba behavioral telemetry
2
+ # Captures chmod / permission changes from LXC containers (excludes host events)
3
+ # Deploy to <YOUR_HOST>: cp attribute-monitor.yaml /etc/tetragon/tetragon.tp.d/
4
+ #
5
+ # Key use cases:
6
+ # - Payload preparation (T1222 File and Directory Permissions Modification)
7
+ # - Classic attack chain: curl payload -> chmod +x -> execute
8
+ #
9
+ # Behavioral signal rationale:
10
+ # chmod_common is the single kernel function all permission-change syscalls
11
+ # (chmod, fchmod, fchmodat) flow through. Capturing it gives the Mamba model
12
+ # a "preparation" state that precedes execution. Sequences like
13
+ # (network, connect) -> (file, write) -> (file, modify[chmod +x]) -> (system, process, spawn)
14
+ # are a high-signal attack-chain pattern that is much easier for an SSM to
15
+ # flag than the exec event in isolation.
16
+
17
+ apiVersion: cilium.io/v1alpha1
18
+ kind: TracingPolicy
19
+ metadata:
20
+ name: "attribute-monitor"
21
+ spec:
22
+ kprobes:
23
+ # File permission / mode change (T1222)
24
+ # Parser maps this to (file, file, modify) with mode bits in evidence.
25
+ # Evidence field captures the mode so downstream logic can identify
26
+ # grants of the execute bit (0o111) specifically.
27
+ # NOTE: chmod_common's mode arg is kernel type umode_t (16-bit unsigned).
28
+ # uint16 silences the type-mismatch warning Tetragon emits on load.
29
+ - call: "chmod_common"
30
+ syscall: false
31
+ args:
32
+ - index: 0
33
+ type: "path" # target file path
34
+ - index: 1
35
+ type: "uint16" # new mode bits (umode_t)
36
+ selectors:
37
+ - matchNamespaces:
38
+ - namespace: "Pid"
39
+ operator: "NotIn"
40
+ values:
41
+ - "host_ns"
reproduction/tetragon-configs/file-monitor.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # File monitoring TracingPolicy for Mamba behavioral telemetry
2
+ # Captures file opens and deletes from LXC containers (excludes host events)
3
+ # Deploy to <YOUR_HOST>: cp file-monitor.yaml /etc/tetragon/tetragon.tp.d/
4
+ #
5
+ # Key use cases:
6
+ # - ART marker detection (/tmp/art_start_*, /tmp/art_end_*)
7
+ # - File access patterns for behavioral modeling
8
+ # - Sensitive file access (e.g., /etc/shadow, /etc/passwd)
9
+
10
+ apiVersion: cilium.io/v1alpha1
11
+ kind: TracingPolicy
12
+ metadata:
13
+ name: "file-monitor"
14
+ spec:
15
+ kprobes:
16
+ # File open — fires when a file descriptor is installed (successful open)
17
+ # Tetragon extracts the full file path from the kernel file struct
18
+ - call: "fd_install"
19
+ syscall: false
20
+ args:
21
+ - index: 0
22
+ type: "int" # file descriptor number
23
+ - index: 1
24
+ type: "file" # file struct — Tetragon extracts path
25
+ selectors:
26
+ - matchNamespaces:
27
+ - namespace: "Pid"
28
+ operator: "NotIn"
29
+ values:
30
+ - "host_ns"
31
+
32
+ # File delete — fires on unlink/unlinkat syscall
33
+ # Captures file path being deleted
34
+ - call: "do_unlinkat"
35
+ syscall: false
36
+ args:
37
+ - index: 0
38
+ type: "int" # directory fd
39
+ - index: 1
40
+ type: "string" # pathname
41
+ selectors:
42
+ - matchNamespaces:
43
+ - namespace: "Pid"
44
+ operator: "NotIn"
45
+ values:
46
+ - "host_ns"
reproduction/tetragon-configs/identity_map.yaml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Identity map for Tetragon telemetry on <YOUR_HOST> / LXC container 110.
2
+ #
3
+ # IMPORTANT — container-internal UIDs, not host-offset UIDs.
4
+ # Empirically, Tetragon 1.6.1 on <YOUR_HOST> reports the container-internal UID on
5
+ # events emitted from inside LXC container 110 (e.g. <YOUR_USER> shows up as uid
6
+ # 1000, not 101000). The earlier subuid-offset hypothesis (host_uid =
7
+ # 100000 + container_uid) was incorrect for this Tetragon build; verified
8
+ # against 156k events in data/raw/events-2026-04-14T03-53-05.161.json.gz.
9
+ #
10
+ # Enumeration command (re-run if container users change):
11
+ # pct exec 110 -- cat /etc/passwd \
12
+ # | awk -F: '{printf " %d: %s # %s\n", $3, $1, $1}'
13
+ #
14
+ # Parser lookup is keyed on the UID Tetragon emits in process.uid.
15
+ # Unknown UIDs (not in this map) fall through to persona `unknown` with
16
+ # identity_relation_to_host = unknown_user.
17
+
18
+ personas:
19
+ # ---- Primary actors (high behavioral signal) ----
20
+ 0: container_root # root — privileged actor, runs system changes
21
+ 1000: primary_user # <YOUR_USER> — the human primary user
22
+
23
+ # ---- Package manager (critical for demo attack chain) ----
24
+ 42: service_apt # _apt
25
+
26
+ # ---- Active service accounts (distinct behavioral baselines) ----
27
+ 33: service_www # www-data
28
+ 103: service_ssh # sshd
29
+ 104: service_postfix # postfix
30
+ 101: service_dbus # messagebus
31
+ 102: service_syslog # syslog
32
+ 100: service_dhcp # dhcpcd
33
+ 106: service_tcpdump # tcpdump
34
+ 990: service_polkit # polkitd
35
+
36
+ # ---- systemd sub-daemons (collapse under one label; similar behavior) ----
37
+ 998: service_systemd # systemd-network
38
+ 997: service_systemd # systemd-timesync
39
+ 992: service_systemd # systemd-resolve
40
+
41
+ # ---- Historical Unix system accounts (rarely execute; collapse) ----
42
+ # Kept explicit so unexpected activity still attributes correctly rather
43
+ # than falling into `unknown`.
44
+ 1: service_system # daemon
45
+ 2: service_system # bin
46
+ 3: service_system # sys
47
+ 4: service_system # sync
48
+ 5: service_system # games
49
+ 6: service_system # man
50
+ 7: service_system # lp
51
+ 8: service_system # mail
52
+ 9: service_system # news
53
+ 10: service_system # uucp
54
+ 13: service_system # proxy
55
+ 34: service_system # backup
56
+ 38: service_system # list
57
+ 39: service_system # irc
58
+ 105: service_system # uuidd
59
+
60
+ # ---- Nobody / overflow UID ----
61
+ 65534: service_nobody
62
+
63
+ # Persona -> schema field derivations (consumed by the parser).
64
+ # Maps each persona label to the v1.3 event-contract enum values for
65
+ # user_role and identity_relation_to_host.
66
+ persona_roles:
67
+ container_root: { user_role: admin, relation: admin_support }
68
+ primary_user: { user_role: admin, relation: primary_user }
69
+ service_apt: { user_role: service, relation: service_account }
70
+ service_www: { user_role: service, relation: service_account }
71
+ service_ssh: { user_role: service, relation: service_account }
72
+ service_postfix: { user_role: service, relation: service_account }
73
+ service_dbus: { user_role: service, relation: service_account }
74
+ service_syslog: { user_role: service, relation: service_account }
75
+ service_dhcp: { user_role: service, relation: service_account }
76
+ service_tcpdump: { user_role: service, relation: service_account }
77
+ service_polkit: { user_role: service, relation: service_account }
78
+ service_systemd: { user_role: system, relation: service_account }
79
+ service_system: { user_role: system, relation: service_account }
80
+ service_nobody: { user_role: system, relation: service_account }
81
+ unknown: { user_role: unknown, relation: unknown_user }
reproduction/tetragon-configs/injection-monitor.yaml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Process injection monitoring TracingPolicy for Mamba behavioral telemetry
2
+ # Captures ptrace, mprotect (RX/RWX flips), and process_vm_writev from LXC containers
3
+ # Deploy to <YOUR_HOST>: cp injection-monitor.yaml /etc/tetragon/tetragon.tp.d/
4
+ #
5
+ # Key use cases:
6
+ # - Process injection via ptrace (T1055.008)
7
+ # - Shellcode activation via RW->RX mprotect flip (T1055)
8
+ # - Cross-process memory write injection (T1055.009)
9
+ #
10
+ # Behavioral signal rationale:
11
+ # memory-monitor.yaml captures mmap(PROT_EXEC) — naive in-memory execution.
12
+ # Sophisticated attackers evade that by allocating RW, writing payload, then
13
+ # flipping the page to RX via mprotect. security_file_mprotect with a
14
+ # PROT_EXEC mask catches that evasion path. Filtering on PROT_EXEC keeps
15
+ # the event volume sane — routine mprotect calls (heap management, PROT_NONE
16
+ # guard pages) are ignored.
17
+
18
+ apiVersion: cilium.io/v1alpha1
19
+ kind: TracingPolicy
20
+ metadata:
21
+ name: "injection-monitor"
22
+ spec:
23
+ kprobes:
24
+ # Process debugging and ptrace-based injection (T1055.008)
25
+ # request arg identifies PTRACE_ATTACH, PTRACE_POKEDATA, PTRACE_DETACH, etc.
26
+ # Parser maps this to action=trace (v1.3 schema).
27
+ # NOTE: Tetragon's kprobe type vocabulary does not include "long" — use int64.
28
+ - call: "sys_ptrace"
29
+ syscall: true
30
+ args:
31
+ - index: 0
32
+ type: "int64" # ptrace request (PTRACE_ATTACH=16, POKEDATA=5, etc.)
33
+ - index: 1
34
+ type: "int" # target PID
35
+ selectors:
36
+ - matchNamespaces:
37
+ - namespace: "Pid"
38
+ operator: "NotIn"
39
+ values:
40
+ - "host_ns"
41
+
42
+ # Memory protection flip (T1055)
43
+ # Only fires when PROT_EXEC is being requested — captures the RW->RX
44
+ # shellcode activation pattern. Parser maps this to action=protect (v1.3).
45
+ #
46
+ # NOTE: security_file_mprotect's first arg is a struct vm_area_struct*
47
+ # which Tetragon's kprobe type vocabulary does not expose directly.
48
+ # We skip arg[0] and only extract the protection flags — Tetragon still
49
+ # captures the calling process's identity from event metadata.
50
+ - call: "security_file_mprotect"
51
+ syscall: false
52
+ args:
53
+ - index: 1
54
+ type: "uint64" # reqprot (requested protection flags)
55
+ - index: 2
56
+ type: "uint64" # prot (actual protection applied)
57
+ selectors:
58
+ - matchNamespaces:
59
+ - namespace: "Pid"
60
+ operator: "NotIn"
61
+ values:
62
+ - "host_ns"
63
+ matchArgs:
64
+ - index: 1
65
+ operator: "Mask"
66
+ values:
67
+ - "4" # PROT_EXEC — only capture flips granting execute
68
+
69
+ # Cross-process memory write (T1055.009)
70
+ # Faster injection path that does not require PTRACE_ATTACH.
71
+ # Parser maps this to action=write with object_type=process.
72
+ - call: "sys_process_vm_writev"
73
+ syscall: true
74
+ args:
75
+ - index: 0
76
+ type: "int" # target PID
77
+ selectors:
78
+ - matchNamespaces:
79
+ - namespace: "Pid"
80
+ operator: "NotIn"
81
+ values:
82
+ - "host_ns"
reproduction/tetragon-configs/memory-monitor.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Memory monitoring TracingPolicy for Mamba behavioral telemetry
2
+ # Detects fileless execution and in-memory attack techniques from LXC containers
3
+ # Deploy to <YOUR_HOST>: cp memory-monitor.yaml /etc/tetragon/tetragon.tp.d/
4
+ #
5
+ # Key use cases:
6
+ # - Fileless malware (shellcode injection into anonymous executable memory)
7
+ # - Process hollowing (unmap legitimate code, map malicious code)
8
+ # - Living-off-the-land (reflective DLL/SO loading)
9
+ # - MITRE ATT&CK: T1055 (Process Injection), T1620 (Reflective Code Loading)
10
+
11
+ apiVersion: cilium.io/v1alpha1
12
+ kind: TracingPolicy
13
+ metadata:
14
+ name: "memory-monitor"
15
+ spec:
16
+ kprobes:
17
+ # Memory-mapped file operations — LSM hook that fires on mmap calls
18
+ # Captures both file-backed mappings (normal .so loads) and anonymous
19
+ # executable mappings (fileless execution signal).
20
+ # The file arg is null for anonymous mappings — the parser uses this
21
+ # to distinguish normal library loads from suspicious in-memory execution.
22
+ - call: "security_mmap_file"
23
+ syscall: false
24
+ args:
25
+ - index: 0
26
+ type: "file" # file struct (null for anonymous mappings)
27
+ - index: 1
28
+ type: "uint32" # protection flags (PROT_READ=1, PROT_WRITE=2, PROT_EXEC=4)
29
+ selectors:
30
+ - matchNamespaces:
31
+ - namespace: "Pid"
32
+ operator: "NotIn"
33
+ values:
34
+ - "host_ns"
35
+ matchArgs:
36
+ - index: 1
37
+ operator: "Mask"
38
+ values:
39
+ - "4" # PROT_EXEC — only capture mappings with execute permission
reproduction/tetragon-configs/network-monitor.yaml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Network monitoring TracingPolicy for Mamba behavioral telemetry
2
+ # Captures TCP connections and DNS queries from LXC containers (excludes host events)
3
+ # Deploy to <YOUR_HOST>: cp network-monitor.yaml /etc/tetragon/tetragon.tp.d/
4
+ #
5
+ # Key use cases:
6
+ # - C2 callback detection (unusual outbound connections)
7
+ # - Lateral movement detection
8
+ # - DNS resolution monitoring (normal domains vs C2/DGA domains)
9
+ # - Normal network behavior baseline
10
+
11
+ apiVersion: cilium.io/v1alpha1
12
+ kind: TracingPolicy
13
+ metadata:
14
+ name: "network-monitor"
15
+ spec:
16
+ kprobes:
17
+ # Outbound TCP connection — fires when a TCP connection is initiated
18
+ # Tetragon extracts src/dst IP:port from the sock struct
19
+ - call: "tcp_connect"
20
+ syscall: false
21
+ args:
22
+ - index: 0
23
+ type: "sock" # socket struct — Tetragon extracts family, src/dst IP:port
24
+ selectors:
25
+ - matchNamespaces:
26
+ - namespace: "Pid"
27
+ operator: "NotIn"
28
+ values:
29
+ - "host_ns"
30
+
31
+ # TCP connection close — captures connection lifecycle end
32
+ # Useful for connection duration analysis
33
+ - call: "tcp_close"
34
+ syscall: false
35
+ args:
36
+ - index: 0
37
+ type: "sock" # socket struct
38
+ selectors:
39
+ - matchNamespaces:
40
+ - namespace: "Pid"
41
+ operator: "NotIn"
42
+ values:
43
+ - "host_ns"
44
+
45
+ # Inbound TCP accept — fires when a listening socket accepts a connection
46
+ # Detects services receiving connections (e.g., reverse shells, bind shells)
47
+ - call: "inet_csk_accept"
48
+ syscall: false
49
+ return: true
50
+ returnArg:
51
+ index: 0
52
+ type: "sock" # accepted socket with peer info
53
+ selectors:
54
+ - matchNamespaces:
55
+ - namespace: "Pid"
56
+ operator: "NotIn"
57
+ values:
58
+ - "host_ns"
59
+
60
+ # DNS queries — captures UDP sends to port 53
61
+ # High-signal for C2 detection: model learns normal resolution patterns
62
+ # (github.com, apt repos) vs anomalous (DGA domains, unusual resolvers)
63
+ - call: "udp_sendmsg"
64
+ syscall: false
65
+ args:
66
+ - index: 0
67
+ type: "sock" # socket struct — dst IP:port
68
+ - index: 1
69
+ type: "int" # message length
70
+ selectors:
71
+ - matchNamespaces:
72
+ - namespace: "Pid"
73
+ operator: "NotIn"
74
+ values:
75
+ - "host_ns"
76
+ matchArgs:
77
+ - index: 0
78
+ operator: "DPort"
79
+ values:
80
+ - "53"
reproduction/tetragon-configs/privilege-monitor.yaml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Privilege escalation TracingPolicy for Mamba behavioral telemetry
2
+ # Captures credential changes from LXC containers (excludes host events)
3
+ # Deploy to <YOUR_HOST>: cp privilege-monitor.yaml /etc/tetragon/tetragon.tp.d/
4
+ #
5
+ # Key use cases:
6
+ # - setuid/setgid detection
7
+ # - Capability changes (capset)
8
+ # - Privilege escalation attack detection (T1548)
9
+
10
+ apiVersion: cilium.io/v1alpha1
11
+ kind: TracingPolicy
12
+ metadata:
13
+ name: "privilege-monitor"
14
+ spec:
15
+ kprobes:
16
+ # Credential commit — ALL credential changes flow through this function
17
+ # Covers: setuid, setgid, setreuid, setresuid, capset, execve with suid bit
18
+ # Tetragon extracts uid, gid, and capabilities from the cred struct
19
+ - call: "commit_creds"
20
+ syscall: false
21
+ args:
22
+ - index: 0
23
+ type: "cred" # credential struct — uid, gid, caps
24
+ selectors:
25
+ - matchNamespaces:
26
+ - namespace: "Pid"
27
+ operator: "NotIn"
28
+ values:
29
+ - "host_ns"