Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox

by RitualDev-Labversion 0.2.2i★ 5iRuns on your computerRepository ↗
Registry nameio.github.RitualDev-Lab/agentshield

How to install

What it does

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

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Developer tools

Use together with

Skills that teach the AI this kind of work; they work alongside this one

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

by morluto★ 468,7331 skills

Skill · How-to guide

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

by multica-ai★ 234,3321 skills

Skill · How-to guideNo license stated

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

by Graphify-Labs★ 150,2871 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity9/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score21/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 20, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "agentshield": { "command": "npx", "args": [ "-y", "@ritualdev-lab/agentshield" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "agentshield": {
          "command": "npx",
          "args": [
            "-y",
            "@ritualdev-lab/agentshield"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox or shows a AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox yet

AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Developer tools that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user agentshield -- npx -y @ritualdev-lab/agentshield 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user agentshield -- npx -y @ritualdev-lab/agentshield
  4. Type /mcp in Claude Code

    You should see AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox listed as connected

  5. Try it

    Use AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox or shows a AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "agentshield": { "command": "npx", "args": [ "-y", "@ritualdev-lab/agentshield" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox or shows a AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "agentshield": { "type": "stdio", "command": "npx", "args": [ "-y", "@ritualdev-lab/agentshield" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox or shows a AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user agentshield -- npx -y @ritualdev-lab/agentshield

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "agentshield": {
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/agentshield"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "agentshield": {
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/agentshield"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "agentshield": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/agentshield"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
260/wk
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
0.2.2
Published to registryi
Nov 20, 2026
Code last changedi
Nov 20, 2026
Maker
RitualDev-Lab
Packages
npm: @ritualdev-lab/agentshield
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account RitualDev-Lab, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed today

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @ritualdev-lab/agentshield@0.2.2

Checks only this package version, not every dependency · checked Nov 20, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ritualdev-lab-agentshield.svg)](https://mcp.popnx.com/en/servers/ritualdev-lab-agentshield)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Developer toolsi

  • More stars than 85% of the other 6202 servers in this category
  • Published to the registry more recently than 99% of the other 6202 servers in this category
  • Basic checks equal to or better than 99% of the other 6202 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed today, and the latest version (0.2.2) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

by ahmedkhaleel2004Widely used★ 19KUpdated 2 months ago

Runs in the cloud✓ service owner · gitdiagram.comTried by the PopNx team

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

by AppllamaWidely used★ 5.2KUpdated 3 months ago

Runs in the cloud✓ service owner · appllama.io

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

by repowise-devWidely used↓ 6.5K/wk★ 8.2K Stars for the whole repoUpdated 7 days ago

Computer or cloud✓ service owner · repowise.dev
Compared with similar ones
This one
AgentShield Enterprise Zero-Leak Secret Defense & Kernel Sandbox
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoYesNoNo
Basic checks3/34/44/44/44/45/5
LicenseApache-2.0MITMITApache-2.0Apache-2.0AGPL-3.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

AgentShield

Stop Claude Code, Cursor, Windsurf, and autonomous coding agents from leaking `.env` secrets, SSH keys, or running destructive shell commands.

Zero runtime dependencies. 100% local & air-gapped by default. <20 µs P99 redaction across 10,000-call benchmarks (149k+ ops/sec).

Try it in 10 seconds (no install, no account)
npx @ritualdev-lab/agentshield demo
$ npx @ritualdev-lab/agentshield exec "cat .env && printenv"

[AgentShield] BLOCKED: Direct credential file read & environment dump (.env / printenv)

$ node print-config.js | npx @ritualdev-lab/agentshield stream {"db":"[AGENT_SHIELD:DATABASE_URL:9f3a12]","token":"[AGENT_SHIELD:GITHUB_TOKEN:4c8e19]"}

Recorded with Charm VHS from assets/demo.tape.


Why this exists

Autonomous coding agents have direct access to your shell, filesystem, and git repo. Even well-behaved agents routinely run cat .env, printenv, node -e 'console.log(process.env)', or commit live test keys into PRs—leaking raw credentials into third-party model APIs and git history.

AgentShield intercepts commands and stdout/stderr before credentials leave your machine:

  • Obfuscation-resistant command firewall: Catches cat .e""nv, cat .e?v, /proc/self/environ, base64/xxd, tar/cp, and inline node/python env dumps.
  • Boundary-safe streaming redactor: Catches secrets split across arbitrary 1-byte TCP/stdio chunks and multiline PEM blocks (0 runtime dependencies, linear-time regex + Shannon entropy).
  • OS sandbox preflight & profiles: Generates and verifies macOS Seatbelt (sandbox-exec), Linux bwrap/Landlock, and Windows AppContainer isolation via agentshield doctor.
  • Unified 3-layer stack: Boot AgentShield + DBShield + SkillPrism from a single declarative ritual.policy.yaml via agentshield up.
Try to break it (Contributors Wanted)

Think you can bypass our .env / /proc/self/environ blocker or split a secret across stream chunks without triggering redaction?

npx @ritualdev-lab/agentshield bounty-verify "your-payload-here"

If you find a bypass, open an issue with your repro—every confirmed bypass gets a regression test and credit in the repo. Check THREAT_MODEL.md for exact scope and honest OS isolation limits.

Quick Start · Full Guide · Threat Model · Examples (Claude Code, LangGraph, E2B/Daytona) · GitHub Action


⚡ Instant 30-Second Setup

# 1. Diagnose your OS sandbox (Seatbelt / bwrap / Landlock / AppContainer)

npx @ritualdev-lab/agentshield doctor

2. Install a git pre-commit secret leak gate

npx @ritualdev-lab/agentshield hook install

3. Generate Claude Code PreToolUse or Cursor hooks

npx @ritualdev-lab/agentshield init-claude npx @ritualdev-lab/agentshield init-cursor

4. Wrap any agent shell command safely

npx @ritualdev-lab/agentshield exec "cat .env"


🚀 Key Defense Layers

🛡️ 1. Autonomous Agent Shell Sandbox & OS Isolation Boundary

Intercept and sandbox agent terminal execution. If an agent tries to read .env, dump shell variables (printenv), or send keys to outbound endpoints, AgentShield blocks it on the fly:

npx @ritualdev-lab/agentshield exec "cat .env"

🚨 [AgentShield Sandbox Block] Blocked attempt to read raw .env or private credential file.

Protected credentials from entering agent LLM context window!

OS Isolation Guarantees & Defense-in-Depth Boundary

[!IMPORTANT]

Defense-in-Depth vs OS Security Boundary:

Userland command inspection (AST parsing and regex heuristics) is defense-in-depth designed to prevent accidental exfiltration and common script bypasses. It is not an OS kernel security boundary. Arbitrary compiled binaries or direct kernel syscalls require true OS-level containerization.

PlatformPrimary Isolation MechanismSecurity Boundary LevelGuarantees & Limitations
macOSmacos_sandbox_execKernel-EnforcedSystem call mediation via Apple Seatbelt; restricts file read/write and networking outside workspace.
Linuxlinux_landlock / bwrapDefense-in-Depth *(unless containerized)*Generates Landlock LSM & bubblewrap profiles. Without a container runtime, Node child processes inherit caller privileges.
Windowswindows_appcontainerDefense-in-DepthGenerates AppContainer / Low-Integrity profile templates. Win32 child processes run with normal caller token integrity.
Fallbackprocess_level_firewallDefense-in-DepthAST pattern firewall and real-time streaming redaction.
Strict Isolation Enforcement (--require-isolation)

By default, requesting kernel sandboxing on non-macOS hosts logs an isolation warning and runs under the defense-in-depth AST firewall. To fail-closed and refuse execution whenever OS-level kernel isolation cannot be guaranteed:

# Refuse execution if the host cannot enforce true OS kernel isolation

npx @ritualdev-lab/agentshield exec "npm test" --require-isolation

🛑 [AgentShield Isolation Refusal] Execution refused: requireIsolation is enabled, but OS-level kernel isolation is unavailable on host (win32). Refusing to silently downgrade to process-level firewall.

In the TypeScript SDK:

const result = await interceptor.execute(command, {

enableKernelSandbox: true, requireIsolation: true, // Fails closed instead of silently downgrading });

🚦 2. Git Pre-Commit Leak Shield

Catch leaked credentials before they enter git history. Audits staged diffs automatically:

# Install once in your repo (native git hook)

npx @ritualdev-lab/agentshield hook git-install

Or manually audit staged files

npx @ritualdev-lab/agentshield hook check

Or using the standard pre-commit framework (.pre-commit-config.yaml):

repos:
  • repo: https://github.com/RitualDev-Lab/AgentShield rev: v0.1.1 hooks:
  • id: agentshield
  • id: agentshield-audit
🐙 3. CI/CD Security Gate & GitHub Action

Block pull requests that introduce exposed credentials into your codebase:

name: AgentShield Security Gate

on: [pull_request, push]

jobs: secret-audit: runs-on: ubuntu-latest steps:

  • uses: actions/checkout@v4 with: fetch-depth: 0
  • uses: RitualDev-Lab/AgentShield@v1 with: fail_on_leak: "true"

Or run via CLI in any CI container:

npx @ritualdev-lab/agentshield ci --base origin/main --report security-report.md
📋 4. Scope-Honest Secret-Control Assessment

Assess files and workspace streams against technical secret-handling controls in standard frameworks (SOC 2, PCI-DSS, HIPAA, ISO 27001):

npx @ritualdev-lab/agentshield compliance .env
📋 [SECRET-CONTROL ASSESSMENT] Status: NO_FINDINGS_IN_ASSESSED_CONTROLS (Assessed Controls Score: 100%)

ℹ️ Scope: Technical secret detection, real-time streaming token redaction, and CLI command firewall. ⚠️ Disclaimer: Notice: This report reflects only the results of automated secret detection across assessed technical controls ('NO_FINDINGS_IN_ASSESSED_CONTROLS'). It does NOT establish overall organizational SOC 2, HIPAA, PCI-DSS, or ISO 27001 compliance. Overall compliance requires an accredited third-party audit firm, administrative governance, physical safeguards, and operational policies.

Assessed Controls: ✅ [SOC2] CC6.1: Logical Access Controls & Credential Integrity ✅ [SOC2] CC6.6: Boundary Protection & Unauthorized Egress Controls ✅ [PCI_DSS] Req-3.4: Protection of Authentication & Payment Gateway Secrets ✅ [PCI_DSS] Req-8.3: Strong Authentication Credential Management ✅ [HIPAA] §164.312(a)(1): Technical Safeguards - Access Control & Authentication ✅ [ISO27001] A.8.28: Secure Coding & Secret Management ✅ [ISO27001] A.8.24: Use of Cryptography & Key Protection

Broader Controls (Not Assessed by Secret Scanning): ⏸️ [SOC2] CC1.1: Integrity & Ethical Values (Governance) (NOT ASSESSED) ⏸️ [SOC2] CC5.2: Risk Assessment & Vendor Management (NOT ASSESSED) ⏸️ [PCI_DSS] Req-9.1: Physical Access Restrictions (NOT ASSESSED) ⏸️ [HIPAA] §164.308(a)(1): Administrative Safeguards (NOT ASSESSED) ⏸️ [ISO27001] A.5.1: Policies for Information Security (NOT ASSESSED)

🔐 5. Zero-Trust In-Memory Surrogate Injection

Instead of cleartext .env keys, AgentShield provides deterministic, collision-resistant surrogate tokens ([AGENT_SHIELD:ID:hexHash]). Agents can safely manipulate configurations and inspect outputs without ever seeing the plaintext secret in prompt history, rehydrating values locally when required.



🤖 AI Agent Ecosystem Integrations

AgentShield provides 1-command generators for leading AI coding agent environments:

Claude Code (PreToolUse Hook)

Automatically intercept agent terminal executions before commands touch your environment:

npx @ritualdev-lab/agentshield init-claude

Generates .claude/settings.json configured with:

{

"hooks": { "PreToolUse": [ { "matcher": "Bash|Terminal", "command": "npx @ritualdev-lab/agentshield exec --claude-hook" } ] } }

*Note: Claude Code delivers tool call payloads via stdin JSON. AgentShield inspects the payload in real-time and cleanly returns exit code `2` to halt unauthorized commands before execution.*
Cursor & Windsurf Rules
npx @ritualdev-lab/agentshield init-cursor

Generates .cursor/rules.json with sensitive path boundaries (.env*, *.pem, id_rsa*) and pre-execution command sandboxing.

Antigravity & Copilot

Plug SKILL.md into workspace agent instructions to enforce zero-leak guarantees natively.


⚡ Comparative Benchmark: AgentShield vs Traditional Scanners

Traditional scanners (gitleaks, trufflehog) were designed for post-facto static git repository scanning (scanning files and commit histories at rest).

AgentShield is designed specifically for Autonomous Agent Runtime Protection — intercepting shell commands, scrubbing streaming stdio chunk-by-chunk in sub-milliseconds, and sanitizing LLM prompt inputs before transmission.

Feature / MetricAgentShieldGitLeaksTruffleHog
Primary DomainAgent Runtime & Stdio InterceptionGit History ScannerGit & Filesystem Scanner
Average Scan Latency< 0.04 ms / scan~ 2 - 5 ms~ 10 - 50 ms
Throughput28,000+ operations/sec~ 5,000 ops/sec~ 1,200 ops/sec

| Streaming Stdio Interception | ✅ Native (`createRedactingStream`) | ❌ (Disk / Git

Only the beginning is shown; read the rest in the repo