Repository Public
1{2 "id": "QYV-SVC-013",3 "title": "Identity signatures rest on the from-scratch ML-DSA only: no system-provided component, and the SLH-DSA half is optional at verification",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-327",8 "masvs": "MASVS-CRYPTO-1",9 "area": "wallet",10 "location": "Sources/QyvoraIdentity/Identity.swift:238",11 "tool": "manual-review",12 "rule": "",13 "status": "open",14 "fix_commit": "",15 "regression_test": "",16 "description": "Design observation. Key exchange is hybrid with a system primitive (X25519 from CryptoKit with ML-KEM-1024), and sealing uses CryptoKit AES-GCM cross-checked against the engine, but signatures of the identity (backups, transfer packages, rotation certificates, messages) are ML-DSA-87 from the unaudited engine, optionally with SLH-DSA from the same engine. `IdentitySignature.verify`, `RotationCertificate.verify`, `RotationChain.verify`, `HybridEnvelope.verifySignature` and `IdentityDetachedVerifier` default to `requireDual: false`, and the wallet service never sets it: a forger able to break (or exploit a defect of) the ML-DSA implementation does not need the SLH-DSA half, even for a rotation certificate issued with both. A verification defect in the engine would therefore defeat sender authentication of transfer packages and signed backups (their confidentiality still rests on the backup password and on system AES-GCM). This concerns the separate identity only, never Bitcoin or Ethereum transactions.",17 "recommendation": "Add a system-provided signature to the AND-composition (Ed25519 from CryptoKit, and CryptoKit ML-DSA-87 as a cross-check where the OS offers it), and require the dual signature wherever the signer produced one (rotation certificates, signed backups): record in the signed flags that verification must be dual.",18 "evidence": "",19 "fingerprint": "9274fa5a22aa",20 "reported": "2026-12-04",21 "owner": "integrator",22 "open_note": "Not changed in this pass. Adding a system-provided signature (Ed25519 from CryptoKit) to the identity and recording in the signed flags that verification must be dual change the identity and signature formats (version 1, already used by signed backups and transfer packages of builds 1 and 2): a format decision, not a cheap fix.",23 "proposed_disposition": "Owner decision. Proposed: in the next format version, add Ed25519 to the AND-composition and a signed flag 'dual required' set whenever the signer produced the SLH-DSA half; until then the confidentiality of backups and transfers rests on the backup password and system AES-GCM, and their authenticity on the from-scratch ML-DSA (verified against ACVP and Wycheproof vectors by the audit).",24 "updated": "2026-12-04",25 "resolution_note": "Still open. Not changed in this pass. Adding a system-provided signature (Ed25519 from CryptoKit) to the identity and recording in the signed flags that verification must be dual change the identity and signature formats (version 1, already used by signed backups and transfer packages of builds 1 and 2): a format decision, not a cheap fix. Proposed disposition: Owner decision. Proposed: in the next format version, add Ed25519 to the AND-composition and a signed flag 'dual required' set whenever the signer produced the SLH-DSA half; until then the confidentiality of backups and transfers rests on the backup password and system AES-GCM, and their authenticity on the from-scratch ML-DSA (verified against ACVP and Wycheproof vectors by the audit)."26}27