Skip to main content
Glama

Sandbox Code Auditor MCP

Smithery Compatible Model Context Protocol Base L2 Settlement Tools License: MIT

Python sandbox escape detection, SQL injection taint analysis, Seccomp BPF filter generation, and ReDoS regex scanning.

Built specifically for Coding agents (Claude Code, Cursor, AutoGen), CI/CD security pipelines, and automated code review bots.


⚡ Quickstart

Smithery Install

smithery skill add whambammy/sandbox-code-auditor-mcp

Claude Desktop / Cursor (claude_desktop_config.json)

{
  "mcpServers": {
    "sandbox-code-auditor-mcp": {
      "command": "npx",
      "args": ["-y", "@whambammy/sandbox-code-auditor-mcp"],
      "env": {
        "PAYMENT_WALLET": "0x9793E7269b3301893318dEa8338576Ba612F39B3",
        "BASE_RPC_URL": "https://mainnet.base.org"
      }
    }
  }
}

Related MCP server: scanpay-mcp

🛠️ Included Tools

Tool Name

Price (USDC)

Capability

python_ast_sandbox_escape_detector

$0.045

Audits Python ASTs for dangerous builtins, __subclasses__ gadget chains, importlib, and bytecode compilation tricks used in sandbox escapes.

sql_ast_sqli_taint_analyzer

$0.040

Parses SQL query ASTs to verify parameterized binding, flagging raw string concatenations that lead to second-order SQL injection vulnerabilities.

regex_redos_exponential_scanner

$0.035

Audits regular expressions for catastrophic polynomial and exponential backtracking (ReDoS) vulnerabilities using NFA/DFA cycle decomposition.

linux_seccomp_bpf_filter_generator

$0.040

Generates minimal Seccomp BPF syscall filter profiles for sandboxing untrusted agent processes, blocking ptrace, fork, and raw socket creation.

cors_policy_preflight_misconfig_checker

$0.025

Audits CORS response headers for dangerous wildcards with credentials (Access-Control-Allow-Origin: * + Credentials: true).


🔄 End-to-End Workflow

An autonomous coding agent receives a script from an external PR -> analyzes the Python AST for sandbox escapes -> audits SQL queries for injection taint -> tests regexes for ReDoS -> outputs a Seccomp BPF filter to execute the code securely.


💰 The x402 Base L2 Micropayment Protocol

When an agent invokes a tool without payment, the server responds with a deterministic HTTP 402 Payment Required challenge containing:

  • Target tool price in USDC

  • Base Native USDC Contract: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

  • Recipient payout wallet address

  • Single-use cryptographic nonce

Once broadcasted on Base L2, resubmitting with paymentSignature unlocks deterministic execution.


📄 License

MIT License. Created by Whambammy.

Available Tools

5 tools
cors_policy_preflight_misconfig_checkerA

Audits CORS response headers for dangerous wildcards with credentials (Access-Control-Allow-Origin: * + Credentials: true). (0.025 USDC on Base L2)

Inputs: payload (required), paymentSignature.

linux_seccomp_bpf_filter_generatorA

Generates minimal Seccomp BPF syscall filter profiles for sandboxing untrusted agent processes, blocking ptrace, fork, and raw socket creation. (0.040 USDC on Base L2)

Inputs: payload (required), paymentSignature.

python_ast_sandbox_escape_detectorA

Audits Python ASTs for dangerous builtins, __subclasses__ gadget chains, importlib, and bytecode compilation tricks used in sandbox escapes. (0.045 USDC on Base L2)

Inputs: payload (required), paymentSignature.

regex_redos_exponential_scannerA

Audits regular expressions for catastrophic polynomial and exponential backtracking (ReDoS) vulnerabilities using NFA/DFA cycle decomposition. (0.035 USDC on Base L2)

Inputs: payload (required), paymentSignature.

sql_ast_sqli_taint_analyzerA

Parses SQL query ASTs to verify parameterized binding, flagging raw string concatenations that lead to second-order SQL injection vulnerabilities. (0.040 USDC on Base L2)

Inputs: payload (required), paymentSignature.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a completely distinct artifact and vulnerability class (Python AST escape, SQL taint, regex ReDoS, Seccomp BPF, CORS headers). There is no realistic scenario where an agent would confuse one for another, and the descriptions reinforce the boundaries.

    Naming Consistency5/5

    All five names follow a strict snake_case pattern of <domain>_<subject>_<agent-noun>, e.g. python_ast_sandbox_escape_detector, regex_redos_exponential_scanner. The convention is applied uniformly with no stylistic deviations.

    Tool Count5/5

    Five tools is a well-scoped set for a focused security-audit server, with each tool covering a distinct check. No tool feels redundant or missing for the stated surface.

    Completeness4/5

    The surface covers several sandbox-relevant classes (escape, SQLi, ReDoS, seccomp, CORS) but omits common adjacent checks like shell injection, deserialization/pickle, and path traversal. Agents can work around these gaps, and notably one tool generates filters while the rest audit, a minor asymmetry.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Full-stack security for AI agents — static analysis + MCP runtime interception. 31 rules detect prompt injection, data exfiltration, backdoors, tool poisoning, and cross-file attack chains. Includes MCP proxy for real-time blocking, Python AST taint tracking, multi-language injection detection (8 languages), and AI-powered deep analysis. Free, offline, zero-config.
      83 npm
      16
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to run cybersecurity reconnaissance and analysis tools through controlled containerized sandboxes, with input validation, policy allowlists, timeouts, structured JSON output, and immutable audit logging.
      MIT
    • F
      license
      B
      quality
      C
      maintenance
      Enables AI agents to audit web headers and DOM code, API routes, and database queries for vulnerabilities such as XSS, BOLA/IDOR, and SQL/NoSQL injection, returning scored CWE findings. It also automatically synthesizes secure drop-in replacement code with unified git diffs for review.
      24
      -