Skip to content

Commit cf14f00

Browse files
Add host profile and full actor mappings to Network Activity SYSCALL pipeline
Network Activity (4001) has no native actor attribute, which caused the earlier exe/comm -> ocsf.actor.process.* mappings to be rejected by the schema validator. Declaring profiles: [host] on the SYSCALL->4001 schema-processor makes actor (and device) valid attributes on the class. Also expand actor mappings for parity with the FS-from-SYSCALL sub-pipeline: pid, uid/UID, auid/AUID, ses, tty. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1d4de38 commit cf14f00

2 files changed

Lines changed: 76 additions & 2 deletions

File tree

linux_audit_logs/assets/logs/linux-audit-logs.yaml

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3210,7 +3210,8 @@ pipeline:
32103210
className: Network Activity
32113211
classUid: 4001
32123212
extensions: []
3213-
profiles: []
3213+
profiles:
3214+
- host
32143215
mappers:
32153216
- name: ocsf.activity_id
32163217
categories:
@@ -3339,3 +3340,66 @@ pipeline:
33393340
preserveSource: true
33403341
overrideOnConflict: true
33413342
type: schema-remapper
3343+
- name: Map `pid` to `ocsf.actor.process.pid`
3344+
sources:
3345+
- pid
3346+
sourceType: attribute
3347+
target: ocsf.actor.process.pid
3348+
targetFormat: integer
3349+
preserveSource: true
3350+
overrideOnConflict: true
3351+
type: schema-remapper
3352+
- name: Map `uid` to `ocsf.actor.process.user.uid`
3353+
sources:
3354+
- uid
3355+
sourceType: attribute
3356+
target: ocsf.actor.process.user.uid
3357+
targetFormat: string
3358+
preserveSource: true
3359+
overrideOnConflict: true
3360+
type: schema-remapper
3361+
- name: Map `UID` to `ocsf.actor.process.user.name`
3362+
sources:
3363+
- UID
3364+
sourceType: attribute
3365+
target: ocsf.actor.process.user.name
3366+
targetFormat: string
3367+
preserveSource: true
3368+
overrideOnConflict: true
3369+
type: schema-remapper
3370+
- name: Map `auid` to `ocsf.actor.user.uid`
3371+
sources:
3372+
- auid
3373+
sourceType: attribute
3374+
target: ocsf.actor.user.uid
3375+
targetFormat: string
3376+
preserveSource: true
3377+
overrideOnConflict: true
3378+
type: schema-remapper
3379+
- name: Map `AUID` to `ocsf.actor.user.name`
3380+
sources:
3381+
- AUID
3382+
sourceType: attribute
3383+
target: ocsf.actor.user.name
3384+
targetFormat: string
3385+
preserveSource: true
3386+
overrideOnConflict: true
3387+
type: schema-remapper
3388+
- name: Map `ses` to `ocsf.actor.session.uid`
3389+
sources:
3390+
- ses
3391+
sourceType: attribute
3392+
target: ocsf.actor.session.uid
3393+
targetFormat: string
3394+
preserveSource: true
3395+
overrideOnConflict: true
3396+
type: schema-remapper
3397+
- name: Map `tty` to `ocsf.actor.session.terminal`
3398+
sources:
3399+
- tty
3400+
sourceType: attribute
3401+
target: ocsf.actor.session.terminal
3402+
targetFormat: string
3403+
preserveSource: true
3404+
overrideOnConflict: true
3405+
type: schema-remapper

linux_audit_logs/assets/logs/linux-audit-logs_tests.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,8 +1611,18 @@ tests:
16111611
activity_name: "Open"
16121612
actor:
16131613
process:
1614-
path: "/usr/bin/bash"
16151614
name: "bash"
1615+
path: "/usr/bin/bash"
1616+
pid: 226245
1617+
user:
1618+
name: "lima"
1619+
uid: "502"
1620+
session:
1621+
terminal: "pts0"
1622+
uid: "4"
1623+
user:
1624+
name: "lima"
1625+
uid: "502"
16161626
category_name: "Network Activity"
16171627
category_uid: 4
16181628
class_name: "Network Activity"

0 commit comments

Comments
 (0)