Summary
- RFC 5202 — and its Standards Track successor RFC 7402 — deliberately leave HIP ESP rekey information readable, because the middleboxes standing on the path may need the new SPI values. HMAC and signatures protect integrity and provenance. They do not buy confidentiality.
- Four claims get quietly merged into one green badge: payload encrypted, control message authenticated, rekey metadata observable, retained mapping deleted. None of them proves the other three.
The seam you can see through the “encrypted” badge
Every sealed shipping container still carries a manifest stapled to the outside: what it is, where it goes, who signed for it. ESP works the same way. The application payload is locked in the box, so the product panel prints “private” and everyone nods. But RFC 4303 puts the Security Parameters Index and the Sequence Number in front of the encrypted payload — integrity-protected, yes; encrypted, no. The receiver needs those coordinates to find state, reject replays and move packets. Strip them out and the tunnel stops being a tunnel.
HIP hands the SPI a bigger job. RFC 5202 calls it a compressed representation of a pair of Host Identity Tags, and lets an intermediary use it for address mapping. The coordinate is bounded with real precision: destination address plus SPI identifies the receiver-side HIT context at a particular moment. The same number can appear at other hosts, and the same destination/SPI pair can mean something else an hour later.
That precision kills two equal and opposite errors. The SPI is not harmless noise — it is operationally load-bearing. It is also not a permanent global identity, not a person, not an encryption key, and not proof that an application ever accepted a byte.
Why the UPDATE was never meant to be opaque
During a HIP ESP rekey, ESP_INFO carries the old SPI, the new SPI and a key-material index. The initiating UPDATE also carries sequence state, an optional Diffie–Hellman value, an HMAC and a HIP signature. The response answers with its own sequence and acknowledgement state plus another ESP_INFO.
RFC 5202 states the trade in plain language: intermediate systems that use the SPI have to inspect the HIP packets carrying rekey information, so the packet is signed for their benefit — and because they may need the new SPI values, those values cannot be encrypted. RFC 7402 repeats the same sentence after the experiment graduated to Standards Track. This is not a cryptographic oversight. Readability is the deployed feature.
Authentication makes the visible metadata more useful, not less: a device can tell an authorised mapping update from unauthenticated noise. But it does not wrap the transition in an opaque envelope. The honest control statement is narrow — the UPDATE is protected against undetected modification under the named association and algorithms. The dishonest one is: nobody on path can observe the rekey coordinate.
What an observer can actually infer
RFC 6973 defines traffic analysis as inference from presence, direction, timing, size, composition or frequency, even when flows are encrypted. A rekey UPDATE hands that analysis a structured event on a platter: HIP headers supply endpoint identity tags, ESP_INFO supplies an old-to-new selector transition, network headers supply locators and a timestamp.
A HIP-aware firewall or NAT with association context uses exactly this, as designed. RFC 9063 says such middleboxes may passively observe on-path traffic and hold soft state between control and data planes. A more generic sensor can still correlate the visible transition with the ESP packets that follow it.
Do not inflate the inference. None of this shows that every observer knows the human being or the organisation behind a HIT. None of it shows that one SPI stays meaningful after an address change or a timeout. None of it reveals payload content. What it does show is that “encrypted traffic” and “unobservable relationship change” are two different claims wearing one badge.
Rotation mints a coordinate; it does not shred the record
Both RFCs recommend random SPI selection, a distinct SPI per exchange with a peer, and a mandatory SPI change on rekey. Those rules cut reuse and replay risk. They do not make the current change invisible.
Once a capture file or a middlebox table writes old SPI → new SPI beside a HIT pair and a locator pair, no amount of later randomness reaches backward to delete it. Retention decides whether a momentary operational coordinate hardens into a durable history. A SIEM export, a flow collector or a support bundle can stretch that history far past the middlebox soft-state timer.
HIP separately recommends rotating unpublished Host Identities to blunt linkability and trackability. Good endpoint hygiene — and not a deletion policy for every intermediary that already saw the earlier state. Identity rotation, SPI rotation and evidence retention are three separate control surfaces that keep getting filed under one word.
Build a disclosure ledger, not a badge
For every component that consumes ESP_INFO, an operator should be able to answer five questions:
| Question | Evidence |
|---|---|
| What was visible? | Exact HIP header and ESP_INFO fields parsed |
| Why was it needed? | Address-mapping, firewall or diagnostic purpose |
| Who could read it? | Device role, administrator role and export destination |
| How long did it persist? | Soft-state timeout, capture retention and downstream retention |
| How was removal proved? | Table expiry, log deletion and export tombstone or audit |
The event receipt should record observation point, direction, locators, protected HIT reference, old and new SPI, UPDATE sequence/ack coordinate, verification outcome, rule version, mapping expiry and deletion result. If policy permits raw HIT storage, say so out loud. If it substitutes a protected reference, keep enough correlation for incident response without manufacturing an indefinite identity.
And do not report a new SA as installed merely because the control packet was readable. Endpoint Security Association state, the first authenticated packet on the new SPI, the last packet on the old SPI and old-state deletion each need their own receipt. RFC 5202’s migration sequence is operational evidence — not permission to collapse control-plane observation into data-plane success.
Get the historical boundary right
RFC 5202 was Experimental in 2008 and is now obsolete. Its held erratum swaps one editorial “transport” for “transform”; it does not touch the visibility rule. RFC 7402 replaced it in 2015, runs HIPv2 and sits on the Standards Track. The successor keeping the inspectable signed UPDATE is precisely what makes the lesson current rather than archaeological.
RFC 6538 and RFC 9063 show the wider tension: HIP can improve endpoint authentication and support privacy-oriented identity practice while a middlebox still demands control-plane participation or passive state. There is no contradiction as long as the claims stay at their proper layers. There is a governance failure the moment one green encrypted badge is allowed to answer for all of them.
The decision for leadership
Approve separate service claims for payload confidentiality, control-message authenticity, metadata visibility and retention. Make every product and managed service name which one it means. Fund deletion evidence as seriously as signature verification.
The minimum common protocol may expose a mapping that interoperability needs. That is not an unlimited secondary-use mandate. Local policy should name the consumer, the purpose, the fields, the expiry and the onward transfer. Running code decides what exists; the inventory and the audit decide whether its existence is still justified.
Encryption is a property of the box. The manifest on the outside is a property of the system — and the system is what gets audited.
Sources
- RFC 5202 HTML
- RFC 5202 text
- RFC 5202 information page
- IETF Datatracker: RFC 5202
- RFC 5202 history
- RFC 5202 references
- RFC 5202 errata
- RFC 7402 HTML
- RFC 7402 text
- RFC 7402 information page
- IETF Datatracker: RFC 7402
- RFC 7402 history
- RFC 7402 references
- RFC 7402 errata
- RFC 4303 — ESP
- RFC 4301 — IPsec architecture
- RFC 9063 — HIP architecture
- RFC 6538 — HIP experiment report
- RFC 6973 — privacy considerations
- Heng Lu — reality layers and symbolic power
- Heng Lu — minimum initial specification
- Heng Lu — running-code primacy
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






