Standalone forensic TEE, control-plane & desktop audit · 1 December 2026

TrustedRouter (Lore-Hex): strong TDX & tls-exporter core, plus 18 verified control-plane, enclave, desktop & SDK bugs

TrustedRouter (Lore-Hex) markets itself as an open-source, enclave-attested drop-in alternative to OpenRouter—claiming “a public source-to-binary trail” and “continuous audits of every PR on the very TLS connection.” On 1 December 2026, we ran a $0.00, zero-account, read-only audit across 14 public Lore-Hex repositories plus live probes of api.trustedrouter.com and trust.trustedrouter.com. Unlike stacks that ship pure TEE theater, TrustedRouter's core GCP Intel TDX gateway and RFC 9266 tls-exporter Go/Node/Python transports are genuinely strong—earning it a Top 6 slot on our 21-Provider TEE Scorecard. Yet auditing the full ecosystem uncovered 18 concrete bugs and trust-boundary gaps across its payment/OAuth/XSS/earnings control plane, enclave media/deidentify endpoints, macOS/Electron desktop apps, Rust/Java SDKs, on-prem gateway, and alpha confidential GPU stack.

Executive Summary — Eighteen Verified Findings (1 December 2026, Exact repo/file:line & Live Receipts):

  1. CRITICAL — Merchant PayPal API Path Traversal, Cross-Workspace Fraud-Guard Bypass & GET-CSRF (quill-router): GET /console/credits/paypal/capture?token=... passes an unvalidated order_id into _paypal_post("/v2/checkout/orders/{order_id}/capture", {}) with TrustedRouter's merchant PayPal Bearer token (skipping fetch_paypal_order on established workspaces), allowing RFC 3986 dot-segment normalization onto other PayPal v2 POST routes such as capture refunds—plus captures execute before workspace ownership checks, omit require_manager, and mutate state on GET (§1).
  2. CRITICAL — Static Safety Approval Bypasses in QuillCode Auto Mode: Four independent static policy flaws in QuillCodeSafety (unscoped userTypedURLMatches, leftover blanket commonDiagnosticTriggers → shell.run, newline/& omission in StaticSafetyReadOnlyShellPolicy, and inline interpreter/wrapper gaps in StaticSafetyShellCommandSafety) allow unintended silent shell auto-approval without user confirmation (§4).
  3. HIGH — Stored DOM XSS on Primary Origin (trustedrouter.com/chat) + Report-Only CSP: importSharedChatFromHash() persists unvalidated #share= JSON into localStorage and makeModelDropdown() interpolates slot.params unescaped into dd.innerHTML while CSP is deployed as Content-Security-Policy-Report-Only (chat.js:3751–3789, 989–1088, middleware.py:419–422) (§1).
  4. HIGH — OAuth 2.0 Scope Escalation via Token Endpoint Confusion (POST /auth/keys): Narrow RFC-conformant /oauth/authorize codes can be redeemed at legacy POST /auth/keys (ACAO: *), which skips client_id/redirect_uri checks, ignores code.scopes to mint full ["inference", "profile", "balance:read"] keys, and unconditionally returns enriched_identity_payload PII (routes/oauth_keys.py:261–310) (§1).
  5. HIGH — Workspace admin → owner Takeover & Unauthenticated AWS SNS TopicArn Email-Suppression Bypass: Any workspace admin can evict or demote workspace.owner_user_id or delete the workspace (routes/workspaces.py:94–206). Separately, public POST /internal/ses/notifications checks AWS's RSA signature but never validates TopicArn, letting any AWS account auto-confirm a topic and permanently block email delivery for arbitrary victim addresses (ses_notifications.py:46–225, sns_verify.py:71–153) (§1).
  6. HIGH — Tenant-Controlled secret_ref: "env://<VAR>" Dereferenced via os.Getenv() Inside the Enclave: PUT /v1/byok/providers/{provider} accepts caller-supplied env://<VAR> refs forwarded to providerAPIKeyForRoute inside quill-cloud-proxy, which calls os.Getenv() and transmits the value as the upstream API key (byok.py:93–168, 225, settlement.go:265–271) (§2).
  7. HIGH — Enclave Image-Fetcher SSRF Bypass (ip.Unmap() Missing) + AWS Nitro Control-Plane Image Handling: allowedImageIP in multimodal_direct.go:65–117 omits ip.Unmap() (missing IPv4-mapped IPv6), misses Azure metadata 168.63.129.16/32 and CGNAT 100.64.0.0/10, skips private IPs instead of failing closed on mixed DNS, and permits plain http:// + redirects even on confidential routes. On AWS Nitro, multimodal_aws.go:10–60 routes raw user image URLs & up to 10 MiB of image prompt bytes through unattested Cloud Run (fetch_image.py:1–146), and legacy /chat-proxy/v1/chat/completions remains mounted (§2).
  8. HIGH — Unauthenticated Enclave DoS on 2-Slot Rampart De-Identification Worker Pool & 5-Conn /attestation Queue: Both /v1/chat/completions and /v1/messages run prepareDeidentified (spawning 256 MB Node/ONNX subprocesses capped at 2 global slots) before trGateway.Authorize validates the Bearer token (main.go:1049–1051, 1300–1306, 2670–2676, worker.go:33–62); and unauthenticated /attestation queues at most 5 requests (attestation_gcp.go:65, 90–110) (§2).
  9. HIGH — Zero OCI SLSA/Cosign Provenance (404), Admin-Bypass PAT & Unsigned trust.trustedrouter.com Pins: No “continuous audit of every PR on the very TLS connection” exists; GitHub Artifact Attestations returns 404 for live sha256:dde41595...; deploy-enclave-gcp.yml:232–236 pushes digests to protected main with an admin-bypass PAT (TRUST_PUSH_TOKEN, enforce_admins off) and publish-trust-gcp.yml Fulcio-signs any push to main; and Go/JS/Python/Rust/Java SDKs default to trusting unsigned trust.trustedrouter.com/trust/gcp-release.json (§3).
  10. HIGH — Persisted KMS-Wrapped ACME TLS Private Key & Zero Terraform IaC Visibility for IAM/KMS/WIF/DNS: quill-cloud-infra/envs/gcp-prod/main.tf:34–38 explicitly excludes KMS keys, secrets, IAM, and LBs; a GCP org/project admin can alter KMS/Deny/WIF policies (or Cloud DNS) to MITM every non-tls-exporter client—which includes default SDKs, OpenAI/Anthropic SDKs, CLI chat, browsers, QuillCode, and confidential-cowork-desktop (§3).
  11. HIGH — QuillCode & confidential-cowork-desktop Zero Attestation + Updater & Shell/Browser Bypasses: Both desktop apps send all inference over plain WebPKI HTTPS with zero attestation or tls-exporter binding (TrustedRouterLLMClient.swift:129–175, confidential-bridge.ts:113–120); QuillCode defaults to unsigned tester manifests accepting ad-hoc signatures (skipping spctl) and falls back to plaintext on-disk secrets readable by its own Seatbelt shell sandbox (PlatformSecretStore.swift:13–19, ShellProcessSandbox.swift:171); and confidential-cowork-desktop skips permission.assert whenever shell parsing yields 0 commands (bare redirections & export/declare builtins, shell.ts:129–145) and allows encoded %2e%2e traversal past fileURLWithin (policy.ts:16–40) while leaving non-TEE websearch registered in confidential mode (§4).
  12. HIGH — Official Rust & Java SDKs Lack Default Attestation & tls-exporter Binding + Unoverridable Unsigned Receipt Pins: Neither trusted-router-rust nor trusted-router-java verifies attestation by default or binds RFC 9266 tls-exporter; Java silently passes when tlsCertificateDer == null and follows redirects on JWKS fetches (AttestationVerifier.java:126–132, 275–293); and Rust's verify_receipt() hardcodes an unverified HTTPS fetch of gcp-release.json with no local digest pinning override (receipts.rs:872–914) (§5).
  13. HIGH — trustedrouter-onprem Cross-Identity Batch/Files IDOR & Unauthenticated Org-Wide Usage: All Batch and Files routes discard identity_id and scope only by default organization_id = "local" (batch/plane.py:117–240, management.py:112), letting any virtual key enumerate batches and download plaintext prompts/outputs of all other identities; omitting Authorization on /usage returns organization-wide telemetry unauthenticated (server.rs:288–294) (§5).
  14. HIGH — Cross-Workspace Personal Creator Earnings Drain via Workspace-Scoped Management API Keys (quill-router): GET /v1/earnings and POST /v1/earnings/transfer accept workspace-scoped Management API keys (ManagementPrincipal), pivot to api_key.creator_user_id, and ignore principal.workspace.id—allowing any teammate or service holding a shared-workspace management key to read and drain 100% of the creator's personal account-wide earnings into that workspace or any other workspace the creator belongs to (routes/earnings.py:20–101, routes/keys.py:193–197) (§1).
  15. HIGH — 100% Credit Refund After Irreversible Upstream Media Generation on Client Disconnect (quill-cloud-proxy): On Gemini/OpenAI/FAL/xAI images, TTS speech, and Whisper/GPT-4o transcriptions, disconnecting mid-flight or even after the upstream provider returns err == nil triggers an unconditional 100% credit refund (499 client_closed) while burning TrustedRouter's non-refundable upstream balance (images.go:239–242, 277–280, 378–381, 402–405, speech.go:98–102, transcription.go:120–124) (§2).
  16. HIGH — Pre-Auth Outbound Venice Video Quote Calls & Pre-Auth 2-Slot Semaphore Exhaustion on /v1/videos & /v1/audio/transcriptions: Random unauthenticated Bearer strings pass CheckCredential's negative cache, acquire the 2 enclave-wide videoLargeRequestSlots or transcriptionSlots, and fire live authenticated POST api.venice.ai/api/v1/video/quote calls using TrustedRouter's VENICE_API_KEY before AuthorizeVideo / ValidateKey validates the token (video.go:28, 161–170, 255–264, transcription.go:24, 32–46) (§2).
  17. MEDIUM — Alpha trustedrouter-confidential-stack (trcs) & Control-Plane Policy/Race Gaps: trcs lint-manifests --mode coco exits 0 with missing cc_init_data, leaves weights unpinned and vLLM/SGLang prefix caching ON, checks TCP listeners only while still serving hardware-signed attestations during violations, and passes SGLang --api-key via argv (lint.go:178–180, server.go:166–171, 224–293); orchestration presets silently overwrite caller provider.jurisdiction: "eu" to "us" and allow_fallbacks: false/usage: "byok" (provider_routing_policy.go:7–15, fusion.go:3390–3411); phone verification resend cooldown has a non-atomic TOCTOU race enabling SMS/voice pumping (routes/notify.py:174–203, phone_verification.py:242–277); and POST /mcp skills/get allows 32× uncached outbound GitHub fetches per request (routes/mcp.py:204–215, mcp_skills.py:125–137) (§6).
  18. MEDIUM — Upstream KV-Cache, Dynamic Release, Disabled-Account & Internal fastpath Gaps: chutes & near-ai omit cache_salt even on confidential routes (chat_preparation.go:82–98); tinfoil dynamically fetches the latest GitHub release every 10 min with zero GPU quote check; maple-transport dynamically trusts vendor-signed GitHub PCR0 history; /v1/messages omits confidential prohibition on deidentify: true; hosted web_search ignores req.Models & workspace privacy policies; closed accounts retain /provider/* portal access (provider_portal.py:45–66); internal fastpath HTTP has no auth and relays arbitrary Owner strings (frontdoor/peers.go:141–147); billable Veriff sessions run pre-debit (identity_verify.py:93–114); and console credit/earnings/BYOK mutations omit _same_origin (§6).

Fair credit — What TrustedRouter genuinely gets right (verified clean):

  • Real same-socket TLS 1.3 RFC 9266 tls-exporter channel binding: Go (trusted-router-go/session.go:81–162), Node.js (trusted-router-js/src/session.ts:74–141), and Python (trusted-router-py/_verified_transport.py:55–214) verified transports bind EXPORTER-Channel-Binding + leaf DER + distinct fresh nonce onto the exact inference socket—genuinely defeating active TLS-terminating relay proxies even under TLS key compromise. Go's azure_snp.go:97–182 also performs direct offline AMD SEV-SNP verification without trusting MAA JWTs.
  • Hardened GCP Confidential Space enclave & real upstream TEE verifiers: Live GCP builds ignore the stale QUILL_ACME_CACHE_GCS_BUCKET env var and hardcode WIF-authenticated Cloud KMS envelope encryption (quill-cloud-proxy-acme-sealed-v1 + IAM Deny Policy), lock tee.launch_policy.log_redirect="never" and 4-var allow_env_override, neutralize control-plane prompt webhooks via broadcast.StripContent, and run real in-enclave upstream TDX + NVIDIA NRAS GPU verification for chutes & near-ai, pinned MIT privatemode-proxy, dual-source Sigstore + VCEK for tinfoil, and fail-closed confidentialRoutes allowlists—honestly excluding Phala, Confidential.ai, and 0G.
  • Cleanly hardened sibling subsystems: Parameterized ClickHouse & Spanner queries everywhere (0 SQLi); strict webhook signature checks (Stripe, Adyen, Veriff, Routable, PayPal); hardened connect-time SSRF blocker in services/safe_egress.py for broadcasts; strict L402 macaroon + SELECT ... FOR UPDATE locking in lightning-router; solid sidecar/ TDX+NRAS verifiers, Ed25519 spend-lease/receipt verification, and per-batch KMS-wrapped DEKs in quill-cloud-proxy; and 2-runner reproducible OCI builds (qualify-release-oci.yml).
14
public Lore-Hex repositories audited read-only alongside live api.trustedrouter.com TDX attestation
18
concrete verified bugs & trust-boundary gaps (2 Critical, 14 High, 2 grouped Medium sets)
404
HTTP status from GitHub Artifact Attestations for live running GCP OCI digest sha256:dde41595...
0 / 2
official desktop apps (QuillCode, confidential-cowork-desktop) verifying enclave attestation or tls-exporter

1. Control plane (quill-router): PayPal path traversal, /chat DOM XSS, OAuth escalation, admin takeover & SNS bypass

2. Enclave data plane (quill-cloud-proxy): env:// BYOK dereference, image SSRF, Nitro image leak & pre-auth DoS

3. Provenance, TLS key custody & “continuous PR audits on TLS” claim vs. code

4. Desktop apps (QuillCode & confidential-cowork-desktop): safety/shell bypasses, zero attestation & updater gaps

5. Official Rust/Java SDKs & trustedrouter-onprem cross-identity Batch/Files IDOR

6. Additional Medium-severity boundaries

Audit boundaries: All findings on this page were verified strictly from $0.00, zero-account, read-only inspection of 14 public Lore-Hex GitHub repositories and public unauthenticated attestation endpoints on 1 December 2026. No active exploitation, credentialed testing, or intrusion was performed. Exact repo/file:line citations are provided throughout so maintainers can verify and remediate every issue directly.

More standalone audits & live reference implementation

Landscape scorecard · 20 stacks
State of Confidential AI (21-Provider Audit) →

Side-by-side audit of Tinfoil, Maple AI, Privatemode, Confer, Confidential.ai, TrustedRouter, Oasis ROFL, LibertAI/Aleph, OpenGradient, Phala, 0G, Secret AI, Nillion, Proton Lumo, Darkbloom, Marlin Oyster, Targon SN4, NEAR, Chutes & Venice.

Standalone TEE & KMS audit · 1 Dec
Maple AI & OpenSecret (23 Verified Findings) →

AWS KMS offline seed decryption without passwords, zero-PCR0 host key injection, classifier blinding, untrusted-repo symlink reads & claims vs. code.

Live reference · SEV-SNP + GPU RIMs
Zero-KMS E2EE + Offline GPU RIM Verifier →

Verify a live AMD SEV-SNP quote, E2EE per-token receipts, and real Hopper/Blackwell SPDM + signed NVIDIA RIMs 100% in-browser.

Bittensor SN64 · 29–30 Nov
Chutes SN64 trust-boundary audit →

Dynamic Cosign/Helm keys outside RTMR3, zero attestation checks in official E2EE SDK/proxy, and 97.8–99.5% Try-1 KV bleed.

Part of LLM Verification · All case studies · 21-Provider TEE Scorecard · GitHub