Skip to content

AAK-MCP-SANDBOX-SELFDISABLE-001: Tool schema exposes an LLM-settable sandbox/isolation-disable parameter

Severity
CRITICAL
Category
Trust Boundaries (trust-boundary)
Scanner
agent_audit_kit/scanners/sandbox_self_disable.py
Auto-fixable
No.
SARIF name
ToolSchemaSandboxSelfDisable

What it detects

A tool/function JSON schema or MCP tool descriptor declares a parameter whose name disables or weakens sandboxing/isolation (e.g. dangerouslyDisableSandbox, disable_sandbox, no_sandbox, allow_unsafe, skip_isolation) inside the schema's properties — meaning the LLM, an untrusted principal, can set it in any tool_use response and turn off the very sandbox that contains tool execution. This is the CVE-2026-42074 class (OpenClaude < 0.5.1 exposed dangerouslyDisableSandbox in the BashTool input schema; CWE-284 / CWE-306, CVSS 9.8). A parameter that is genuinely operator-only must not live in the model-facing input schema; mark it readOnly: true or annotate it "x-aak-sandbox-control": "ops-only" (or "x-llm-settable": false) to assert it is set server-side, which suppresses this finding.

How to fix

Remove the sandbox/isolation-disable parameter from the model-facing tool input schema entirely. If a privileged escape hatch is required, gate it server-side behind an operator credential — never let it be populated from a tool_use argument. If the flag is legitimately set only by the host (never the model), mark the property readOnly: true or annotate it "x-aak-sandbox-control": "ops-only" to document that it is not LLM-settable.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-SANDBOX-SELFDISABLE-001

Limitations

Reads JSON tool schemas (inputSchema, input_schema, parameters) for a property named like dangerouslyDisableSandbox, disable_sandbox, no_sandbox, allow_unsafe or skip_isolation. Other names for the same switch (bypassSandbox) are not matched, and a schema written in TypeScript with zod is not read.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-SANDBOX-SELFDISABLE-001.md: the page then shows that text, with the registry reference appended under it.