The short answer
RFC 3163's mutual-authentication mode asks the client to sign the server's challenge and a fresh nonce of its own. The server's closing token signs both of those—and a third random value, R_C. The reason is order, not redundancy: the client already knew the server's challenge before it chose its own, so the server needs a value the client could not have anticipated. The fix is narrow. It binds the response to a fresh server contribution; it does not turn the mechanism into a secure channel.
Three random numbers, one asymmetry
At first glance the exchange looks like it is repeating itself. The server sends a random challenge. The client signs a transcript containing it. The server later signs a transcript containing it too. Why does the final server token need a third random number at all?
The August 2001 memo, “ISO/IEC 9798-3 Authentication SASL Mechanism,” gives a precise answer, and it is not about counting messages. It is about who knew which challenge at the moment each party chose its own random value. That order determines what a signature can actually prove.
RFC 3163 defines two mechanism-name families. 9798-U-<algorithm> authenticates the client to the server. 9798-M-<algorithm> adds mutual entity authentication: the client signs a server challenge, and the server signs a client challenge. The design leans on public-key signatures and X.509 certificates, with certificate-path processing folded into the verification steps.
The order of the signatures
In either mode, the server opens with a random value R_B. The client then generates R_A. Its TokenAB carries certificate material and a signature over R_A and R_B; it may also name the server. The server checks the signature, confirms that the returned R_B matches the challenge it sent, and checks an optional server identifier.
For unilateral authentication, that client token closes the core exchange. Mutual mode adds a server response. TokenBA2 carries the server's certificate and signs R_A, R_B and a new value, R_C. The client verifies the server's certificate and signature, checks that R_A and R_B match the earlier steps, and checks an optional client identity.
Section 7 explains why the new value earns its place. Including R_A in the client's signed data means the server cannot obtain that signature on data it selected before the mechanism began. The reverse direction is not symmetric. The client knew R_B before it chose R_A. Including R_B in the server's signature is necessary for the client to check the transcript, yet that value alone does not give the server the same protection. RFC 3163 therefore adds R_C to the server-signed TokenBA2.
This is a transcript-design rationale, not a general proof that every relay, replay or active attack falls. The RFC requires cryptographically strong random values and warns that predictable ones make the mechanism attackable. The added value closes the timing gap the memo describes; it cannot repair every property left outside the transcript.
A signature is not a protected session
The boundary is explicit. RFC 3163 says the mechanism supplies authentication only. It provides no integrity for later protocol messages and no confidentiality for their contents. Its security section claims protection only against passive eavesdropping and notes plainly that active attacks, including session hijacking, remain possible. The RFC's IESG note is blunter still: the mechanism takes on PKI complexity while discarding per-transmission integrity, and TLS can deliver the same effect with integrity benefits.
The certificate fields do not collapse these layers. RFC 3163 allows an authID in TokenAB when the access-control identity differs from the certificate signer's identity. Certificate-path acceptance, mechanism authentication, identity mapping and an application's authorization policy are four separate decisions. A valid signature verifies covered data under a key; it does not itself decide what an application should permit.
The worked IMAP example does not demonstrate the mutual exchange. RFC 3163 labels it a 9798-U client-authentication example and notes that Base64 framing and the + response prefix come from the IMAP profile, not from the SASL mechanism. The example is a protocol illustration, not evidence of deployment or interoperability.
Lu Heng's Note 20 offers an interpretive lens: separate the evidence a protocol actually checks from the broader claims made about identity or authority. Applied here, nonce correspondence and a verified signature belong to the transcript; channel protection and application permission require other controls. That is a reading lens, not a claim by RFC 3163's authors.
Sources
- RFC 3163 — ISO/IEC 9798-3 Authentication SASL Mechanism
- RFC Editor record for RFC 3163
- RFC 2222 — Simple Authentication and Security Layer
- RFC 4422 — Simple Authentication and Security Layer (SASL)
- RFC 2459 — Internet X.509 Public Key Infrastructure Certificate and CRL Profile
- RFC 5280 — Internet X.509 Public Key Infrastructure Certificate and CRL Profile
- RFC 2630 — Cryptographic Message Syntax
- RFC 8017 — PKCS #1: RSA Cryptography Specifications
- RFC 2060 — Internet Message Access Protocol, Version 4rev1
- RFC 2195 — IMAP/POP AUTHorize Extension for Simple Challenge/Response
- IANA SASL Mechanisms registry
- NIST FIPS PUB 196 — Entity Authentication Using Public Key Cryptography
- Lu Heng, Note 20 — On Reality Layers, Symbolic Power, and Why Clarity Feels So Hostile
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.






