Skip to content
SIP Mastery

Part 9 · SIP in the real world / Module 28

Caller identity: STIR/SHAKEN

How carriers sign the caller's number so that the called network can check it: why caller ID is easy to spoof; the PASSporT token and the Identity header; attestation levels A, B, and C; the signing and verification services; the certificates and who issues them; diverted calls; and what the called phone shows.

AdvancedNOC coreDEV core

After this module, you can

  • Explain why From and P-Asserted-Identity cannot stop spoofed caller ID between carriers.
  • Decode a PASSporT, and say what each header parameter and claim means.
  • Choose the right attestation level for a call, and say what each level promises.
  • Follow a call from the signing service to the verification service, and name the check that fails in each failure case.
  • Describe the certificate chain from the STI-PA to the signing carrier.
  • Read verstat, and predict what the called phone shows.
On this page10 sections
  1. 28.1The problem: spoofed caller ID and robocalls
  2. 28.2PASSporT: a signed token about the call
  3. 28.3The Identity header
  4. 28.4Attestation levels A, B, and C
  5. 28.5The signing and verification path
  6. 28.6Certificates: STI-PA, STI-CA, and certificate repositories
  7. 28.7Diverted calls and other extensions
  8. 28.8What the called user sees
  9. Common mistakes
  10. Summary

28.1 The problem: spoofed caller ID and robocalls

Anyone with a SIP trunk can write any number in From. Module 14 showed the defence inside one network: P-Asserted-Identity, trusted only from members of the trust domain. Between carriers, that trust is transitive and weak: a carrier that accepts PAI from a peer accepts whatever the peer accepted. Spoofed numbers make robocallsrobocall. An automated call to many numbers at once, often with a spoofed caller ID, for sales or fraud. look local, and make fraud calls look like a bank or the tax office.

RFC 8224 §1 · Introduction
“However, in the absence of some sort of cryptographic authentication mechanism, the recipient of a SIP request has no way to verify that the From header field has been populated appropriately.”
Read the section ↗

STIRSTIR. The IETF work that signs caller identities in SIP - PASSporT (RFC 8225), the Identity header (RFC 8224), and certificates for telephone numbers (RFC 8226). adds a signature: the caller’s carrier signs a token that names the caller’s number, and the called carrier checks the signature. SHAKENSHAKEN. How carriers in the USA and Canada deploy STIR - who signs, the attestation levels, the certificate authorities, and what phones show (ATIS-1000074). is how carriers in the USA and Canada deploy it, where regulators made it mandatory; other countries are following.

28.2 PASSporT: a signed token about the call

A PASSporTPASSporT. A signed JSON Web Token about a call - who calls (orig), who is called (dest), and when (iat) - signed with the carrier's certificate (RFC 8225). is a JSON Web Token with three parts: a header, a payload of claims, and a signature over both. Pick an example, then change a claim or the verifier’s clock: the browser checks the real ES256 signature each time, with the public key of this course’s example certificate.

PASSporT decoder

What an Identity header says, and whether it holds

Identity: eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9jci5jYXJyaWVyLWEuZXhhbXBsZS9zdGkvMjAyNi9wYXNzcG9ydC5wZW0ifQ.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxMjI4NTU1MDIyMiJdfSwiaWF0IjoxNzkxMjk1MjAwLCJvcmlnIjp7InRuIjoiMTQwNDU1NTAxMDEifSwib3JpZ2lkIjoiNDQzN2M3ZWItOGY3YS00ZjBmLWE4OTItYWU2YTViMmEyYTU1In0.NxF9ie-XOneIMPOT9LFrlL89eP-Pd2AwtsbJya2tw9pOd8lywjyMqhPPQ0qyOnAC6hte0pkoAaYKvUDbhuyi2w;info=<https://cr.carrier-a.example/sti/2026/passport.pem>;alg=ES256;ppt=shaken

Header

alg
"ES256"ES256: ECDSA with the P-256 curve and SHA-256. SHAKEN uses no other algorithm.
ppt
"shaken"The PASSporT extension: shaken adds attest and origid; div records a diversion.
typ
"passport"Always passport.
x5u
"https://cr.carrier-a.example/sti/2026/passport.pem"Where the verifier fetches the signer's certificate, over HTTPS.

Payload

attest
"A"The attestation level: A full, B partial, C gateway.
dest
{"tn":["12285550222"]}Who is called: one or more telephone numbers, digits only.
iat
1791295200Issued at: when the signer signed, in seconds since 1970. Tue, 06 Oct 2026 14:00:00 GMT.
orig
{"tn":"14045550101"}Who calls: the telephone number, digits only.
origid
"4437c7eb-8f7a-4f0f-a892-ae6a5b2a2a55"A UUID for the source of the call, so carriers can trace it back.

Signature

37117d89ef973a778830f393f4b16b94 bf3d78ff8f776030b6c6c9c9adadc3da 4e77c972c23c8caa13cf434ab23a7002 ea1b5ed2992801a60abd40db86eca2db

64 bytes: r and s of the ECDSA signature, over BASE64URL(header) . BASE64URL(payload). Only the holder of the private key can make it; anyone with the certificate can check it.

Checking the signature…

  • ✓ ppt. ppt=shaken: a PASSporT type this verifier supports.
  • ✓ Certificate. The certificate at x5u chains to an STI-CA that the STI-PA approved.
  • ✓ Freshness. iat is 2 s old. The limit is 60 s.
  • ✗ Signature. The signature does not match: someone changed the header or payload, or signed with another key.
  • ✓ orig. orig.tn is 14045550101; the request says 14045550101.
  • ✓ dest. dest.tn is 12285550222; the call is for 12285550222.

The call is for 12285550222, from 14045550101.

The payload makes three claims: who calls (orig), who is called (dest), and when (iat). SHAKEN adds attest and origid. The time stops an attacker from recording a signed call and replaying it later:

RFC 8225 §5.1.1 · "iat" (Issued At) Claim
“This is included for securing the token against replay and cut-and-paste attacks, as explained further in Section 10 ("Security Considerations").”
Read the section ↗

The signature covers the exact bytes of the header and payload, so both sides must write the JSON in exactly the same way:

RFC 8225 §9 · Deterministic JSON Serialization
“JSON objects MUST have the keys ordered lexicographically by the Unicode [UNICODE] code points of the member names.”
Read the section ↗

28.3 The Identity header

The signing carrier puts the PASSporT in an Identity header (RFC 8224), with three parameters:

Date: Tue, 06 Oct 2026 14:00:00 GMT
Identity: eyJhbGciOiJFUzI1NiIs….eyJhdHRlc3QiOiJBIiwi….Jx4HXnS0…;
  info=<https://cr.carrier-a.example/sti/2026/passport.pem>;alg=ES256;ppt=shaken
  • The value is the PASSporT, in its full form: header, payload, and signature, separated by dots. RFC 8225 also defines a compact form without the header and payload, which the verifier must rebuild from the SIP message; SHAKEN does not use it.
  • info names the certificate, the same URL as x5u in the header.
  • alg names the algorithm, and ppt the PASSporT extension.
  • The Date header gives the time of signing. The verifier checks it, as well as iat.

The Identity header travels end to end. Proxies, SBCs, and transit carriers must pass it on unchanged, and must not change the numbers or the Date that it signs.

28.4 Attestation levels A, B, and C

The attestationattestation. How sure the signing carrier is of the caller's number: A (full) - its customer, its number; B (partial) - its customer, number not checked; C (gateway) - the call came from elsewhere. says how sure the signing carrier is of the caller’s number:

RFC 8588 §3 · Overview of "shaken" PASSporT Extension
“This provides three levels of attestation: a full attestation when the service provider can fully attest to the calling identity, a partial attestation when the service provider originated a telephone call but cannot fully attest to the calling identity, and a gateway attestation, which is the lowest level of attestation and represents the service provider receiving a call from a telephone gateway that does not support PASSporT or STI.”
Read the section ↗
Level The carrier knows Example
A: full The caller is its customer, authenticated, and has the right to use this number A mobile subscriber, a SIP trunk customer calling from one of its own DIDs
B: partial The caller is its customer, authenticated, but not that the number belongs to them A call centre on a SIP trunk that sends its client’s toll-free number
C: gateway Nothing about the caller: the call came from somewhere else A call from abroad, or from the PSTN through a gateway

Attestation is a statement by the carrier, not about the caller’s honesty. A call with B or C attestation can be perfectly legitimate; it means only that the signer could not check the number. Whatever the level, origid lets carriers trace a call back to the source that sent it:

RFC 8588 §3 · Overview of "shaken" PASSporT Extension
“The second claim is a unique origination identifier that should be used by the service provider to identify different sources of telephone calls to support a traceback mechanism that can be used for enforcement and identification of a source of illegitimate calls.”
Read the section ↗

28.5 The signing and verification path

The originating carrier’s STI-ASSTI-AS. The originating carrier's service that decides the attestation and signs the PASSporT. (signing service) decides the attestation and signs. The terminating carrier’s STI-VSSTI-VS. The terminating carrier's service that fetches the certificate and checks the PASSporT. (verification service) fetches the certificate, checks the PASSporT, and passes the result to the called phone. Follow a call, then change the options:

Flow builder · signing, transit, and verification

STIR/SHAKEN: attest A, identity kept

  • SIP
  • TCP / IP
Caller
Transit carrier
Signer clock
Verifier policy

Alice192.0.2.10Originating carrier198.51.100.10Transit carrier192.0.2.200Terminating carrier203.0.113.10Certificate repository198.51.100.90Bob203.0.113.2001INVITE02100 Trying03INVITE04INVITE05HTTPS GET certificate06200 OK (certificate)07INVITE08180 Ringing09180 Ringing10180 Ringing11180 Ringing
01/11

Alice, a customer of carrier A, calls Bob. The carrier authenticated her, and assigned her the number.

All steps as text
  1. Alice → Originating carrier: INVITE. Alice, a customer of carrier A, calls Bob. The carrier authenticated her, and assigned her the number.
  2. Originating carrier → Alice: 100 Trying. Carrier A takes the call.
  3. Originating carrier → Transit carrier: INVITE. The signing service adds Date and an Identity header: a PASSporT with attest A. Alice is the carrier's own customer, authenticated, and the number is hers.
  4. Transit carrier → Terminating carrier: INVITE. The transit carrier passes the call on, with the Identity header unchanged.
  5. Terminating carrier → Certificate repository: HTTPS GET certificate. The verification service fetches the certificate named in info and x5u. It keeps it in a cache for later calls.
  6. Certificate repository → Terminating carrier: 200 OK (certificate). The certificate names carrier A in its TN Authorization List, and chains to an STI-CA that the STI-PA approved.
  7. Terminating carrier → Bob: INVITE. Signature, certificate, time, and both numbers check out. The verifier tells Bob's phone: verstat=TN-Validation-Passed.
  8. Bob → Terminating carrier: 180 Ringing. Bob's phone rings. It shows the number, with a verified mark.
  9. Terminating carrier → Transit carrier: 180 Ringing. The 180 goes back the way the INVITE came.
  10. Transit carrier → Originating carrier: 180 Ringing. Through the transit carrier.
  11. Originating carrier → Alice: 180 Ringing. The caller hears ringing.

The verifier follows the steps of RFC 8224 §6.2: check the ppt, find the originating identity, fetch the credential, check the time, and check the signature:

RFC 8224 §6.2 · Verifier Behavior
“The verifier must ensure that it has access to the proper keying material to validate the signature in the Identity header field; this usually involves dereferencing a URI in the "info" parameter of the Identity header field.”
Read the section ↗
RFC 8224 §6.2 · Verifier Behavior
“The verifier furthermore ensures that the value of the Date header field of the request meets local policy for freshness (sixty seconds is RECOMMENDED) and that it falls within the validity period of the credential used to sign the Identity header field.”
Read the section ↗
RFC 8224 §6.2 · Verifier Behavior
“If a verifier determines that the signature in the Identity header field does not correspond to the reconstructed signed-identity-digest, then the Identity header field should be considered invalid.”
Read the section ↗

What happens after a failure is local policy. Most SHAKEN networks let the call through and mark it, so that the phone or an analytics service can decide. A verifier that rejects uses the response codes of RFC 8224: 438 for an invalid header, 403 “Stale Date” for an old one, and 428 when it requires an Identity header and gets none. Set Verifier policy to Reject failures to see them:

RFC 8224 §6.2.2 · Failure Response Codes Sent by a Verification Service
“The 438 "Invalid Identity Header" response indicates that of the set of Identity header fields in a request, no header field with a valid and supported PASSporT object has been received.”
Read the section ↗
RFC 8224 §6.2.2 · Failure Response Codes Sent by a Verification Service
“Finally, a 403 response may be sent when the verification service receives a request with a Date header field value that is older than the local policy for freshness permits.”
Read the section ↗

28.6 Certificates: STI-PA, STI-CA, and certificate repositories

The signature proves only that the holder of a key signed. The certificate says who that is, and whether they may sign for telephone numbers:

Role Who Job
Governance authority (STI-GA) Industry body, set up under the regulator Sets the rules
STI-PASTI-PA. The body that decides which carriers may get STIR/SHAKEN certificates, and which certificate authorities may issue them. Policy administrator Decides which carriers get certificates, issues them a token with their Service Provider Code (SPC), and approves the CAs
STI-CASTI-CA. A certificate authority approved by the STI-PA to issue certificates to carriers. Certificate authority Issues each carrier its certificate, with its SPC in the TN Authorization List
Certificate repositoryCertificate repository. A web server where a carrier publishes its STIR/SHAKEN certificates, at the URL in x5u. (STI-CR) Each carrier, on a web server Publishes the certificate at the URL in x5u
RFC 8226 §3 · Authority for Telephone Numbers in Certificates
“The second approach is to extend the syntax of certificates to include a new attribute, defined here as the TN Authorization List, which contains a list of telephone numbers defining the scope of authority of the certificate.”
Read the section ↗

In SHAKEN, the TN Authorization List names the carrier (its SPC), not single numbers: a certificate lets a carrier sign for any number. The attestation level, and the traceback through origid, keep carriers honest. A verifier caches certificates, checks that they chain to an approved STI-CA, and checks the revocation list of the STI-PA.

28.7 Diverted calls and other extensions

When Bob forwards a call to Carol, the call’s dest no longer matches the new target, and verification at Carol’s carrier would fail. Bob’s carrier therefore adds a second PASSporT, of type div, signed with its own certificate. Pick div in the decoder above:

RFC 8946 §3 · The "div" PASSporT Type and Claim
“When a retargeting entity receives a call signed with a PASSporT, it may act as an authentication service and create a new PASSporT containing the "div" claim to attach to the call.”
Read the section ↗

The call now carries two Identity headers: the original one, which proves who called Bob, and the div one, which proves that Bob’s carrier sent the call on to Carol. Other extensions add Rich Call Data (rcd: the caller’s name, a logo, a reason for the call) and attestation for calls that cross a TDM network, where SIP headers cannot travel (out-of-band SHAKEN).

28.8 What the called user sees

The verification service passes its result in a verstatverstat. A parameter that the terminating carrier adds to the caller's number in From or P-Asserted-Identity, to tell the phone the result of verification. parameter on the caller’s number, in From and P-Asserted-Identity:

P-Asserted-Identity: <tel:+14045550101;verstat=TN-Validation-Passed>
verstat Attestation Typical display
TN-Validation-Passed A The number with a ✓ or “Verified” mark
TN-Validation-Passed B or C The number, no mark
TN-Validation-Failed any “Spam risk”, “Unverified”, or the call is blocked by the carrier or an app
No-TN-Validation none The number, no mark

What the phone shows depends on the carrier, the phone, and any call-analytics service: STIR/SHAKEN gives them facts, and they decide. A verified number is not a promise that the call is wanted; it is only a promise that the number is real.

Common mistakes

A attestation for a number the caller is not proven to own

A carrier gives A to every call from its SIP trunk customers, without checking which numbers they send. A call centre on one of those trunks sends any number it likes, and every call shows as verified. Traceback leads straight to the carrier.

Broken: A for an unchecked number

STIR/SHAKEN: attest A (wrongly), identity kept

  • SIP
  • TCP / IP
  • ⚠Problem
PBX192.0.2.20Originating carrier198.51.100.10Transit carrier192.0.2.200Terminating carrier203.0.113.10Certificate repository198.51.100.90Bob203.0.113.2001INVITE02100 Trying03INVITE⚠04INVITE05HTTPS GET certificate06200 OK (certificate)07INVITE08180 Ringing⚠09180 Ringing10180 Ringing11180 Ringing
01/11

A company PBX on a SIP trunk calls Bob, from a toll-free number that another carrier assigned.

All steps as text
  1. PBX → Originating carrier: INVITE. A company PBX on a SIP trunk calls Bob, from a toll-free number that another carrier assigned.
  2. Originating carrier → PBX: 100 Trying. Carrier A takes the call.
  3. Originating carrier → Transit carrier: INVITE. The signing service gives A to the PBX's number anyway. The carrier did not assign that number, and cannot know it is genuine. Problem: Full attestation for a number nobody checked: any spoofed number now looks verified.
  4. Transit carrier → Terminating carrier: INVITE. The transit carrier passes the call on, with the Identity header unchanged.
  5. Terminating carrier → Certificate repository: HTTPS GET certificate. The verification service fetches the certificate named in info and x5u. It keeps it in a cache for later calls.
  6. Certificate repository → Terminating carrier: 200 OK (certificate). The certificate names carrier A in its TN Authorization List, and chains to an STI-CA that the STI-PA approved.
  7. Terminating carrier → Bob: INVITE. Signature, certificate, time, and both numbers check out. The verifier tells Bob's phone: verstat=TN-Validation-Passed.
  8. Bob → Terminating carrier: 180 Ringing. Bob's phone rings. It shows the number, with a verified mark. Problem: Bob sees a verified mark on a call that nobody verified.
  9. Terminating carrier → Transit carrier: 180 Ringing. The 180 goes back the way the INVITE came.
  10. Transit carrier → Originating carrier: 180 Ringing. Through the transit carrier.
  11. Originating carrier → PBX: 180 Ringing. The caller hears ringing.

Remember: give A only when you authenticated the caller and assigned the number to them, or checked that they may use it. Otherwise give B.

Removing or changing the Identity header in transit

An SBC in a transit network removes headers it does not know, or rewrites the caller’s number, or the Date header. The terminating carrier gets no signature, or one that no longer matches. Honest calls lose their verified mark.

Broken: Identity removed

STIR/SHAKEN: attest A, Identity removed in transit

  • SIP
  • ⚠Problem
Alice192.0.2.10Originating carrier198.51.100.10Transit carrier192.0.2.200Terminating carrier203.0.113.10Bob203.0.113.2001INVITE02100 Trying03INVITE04INVITE⚠05INVITE06180 Ringing07180 Ringing08180 Ringing09180 Ringing
01/09

Alice, a customer of carrier A, calls Bob. The carrier authenticated her, and assigned her the number.

All steps as text
  1. Alice → Originating carrier: INVITE. Alice, a customer of carrier A, calls Bob. The carrier authenticated her, and assigned her the number.
  2. Originating carrier → Alice: 100 Trying. Carrier A takes the call.
  3. Originating carrier → Transit carrier: INVITE. The signing service adds Date and an Identity header: a PASSporT with attest A. Alice is the carrier's own customer, authenticated, and the number is hers.
  4. Transit carrier → Terminating carrier: INVITE. An SBC in the transit network removes the headers it does not know, Identity among them. Problem: The signature is gone. The terminating carrier cannot verify anything.
  5. Terminating carrier → Bob: INVITE. No Identity header: the verifier has nothing to check. The verifier tells Bob's phone: verstat=No-TN-Validation.
  6. Bob → Terminating carrier: 180 Ringing. Bob's phone rings. It shows the number, with no mark.
  7. Terminating carrier → Transit carrier: 180 Ringing. The 180 goes back the way the INVITE came.
  8. Transit carrier → Originating carrier: 180 Ringing. Through the transit carrier.
  9. Originating carrier → Alice: 180 Ringing. The caller hears ringing.
RFC 8224 §6.2.2 · Failure Response Codes Sent by a Verification Service
“Note that in some cases, an Identity header field may be broken for other reasons than that an originator is attempting to spoof an identity: for example, when a transit network alters the Date header field of the request.”
Read the section ↗

Remember: pass Identity, Date, From, P-Asserted-Identity, and the Request-URI unchanged. If you must change the number, you are a new originator: sign again, with your own certificate and an honest attestation.

A clock difference that makes iat too old

The signing server’s clock drifts five minutes slow: NTP stopped working after a firewall change. Every PASSporT it signs is already five minutes old. Verifiers mark every call as failed, or reject them with 403 Stale Date.

Broken: signer 5 min slow

STIR/SHAKEN: attest A, identity kept, slow signer clock

  • SIP
  • TCP / IP
  • ⚠Problem
Alice192.0.2.10Originating carrier198.51.100.10Transit carrier192.0.2.200Terminating carrier203.0.113.10Certificate repository198.51.100.90Bob203.0.113.2001INVITE02100 Trying03INVITE⚠04INVITE05HTTPS GET certificate06200 OK (certificate)07403 Stale Date08ACK09403 Stale Date10ACK11403 Stale Date⚠12ACK
01/12

Alice, a customer of carrier A, calls Bob. The carrier authenticated her, and assigned her the number.

All steps as text
  1. Alice → Originating carrier: INVITE. Alice, a customer of carrier A, calls Bob. The carrier authenticated her, and assigned her the number.
  2. Originating carrier → Alice: 100 Trying. Carrier A takes the call.
  3. Originating carrier → Transit carrier: INVITE. The signing service adds Date and an Identity header: a PASSporT with attest A. Alice is the carrier's own customer, authenticated, and the number is hers. Problem: The signer's clock is 5 minutes slow, so iat and Date are 5 minutes old already.
  4. Transit carrier → Terminating carrier: INVITE. The transit carrier passes the call on, with the Identity header unchanged.
  5. Terminating carrier → Certificate repository: HTTPS GET certificate. The verification service fetches the certificate named in info and x5u. It keeps it in a cache for later calls.
  6. Certificate repository → Terminating carrier: 200 OK (certificate). The certificate names carrier A in its TN Authorization List, and chains to an STI-CA that the STI-PA approved.
  7. Terminating carrier → Transit carrier: 403 Stale Date. The PASSporT is 301 s old, and the limit is 60 s. This carrier rejects such calls.
  8. Transit carrier → Terminating carrier: ACK. The transit carrier acknowledges.
  9. Transit carrier → Originating carrier: 403 Stale Date. The transit carrier passes the failure back.
  10. Originating carrier → Transit carrier: ACK. Carrier A acknowledges.
  11. Originating carrier → Alice: 403 Stale Date. The caller's call fails, though the caller did nothing wrong. Problem: One slow clock at the signer makes every call from carrier A fail.
  12. Alice → Originating carrier: ACK. The caller acknowledges.

Remember: keep the signer’s and the verifier’s clocks in sync with NTP, and monitor them. Freshness allows only 60 seconds.

Summary

  • From and P-Asserted-Identity prove nothing between carriers. STIR/SHAKEN adds a signature that any carrier can check.
  • A PASSporT is a JWT: a header (alg, ppt, typ, x5u), claims (orig, dest, iat, and for SHAKEN attest and origid), and an ES256 signature over both.
  • The Identity header carries the full PASSporT, with info, alg, and ppt. It must pass through every network unchanged, with Date.
  • Attestation A means “our customer, our number”; B “our customer, unchecked number”; C “we know nothing about the caller”.
  • The verification service fetches the certificate, checks the time (60 s), the signature, and both numbers, and sends verstat to the phone.
  • Certificates come from an STI-CA approved by the STI-PA, and live at the x5u URL. A div PASSporT re-signs a forwarded call.