Skip to content

Synchronous security with LSM

Step 6 of 8Solution
ENFORCEMENT
synchronous
TOCTOU RACE
eliminated
ACTIONS
allow / -EPERM
TOOLS
Tetragon / Falco
  • kernel event trigger
  • telemetry / policy ok
  • LSM deny / PMU sample
Tracing & LSM Hooks, step 6 of 8

Audit hooks only alert after an attack runs. eBPF LSM (Linux Security Module, Linux 5.7+) attaches synchronously inside kernel security checks (bprm_check_security, file_open, socket_connect).

Returning -EPERM blocks unauthorized execve calls, container escapes, or unexpected socket connects before the kernel executes them—zero time-of-check-to-time-of-use race.

What changed

  • Post-hoc audit log → synchronous pre-action block
  • Kill process after exec → return -EPERM before run
  • Static SELinux policy → dynamic map-driven container rules

Type to search…

↑↓ navigate↵ selectEsc close