Linux Security Module (LSM) is a framework that provides security hooks within the Linux kernel. Access-control systems and auditing components use these hooks to check or record operations such as accessing files, changing credentials, or loading programs. LSM is an interface used by security mechanisms, not a single security policy by itself.
LSM matters because its hooks let defenses enforce rules and observe sensitive kernel activity. eBPF programs can attach to certain LSM hooks for legitimate monitoring or policy work; with sufficient privileges, misuse of these capabilities could complicate detection or conceal activity. Defenders should monitor which programs load and attach to hooks, review permissions and audit records, and avoid relying only on checks for conventional kernel modules.


