🔥 UNIVERSAL AGENT SECURITY FIREWALL v1.0.0 GA

Don't Let AI Agents Execute Rogue Tools.

One unvetted tool can read your AWS secrets, execute arbitrary shell scripts, or pivot through your private VPC. AgentShield provides model-agnostic, zero-trust security for agents powered by Gemini 3.7 Flash, DeepSeek-V4-Pro, Grok 4.6, Claude 5 Sonnet/Opus, GPT-5.6 Sol, Qwen3.8-27B, GLM-5.3, OpenAI Codex, and Google Antigravity in <50ms — 100% offline.

bash — agentshield scan . --explain
$ agentshield scan ./agent-tools --fail-on high --explain
AgentShield v1.0.0 (offline agent security engine)
Target: ./agent-tools [Adapters: MCP, OpenAI Codex, Google Antigravity]
Parsed 18 files (AST + Interprocedural Call Graph) in 24ms

[BLOCKED] tools/executor.py:18 SHIELD-001 (Critical) — Interprocedural Command Injection
Flow: Tool 'exec_task' param 'query' -> helper_format() -> subprocess.run(shell=True)

[FIXABLE] config/settings.py:42 SHIELD-016 (High) — Insecure yaml.load() deserializer
Remediation: Auto-fixable in 1 click

$ agentshield fix .
[PASS] Fixed SHIELD-016 in settings.py: replaced 'yaml.load' -> 'yaml.safe_load'
✔ 1 patch applied cleanly. Zero vulnerabilities remaining.
< 50ms
Scan Latency
100%
Offline & Private
7
Agent Frameworks
25
OWASP & CWE Rules
1-Click
Auto-Remediation
Compatible with All Frontier LLMs & Agent Architectures
Gemini 3.7 Flash Google DeepSeek-V4-Pro DeepSeek Grok 4.6 xAI Claude 5 Sonnet/Opus Anthropic GPT-5.6 Sol & Codex OpenAI Qwen3.8-27B Alibaba Cloud GLM-5.3 Zhipu AI Google Antigravity Google Llama 4 & Hermes Open Source
The AI Tool Dilemma

You gave your AI agent a shell. Who controls it?

Traditional SAST linters don't understand LLM tool parameters. Attackers exploit tool interfaces to hijack host systems.

Stealth Secret Exfiltration

An innocent-looking tool reads local .env credentials or SSH keys and silently POSTs them to an external endpoint during prompt execution.

Indirect Command Injection

Prompt injection tricks the LLM into passing ; rm -rf / into a nested utility helper that invokes subprocess.run(shell=True).

Internal Cloud SSRF

A web retrieval tool gets tricked into querying http://169.254.169.254/latest/meta-data/ to dump cloud IAM roles and private VPC services.

Runtime Backdoors

Skills and extensions executing dynamic code (eval(), pip install) pull unvetted remote payloads into your agent context at runtime.

Why Engineers Choose AgentShield

Built from the ground up in Rust for speed, privacy, and deep agent tool semantics.

100% Offline & Local-First

Zero telemetry, zero cloud dependencies. No source code or tool schemas ever leave your machine or CI runner. Operates in completely air-gapped environments.

Interprocedural Taint Engine

Tracks tainted tool parameters through helper functions, utility wrappers, and class methods to downstream sinks (`subprocess`, `fetch`, arbitrary file access).

Automated 1-Click Remediation

`agentshield fix` automatically rewrites insecure deserializers (`yaml.load` → `safe_load`, `pickle` → `json`) and pins unpinned dependencies with full unified diff previews.

Runtime Guard Reverse Proxy

Real-time MCP proxy (`agentshield guard`) for stdio and HTTP/SSE streams. Inspects `tools/call` JSON-RPC payloads, enforces policies, and redacts leaked credentials on outgoing streams.

Custom Declarative Rules

Author organization-specific rules in `.agentshield/rules/*.yaml`. Supports source code regex with file globs, banned dependency rules, and prohibited tool name matchers.

GitHub Code Scanning (SARIF)

Native SARIF v2.1.0 output integrates seamlessly into GitHub PR annotations, Security > Code Scanning alerts, and CI/CD quality gates.

Interactive Detection Playground

Explore real-world vulnerability patterns and see how AgentShield's AST and dataflow engines catch them.

Source Code (Vulnerable Tool Handler)
// server.ts (MCP Server)
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

const server = new McpServer({ name: "api-fetcher", version: "1.0.0" });

// ❌ Vulnerable: Tool accepts arbitrary URL and fetches without allowlist
server.tool(
  "fetch_api_docs",
  { target_url: z.string().url() },
  async ({ target_url }) => {
    const res = await fetch(target_url); // Reaches 169.254.169.254 or localhost
    return { content: [{ type: "text", text: await res.text() }] };
  }
);
AgentShield Finding Analysis CRITICAL
SHIELD-003: Unvalidated URL Parameter to Network Sink
Tool parameter 'target_url' flows directly into 'fetch()' without allowlist validation or metadata endpoint filtering.
Recommended Remediation

Validate 'target_url' against an explicit domain allowlist and block access to cloud metadata IP (169.254.169.254) and private networks.

Works Across the Entire AI Stack

AgentShield provides native IR adapters for all major agent frameworks and IDE configurations.

ChatGPT & OpenAI Codex

Audits Custom GPT Actions, OpenAPI schemas, OpenAI Agents SDK tool definitions, and Codex code execution surfaces.

Google Antigravity & Gemini

Hardens Google Antigravity (AGY) agent tools, subagents, and Gemini tool-calling workflows against command injection and SSRF.

Claude Desktop & Claude Code

Validates MCP configurations, server manifests, and terminal capabilities before agents execute tools on your machine.

Model Context Protocol (MCP)

Deep AST and interprocedural taint analysis for TypeScript and Python MCP servers, tool schemas, and stdio/SSE endpoints.

Cursor & Cursor Rules

Analyzes .cursorrules and AI IDE guidance files for toxic prompt injection, unauthorized network egress, and shell execution.

Hermes Agent

Audits Hermes config/profiles (config.yaml, ~/.hermes/), mcp_servers definitions, .hermes.md context surfaces, and skill trees.

LangChain & LangGraph

Audits Python and TypeScript multi-agent graphs, tool nodes, and dependency supply chain hygiene.

CrewAI, OpenClaw & Browser Use

Protects autonomous role-playing agents, OpenClaw SKILL.md skills, and browser automation workflows (Playwright MCP, Browser Use).

How AgentShield Compares

Built for teams that need deep, offline, deterministic security without sending code to a cloud service.

Feature AgentShield v1.0 mcp-scan Invariant Labs
Engine Native Rust (<50ms) Python Cloud / Hosted
Offline / Air-Gapped 100% Offline Partial No
Framework Adapters 7 Frameworks MCP Only MCP Only
Interprocedural Taint Yes (Cross-Function) No No
Automated Remediation (Fix) Yes (CLI + VS Code) No No
Declarative Custom Rules Yes (.yaml / .json) No No
Runtime Guard Proxy Yes (stdio + SSE/HTTP) No No
SARIF / GitHub Action Native Support No No

Get Started in Seconds

Choose your preferred installation method to start securing your agent extensions today.

# ⚡ Fast 1-line installation for macOS & Linux (Apple Silicon, Intel, ARM64, x86_64)
curl -fsSL https://aiconnai.github.io/agentshield/install.sh | sh

# Verify installation:
agentshield --version