The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit 989559e001cdCommit detailsView latest

THREAT_MODEL.md 27 lines · 2.0 KB

Threat Model

Protected paths include:

  • Tampering: canonical signed objects and independent verification.
  • Replay: unique nonces plus timestamp and expiry checks.
  • Delegation escalation: child scopes must be a subset of active parent authority.
  • Revocation/rotation: key and credential IDs bind signatures to active agent versions.
  • Duplicate events: same ID with different content is rejected.
  • Prompt injection: untrusted text never changes deterministic policy decisions.
  • Sensitive logging: configured field redaction and structured logging only.
  • Gateway access: short-lived HMAC grants are scoped to one interaction, sender, and recipient.
  • Gateway storage: AES-256-GCM detects ciphertext tampering; acknowledgement deletes messages and a 24-hour TTL bounds exposure.
  • Runtime callback SSRF: registration requires HTTPS port 443, public DNS, pinned resolved addresses, valid TLS, no redirects, bounded responses, and an echoed ownership challenge.
  • Runtime spoofing and replay: HMAC signatures cover timestamp, delivery ID, and exact body; the SDK enforces a five-minute timestamp window. Runtimes must durably deduplicate delivery IDs.
  • Evidence URLs: production providers must enforce HTTPS, allowlists, size limits, redirects, and timeouts.
  • Review manipulation: only receipt-linked signed feedback affects profiles; future hosted systems add operator correlation, burst, ring, and collusion detection.
  • Version impersonation: envelopes, events, receipts, and profiles bind agent version.
  • Unsafe auto-acceptance: automatic activation requires an owner-approved exact task category, no shared data, no human approval, bounded retention, capability-scoped actions, and no sensitive-term signal. Any mismatch stays pending for explicit review.

MVP limitations: gateway encryption is server-side rather than end-to-end; an online OpenClasp function sees plaintext while accepting or delivering a message. MCP clients poll the inbox and cannot wake an offline agent. Local key files are not HSM-backed; advanced fraud models are deferred.