The ML-DSA fallback that keeps the dashboard green

An ML-DSA signer can lose access to fresh randomness and keep returning valid signatures because a deployment setting silently selects deterministic signing on error. Signature verification stays green while the service stops enforcing the operating policy its reviewers thought they had approved.

A valid signature can hide the wrong policy

Consider a Rust signing service whose application wrapper offers a configurable deterministic fallback when its randomness provider returns an error. NIST's ML-DSA standard defines both hedged and deterministic signing; deterministic operation is not inherently a cryptographic failure. The mistake is enabling that transition in a deployment whose security case requires fresh signing randomness, then counting the resulting signature as an ordinary success. Code review sees a fallible randomness call, a legitimate signing method and a handled error, while the deployment overlay supplies the policy that connects them. Interoperability tests miss the discrepancy because verification does not establish which signing policy was enforced.

Trace the error into the configuration

Run rg -n -i 'deterministic|fallback|try_fill_bytes|try_rng|unwrap_or_else'. from the repository root today, including the checked-in deployment configuration in the search. This is a triage command, not a universal detector: trace the matches from the randomness error through the signing wrapper to the effective configuration, and inspect the actual provider API when those names are absent. In an isolated test using a disposable key, make the provider adapter return an explicit error and submit a signing request through the normal application entry point. For a deployment requiring fresh randomness, assert that the response contains no signature and that a dedicated randomness-failure signal appears; a generic success counter cannot establish this. Also submit a previously valid signature to the verification path during the injection, because the test must establish that the failure boundary works as intended.

Memory safety is a different guarantee

Rust's memory-safety guarantees do not enforce this operational policy or prove secret-independent execution in rejection sampling and NTT arithmetic, and constant-time verification cannot attest to how a signature was generated.

Keep verification outside the failure boundary

Give signing its own bounded worker capacity and readiness state, keep verification independent of the signing randomness provider, and use a signing admission deadline of 250 ms as an explicit example policy to validate against the service's latency budget. Expiring that deadline must remove work that has not started; disconnecting an asynchronous caller does not necessarily stop a blocking worker. A provider failure should make the affected instance unavailable for new signing work while previously issued signatures remain verifiable, with traffic moving only to an authorized signer whose randomness path is healthy and whose dependency is actually independent. Apply the release rule at the application boundary: if injected randomness failure produces an unapproved signature or disables verification, reject the artifact together with its effective configuration. Where deterministic continuity is an accepted operating mode, give it explicit authorization and telemetry; otherwise, preserve verification and accept a visible signing outage instead of silently changing the security contract.

Back to MLDSASafe · Domains

← Back to MLDSASafe
Engineering & Architecture Brief

The ML-DSA fallback that keeps the dashboard green

An ML-DSA signer can lose access to fresh randomness and keep returning valid signatures because a deployment setting silently selects deterministic signing on error. Signature verification stays green while the service stops enforcing the operating policy its reviewers thought they had approved.

A valid signature can hide the wrong policy

Consider a Rust signing service whose application wrapper offers a configurable deterministic fallback when its randomness provider returns an error. NIST's ML-DSA standard defines both hedged and deterministic signing; deterministic operation is not inherently a cryptographic failure. The mistake is enabling that transition in a deployment whose security case requires fresh signing randomness, then counting the resulting signature as an ordinary success. Code review sees a fallible randomness call, a legitimate signing method and a handled error, while the deployment overlay supplies the policy that connects them. Interoperability tests miss the discrepancy because verification does not establish which signing policy was enforced.

Trace the error into the configuration

Run rg -n -i 'deterministic|fallback|try_fill_bytes|try_rng|unwrap_or_else'. from the repository root today, including the checked-in deployment configuration in the search. This is a triage command, not a universal detector: trace the matches from the randomness error through the signing wrapper to the effective configuration, and inspect the actual provider API when those names are absent. In an isolated test using a disposable key, make the provider adapter return an explicit error and submit a signing request through the normal application entry point. For a deployment requiring fresh randomness, assert that the response contains no signature and that a dedicated randomness-failure signal appears; a generic success counter cannot establish this. Also submit a previously valid signature to the verification path during the injection, because the test must establish that the failure boundary works as intended.

Memory safety is a different guarantee

Rust's memory-safety guarantees do not enforce this operational policy or prove secret-independent execution in rejection sampling and NTT arithmetic, and constant-time verification cannot attest to how a signature was generated.

Keep verification outside the failure boundary

Give signing its own bounded worker capacity and readiness state, keep verification independent of the signing randomness provider, and use a signing admission deadline of 250 ms as an explicit example policy to validate against the service's latency budget. Expiring that deadline must remove work that has not started; disconnecting an asynchronous caller does not necessarily stop a blocking worker. A provider failure should make the affected instance unavailable for new signing work while previously issued signatures remain verifiable, with traffic moving only to an authorized signer whose randomness path is healthy and whose dependency is actually independent. Apply the release rule at the application boundary: if injected randomness failure produces an unapproved signature or disables verification, reject the artifact together with its effective configuration. Where deterministic continuity is an accepted operating mode, give it explicit authorization and telemetry; otherwise, preserve verification and accept a visible signing outage instead of silently changing the security contract.

Related Architecture Specifications (PQCECOSYSTEM): medicaltpm.com · mlkemkey.com · mlkemstandard.com

More Technical Articles on mldsasafe.com

Benchmarking Bootloader Verification Delays: ML-DSA vs SLH-DSA vs Classical RSA-3072 →Remote Attestation for Sovereign Cloud Hyperscalers Using Post-Quantum TPM Quotes →ML-DSA Reference Architecture: Aligning Memory-Safe Implementations with FIPS 204, LAMPS X.509 Profiles and ACVP Validation →