This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Where Linux security tools actually sit

EDR, LSM, eBPF, gVisor, and a compiled-in kernel are not the same layer. This taxonomy shows the bypass surface of each.

    Overview: Security audits often group tools by vendor category — EDR, SIEM, NDR — without saying where in the kernel stack enforcement actually happens. Layer placement determines bypass surface: a tool enforcing at Layer 2 cannot be disabled by a mechanism that only reaches Layer 3 or above.

    This page maps Linux host security tools to the enforcement layer they occupy.

    Layer definitions

    LayerNameWhat lives here
    1Hardware / firmwareCPU microcode, UEFI/BIOS, Secure Boot chain, TPM
    2KernelThe running kernel binary and its compiled-in configuration
    3LSM / kernel hooksIn-tree LSM frameworks, eBPF programs attached to kernel hooks
    4Userspace sandboxAgents and runtimes that compose Layer 3 primitives — run as userspace processes
    5Userspace telemetry / responseKernel-module or eBPF agents primarily providing detection, alerting, and response
    Adj.Complementary controlsTools that answer different questions — no enforcement overlap with Layers 2–5

    The higher the layer, the more layers beneath it an attacker can leverage to disable it. A Layer 5 agent can be killed by a process with root. A Layer 3 LSM policy can be set permissive by root.

    A Layer 2 kernel configuration cannot be changed without rebooting into a different kernel. For a visual representation of this by tool, see Kernel architecture.

    Tool map

    Layer 2 — Kernel-embedded enforcement

    MechanismTools
    Kernel-embedded allowlist / stripped kernelRoot Lock by HeartSuite, custom hardened kernels, unikernels
    Hardware-virtualized micro-isolationFirecracker, Kata Containers, Cloud Hypervisor

    Enforcement is part of the kernel binary. Changing it requires a reboot into a different kernel. Remote root is not sufficient to disable it.

    Layer 2–3 — Userspace-process-run-as-kernel

    MechanismTools
    Userspace syscall-emulating kernel (intercepts container syscalls)gVisor (sentry process)

    gVisor intercepts container syscalls in a userspace process that acts as the container’s kernel, reducing exposure to the host kernel. The sentry process runs in userspace and can be compromised; a bug in its syscall emulation can allow escape.

    Root Lock running as a guest kernel inside a gVisor-isolated container is a coherent composition — see How It Compares → gVisor.

    Layer 3 — LSM hooks (in-tree)

    MechanismTools
    Mandatory Access Control LSMSELinux, AppArmor, SMACK, Tomoyo
    Capability / path-based LSMLandlock, Yama, LoadPin

    Policy is applied to a running kernel from outside. Root with the right capability can set SELinux permissive, unload an AppArmor profile, or modify a policy file without rebooting.

    Layer 3 — LSM hook + eBPF programs

    MechanismTools
    eBPF programs attached via KRSI / LSM BPFTetragon (Cilium), Cilium network path, KRSI primitives

    eBPF programs are loaded into a running kernel at runtime. Root can unload the BPF program or kill the agent that loaded it.

    Layer 3–5 — eBPF observability with optional in-kernel kill

    MechanismTools
    eBPF detection; optional kill signalFalco (detection only, no kill), Tetragon (detect + kill), Sysdig Secure

    These tools span layers depending on configuration: eBPF programs run at Layer 3, the userspace agent sits at Layer 5. The kill capability (where present) runs in-kernel but is loaded and managed by a userspace process.

    Layer 4 — Userspace agent sandbox

    MechanismTools
    Userspace runtime composing seccomp-bpf, namespaces, cgroupsbubblewrap, Firejail, Flatpak sandbox, Snap confinement, OpenShell (NVIDIA)

    These tools set up confinement using kernel primitives (seccomp-bpf, Linux namespaces) from userspace. Filters are scoped to a process tree launched by the agent — a sibling process launched without the agent is unaffected.

    Layer 5 — Agent-based EDR / XDR

    MechanismTools
    Kernel module or eBPF agent: telemetry, detection, responseCrowdStrike Falcon, SentinelOne Singularity, Microsoft Defender for Endpoint, Elastic Defend, Wazuh

    The agent provides detection and response capabilities that Root Lock does not replicate. Most modern breaches include “disable EDR” as an early step — root can kill the agent process, unload the kernel module, or exploit a BYOVD path. Treat these as complementary to Layer 2 enforcement, not substitutes.

    Complementary controls (no enforcement overlap)

    These tools do not overlap with Layers 2–5 enforcement. They answer different questions and should run alongside host enforcement.

    CategoryToolsWhat they answer
    SIEM / SOARSplunk, Elastic Security, Microsoft Sentinel, IBM QRadar, Sumo Logic, Graylog, Wazuh, Cortex XSOAR, Tines, TorqFleet-wide event correlation, alerting, playbook response
    NDR / NTADarktrace, ExtraHop Reveal(x), Vectra AI, Corelight, Cisco Secure Network Analytics, Arista NDRPassive network behavioral analysis, lateral-movement detection
    Vulnerability / postureTenable Nessus, Qualys VMDR, Rapid7 InsightVM, Greenbone/OpenVAS, Wiz, Orca, Snyk, Trivy, Grype, ClairCVE enumeration, patch prioritization, posture scoring
    HIDS / FIMOSSEC, AIDE, Tripwire, SamhainAlert-only file-integrity monitoring, no blocking
    Backup / recoveryVeeam, Rubrik, Cohesity, BackupPC, resticRecovery from destructive events — separate category

    Takeaway

    Root Lock is the only product in this map sitting squarely at Layer 2 as a kernel-embedded allowlist enforced across all programs including root. Every other host enforcement tool sits at Layer 3 or higher. Root can turn those off remotely without a reboot.

    The Layer 2 position is what makes physical or serial-console access the bypass path.

    For the tool-by-tool comparison with bypass analysis, see How It Compares.