ยง NEW ยท Security Maps

Routing, Inference & Settlement Security Maps

Cryptographic verification maps for routing decisions, inference execution, DIU metering, and settlement integrity. Each map documents the controls, verification points, and trust boundaries for its domain.

SM.1

Routing + Scheduling Security Map

Every routing decision in MeshInfer.AI is cryptographically signed, verifiable offline, and logged to an append-only audit chain. No routing decision can be honored without a valid Coordinator signature.

Routing decision trust chain

Every routing decision is cryptographically signed by the Coordinator and verifiable offline by the SDK. No routing decision is honored without a valid signature. The trust chain proceeds through five stages: (1) the Gateway verifies the caller's identity token and API key, evaluates the privacy policy claim synchronously, and authorizes the routing class against the subscription tier; (2) the Router Engine assembles the eligible node pool and selects a candidate using reputation, uptime, model cache state, and latency; (3) the decision is signed with a quantum-resistant signature scheme and logged to the append-only audit chain; (4) the SDK verifies the signature against the Coordinator's published public key before dispatching; (5) the task is dispatched through the internal message bus with an envelope encrypted to the destination node's public key.

Attack surface controls. Routing forgery is blocked by signature verification. Loop injection is caught by a circuit breaker on re-dispatch storms. Priority escalation is tier-gated at the Gateway. Traffic monopolization is prevented by exploration in candidate selection. Routing table corruption is caught by TTL expiry and periodic reconciliation. DDoS is mitigated at the edge with per-key rate limiting.

Routing security controls โ€” per threat vector

Threat vectorControl layerMechanismAudit evidence
Routing decision forgerySDK (client)Quantum-resistant signature verification before honoring routing decisionAuditLog: pqc_routing_signed per decision
Route redirection attackGateway + mTLSTask envelope encrypted to destination node pubkey; only that node can decryptNodeHealthCheck: delivery confirmation
Priority class escalationGateway (server)subscription_tier claim in token gates max task class; client value ignoredAuditLog: auth_failure on class mismatch
Routing loop injectionCoordinatorLoop detection with hop limit; per-request circuit breaker on NACK stormsRoutingLog: loop_detected flag
Denial-of-routingCF edge + rate limiterPer-key rate limit; authenticated registration rate cap; IP auto-blockAuditLog: rate_limited events
Inference starvationTraffic weight formulaExploration factor; pool tier caps; no single-node traffic monopolyMetricSnapshot: per-node traffic distribution
Scheduler poisoningNATS authPer-NodeID queue subject; node-scoped API key required to subscribeAuditLog: unauthorized_queue_access
SM.2

Inference Integrity Verification Guide

Inference results in the Distributed Intelligence Stack are protected by a three-layer integrity chain: end-to-end encryption in transit, Proof-of-Inference attestation for result correctness, and hash-chain audit for non-repudiation.

Inference integrity chain

Inference results are protected by a three-layer integrity chain. Layer 1 โ€” Transport: task envelopes and results are encrypted end-to-end between Coordinator and node using keys derived from the TLS channel; tampering causes authentication failure. Layer 2 โ€” Proof-of-Inference attestation: each task carries a deterministic seed bound to the task identity and model. The node runs inference under deterministic decoding conditions and submits a hash of its output. A sample of tasks is re-dispatched to an independent verifier to detect mismatches. Layer 3 โ€” Append-only hash chain: every result hash is chained into an append-only audit log stored for compliance evidence. The chain is append-only โ€” no past entry can be modified โ€” and uses a PQC-compatible leaf format for future upgrade paths.

Attack surface controls. Inference tampering is caught by the encryption auth tag. Replay attacks are blocked because the seed is bound to the task identity. Model spoofing is detected because the model identity is embedded in the seed. Result substitution triggers a hash mismatch and investigation. Fake compute is caught by PoI sampling. Unauthorized execution is blocked at the Gateway by the identity token check.

Inference integrity controls โ€” per threat

ThreatControlDetection mechanismResponse
Inference tampering in transitAES-256-GCM encryption of task envelopeGCM auth tag failureResult discarded; task re-dispatched; node flagged
Inference replay (old result for new task)task_id bound to PoI seed via HKDFVerification hash mismatch for task_idReputation penalty; re-dispatch
Model spoofing (wrong model executed)Model ID in PoI seed; verification samplingHash mismatch on sampled verification tasksInvestigation flag; suspension if pattern detected
Result substitution (replaced with cached answer)PoI deterministic seed prevents caching across task_idsHash mismatchReputation penalty; repeated in 24h โ†’ degraded status
Inference corruption (bitflips / hardware error)PoI verification catches non-deterministic outputsHash mismatch against verifierTask re-dispatched; no reputation penalty for first occurrence
Unauthorized inference executionOIDC token + API key required at Gateway401/403 on missing/invalid credentialsBlocked before task reaches node pool
Payload injection (prompt โ†’ code execution)Sandboxed process: no network, no disk write, no IPCSandbox violation alertProcess terminated; node restarted; admin alerted

Inference verification audit commands

bash
# Retrieve PoI attestation chain for a specific node (last 100 tasks):
curl "https://coordinator.meshinfer.ai/v1/admin/poi-chain/node_f9a3e2b1"   -H "Authorization: Bearer msk_live_..."   | jq '.chain_entries | length, .[0]'

# Manually verify a specific task's PoI hash:
meshinfer-admin verify-poi   --task-id req_a1b2c3   --model llama-3.2-3b-q4   --output "expected output text"   --seed "$(meshinfer-admin get-poi-seed --task-id req_a1b2c3)"

# Expected output:
# LEAF = <hash of task_id and normalized output> = cafe1234...
# Status: VERIFIED โœ“

# Check verification sample results for a node (last 7 days):
meshinfer-admin verification-report   --node-id node_f9a3e2b1   --period 7d   --format table
SM.3

Vital (DIU) + Settlement Security Map

The Distributed Intelligence Unit (DIU) is compute-backed, non-inflationary, and non-spoofable by design. The following map documents every control that enforces these properties.

DIU issuance trust chain

The Distributed Intelligence Unit (DIU) is compute-backed, non-inflationary, and non-spoofable by design. The issuance trust chain proceeds in three stages.Step 1 โ€” Task completion: the node submits its result hash and token count, signed with its device key. Step 2 โ€” Coordinator verification: the result is verified (or sampled for PoI), latency is checked against the SLO to derive a quality multiplier, and the token count is validated against a model heuristic. If all checks pass, the Billing Meter emits a signed issuance event crediting the node's wallet. Step 3 โ€” Settlement: MeshNativeExchange receives the batch of issuance events, verifies the Coordinator's signature and batch integrity, checks for duplicate requests, and commits wallet credits atomically and irrevocably.

Non-inflation guarantees. No issuance event is created without a matching completed request in the routing log. No node-side issuance API exists โ€” issuance is Coordinator-internal only. Self-dealing tasks (where the requester is also the node) are capped at a reduced quality multiplier. Sybil creation is capped by the Identity Service's limit on node identities per user.

DIU spend trust chain

The DIU spend trust chain governs requester wallet debits. Step 1:when a request is accepted at the Gateway, the caller's identity and subscription tier are extracted from the token, and a synchronous spend-cap check ensures the estimated spend fits within the plan limit โ€” if not, the request is rejected immediately with a 402 status. Step 2: after task completion, the Billing Meter computes the actual spend based on output tokens and route tier, and debits the requester's wallet atomically with the metering event write. Every charge is recorded in the audit log with the request identity, organization, and timestamp.

Attack surface controls. Hard-cap bypass is prevented by the synchronous cap check at the Gateway. Self-issuance is impossible because no node-side issuance API exists. Supply inflation is caught by the per-epoch conservation check. Settlement tampering is detected by the signed batch hash chain. Sybil issuance is capped by the Identity Service node-identity limit.

DIU security properties โ€” verification checklist

Auditors verify DIU integrity across four dimensions:

  • Compute-backed: every issuance event has a matching completed request in the routing log; PoI verification pass rate meets the required threshold; submitted token counts fall within the model heuristic bounds.
  • Non-inflationary: per epoch, the sum of node issuance, platform fees, and reserves reconciles against total spend with zero duplicate request IDs and no issuance from unregistered nodes.
  • Non-spoofable: all issuance events carry a valid Coordinator-internal signature; no issuance is accepted from non-Coordinator sources; self-dealing tasks are capped at the reduced quality multiplier; no user exceeds the Identity Service node-identity limit.
  • Settlement integrity: the batch hash chain is verified, settlement audit records are written for every epoch, and no epoch is committed with conservation drift.
SM.4

Cross-System Attack Surface Report

Trust boundary map

topology

  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ TRUST BOUNDARY MAP โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚                                                                         โ”‚
  โ”‚  ZONE 1: PUBLIC INTERNET (untrusted)                                    โ”‚
  โ”‚  โ”œโ”€ Any browser, device, network path                                   โ”‚
  โ”‚  โ””โ”€ TLS 1.3 + HSTS enforced at Cloudflare edge for all five domains    โ”‚
  โ”‚                                         โ”‚                               โ”‚
  โ”‚                           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                โ”‚
  โ”‚  ZONE 2: AUTH BOUNDARY    โ”‚   identity.dosfi.ai        โ”‚                โ”‚
  โ”‚  โ”œโ”€ Only OIDC tokens from โ”‚   Ed25519 JWKS             โ”‚                โ”‚
  โ”‚    identity.dosfi.ai     โ”‚   DPoP binding             โ”‚                โ”‚
  โ”‚    accepted at any system โ”‚   Hardware MFA for         โ”‚                โ”‚
  โ”‚  โ””โ”€ No cross-domain SSO  โ”‚   high-risk ops             โ”‚                โ”‚
  โ”‚     tokens (each system  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                โ”‚
  โ”‚     verifies independently)           โ”‚  OIDC propagation              โ”‚
  โ”‚                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                 โ”‚
  โ”‚  ZONE 3: SERVICE FABRIC  โ”‚  MeshInfer.AI Coordinator  โ”‚                โ”‚
  โ”‚  โ”œโ”€ Internal mTLS only   โ”‚  + MeshNativeExchange      โ”‚                โ”‚
  โ”‚  โ”œโ”€ No public API access โ”‚  (internal mTLS, no public โ”‚                โ”‚
  โ”‚    to internal services โ”‚   API for diu_issued events)โ”‚                โ”‚
  โ”‚  โ””โ”€ Service tokens       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                โ”‚
  โ”‚    (not user tokens)                  โ”‚  Internal event bus            โ”‚
  โ”‚                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                 โ”‚
  โ”‚  ZONE 4: NODE FABRIC     โ”‚  20 Mesh Nodes             โ”‚                โ”‚
  โ”‚  โ”œโ”€ mTLS + DOSFI cert    โ”‚  NATS JetStream subjects   โ”‚                โ”‚
  โ”‚  โ”œโ”€ Sandbox isolation    โ”‚  (per-NodeID auth)          โ”‚                โ”‚
  โ”‚  โ””โ”€ No node-to-node     โ”‚  Encrypted task envelopes  โ”‚                โ”‚
  โ”‚    direct communication โ”‚  (AES-256-GCM)              โ”‚                โ”‚
  โ”‚                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                 โ”‚
  โ”‚                                                                         โ”‚
  โ”‚  ZONE 5: EDUCATION (SANDBOXED)                                          โ”‚
  โ”‚  โ”œโ”€ DosfiAcademy: isolated lab containers, Academy proxy token         โ”‚
  โ”‚  โ”œโ”€ DosfiUniversity: exam tokens (device-bound, single-use)           โ”‚
  โ”‚  โ””โ”€ No production credential access from education zone                โ”‚
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          

Cross-system vulnerability matrix

Attack classDOSFIMeshInferExchangeAcademyUniversityNodes
Identity spoofingEd25519 JWT sigJWKS verify + DPoPInternal-onlyProxy tokenDevice-bound exammTLS cert
Session hijackingHttpOnly cookieHttpOnly SameSite=StrictN/A (no browser)HttpOnly cookieHttpOnly cookieNo browser session
Token leakageNo token in URLPKCE fragment mode (V1.2)N/APKCE fragment (V1.2)PKCE fragment (V1.2)No web session
Replay attackDPoP device binding15-min TTL + DPoPEpoch dedup checkSingle-use codeSingle-use exam tokentask_id uniqueness
Privilege escalationRole claim in JWTsubscription_tier claim gateOrgID wallet isolationAcademy proxy caps tiercertification_tier claimPool tier admission
Cross-domain spoofingaud claim per systemaud claim verifiedInternal onlyaud claim verifiedaud claim verifiedNodeID per-queue auth
Data exfiltrationPrivacy tier claim3-layer privacy gateNo prompt content storedSandbox isolationNo inference dataSandbox process isolation
Economic exploitN/ASpend cap + billing meterConservation checkVirtual budget onlyNo economic accessPoI + token heuristic

Spoofing vulnerability matrix โ€” full ecosystem

Spoofing vectorTargetCurrent controlResidual severity
Forged OIDC tokenAny systemEd25519 sig verified against DOSFI JWKSMITIGATED
Forged DeviceCert (mTLS)CoordinatorDOSFI CA-signed cert required; self-signed rejectedMITIGATED
Forged routing decisionSDKQuantum-resistant signature verified client-sideMITIGATED
Forged heartbeat signatureCoordinatorEd25519 sig against registered DeviceID pubkeyMITIGATED
Forged PoI result hashBilling MeterPoI sampling + deterministic seed prevents pre-computationMITIGATED
Forged diu_issued eventMeshNativeExchangeCoordinator-internal-only event source; perimeter-blockedMITIGATED
Forged settlement batchExchangeHash chain detects tampering; Ed25519-signed batch (V2)HIGH โ€” V2 roadmap
Forged task envelopeNodeAES-256-GCM auth tag; key known only to CoordinatorMITIGATED
Rogue node DeviceID collisionCoordinatorTPM EK cert binding for server tier (V2 roadmap)HIGH โ€” V2 roadmap
Fake metering (token count)Billing MeterHeuristic bounds + ZK-proof (V2 roadmap)HIGH โ€” V2 roadmap
Exam impersonationDosfiUniversityWebAuthn at Associate tier (V1.2 roadmap)MEDIUM โ€” V1.2 roadmap
Lab credential escapeDosfiAcademyAcademy proxy token; sandboxed containersMITIGATED
SM.5

Security verification โ€” automated audit commands

Security verification is performed through the admin audit tooling against five domains: Identity Fabric (JWKS key validation, unexpected token issuance detection), Node Security (hardware keystore verification, heartbeat signature failure rates), Routing Security (routing signature audit trail completeness, loop detection), DIU Security(conservation verification per epoch, self-dealing detection), andCross-System (TLS 1.3 enforcement across all five ecosystem domains). All audit outputs are archived with the SOC 2 evidence package. Specific command syntax is available to authorized operators through the internal admin console.

Audit cadence
This security map should be reviewed and re-validated: (1) before every major version release, (2) after any architectural change to the Coordinator, Gateway, or Exchange, (3) on a quarterly schedule for compliance evidence. All audit command outputs must be archived with the SOC 2 evidence package.