# Project Warden — Full Machine Reference (`llms-full.txt`) ## 1. System Archetype Project Warden serves as Certificate Transparency + Spamhaus + VirusTotal for remote Model Context Protocol (MCP) servers (`2024-11-05` through `2026-07-28`) and open-source agent skill definitions (`SKILL.md`). ## 2. RFC 8785 JSON Canonicalization Scheme (JCS) All tool definitions (`name`, `title`, `description`, `inputSchema`, `outputSchema`, `annotations`, `icons`, `execution`, `_meta`) are sorted lexicographically by UTF-16 code units and serialized with zero insignificant whitespace per RFC 8785 before SHA-256 hashing: - `tool_sha256 = SHA-256(JCS(tool_surface))` - `manifest_sha256 = SHA-256(JCS({ tools: sorted([name, tool_sha256]), prompts_sha256, resources_sha256 }))` - `log_entry_hash = SHA-256(JCS([prev_log_entry_hash, utc_timestamp, server_id, manifest_sha256]))` ## 3. Deterministic Classification Taxonomy - `INTEGRITY_VERIFIED`: Deterministic across dual probes, zero rule triggers. - `MANIFEST_DRIFT_DETECTED`: Unannounced change in `tool_sha256` or `manifest_sha256`. - `CLOAKING_DETECTED`: Divergent manifest hashes between simultaneous probes or live client cross-checks. - `SPLIT_PAYLOAD_PATTERN`: Whole-server ShareLock concatenation or cross-tool shadowing graph matched. - `INJECTION_PATTERN_MATCH`: Deterministic Layer C hidden Unicode, CSS, or prompt-override match. - `HYGIENE_WARNING`: Posture mismatch such as `readOnlyHint: true` paired with destructive metadata or `x-mcp-header`. - `UNREACHABLE_OR_DEGRADED`: Endpoint timed out or tripped circuit breaker after 3 consecutive failures. ## 4. Deterministic Rule Catalog (`< 0.1%` False-Positive Mandate) - `WDN-A-001`: Silent addition of credential paths, outbound webhook URLs, or prompt-override directives. - `WDN-A-002`: Silent annotation downgrade (`destructiveHint` flipped `true -> false` or spoofed `readOnlyHint`). - `WDN-A-003`: Silent addition of `x-mcp-header` parameter annotations. - `WDN-A-004`: Late-stage ShareLock split-payload trigger mutation. - `WDN-B-001`: Whole-server concatenated manifest scan across tool boundaries. - `WDN-B-002`: Cross-tool shadowing & coercive orchestration graph (`bash`, `curl`, sibling tools). - `WDN-B-003`: Indexed multi-tool fragment markers (`[PART 1/2]`) and reassembly instructions. - `WDN-C-001`: Zero-width Unicode characters (`U+200B`–`U+200D`, `U+FEFF`, `U+2060`). - `WDN-C-002`: Unicode Tag Block smuggling (`U+E0000`–`U+E007F`). - `WDN-C-003`: Bidirectional text overrides (`U+202A`–`U+202E`, `U+2066`–`U+2069`). - `WDN-C-004`: Hidden CSS (`display:none`, `font-size:0`, `opacity:0`) and imperative HTML comments. - `WDN-C-005`: Markdown image/link external query parameter exfiltration sinks. - `WDN-C-006`: Prompt-override directives and sensitive credential paths (`~/.ssh`, `~/.aws/credentials`, `.env`). - `WDN-C-007`: Annotation spoofing & sensitive `x-mcp-header` (`Authorization`, `Cookie`) harvesting. ## 5. Native MCP JSON-RPC Usage (`POST /mcp`) Invoke `tools/call` with: - `check_mcp_server({ "server": "github-mcp" })` - `verify_manifest_hash({ "serverUrl": "https://...", "manifestHash": "..." })` - `scan_tool_manifest({ "manifest": { "tools": [...] } })`