AAK-TRANSPORT-002: TLS certificate validation disabled
- Severity
- HIGH
- Category
- Transport Security (
transport-security) - Scanner
agent_audit_kit/scanners/transport_security.py- Auto-fixable
- No.
- SARIF name
McpTlsValidationDisabled
What it detects
TLS certificate validation is disabled via NODE_TLS_REJECT_UNAUTHORIZED=0 or similar, enabling MITM attacks. Applies to: every TLS-bearing transport -- https://, wss://, and TLS-wrapped SSE/Streamable HTTP. The setting is read from the server's env block rather than its URL, so it is transport-independent: it disables peer verification for whatever the process connects to. Does not apply to: stdio (no TLS peer to verify).
How to fix
Delete NODE_TLS_REJECT_UNAUTHORIZED (when it is 0) and SSL_CERT_FILE from the server's env, the two settings this rule matches. If the server must trust a private CA, add it through the runtime's extra-CA setting (for Node, NODE_EXTRA_CA_CERTS) instead of switching verification off or replacing the CA bundle.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-TRANSPORT-002
Limitations
Matches NODE_TLS_REJECT_UNAUTHORIZED=0 and any SSL_CERT_FILE in the env block of a server under mcpServers, or servers in VS Code's .vscode/mcp.json. Other switches that turn certificate checking off, such as NPM_CONFIG_STRICT_SSL=false, are not read.
References
- OWASP MCP Top 10: MCP07:2025 (Insufficient Authentication & Authorization)
- OWASP Agentic Top 10: ASI07 (Insecure Inter-Agent Communication)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-TRANSPORT-02 (TLS Disabled)
- CSA AI Controls Matrix (AICM): CEK-08
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-TRANSPORT-002.md: the page then shows that text, with the registry reference appended under it.