mcpsheriff v2.0.2

Complete Security & Conformance Rule Catalog (40 + Parse Diagnostic)

Zero-LLM deterministic rules mapped to OWASP MCP Top 10, MITRE ATLAS (only on attack techniques), and CWE. Run uvx mcpsheriff list-checks locally.

OWASP MCP Top 10 Coverage

ControlTitleMapped Rules
MCP01Token Mismanagement & Secret Exposure6
MCP02Privilege Escalation via Scope Creep4
MCP03Tool Poisoning & Metadata Manipulation4
MCP04Software Supply Chain Attacks & Tampering6
MCP05Command Injection & Unsafe Execution5
MCP06Prompt Injection via Contextual Payloads3
MCP07Insufficient Authentication & Origin Validation6
MCP08Lack of Audit and Telemetry15
MCP09Shadow MCP Servers & Cross-Server Hijacking2
MCP10Context Injection & Resource Over-Sharing4

All Rules (41)

Rule IDCheck NameCategory SeverityDescription & Compliance
MCP-PROTO-001handshakeprotocolcriticalInitialize handshake & capabilities contract
MCP08CWE-754
MCP-PROTO-002tools.listprotocolhightools/list pagination, uniqueness, and SEP-986 names
MCP08CWE-20
MCP-PROTO-009tools.determinismprotocollowtools/list returns deterministic tool order (2026-07-28 prompt-cache rule)
MCP08CWE-345
MCP-SCHEMA-001tools.schemaschemahighJSON Schema validation of inputSchema and outputSchema
MCP08CWE-20
MCP-SCHEMA-002tools.provider_compatschemamediumLLM provider schema compatibility (items on arrays, combinators)
MCP08CWE-20
MCP-SCHEMA-003tools.annotationsschemamediumToolAnnotations type and semantic consistency
MCP02MCP03AML.T0054CWE-862
MCP-PROTO-003tools.unknownprotocolhighUnknown tool rejection (-32602 or valid CallToolResult isError)
MCP08CWE-755
MCP-PROTO-004resources.listprotocolhighresources/list and resources/templates/list contract
MCP08MCP10CWE-20
MCP-PROTO-005prompts.listprotocolhighprompts/list contract and argument definitions
MCP08CWE-20
MCP-PROTO-007errors.recoveryprotocolhighUnknown method returns JSON-RPC -32601 and server recovers
MCP08CWE-755
MCP-PROTO-008latencyprotocolmediumControl-plane response latency within budget
MCP08CWE-400
MCP-HTTP-001http.originhttphighStreamable HTTP Origin validation & CORS DNS-rebinding guard
MCP07AML.T0040CWE-346CWE-942
MCP-HTTP-006http.host_headerhttphighLocal/private HTTP server rejects spoofed Host header (DNS rebinding guard)
MCP07AML.T0040CWE-350
MCP-HTTP-002http.protocol_versionhttpmediumMCP-Protocol-Version header validation
MCP08CWE-757
MCP-HTTP-003http.notificationshttpmediumnotifications/initialized returns HTTP 202 Accepted
MCP08CWE-754
MCP-HTTP-004http.sessionhttpmediumMcp-Session-Id format and unknown session 404 handling
MCP07AML.T0040CWE-384
MCP-HTTP-005http.tlshttphighNon-loopback HTTP transport uses HTTPS
MCP01MCP07AML.T0024CWE-319
MCP-AUTH-001http.oauth_metadataauthmediumOAuth 2.1 RFC 9728 Protected Resource Metadata on HTTP 401
MCP07AML.T0040CWE-287
MCP-SEC-003resources.traversalsecuritycriticalActive path-traversal check on resources/read (--active-security)
MCP05MCP10AML.T0048CWE-22
MCP-SEC-001tools.poisoningsecuritycriticalPrompt injection, tool poisoning, and invisible Unicode scan
MCP03MCP06AML.T0051CWE-74
MCP-SEC-002tools.leakssecuritycriticalCredential and stack-trace leakage scan
MCP01AML.T0024CWE-200CWE-798
MCP-PROTO-006stdout.hygieneprotocolhighStdio stdout carries strict JSON-RPC 2.0 frames only
MCP08CWE-116
MCP-DRIFT-001schema.snapshotdrifthighStructural schema drift & rug-pull description hash comparison
MCP03MCP04AML.T0010CWE-494
MCP-CFG-001scan.secretssecuritycriticalPlaintext credentials hardcoded inside MCP client configuration
MCP01AML.T0024CWE-798
MCP-CFG-002scan.unpinnedsecurityhighUnpinned ephemeral package execution (npx/uvx/pipx/docker without version)
MCP04AML.T0010CWE-829
MCP-CFG-003scan.cleartext_httphttphighRemote non-loopback MCP server configured over cleartext http://
MCP01MCP07AML.T0024CWE-319
MCP-CFG-004scan.dangerous_execsecurityhighInline shell wrapper or unrestricted root filesystem path in MCP server args
MCP02MCP05AML.T0048CWE-78CWE-732
MCP-CFG-005scan.duplicate_serversecuritymediumDuplicate MCP server name defined across multiple client configs
MCP09AML.T0051CWE-694
MCP-SEC-004scan.tool_shadowingsecuritycriticalCross-server tool name collision or shadowing directive across active servers
MCP03MCP09AML.T0051CWE-706
MCP-SKILL-001skill.prompt_injectionskillscriticalPrompt injection, hidden HTML directive, or invisible Unicode in skill/rule
MCP06MCP10AML.T0051CWE-74
MCP-SKILL-002skill.remote_execskillscriticalRemote pipe-to-shell, reverse shell, or destructive execution inside skill/rule
MCP05AML.T0048CWE-78CWE-829
MCP-SKILL-003skill.exfiltrationskillscriticalSensitive file access combined with outbound network exfiltration in skill
MCP01MCP10AML.T0024CWE-200
MCP-SKILL-004skill.secretsskillshighHardcoded API key, token, or private key embedded in agent skill or rule
MCP01AML.T0024CWE-798
MCP-SKILL-005skill.obfuscationskillshighObfuscated payload execution (base64/hex decode-to-exec) in agent skill
MCP04MCP06AML.T0051CWE-506
MCP-SKILL-006skill.unpinned_installskillsmediumDependency source redirection or cleartext package install inside agent skill
MCP04AML.T0010CWE-829
MCP-HOOK-001hook.command_injectionhookscriticalUnsafe shell interpolation or remote execution in IDE/agent lifecycle hook
MCP05AML.T0048CWE-78
MCP-HOOK-002hook.wildcard_permissionshookshighOverly broad wildcard auto-approve or bypassPermissions setting in agent config
MCP02AML.T0054CWE-250CWE-862
MCP-HOOK-003hook.external_scripthookshighAgent hook executes untrusted script from /tmp or remote URL
MCP04MCP05AML.T0010CWE-426
MCP-SUPPLY-001supply.osv_cvesupply-chainhighPinned MCP server package has known CVE/GHSA advisory in OSV.dev (--check-cve)
MCP04AML.T0010CWE-1395
MCP-POLICY-001policy.custompolicyhighCustom organizational policy rule violation (--rules policy.yaml)
MCP02MCP08AML.T0054CWE-863
MCP-CFG-000scan.config_parsesecuritylowMalformed or unparseable MCP client configuration file
MCP08CWE-20