← Lab /Software

MCP servers expose over-privileged capabilities detectable by mcp-sec-audit

Mcp-sec-audit can identify risky capabilities in MCP servers.

Software arXiv 23 Mar 2026 Method Prototype evidence

Published as “Auditing MCP Servers for Over-Privileged Tool Capabilities”

Why it matters

Security teams can use mcp-sec-audit to pre-emptively identify over-privileged tool capabilities in MCP servers and apply concrete hardening steps before deployment.

Summary

mcp-sec-audit detects over-privileged capabilities in MCP servers with near-complete coverage, especially when using its dynamic eBPF-based sandbox (100% coverage on a 9-server lab). Static analysis finds all listed capabilities in Python tools but misses JavaScript tools, yielding a 74.7% detection rate on the public MCPTox benchmark. Evidence comes from the evaluation section; no other sections were missing.

What they found 1

  1. Static analysis identified all three capability categories (command execution, file I/O, network) with confidence scores 0.65-0.85 and a medium risk score of 42.5/100.

    “The static pipeline successfully identified all three capability categories with confidence scores ranging from 0.65 to 0.85, assigned a MEDIUM risk level (total score: 42.5/100), and generated 5 mitigation recommendations including Docker isolation and read-only mounts.”

Caveats 6

  • Static analysis failed to detect any capabilities in JavaScript servers (0% detection on 7 JS samples).
  • Overall detection on the MCPTox benchmark was 74.7%, not 100%, because 124 samples lacked explicit capability indicators.
  • Language Support. The static analyzer currently supports Python and JSON metadata but not TypeScript/JavaScript, despite rule definitions in keywords.toml.
  • Detection Accuracy. Pattern-based detection is inherently susceptible to false positives (benign code matching risky keywords) and false negatives (obfuscated or indirect invocations).
  • Dynamic Analysis Deployment. The sandbox-based pipeline requires Linux with eBPF support, privileged Docker containers, and manual image builds.
  • Mitigation Specificity. Current recommendations are hardcoded and generic, including directives like "use Docker with nonew-privileges".

What’s new here 4

  • Protocol-aware static detection that parses both Python code and MCP tool metadata.
  • Combined static pattern matching with dynamic sandboxed fuzzing and eBPF telemetry.
  • Extensible plugin architecture with a TOML-driven rulebook for capability families.
  • Automated mitigation recommendation engine that maps detected capabilities to hardening actions.