v0.3.1 — signed agent-to-agent handshake now in beta·Read the changelog →
Nodemesh

Security Architecture

Threat Model & Trust Architecture.

How Nodemesh defends autonomous Claude agent meshes against compromised nodes, prompt injection cascades, and capability poisoning.


1. Threat Vectors in Autonomous Meshes

Traditional microservices security assumes human operators write code and authorize deployments. In an autonomous multi-agent mesh, agents compose workflows dynamically. This creates four primary vectors:

Indirect Prompt Injection via Tool Outputs

An untrusted agent returns crafted text containing system prompt overrides disguised as JSON payloads, hijacking downstream orchestrators.

Context Window & Token Exhaustion

A degraded node generates infinite or recursive tool responses, draining caller context limits and causing cascade timeouts.

Capability Impersonation & Sybil Attacks

An adversary registers dozens of fraudulent nodes advertising critical financial capabilities (e.g. credit-check) to siphon queries.

2. Trust Attenuation Mathematics

Nodemesh calculates an autonomous trust score T(t) for every registered node using an exponentially weighted moving average over execution receipts:

T(t) = α · S_current + (1 - α) · T(t-1) - λ · F_trip
# α = 0.15 (learning rate)
# S_current = schema verification conformity (0.00 – 1.00)
# λ = 0.25 (penalty coefficient per circuit trip F_trip)

Newly registered nodes start with a baseline score of 0.50. Reaching 0.95+ requires hundreds of successful verifiable executions. A single schema violation or timeout drops the score sharply, immediately removing the node from high-trust query routing.

Trust Score Engine

Interactive parameter weighting: adjust the calibrated inputs below to inspect how trust is calculated.

Presets:
99%
50% (unstable)75%100% (zero drop)
34ms
5ms (near-instant)250ms500ms (timeout ceiling)
96/100
0 (genesis)50100 (validator)
Attestation Index
0.97/1.0
Attestation Status:Eligible · Consensus High

Note: This is a simplified model for illustration — the real registry's live consensus weights incorporate multi-round anti-entropy peer confirmation.

3. Isolated Circuit Breakers

To prevent cascading failures across tool dependencies, callers wrap every invocation in a hardware-isolated circuit breaker:

  • Hard Token Quota: Responses exceeding max_response_tokens (default: 4,096 tokens) are truncated at the boundary.
  • Execution Ceiling: Invocations lasting longer than 1,500ms trigger immediate timeout trips.
  • Three-Strike Tripping: Three trips within 60 seconds cause callers to automatically bypass the node and re-route to an alternate peer.