Skip to content

Commit 53f43d3

Browse files
Add host profile and actor mappings to Network Activity SYSCALL pipeline (DataDog#23349)
* Map event_id to ocsf.metadata.correlation_uid in all sub-pipelines * use uid instead of correlation_uid * Map exe and comm to OCSF actor process fields in Network Activity pipeline Add exe -> ocsf.actor.process.path and comm -> ocsf.actor.process.name mappings to the Network Activity [4001] Syscall sub-pipeline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add actor.process expectations to Network Activity SYSCALL test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 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> * Add metadata.profiles to Network Activity SYSCALL test expectation The schema-processor emits ocsf.metadata.profiles: [host] when the host profile is declared on the schema. Mirror the format used by IAM sub-pipeline tests (e.g. line 141). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b906344 commit 53f43d3

2 files changed

Lines changed: 99 additions & 1 deletion

File tree

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

Lines changed: 83 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:
@@ -3321,3 +3322,84 @@ pipeline:
33213322
preserveSource: false
33223323
overrideOnConflict: true
33233324
type: schema-remapper
3325+
- name: Map `exe` to `ocsf.actor.process.path`
3326+
sources:
3327+
- exe
3328+
sourceType: attribute
3329+
target: ocsf.actor.process.path
3330+
targetFormat: string
3331+
preserveSource: true
3332+
overrideOnConflict: true
3333+
type: schema-remapper
3334+
- name: Map `comm` to `ocsf.actor.process.name`
3335+
sources:
3336+
- comm
3337+
sourceType: attribute
3338+
target: ocsf.actor.process.name
3339+
targetFormat: string
3340+
preserveSource: true
3341+
overrideOnConflict: true
3342+
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,20 @@ tests:
16091609
ocsf:
16101610
activity_id: 1
16111611
activity_name: "Open"
1612+
actor:
1613+
process:
1614+
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"
16121626
category_name: "Network Activity"
16131627
category_uid: 4
16141628
class_name: "Network Activity"
@@ -1622,6 +1636,8 @@ tests:
16221636
product:
16231637
name: "Auditd"
16241638
vendor_name: "Linux"
1639+
profiles:
1640+
- "host"
16251641
version: "1.5.0"
16261642
severity: "Informational"
16271643
severity_id: 1

0 commit comments

Comments
 (0)