Repository navigation
[auditd] Map enriched UID/AUID fields - #20237
Conversation
Elastic Docs Style Checker (Vale)Summary: 1 warning found
|
| File | Line | Rule | Message |
|---|---|---|---|
| packages/auditd/changelog.yml | 4 | Elastic.Latinisms | Latin terms and abbreviations are a common source of confusion. Use 'and so on' instead of 'etc'. |
The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.
5d7262e to
8210b2b
Compare
This comment has been minimized.
This comment has been minimized.
TL;DRThe Remediation
Investigation detailsRoot CauseThe PR adds the ECS field definitions Evidence
Verification
What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
| @@ -1,4 +1,9 @@ | |||
| # later versions go on top | |||
| - version: "3.23.1" | |||
There was a problem hiding this comment.
This conflicts with #20237, update this or that depending on merge order.
8210b2b to
060d127
Compare
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
060d127 to
22a4b95
Compare
SERVICE_STOP and other enriched events expose usernames as UID="root" but only numeric ids were mapped, leaving user.name unset.
22a4b95 to
6ea4ae8
Compare
|
✅ All changelog entries have the correct PR link. |
💚 Build Succeeded
History
|
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
Required conditions to enter a queue
|
☑️ The pull request has been merged manuallyDetailsThe pull request has been merged manually at da13a70 |
PR #20237 (merged to main after this branch's expected file was generated) maps the enriched AUID value to user.audit.name and related.user. Regenerated test-auditd-useradd.log-expected.json so the expected output includes those fields. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Proposed commit message
WHAT: Map the enriched auditd username/group fields (UID, GID, EUID, EGID, FSUID, FSGID, SUID, SGID, AUID, AGID) that appear as key=value suffixes on kernel audit records (e.g. UID="root" AUID="unset") to their corresponding ECS user.* name fields. The mapping uses set processors with override: false so pre-existing values are never clobbered, and skips placeholder values ("unset", "?") that carry no meaningful identity. All mapped names are also appended to related.user for cross-referencing.
WHY: The auditd enriched format already maps the numeric ID fields (e.g. user.id, user.audit.id) from type=SYSCALL records, but the human-readable name counterparts were left unmapped. This meant searches and alerts built on user.name or related.user would miss events where only the enriched format was available, making the integration inconsistent compared to the go-libaudit preparsed path which does populate these fields.
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues