Skip to content

Conversation

rabbitstack
Copy link
Owner

What is the purpose of this PR / why it is needed?

Enable callstack enrichment for the VirtualAlloc event. As part of this changeset, a few optimizations are introduced to drop
stack enrichment for the events generated by the System process.

What type of change does this PR introduce?


Uncomment one or more /kind <> lines:

/kind feature (non-breaking change which adds functionality)

/kind bug-fix (non-breaking change which fixes an issue)

/kind refactor (non-breaking change that restructures the code, while not changing the original functionality)

/kind breaking (fix or feature that would cause existing functionality to not work as expected

/kind cleanup

/kind improvement

/kind design

/kind documentation

/kind other (change that doesn't pertain to any of the above categories)

Any specific area of the project related to this PR?


Uncomment one or more /area <> lines:

/area instrumentation

/area telemetry

/area rule-engine

/area filters

/area yara

/area event

/area captures

/area alertsenders

/area outputs

/area rules

/area filaments

/area config

/area cli

/area tests

/area ci

/area build

/area docs

/area deps

/area other

Special notes for the reviewer


Does this PR introduce a user-facing change?


The callstack for VirtualAlloc events is enabled
with this change. Sadly, MapViewFile/UnmapViewFile
events don't yield userspace stack address, so we
can't consider them useful.
@rabbitstack rabbitstack force-pushed the callstack-for-memory-events branch from 1701790 to dec4059 Compare December 16, 2024 18:41
These events don't contain the thread id parameter,
so trying to adjust the tid will always yield to an
invalid value.
@rabbitstack rabbitstack force-pushed the callstack-for-memory-events branch from dec4059 to a2ee03d Compare December 16, 2024 18:47
Except when the LoadImage event is emitted by
the System process, all other events are safe
to ignore callstack symbolization.
@rabbitstack rabbitstack merged commit 324fccd into master Dec 16, 2024
8 checks passed
@rabbitstack rabbitstack deleted the callstack-for-memory-events branch December 16, 2024 22:13
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