Home/AgentShield

AgentShield

v1.2.0 Stable

Zero-Leak Secret Defense & Kernel Sandbox for Autonomous AI Coding Agents

AgentShield wraps your AI agent processes (Claude Code, Cursor, Windsurf, Codex, Antigravity) inside OS-level kernel sandboxes. It traps unauthorized syscalls, redacts environment secrets in volatile memory, and blocks credential exfiltration with strict CIDR egress filtering.

$brew install agentshield
$npm install -g @ritualdev-lab/agentshield
Install in VS CodeInstall in Cursor & WindsurfCVE DisclosuresGitHub
Zero-Trust Isolation

Native Kernel Sandboxing Across All Three Operating Systems

Linux KernelProduction Hardened

Bubblewrap (bwrap) + Landlock LSM

Unprivileged user namespaces, read-only rootfs mounts, isolated network namespaces, and strict PID namespace confinement.

macOS DarwinNative Darwin

Apple Seatbelt (sandbox-exec)

Scheme-based sandbox profiles restricting file-read, file-write, sysctl inspection, and outbound mach-lookup messaging.

Windows NTNative Win32

LowBox / AppContainer Isolation

Windows AppContainer low-integrity execution token, restricted process tokens, and firewall capability filtering.

Wrapping Agent Executables in 1 Second

# Run Claude Code or Cursor through AgentShield kernel sandbox with egress lockdown
$ agentshield exec --network allow-git-only --profile strict -- claude
[agentshield] Initializing Landlock LSM file sandbox...
[agentshield] Mounting read-only system rootfs (isolate /etc, /var/log)...
[agentshield] Generating synthetic decoy canary for ~/.aws/credentials...
[agentshield] Active Egress CIDR: 140.82.112.0/20 (GitHub), 104.18.0.0/16 (Cloudflare)
[agentshield] Sandbox locked. Spawning agent PID 48191...
IDE Extensions

Real-Time Defense Inside VS Code, Cursor & Windsurf

Live Status Bar Kernel Telemetry

Shows active sandbox enforcement (Bubblewrap, Seatbelt, AppContainer) and traps unauthorized egress sockets right from your status bar.

1-Click QuickFix Redactor (Ctrl+.)

Detects exposed AWS, OpenAI, GitHub, and database keys on keystroke. Press Ctrl+. to instantly replace raw secrets with secure environment references.

Anti-Exfiltration Hook

Prevents autonomous agent prompts from reading /proc/self/environ, ~/.ssh, or piping private keys into chat context.

Zero-Leak Telemetry Badge

Display the AgentShield Verification Badge on Your Repo

Add our automated SVG status badge to your GitHub repository README to signal enterprise compliance, Landlock kernel sandboxing, and zero secret exfiltration.

Live Badge:
Secured by AgentShield • Zero-Leak
Markdown Embed Snippet
[![Secured by AgentShield](https://ritualdev.in/badge/secured.svg)](https://ritualdev.in)
HTML Embed Snippet
<a href="https://ritualdev.in"><img src="https://ritualdev.in/badge/secured.svg" alt="Secured by AgentShield" /></a>

Upgrade to AgentShield Pro

Includes native macOS/Windows menu-bar GUI, cloud audit log backup, and centralized policy sync.