Threat Model — Quick Reference

The normative threat model is RFC-AITP-0009 Security. This page is a non-normative index into it: each row names the threat, the defense in one line, and the section that states it. Read the cited section for the actual requirements. Rows covered by a lemma of the Tamarin model link to it.

Threats addressed in v0.3

ThreatDefense (summary)Normative source
ImpersonationEnvelopes signed by the sender's AID key; identity binding by PoP or trusted-issuer credential; round-2 handshake PoP; ACK sender bound to the addressed peer (RFC-AITP-0004 §5.2 step 3); TCT bound to the subject key via cnf.jkt.RFC-AITP-0009 §1.1; formal model: P1, P2
Replaymessage_id deny list + timestamp window + handshake nonce echoes + TCT exp + jti revocation.RFC-AITP-0009 §1.2; RFC-AITP-0001 §5.5; formal model: P4
Manifest tamperingManifest signature + PoP over a publish-time challenge, both verified before any handshake.RFC-AITP-0009 §1.3
Manifest replay across agentsPoP verified under the key in manifest.aid; the signature covers aid.RFC-AITP-0009 §1.4
Confused deputyDelegation tokens carry aud = the issuing peer A's AID (DELEGATION_AUDIENCE_MISMATCH otherwise); TCT aud MUST be the subject peer's AID (AUDIENCE_MISMATCH); no wildcard audiences.RFC-AITP-0009 §1.5; formal model: P3, P5
Token theft and misusecnf.jkt binds the TCT to the subject's key; downstream PoP; short TTLs; jti revocation.RFC-AITP-0009 §1.6; formal model: P3
Delegation scope escalationDelegation embeds A's signed grant voucher; scope ⊆ voucher.grants (DELEGATION_SCOPE_EXCEEDED); voucher.sub MUST equal the outer iss (DELEGATION_INVALID_VOUCHER); stateless.RFC-AITP-0009 §1.7; RFC-AITP-0006 §4; formal model: P5
Peer-AID confusionTCT iss is a peer AID; its key is resolved from that peer's Manifest, never from trust_anchors.RFC-AITP-0009 §1.8
PoP nonce binding failurepop_nonce_echo MUST equal the value sent in the previous round, checked before any TCT or PoP is constructed.RFC-AITP-0009 §1.9; formal model: P2
Key compromise (partial)Revoke issued jtis, re-publish under a new AID, short TTLs; no real-time detection.RFC-AITP-0009 §1.10; RFC-AITP-0003 §8.1
Manifest PoP bypass (wrong signing input)sign(sha256(base64url_decode(challenge))), verified before any other Manifest field is trusted; pinned KAT kat-manifest-pop-001.RFC-AITP-0009 §1.11
Algorithm confusionNo negotiation: the sole acceptable JWS alg is derived from the signer's AID before any cryptography (TOKEN_ALG_MISMATCH); headers carrying key material are rejected.RFC-AITP-0009 §1.12
Token-type confusionEvery AITP JWS carries an exact typ (aitp-tct+jwt, aitp-grant+jwt, aitp-delegation+jwt), enforced early (TOKEN_TYP_MISMATCH).RFC-AITP-0009 §1.13
Unsecured JWS (alg: none)none can never equal the AID-derived alg; strict three-non-empty-segment parsing rejects signature-less tokens.RFC-AITP-0009 §1.14
Agent Card tampering (opt-in A2A binding)The Card is an untrusted pointer: the client verifies the Manifest it names and requires the Card's AID to match (IDENTITY_FAILED); effective values come from the Manifest; a Card signature is neither necessary nor sufficient.RFC-AITP-0009 §1.15
Agent Card shadowing (opt-in A2A binding)The signed Manifest lists the agent's A2A endpoints (rfc-aitp-0014.a2a_interfaces); no AITP credential goes to an endpoint it does not list.RFC-AITP-0009 §1.16
Agent Card description injection (opt-in A2A binding)No Card text feeds verification or authorization; authorization uses TCT grants only.RFC-AITP-0009 §1.17
Signature ambiguity from unknown fieldsUnknown members outside extensions / ext are rejected with UNKNOWN_FIELD before any signature check, so no two implementations hash different bytes for the same object.RFC-AITP-0001 §7
Revocation-lookup DoS (reflection, cache pollution)Network revocation lookups keyed on iss / jti / voucher.src_jti run only after every signature has verified; pinned by fixture rev-004.RFC-AITP-0008 §3.3
Handshake-endpoint DoSMUST rate-limit per source, keyed on a transport-level identifier (peer IP or TLS client-certificate fingerprint), never on a pre-verification AID alone; RECOMMENDED limits and a normative replay → rate-limit → timestamp → size → signature → payload check order.RFC-AITP-0009 §3.1; RFC-AITP-0004 §11.4

Operational settings that implement several of these defenses (tolerances, cache lifetimes, fail modes, rate limits) are collected with their sources in operational-guidance.md.

Known limitations in v0.3

The authoritative list is RFC-AITP-0009 §2.

LimitationStatus
No real-time key-revocation pushPull-based; staleness bounded by max_staleness_secs (RFC-AITP-0008 §3.2).
No Sybil resistanceDelegated to identity providers.
No runtime integrity attestationTEE extension reserved in RFC-AITP-0012.
No ZK compliance proofsZK extension reserved in RFC-AITP-0012.
Multi-hop delegation is not coreSpecified in RFC-AITP-0011 (Draft, opt-in).
Multi-agent session scaling is not coreSpecified in RFC-AITP-0010 (Draft, opt-in).
No cross-domain trust federationFuture specification.
Signature-string malleability (an Ed25519 JCS-profile signature verifies both untagged and with the ed25519. tag)Documented, not prevented: the signature field is outside its own signing input. Replay and dedup MUST key on signed content (message_id, or the JCS form without the signature), never on raw object bytes (RFC-AITP-0001 §5.4.3). ECDSA high-S malleability is closed separately by low-S verification (RFC-AITP-0001 §5.4.7).

Attack walkthroughs

Worked scenarios — C replaying B's delegation at D, B escalating scope, a replayed MUTUAL_HELLO, a stolen TCT, a swapped Manifest — are in RFC-AITP-0009 §6. In short:

  1. C presents B's delegation token to D. D rejects: the delegation's aud is A's AID, not D's (DELEGATION_AUDIENCE_MISMATCH).
  2. B claims more scope than A granted. A rejects: scope ⊆ voucher.grants fails (DELEGATION_SCOPE_EXCEEDED).
  3. Replayed MUTUAL_HELLO. Rejected: its message_id is already in B's deny list.
  4. Stolen TCT. The attacker cannot prove possession of the key matching cnf.jkt; consumers enforcing PoP reject it.
  5. Swapped Manifest. The PoP must verify under the key in manifest.aid; without that private key (and a valid TLS certificate for the host) the swap fails.