Skip to content

Add Linux load module events#729

Merged
nicholasberlin merged 1 commit intomainfrom
nberlin/add_module_load_event
Mar 18, 2026
Merged

Add Linux load module events#729
nicholasberlin merged 1 commit intomainfrom
nberlin/add_module_load_event

Conversation

@nicholasberlin
Copy link
Copy Markdown
Contributor

Change Summary

Add knowledge of event.action = "load_module" for Linux kernel load module process events.

Sample document:

{
        "agent": {
            "id": "adsflkjasd;lfkjas;dlkfj",
            "type": "endpoint",
            "version": "9.4.0-SNAPSHOT"
        },
        "process": {
            "Ext": {
                "ancestry": [
                    "ngaLewF3DR+j1NtKw1HnfA",
                    "0JLCqorFrMVitXKojenDgQ",
                    "Sd/bwXD2L4Kg64pLk93LeA",
                    "HAyAzFnUq1AA7UvzKfZmOg",
                    "r0TIyLj8MxqKNvozQBeuIw"
                ]
            },
            "args": [
                "modprobe",
                "dummy"
            ],
            "parent": {
                "args": [
                    "sudo",
                    "modprobe",
                    "dummy"
                ],
                "name": "sudo",
                "pid": 1553452,
                "args_count": 3,
                "entity_id": "ngaLewF3DR+j1NtKw1HnfA",
                "command_line": "sudo modprobe dummy",
                "executable": "/usr/bin/sudo"
            },
            "name": "kmod",
            "pid": 1553453,
            "working_directory": "/home/nberlin/git/endpoint-dev/main/Python/endpoint",
            "args_count": 2,
            "entity_id": "rNspiYIcgXQIfA79krPVaA",
            "command_line": "modprobe dummy",
            "executable": "/usr/bin/kmod",
            "hash": {
                "sha256": "656354b09f8d2e81460fc233352b44ae7200347c681a843557b629d191a15e49"
            }
        },
        "@timestamp": "2026-03-16T18:19:14.5297547Z",
        "ecs": {
            "version": "8.10.0"
        },
        "data_stream": {
            "namespace": "default",
            "type": "logs",
            "dataset": "endpoint.events.process"
        },
        "elastic": {
            "agent": {
                "id": "adslfas;dlfkja;sldkfjaslkdjf;asdf"
            }
        },
        "host": {
            "os": {
                "type": "linux"
            },
            "name": "hodl",
            "id": "dabadaba-0000-0000-0000-000000000000"
        },
        "event": {
            "sequence": 2884,
            "created": "2026-03-16T18:19:14.5297547Z",
            "kind": "event",
            "module": "endpoint",
            "action": [
                "load_module"        <------- the important bit
            ],
            "id": "OPV7HsfUxGxJT6sT++++++hc",
            "category": [
                "process"
            ],
            "type": [
                "start"
            ],
            "dataset": "endpoint.events.process",
            "outcome": "unknown"
        },
        "message": "Endpoint process event",
        "user": {
            "Ext": {
                "real": {
                    "name": "root",
                    "id": 0
                }
            },
            "name": "root",
            "id": 0
        },
        "group": {
            "Ext": {
                "real": {
                    "name": "root",
                    "id": 0
                }
            },
            "name": "root",
            "id": 0
        }
    }

Release Target

v9.4.0

Q/A

For mapping changes:

  • I ran make after making the schema changes, and committed all changes

@nicholasberlin nicholasberlin requested a review from a team as a code owner March 16, 2026 18:31
@nicholasberlin nicholasberlin force-pushed the nberlin/add_module_load_event branch from d02de66 to 299a7c8 Compare March 17, 2026 19:18
@nicholasberlin nicholasberlin merged commit 88d2dbc into main Mar 18, 2026
4 checks passed
@nicholasberlin nicholasberlin deleted the nberlin/add_module_load_event branch March 18, 2026 16:17
@nicholasberlin nicholasberlin mentioned this pull request Mar 31, 2026
1 task
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.

2 participants