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
| Threat | Defense (summary) | Normative source |
|---|---|---|
| Impersonation | Envelopes 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 |
| Replay | message_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 tampering | Manifest signature + PoP over a publish-time challenge, both verified before any handshake. | RFC-AITP-0009 §1.3 |
| Manifest replay across agents | PoP verified under the key in manifest.aid; the signature covers aid. | RFC-AITP-0009 §1.4 |
| Confused deputy | Delegation 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 misuse | cnf.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 escalation | Delegation 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 confusion | TCT 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 failure | pop_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 confusion | No 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 confusion | Every 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 fields | Unknown 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 DoS | MUST 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.
| Limitation | Status |
|---|---|
| No real-time key-revocation push | Pull-based; staleness bounded by max_staleness_secs (RFC-AITP-0008 §3.2). |
| No Sybil resistance | Delegated to identity providers. |
| No runtime integrity attestation | TEE extension reserved in RFC-AITP-0012. |
| No ZK compliance proofs | ZK extension reserved in RFC-AITP-0012. |
| Multi-hop delegation is not core | Specified in RFC-AITP-0011 (Draft, opt-in). |
| Multi-agent session scaling is not core | Specified in RFC-AITP-0010 (Draft, opt-in). |
| No cross-domain trust federation | Future 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:
- C presents B's delegation token to D. D rejects: the delegation's
audis A's AID, not D's (DELEGATION_AUDIENCE_MISMATCH). - B claims more scope than A granted. A rejects:
scope ⊆ voucher.grantsfails (DELEGATION_SCOPE_EXCEEDED). - Replayed
MUTUAL_HELLO. Rejected: itsmessage_idis already in B's deny list. - Stolen TCT. The attacker cannot prove possession of the key matching
cnf.jkt; consumers enforcing PoP reject it. - 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.