File size: 24,944 Bytes
d41f3fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
{
  "_meta": {
    "schema_version": "1.1",
    "source_modules": [
      "mamba-edge/src/features/v0_2_features.py",
      "mamba-edge/src/processing/v0_2_behavior_builder.py",
      "mamba-edge/src/core/v0_2_event_encoder.py"
    ],
    "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."
  },
  "categorical_int_columns": {
    "f_event_type": {
      "0": {
        "label": "process_exec",
        "desc": "Process execution event (Tetragon process_exec)"
      },
      "1": {
        "label": "process_exit",
        "desc": "Process termination event"
      },
      "2": {
        "label": "process_kprobe",
        "desc": "Kernel-probe event hooked by Tetragon (file/net/cred/mem)"
      },
      "3": {
        "label": "OOV",
        "desc": "Unknown event type — should not appear; sentinel for parser drift"
      }
    },
    "f_kprobe_function": {
      "0": {
        "label": "fd_install",
        "desc": "File descriptor install (file open in the kernel)"
      },
      "1": {
        "label": "security_mmap_file",
        "desc": "LSM hook for mmap() of a file"
      },
      "2": {
        "label": "commit_creds",
        "desc": "Credential change (setuid/setgid/capset)"
      },
      "3": {
        "label": "tcp_connect",
        "desc": "Outbound TCP connect()"
      },
      "4": {
        "label": "tcp_close",
        "desc": "TCP socket close"
      },
      "5": {
        "label": "udp_sendmsg",
        "desc": "UDP send (port 53 = DNS resolves)"
      },
      "6": {
        "label": "inet_csk_accept",
        "desc": "Inbound TCP accept (server-side)"
      },
      "7": {
        "label": "do_unlinkat",
        "desc": "File unlink (delete)"
      },
      "8": {
        "label": "chmod_common",
        "desc": "File permission change"
      },
      "9": {
        "label": "security_file_mprotect",
        "desc": "LSM hook for mprotect() (memory permission change)"
      },
      "10": {
        "label": "sys_ptrace",
        "desc": "ptrace() syscall (process injection / debugger attach)"
      },
      "11": {
        "label": "sys_process_vm_writev",
        "desc": "process_vm_writev() (cross-process memory write)"
      },
      "12": {
        "label": "NOT_KPROBE",
        "desc": "Row is process_exec / process_exit, not a kprobe event"
      },
      "13": {
        "label": "OOV",
        "desc": "Kprobe function not in the v0.2 vocabulary"
      }
    },
    "f_kprobe_policy": {
      "0": {
        "label": "file-monitor",
        "desc": "Tracing policy for file-system kprobes"
      },
      "1": {
        "label": "memory-monitor",
        "desc": "Tracing policy for memory-related kprobes"
      },
      "2": {
        "label": "privilege-monitor",
        "desc": "Tracing policy for credential / privilege kprobes"
      },
      "3": {
        "label": "network-monitor",
        "desc": "Tracing policy for network kprobes"
      },
      "4": {
        "label": "injection-monitor",
        "desc": "Tracing policy for process-injection kprobes"
      },
      "5": {
        "label": "attribute-monitor",
        "desc": "Tracing policy for file-attribute kprobes"
      },
      "6": {
        "label": "NONE",
        "desc": "Row is not a kprobe (process_exec / process_exit)"
      },
      "7": {
        "label": "OOV",
        "desc": "Tracing policy not in the v0.2 vocabulary"
      }
    },
    "f_kprobe_action": {
      "0": {
        "label": "KPROBE_ACTION_POST",
        "desc": "Tetragon emitted the event without taking action"
      },
      "1": {
        "label": "NONE",
        "desc": "Row is not a kprobe"
      },
      "2": {
        "label": "OOV",
        "desc": "Action not seen in v0.2 (e.g. KILL/OVERRIDE in future Tetragon)"
      }
    },
    "f_proc_uid_bucket": {
      "0": {
        "label": "ROOT",
        "desc": "uid == 0 (container root)"
      },
      "1": {
        "label": "RESEARCH_USER",
        "desc": "uid == 1000 (primary research user in container)"
      },
      "2": {
        "label": "SYSTEM_LOW",
        "desc": "1 <= uid <= 99 (historical Unix system accounts)"
      },
      "3": {
        "label": "DAEMON_HIGH",
        "desc": "100 <= uid <= 999 (modern Linux service accounts)"
      },
      "4": {
        "label": "OTHER",
        "desc": "everything else (incl. uid >= 1001, nobody/65534)"
      }
    },
    "f_dst_port_bucket": {
      "0": {
        "label": "NONE",
        "desc": "row has no dst port (non-network event)"
      },
      "1": {
        "label": "LOOPBACK",
        "desc": "dport == 0 (Tetragon's loopback / unset sentinel)"
      },
      "2": {
        "label": "SSH",
        "desc": "dport == 22"
      },
      "3": {
        "label": "DNS",
        "desc": "dport == 53"
      },
      "4": {
        "label": "WEB",
        "desc": "dport in {80, 443, 8080, 8443}"
      },
      "5": {
        "label": "PRIV",
        "desc": "1 <= dport <= 1023 (reserved/privileged ports)"
      },
      "6": {
        "label": "HIGH",
        "desc": "dport >= 1024 (ephemeral / non-standard high ports)"
      }
    },
    "f_args_length_bucket": {
      "0": {
        "label": "ZERO",
        "desc": "no arguments"
      },
      "1": {
        "label": "LT50",
        "desc": "1 <= len(args) < 50 chars"
      },
      "2": {
        "label": "RANGE_50_200",
        "desc": "50 <= len(args) < 200 chars"
      },
      "3": {
        "label": "RANGE_200_1K",
        "desc": "200 <= len(args) < 1000 chars"
      },
      "4": {
        "label": "RANGE_1K_5K",
        "desc": "1000 <= len(args) < 5000 chars"
      },
      "5": {
        "label": "GT5K",
        "desc": "len(args) >= 5000 chars (suspect / oversize cmdlines)"
      }
    },
    "f_cap_count_bucket": {
      "0": {
        "label": "ZERO",
        "desc": "no Linux capabilities held"
      },
      "1": {
        "label": "RANGE_1_2",
        "desc": "1 or 2 capabilities"
      },
      "2": {
        "label": "RANGE_3_5",
        "desc": "3 to 5 capabilities"
      },
      "3": {
        "label": "RANGE_6_15",
        "desc": "6 to 15 capabilities"
      },
      "4": {
        "label": "GE16",
        "desc": "16 or more capabilities (essentially full root)"
      }
    },
    "f_path_sens_cwd": {
      "0": {
        "label": "SENSITIVE_SYS",
        "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
      },
      "1": {
        "label": "STAGING",
        "desc": "/tmp/, /var/tmp/, /dev/shm/"
      },
      "2": {
        "label": "RUNTIME",
        "desc": "/var/run/, /run/"
      },
      "3": {
        "label": "USER_HOME",
        "desc": "/home/, /Users/"
      },
      "4": {
        "label": "PROC_SELF",
        "desc": "/proc/self/ (own-process introspection)"
      },
      "5": {
        "label": "VSCODE_DEV",
        "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
      },
      "6": {
        "label": "OTHER",
        "desc": "anything else"
      },
      "7": {
        "label": "NONE",
        "desc": "row has no path (non-file event)"
      }
    },
    "f_path_sens_binary": {
      "0": {
        "label": "SENSITIVE_SYS",
        "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
      },
      "1": {
        "label": "STAGING",
        "desc": "/tmp/, /var/tmp/, /dev/shm/"
      },
      "2": {
        "label": "RUNTIME",
        "desc": "/var/run/, /run/"
      },
      "3": {
        "label": "USER_HOME",
        "desc": "/home/, /Users/"
      },
      "4": {
        "label": "PROC_SELF",
        "desc": "/proc/self/ (own-process introspection)"
      },
      "5": {
        "label": "VSCODE_DEV",
        "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
      },
      "6": {
        "label": "OTHER",
        "desc": "anything else"
      },
      "7": {
        "label": "NONE",
        "desc": "row has no path (non-file event)"
      }
    },
    "f_path_sens_kp": {
      "0": {
        "label": "SENSITIVE_SYS",
        "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
      },
      "1": {
        "label": "STAGING",
        "desc": "/tmp/, /var/tmp/, /dev/shm/"
      },
      "2": {
        "label": "RUNTIME",
        "desc": "/var/run/, /run/"
      },
      "3": {
        "label": "USER_HOME",
        "desc": "/home/, /Users/"
      },
      "4": {
        "label": "PROC_SELF",
        "desc": "/proc/self/ (own-process introspection)"
      },
      "5": {
        "label": "VSCODE_DEV",
        "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
      },
      "6": {
        "label": "OTHER",
        "desc": "anything else"
      },
      "7": {
        "label": "NONE",
        "desc": "row has no path (non-file event)"
      }
    },
    "f_kp_fd_install_path_sensitivity": {
      "0": {
        "label": "SENSITIVE_SYS",
        "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
      },
      "1": {
        "label": "STAGING",
        "desc": "/tmp/, /var/tmp/, /dev/shm/"
      },
      "2": {
        "label": "RUNTIME",
        "desc": "/var/run/, /run/"
      },
      "3": {
        "label": "USER_HOME",
        "desc": "/home/, /Users/"
      },
      "4": {
        "label": "PROC_SELF",
        "desc": "/proc/self/ (own-process introspection)"
      },
      "5": {
        "label": "VSCODE_DEV",
        "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
      },
      "6": {
        "label": "OTHER",
        "desc": "anything else"
      },
      "7": {
        "label": "NONE",
        "desc": "row has no path (non-file event)"
      }
    },
    "f_kp_mmap_path_sensitivity": {
      "0": {
        "label": "SENSITIVE_SYS",
        "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
      },
      "1": {
        "label": "STAGING",
        "desc": "/tmp/, /var/tmp/, /dev/shm/"
      },
      "2": {
        "label": "RUNTIME",
        "desc": "/var/run/, /run/"
      },
      "3": {
        "label": "USER_HOME",
        "desc": "/home/, /Users/"
      },
      "4": {
        "label": "PROC_SELF",
        "desc": "/proc/self/ (own-process introspection)"
      },
      "5": {
        "label": "VSCODE_DEV",
        "desc": "developer-tooling paths: .vscode-server/, node_modules/, .git/"
      },
      "6": {
        "label": "OTHER",
        "desc": "anything else"
      },
      "7": {
        "label": "NONE",
        "desc": "row has no path (non-file event)"
      }
    },
    "f_cmdline_entropy": {
      "0": {
        "label": "NULL",
        "desc": "row has no cmdline (non-exec event)"
      },
      "1": {
        "label": "LOW",
        "desc": "Shannon entropy < 2.0 (very repetitive / short)"
      },
      "2": {
        "label": "MID_LOW",
        "desc": "2.0 <= entropy < 3.5"
      },
      "3": {
        "label": "MID",
        "desc": "3.5 <= entropy < 4.5"
      },
      "4": {
        "label": "MID_HIGH",
        "desc": "4.5 <= entropy < 5.5"
      },
      "5": {
        "label": "HIGH",
        "desc": "entropy >= 5.5 (random-looking / encoded payloads)"
      }
    },
    "f_cmdline_compress": {
      "0": {
        "label": "NULL",
        "desc": "row has no cmdline"
      },
      "1": {
        "label": "VERY_COMPRESSIBLE",
        "desc": "ratio < 0.3"
      },
      "2": {
        "label": "COMPRESSIBLE",
        "desc": "0.3 <= ratio < 0.5"
      },
      "3": {
        "label": "MODERATE",
        "desc": "0.5 <= ratio < 0.7"
      },
      "4": {
        "label": "WEAK",
        "desc": "0.7 <= ratio < 0.9"
      },
      "5": {
        "label": "INCOMPRESSIBLE",
        "desc": "ratio >= 0.9 (random / pre-encrypted)"
      }
    },
    "f_time_since_parent_exec": {
      "0": {
        "label": "NULL",
        "desc": "no parent exec_time available"
      },
      "1": {
        "label": "SUB_MS",
        "desc": "< 1 ms since parent exec"
      },
      "2": {
        "label": "MS",
        "desc": "1 ms .. 1 s"
      },
      "3": {
        "label": "SEC",
        "desc": "1 s .. 1 min"
      },
      "4": {
        "label": "MIN",
        "desc": "1 min .. 1 h"
      },
      "5": {
        "label": "HR",
        "desc": ">= 1 h"
      }
    },
    "f_kp_tcp_connect_sock_family": {
      "0": {
        "label": "AF_INET",
        "desc": "IPv4"
      },
      "1": {
        "label": "AF_INET6",
        "desc": "IPv6"
      },
      "2": {
        "label": "NONE",
        "desc": "row is not a network event"
      },
      "3": {
        "label": "OOV",
        "desc": "Socket family outside {AF_INET, AF_INET6}"
      }
    },
    "f_action_family": {
      "0": {
        "label": "PROC_EXEC",
        "desc": "Process execution"
      },
      "1": {
        "label": "PROC_EXIT",
        "desc": "Process termination"
      },
      "2": {
        "label": "NET_CONNECT",
        "desc": "Outbound TCP connect()"
      },
      "3": {
        "label": "NET_CLOSE",
        "desc": "TCP socket close"
      },
      "4": {
        "label": "NET_ACCEPT",
        "desc": "Inbound TCP accept()"
      },
      "5": {
        "label": "NET_SEND",
        "desc": "UDP send (e.g. DNS at dport=53)"
      },
      "6": {
        "label": "FILE_OPEN",
        "desc": "File descriptor install (file open)"
      },
      "7": {
        "label": "FILE_DELETE",
        "desc": "File unlink"
      },
      "8": {
        "label": "FILE_CHMOD",
        "desc": "File permission change"
      },
      "9": {
        "label": "PRIV_CHANGE",
        "desc": "Credential change (setuid / setgid / capset)"
      },
      "10": {
        "label": "PROC_INJECT_PTRACE",
        "desc": "ptrace() — process injection / debugger"
      },
      "11": {
        "label": "PROC_INJECT_VMWRITE",
        "desc": "process_vm_writev() — cross-process memory write"
      },
      "12": {
        "label": "MEM_MAP",
        "desc": "mmap() of a file"
      },
      "13": {
        "label": "MEM_PROTECT",
        "desc": "mprotect() — memory permission change"
      },
      "14": {
        "label": "OTHER",
        "desc": "Catch-all (unknown kprobe in v0.2 corpus)"
      }
    },
    "f_path_category": {
      "0": {
        "label": "VSCODE_DEV",
        "desc": "developer-tooling paths (.vscode-server/, node_modules/, .git/)"
      },
      "1": {
        "label": "SENSITIVE_SYS",
        "desc": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/"
      },
      "2": {
        "label": "TEMP_STAGING",
        "desc": "/tmp/, /var/tmp/, /dev/shm/"
      },
      "3": {
        "label": "RUNTIME",
        "desc": "/var/run/, /run/, /proc/"
      },
      "4": {
        "label": "LIBRARY",
        "desc": "/usr/lib/, /usr/lib32/, /usr/lib64/, /usr/local/lib/, /lib/, /lib32/, /lib64/ — NEW in 3a'"
      },
      "5": {
        "label": "USR_BIN",
        "desc": "/usr/bin/, /usr/local/bin/, /usr/local/sbin/ — NEW in 3a'"
      },
      "6": {
        "label": "OPT",
        "desc": "/opt/ — NEW in 3a'"
      },
      "7": {
        "label": "USER_HOME",
        "desc": "/home/, /Users/"
      },
      "8": {
        "label": "PROC_SELF",
        "desc": "/proc/self/"
      },
      "9": {
        "label": "OTHER",
        "desc": "anything else"
      },
      "10": {
        "label": "NONE",
        "desc": "row has no path"
      }
    },
    "f_dst_ip_category": {
      "0": {
        "label": "LOOPBACK",
        "desc": "127.0.0.0/8 or ::1"
      },
      "1": {
        "label": "LINK_LOCAL",
        "desc": "169.254.0.0/16 or fe80::/10"
      },
      "2": {
        "label": "PRIVATE",
        "desc": "RFC1918: 10/8, 172.16/12, 192.168/16"
      },
      "3": {
        "label": "MULTICAST",
        "desc": "224.0.0.0/4 or ff00::/8"
      },
      "4": {
        "label": "PUBLIC",
        "desc": "publicly-routable IP (anonymized at parser; only category survives)"
      },
      "5": {
        "label": "NONE",
        "desc": "row has no dst IP"
      }
    },
    "f_dst_port_category": {
      "0": {
        "label": "DNS",
        "desc": "dport == 53"
      },
      "1": {
        "label": "WEB",
        "desc": "dport in {80, 443, 8080, 8443}"
      },
      "2": {
        "label": "SSH",
        "desc": "dport == 22"
      },
      "3": {
        "label": "WELL_KNOWN",
        "desc": "1 <= dport < 1024 (other reserved/privileged ports)"
      },
      "4": {
        "label": "REGISTERED",
        "desc": "1024 <= dport < 49152"
      },
      "5": {
        "label": "HIGH",
        "desc": "dport >= 49152 (ephemeral)"
      },
      "6": {
        "label": "NONE",
        "desc": "row has no dst port (non-network event)"
      }
    },
    "f_object_category": {
      "0": {
        "label": "PROCESS",
        "desc": "process_exec / process_exit"
      },
      "1": {
        "label": "FILE",
        "desc": "file-system kprobe (open/delete/chmod)"
      },
      "2": {
        "label": "NETWORK",
        "desc": "TCP/UDP socket kprobe"
      },
      "3": {
        "label": "MEMORY",
        "desc": "mmap / mprotect"
      },
      "4": {
        "label": "CREDENTIAL",
        "desc": "commit_creds (setuid/setgid/capset)"
      },
      "5": {
        "label": "INJECT",
        "desc": "ptrace / process_vm_writev"
      },
      "6": {
        "label": "OTHER",
        "desc": "kprobe outside the v0.2 vocabulary"
      },
      "7": {
        "label": "NONE",
        "desc": "row has no event_type"
      }
    }
  },
  "categorical_string_columns": {
    "path_category": {
      "VSCODE_DEV": "developer-tooling paths (.vscode-server/, node_modules/, .git/)",
      "SENSITIVE_SYS": "/etc/, /root/, /boot/, /usr/sbin/, /sbin/",
      "TEMP_STAGING": "/tmp/, /var/tmp/, /dev/shm/",
      "RUNTIME": "/var/run/, /run/, /proc/",
      "LIBRARY": "/usr/lib/, /usr/lib32/, /usr/lib64/, /usr/local/lib/, /lib/, /lib32/, /lib64/ (new in 3a')",
      "USR_BIN": "/usr/bin/, /usr/local/bin/, /usr/local/sbin/ (new in 3a')",
      "OPT": "/opt/ (new in 3a')",
      "USER_HOME": "/home/, /Users/",
      "PROC_SELF": "/proc/self/",
      "OTHER": "anything else",
      "NONE": "row has no path"
    },
    "object_category": {
      "PROCESS": "process_exec / process_exit",
      "FILE": "file-system kprobe (open/delete/chmod)",
      "NETWORK": "TCP/UDP socket kprobe",
      "CREDENTIAL": "commit_creds (setuid/setgid/capset)",
      "INJECT": "ptrace / process_vm_writev",
      "MEMORY": "mmap / mprotect",
      "OTHER": "kprobe outside the v0.2 vocabulary",
      "NONE": "row has no event_type"
    },
    "dst_ip_category": {
      "LOOPBACK": "127.0.0.0/8 or ::1",
      "LINK_LOCAL": "169.254.0.0/16 or fe80::/10",
      "PRIVATE": "RFC1918: 10/8, 172.16/12, 192.168/16",
      "MULTICAST": "224.0.0.0/4 or ff00::/8",
      "PUBLIC": "publicly-routable IP (anonymized at parser; only category survives)",
      "NONE": "row has no dst IP"
    },
    "dst_port_category": {
      "DNS": "dport == 53",
      "WEB": "dport in {80, 443, 8080, 8443}",
      "SSH": "dport == 22",
      "WELL_KNOWN": "1 <= dport < 1024 (other reserved/privileged ports)",
      "REGISTERED": "1024 <= dport < 49152",
      "HIGH": "dport >= 49152 (ephemeral)",
      "NONE": "row has no dst port (non-network event)"
    }
  },
  "boolean_flag_columns": {
    "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).",
    "f_uid_eq_parent": "1 if the process and its parent share the same uid.",
    "f_is_setuid_exec": "1 if the exec was a setuid (uid != parent uid AND was a process_exec).",
    "f_kp_commit_creds_uid_change": "1 on commit_creds events where the uid changed.",
    "f_kp_commit_creds_cap_change": "1 on commit_creds events where the capability set changed.",
    "f_kp_udp_sendmsg_dport_eq_53": "1 on udp_sendmsg events with dport=53 (DNS)."
  },
  "numeric_columns": {
    "f_kp_fd_install_fd_int32": "Raw fd integer from fd_install (int32).",
    "f_kp_mmap_prot_uint": "mmap prot bitmask (uint32).",
    "f_kp_mprotect_prot_uint": "mprotect prot bitmask (uint64).",
    "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).",
    "process_age_ns": "Nanoseconds since the process started (event_time - proc_start_time)."
  },
  "bucketed_int_columns": {
    "f_delta_t_log_bucket": "Half-decade bucket of log10(delta_t_prev_ns + 1).",
    "f_process_age_log_bucket": "Half-decade bucket of log10(process_age_ns + 1).",
    "f_lineage_depth": "Walked-ancestors depth at parser time (capped per Plan G)."
  },
  "hash_columns": [
    {
      "column": "f_proc_name_hash",
      "buckets": 2048,
      "source_in_raw": "proc_binary (basename)",
      "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)."
    },
    {
      "column": "f_parent_proc_hash",
      "buckets": 1024,
      "source_in_raw": "parent_binary (basename)",
      "desc": "Hash of the parent process basename."
    },
    {
      "column": "f_proc_cwd_hash",
      "buckets": 4096,
      "source_in_raw": "proc_cwd (sanitized at release; see anonymization log)",
      "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."
    },
    {
      "column": "f_lineage_bag_hash",
      "buckets": 256,
      "source_in_raw": "(composite — sorted set of lineage basenames)",
      "desc": "Hash of the bag-of-ancestors basename set; order-invariant."
    },
    {
      "column": "f_parent_child_pair_hash",
      "buckets": 1024,
      "source_in_raw": "(derived: parent_binary_basename + ' -> ' + proc_binary_basename)",
      "desc": "Hash of the (parent_basename, child_basename) pair string."
    },
    {
      "column": "f_root_ancestor_basename_hash",
      "buckets": 1024,
      "source_in_raw": "(derived: lineage walk to the process tree root)",
      "desc": "Hash of the root-of-tree basename (typically systemd / sshd)."
    },
    {
      "column": "f_process_tree_id_hash",
      "buckets": 4096,
      "source_in_raw": "(derived: stable hash of the root proc_exec_id)",
      "desc": "Identifier for the process subtree this event belongs to."
    }
  ],
  "identifier_columns": {
    "event_time": "RFC3339 nanosecond timestamp (timestamp[ns, tz=UTC]).",
    "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.",
    "proc_pid": "OS process id at the time of the event (uint32). Container-internal."
  },
  "side_string_columns": {
    "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.",
    "parent_binary_basename": "Basename of the parent executable. Same alias map as proc_binary_basename.",
    "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.",
    "root_ancestor_basename": "Basename of the process-tree root. Same alias map as the other basename columns.",
    "process_tree_root_exec_id": "Salted-HMAC pseudonym of the original Tetragon exec_id of the process-tree root (format 'exec_<32hex>').",
    "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).",
    "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."
  }
}