Skip to content

[WIP] Add fields for Linux mprotect events#767

Draft
Aegrah wants to merge 9 commits into
mainfrom
aegrah/mprotect-events
Draft

[WIP] Add fields for Linux mprotect events#767
Aegrah wants to merge 9 commits into
mainfrom
aegrah/mprotect-events

Conversation

@Aegrah

@Aegrah Aegrah commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Add queryable mappings and Linux process-event documentation for:

  • process.Ext.mprotect.addr
  • process.Ext.mprotect.len
  • process.Ext.mprotect.prot
  • process.Ext.mprotect.prot_flags

The docs describe the final contract: only successful calls requesting executable protection (X, RX, WX, or RWX) are emitted, and collection requires advanced.events.hidden.emit_diagnostic_fields.

Issue: https://github.com/elastic/endpoint-dev/issues/20408

Workflow and proof

The contract workflow regenerated the package and combined schemas, built Endpoint, ran focused unit/EAF tests, deployed the custom integration through Fleet, and asserted Elasticsearch output.

  • Preflight 20260722T124741Z-mprotect-preflight: PASS
  • Fleet acceptance 20260722T142745Z-mprotect on Stack/Agent/Endpoint 9.4.2: PASS
  • make clean all, generated handoff, and schema freshness: PASS
  • Realistic workstation qualification 20260722T103000Z-mprotect-realistic-smoke: PASS
3,708 Endpoint documents / 4,737 action values
exec: 523 (11.04%); mprotect: 6 (0.13%, 0.16% document coverage)
mprotect executables: /usr/bin/node 5; chromium headless_shell 1
masks: RWX 6 (100%)

Companion PRs

Aegrah and others added 4 commits July 20, 2026 10:14
Map and document the raw and decoded memory protection values emitted by Endpoint so they are queryable in process event data.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep generated process mappings aligned with the current package generator output.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove trailing blank lines so the generated documentation passes whitespace validation.

Co-authored-by: Cursor <cursoragent@cursor.com>
Associate the generated package changelog entry with its draft pull request.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Aegrah Aegrah changed the title Add fields for Linux mprotect events [WIP] Add fields for Linux mprotect events Jul 20, 2026
Aegrah and others added 3 commits July 20, 2026 12:14
Document that Linux mprotect telemetry is limited to calls requesting both read and write protection.

Co-authored-by: Cursor <cursoragent@cursor.com>
Make the diagnostic gate and RW/RWX-only event scope explicit in generated package documentation.
@Aegrah
Aegrah requested a review from nicholasberlin July 21, 2026 07:56
@Aegrah Aegrah self-assigned this Jul 21, 2026
Aegrah added 2 commits July 22, 2026 14:42
Keep generated mappings and Linux event documentation aligned with successful X, RX, WX, and RWX collection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant