Add kernel module name and taint fields to load_module events#761
Open
nicholasberlin wants to merge 3 commits into
Open
Add kernel module name and taint fields to load_module events#761nicholasberlin wants to merge 3 commits into
nicholasberlin wants to merge 3 commits into
Conversation
Adds process.Ext.load_module.{name,version,src_version,taints,
taint_flags} for Linux load_module process events. Endpoint now
reads the module name and taint bitmask from the kernel's
module_load tracepoint (via quark) and reports whether a loaded
LKM taints the kernel (e.g. out-of-tree or unsigned modules).
Regenerated: process fields.yml, docs/README.md, schemas/v1, and
the load_module custom documentation.
Member
|
@nicholasberlin branching was a little delayed in this repo, Is this change for |
Contributor
Author
|
I plan to backport to 9.5. Happy to hold off until you are ready. How do I indicate it should be backported? With labels? |
Sample values for the new process.Ext.load_module.* mappings so the automated mapping tests exercise them. taints 12288 corresponds to taint_flags OE (out-of-tree + unsigned).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds five new fields to Linux
load_moduleprocess events:process.Ext.load_module.namemod->name)process.Ext.load_module.versionMODULE_VERSION()process.Ext.load_module.src_versionprocess.Ext.load_module.taintsprocess.Ext.load_module.taint_flagsOE= out-of-tree + unsigned); only present when nonzeroEndpoint reads these from the kernel's
module_loadtracepoint (via quark's eBPF probes), giving visibility into which LKM was loaded and whether it tainted the kernel — useful for detecting out-of-tree/unsigned rootkit-style module loads.Companion changes:
mod->taintsto the probe andquark_module_load)nberlin/quark-module-load-taints(plumbs the fields into ES documents; its EAF testtest_events_load_moduleasserts them)What changed
custom_schemas/custom_process.yml— field definitionscustom_subsets/elastic_endpoint/process/process.yaml— subset entriescustom_documentation/src/.../linux_process_load_module.yaml— document the new fieldspackage/endpoint/data_stream/process/fields/fields.yml,package/endpoint/docs/README.md,schemas/v1/process/process.yaml,custom_documentation/doc/.../linux_process_load_module.md🤖 Generated with Claude Code