AGENTS.md, imsd: an ISIM's identity has registered on a network

AGENTS.md §5 said that this daemon had sent no network a REGISTER with
names it read from an ISIM and no real ISIM an AUTHENTICATE, §13 that it
had not sent the US card's network the card's own names, and a comment
of the shell that no AKA in a real ISIM had run on this code. A
reporter's journal of 2026-11-25 has imsd read that card's ISIM and
register under its names on AT&T's network, without the line an
application that gives no result for the challenge leaves (imsd 1.2.4 by
the reporter's word; the fp6 journal's 2026-12-01-min-se-retry capture,
evidence/). §13 has what the journal shows.
This commit is contained in:
Jorijn van der Graaf 2026-12-01 14:22:05 +01:00
commit e3b94a8415
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
2 changed files with 16 additions and 7 deletions

View file

@ -625,9 +625,10 @@ Rules:
under the standing registration's names) and fresh registrations before under the standing registration's names) and fresh registrations before
which an ISIM that gave none at the bring-up is read again: giving its which an ISIM that gave none at the bring-up is read again: giving its
identity at the first, or none again at the first and its identity at identity at the first, or none again at the first and its identity at
the second. The reads' commands ran on two reporters' cards in the the second. On real cards: the reads' commands ran on two reporters'
journal's probe, §13; this daemon has sent no network a REGISTER with cards in the journal's probe, and a reporter's journal has this daemon
names it read from an ISIM, and no real ISIM an AUTHENTICATE); a read the US card's ISIM, register under its names on AT&T's network
and refresh that registration, with no `AKA:` line (§13)); a
Security-Server list `PersistState` writes empty (one with Security-Server list `PersistState` writes empty (one with
a quote, a backslash or a newline — neither KPN's nor O2's list has a quote, a backslash or a newline — neither KPN's nor O2's list has
one; the resume of such a file ran with a hand-edited empty key, one; the resume of such a file ran with a hand-edited empty key,
@ -3629,8 +3630,17 @@ the related code.
(2026-11-09: a journal has the answer in the second the REGISTER was (2026-11-09: a journal has the answer in the second the REGISTER was
sent, a dump of such an answer has no Reason, Warning or Retry-After) — sent, a dump of such an answer has no Reason, Warning or Retry-After) —
what TS 24.229 5.3.1.3 has an I-CSCF answer what TS 24.229 5.3.1.3 has an I-CSCF answer
when the HSS lookup "cannot be completed"; this daemon has not sent when the HSS lookup "cannot be completed". Under the card's own names
that network the card's own names. imsd registered on that network (the reporter's phone, 2026-11-25, imsd
1.2.4 by the reporter's word; the fp6 journal's `2026-12-01-min-se-retry`
capture): the `identity:` line with the three names above; a
`Security-Server` of one `ipsec-3gpp` mechanism (`hmac-sha-1-96`,
`aes-cbc`) to the two-cipher offer; `REGISTERED (fresh)` in the second
after `FRESH registration`, and no `AKA:` line; a 200 without a
Service-Route, with a `tel:` P-Associated-URI and a `sip:` one at
`one.att.net`, and a binding of `expires=2112`; two refreshes within
the hour. Each of the five calls placed in that boot ended `INVITE
final 422`.
- **A folded `WWW-Authenticate`** — the 401 to the unprotected REGISTER - **A folded `WWW-Authenticate`** — the 401 to the unprotected REGISTER
came with its `WWW-Authenticate` over four lines on KPN (2026-07-18) came with its `WWW-Authenticate` over four lines on KPN (2026-07-18)
and on Odido (2026-07-13), the nonce on the second (RFC 3261 7.3.1; one and on Odido (2026-07-13), the nonce on the second (RFC 3261 7.3.1; one

View file

@ -2875,8 +2875,7 @@ private:
// 7.1.2) and the IMS AKA context of an ISIM (TS 31.103 7.1.2), and both // 7.1.2) and the IMS AKA context of an ISIM (TS 31.103 7.1.2), and both
// answer RES, CK and IK under tag DB. // answer RES, CK and IK under tag DB.
// An ISIM that gives no result is not the end of the attempt: the same // An ISIM that gives no result is not the end of the attempt: the same
// card's USIM is asked, where 1.2.2 sent every challenge — // card's USIM is asked, where 1.2.2 sent every challenge.
// no AKA in a real ISIM has run on this code (AGENTS.md §5).
std::optional<imsd::aka::AkaResult> Authenticate(std::span<const std::uint8_t> rand16, std::span<const std::uint8_t> autn16) { std::optional<imsd::aka::AkaResult> Authenticate(std::span<const std::uint8_t> rand16, std::span<const std::uint8_t> autn16) {
std::string what; std::string what;
auto result = AkaIn(reg_.aid, rand16, autn16, what); auto result = AkaIn(reg_.aid, rand16, autn16, what);