What must be checked when verifying mdoc IssuerAuth?

IssuerAuth requires tagged MobileSecurityObjectBytes and a valid MSOISO/IEC 18013-5 §9.1.2.4MUSTRoles: wallet, verifier

Requirement as recorded in the ProtocolSoup registry

IssuerAuth verification requires tagged MobileSecurityObjectBytes and a valid MSO version, digest algorithm, document type, device key, namespaces, digests, and ordered validity interval.

Read §9.1.2.4 in ISO/IEC 18013-5

Self-test verdict

PassCommit 00bac3fEvaluated

This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.

Captured from production

Captured Commit 00bac3f

Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.

Published at , once every token, code and nonce in these exchanges has expired.

Run it live

Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.

Open the flow in Looking Glass

Tests

Implementation

Explainer

What this requires

ISO/IEC 18013-5 is not openly published, so this page quotes only the registry statement and describes what ProtocolSoup checks. IssuerAuth is a COSE_Sign1 whose payload is MobileSecurityObjectBytes: the MSO encoded as CBOR and wrapped in tag 24 (#6.24(bstr .cbor MobileSecurityObject)). A payload that is a bare, untagged MSO is refused.

Once the signature verifies, the decoded MSO must have version "1.0", digestAlgorithm "SHA-256", a non-empty docType, a deviceKey that is a valid public P-256 COSE_Key, and non-empty valueDigests with no empty namespace and every digest exactly 32 bytes. In validityInfo no timestamp may be zero, signed must be at or before validFrom, validFrom must be before validUntil, and an expectedUpdate, if present, must fall strictly after signed and before validUntil.

Why it exists

This is ProtocolSoup's explanation of the consequence, not the standard's stated rationale. The MSO is the only thing the issuer signs; every later check depends on it. If the verifier cannot rely on the digest algorithm it cannot recompute any valueDigests; a missing or malformed deviceKey leaves device authentication with nothing to verify against; and a validity interval that runs backwards makes any "is it current" decision meaningless. Accepting only the tag 24 form leaves one byte shape for the signed payload, so two verifiers cannot disagree about whether the same IssuerAuth is valid.

What non-compliance looks like

A verifier that accepts either a tagged or a bare MSO accepts IssuerAuth from issuers that others reject. One that skips structural checks accepts an MSO whose digestAlgorithm it cannot compute, a deviceKey that contains the private scalar, or a validFrom equal to validUntil.

How ProtocolSoup tests it

VerifyIssuerSigned validates the x5chain, verifies the COSE_Sign1 signature, then calls decodeMSOFromPayload, which requires tag 24, and validateMobileSecurityObject, which applies every check above, before it compares item digests and the current time.

TestVerifyIssuerSignedRejectsBareMSOPayload signs an MSO encoded without tag 24 and asserts verification fails. TestVerifyIssuerSignedRejectsInvalidMSOFields runs thirteen cases, each changing one field of an otherwise valid, correctly signed MSO: version "2.0", digest algorithm "SHA-384", empty docType, empty device key, device key with private material, empty valueDigests, empty namespace name, empty namespace digests, a 1-byte digest, signed after validFrom, validFrom equal to validUntil, and expectedUpdate equal to signed or to validUntil. Each asserts only that verification returns an error, not which check failed. Both tests call VerifyIssuerSignedWithKey, a variant that skips x5chain validation and has no production caller, but shares the same MSO decoding and validation functions.

Related requirements

All ISO/IEC 18013-5 requirements · OID4VCI protocol page