# MCP Security & Sandbox Auditor

> Battle-tested 8-domain security & concurrency audit skill for MCP servers, AI agent tool harnesses, and container sandboxes.

MCP Security & Sandbox Auditor is a free AI agent skill on Agensi by ishaan phaye, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [ishaan phaye](https://www.agensi.io/creators/ishaan-phaye)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-security-sandbox-auditor
- Tags: llm-ops, security, ai-agents, mcp, sandbox

## About this skill

Audits Model Context Protocol (MCP) servers, tool-calling agent harnesses, and micro-container sandboxes for real-world isolation bypasses, security vulnerabilities, and concurrency bottlenecks—going beyond README claims and mocked unit tests.

What it checks (8-Domain Rubric):

1. **Path Traversal & Encodings**: Multi-pass URI decoding, null bytes, Unicode NFKC normalization, Windows drive/UNC paths, and symlink/prefix-collision escapes.

2. **Container & Kernel Hardening**: Verifies read_only rootfs, noexec /tmp tmpfs, cap_drop=["ALL"], no-new-privileges, non-root UID/GID, and wired custom Seccomp-BPF profiles.

3. **Fail-Closed Execution & Watchdogs**: Catches silent fail-open fallbacks to host subprocesses and GNU timeout exit-code collisions (124 vs 137 OOM kills).

4. **Cgroups & Resource Ceilings**: Swap-thrashing immunity (memswap_limit == mem_limit), PIDs limits for fork-bomb containment, and CPU quotas.

5. **SSRF & Egress Controls**: Blocks RFC-1918, loopback, cloud metadata (169.254.169.254), CGNAT (100.64.0.0/10), IPv4-mapped IPv6 (::ffff:127.0.0.1), 3xx redirects, and DNS rebinding.

6. **IPC & Localhost Bridge Security**: Strict 127.0.0.1 binding, wildcard CORS exposure, and ephemeral workspace cleanup on teardown.

7. **Concurrency & Pool Locking**: Detects blocking container/process spawns held inside asyncio.Lock or mutexes that cause checkout starvation.

8. **Context-Window & UTF-8 Safety**: Hard output truncation with UTF-8 continuation-byte scanning to prevent \uFFFD corruption.

Output: Produces a prioritized GO / CONDITIONAL GO / NO-GO scorecard (P0–P3) with exact file paths, exploit scenarios, minimal remediation diffs, and verification tests.

## Requires

- Optional: Docker

Runs purely as an in-session architectural and code auditor. No API keys, database credentials, or external accounts required.

## Known limitations

Requires access to implementation code and configuration files. Does not perform active network fuzzing or live exploit attempts.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Security & Sandbox Auditor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this auditor differ from a standard static code analysis tool?

Standard linters check for generic syntax flaws and known CVEs. This auditor specifically evaluates agent toolchains and container boundaries, catching cross-layer vulnerabilities like unwired seccomp profiles, silent fallbacks to host execution, timeout exit-code collisions, async lock starvation, and UTF-8 truncation bugs.

### Which AI agent frameworks and runtimes are supported?

It runs in any SKILL.md-compatible agent, including Claude Code, Cursor, Antigravity, Codex CLI, Windsurf, Cline, and OpenCode. It audits MCP servers and sandboxes written in TypeScript, Python, Go, Dockerfiles, and Linux cgroup configurations.

### What exactly is included in the purchase of this skill?

You receive the complete SKILL.md audit workflow, the full 8-domain inspection checklist with exact root-cause breakdowns and minimal remediation diffs, and reproducible unit test templates to verify every fix.

### Does the MCP Security Auditor perform live penetration testing on my running servers?

No. It is an offline, white-box architectural code auditor. It inspects your source code, configuration files, and container startup arguments inside your local agent workspace without sending network exploit traffic.

### Can this skill help me secure a custom 'bash_exec' tool from fork bombs?

Yes. It verifies that your container runtime actively sets a strict pids_limit so runaway process spawning hits EAGAIN, while confirming CPU quotas, dropped Linux capabilities, and watchdog timeouts are wired to kill runaway processes.

### Will this skill modify my code automatically?

No. The auditor operates strictly in read-only analysis mode, providing exact line numbers, explanations, and diff blocks. It never edits your files unless you explicitly instruct your agent to apply the fixes.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
