SPB Git

Repository Public

SECURITY_AUDIT_REPORT.html 545.1 KB 584 lines html

1<!doctype html>2<html lang="en"><head><meta charset="utf-8">3<title>QYVORA — Security Audit Report</title>4<meta name="viewport" content="width=device-width, initial-scale=1">5<style>6:root { --bg:#14151a; --panel:#1c1e26; --line:#2c2f3b; --text:#e6e7ee; --muted:#9a9db0; --accent:#8a7dff; --accent2:#5aa0ff; --ok:#57c79a; --bad:#ff6b7d; --warn:#f0b35a; }7* { box-sizing:border-box; }8html { background:var(--bg); }9body { margin:0 auto; max-width:1180px; padding:40px 34px 80px; background:var(--bg); color:var(--text);10  font:15px/1.55 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }11header.cover { border-bottom:1px solid var(--line); padding-bottom:22px; margin-bottom:26px; }12header.cover .brand { letter-spacing:.32em; font-size:12px; color:var(--accent); font-weight:600; }13header.cover h1 { font-size:30px; margin:10px 0 6px; font-weight:650; letter-spacing:-.01em; }14header.cover .sub { color:var(--muted); font-size:14px; }15h2 { font-size:21px; margin:44px 0 12px; padding-top:18px; border-top:1px solid var(--line); font-weight:650; }16h3 { font-size:16.5px; margin:30px 0 8px; color:#cfd0ff; font-weight:600; }17h4 { font-size:14px; margin:22px 0 6px; color:var(--accent2); font-weight:600; }18p { margin:8px 0 12px; }19ul { margin:8px 0 14px; padding-left:22px; } li { margin:4px 0; }20.note, .warn { border-left:3px solid var(--accent); background:var(--panel); padding:12px 16px; margin:14px 0; border-radius:0 6px 6px 0; }21.warn { border-left-color:var(--warn); }22table { border-collapse:collapse; width:100%; margin:10px 0 18px; font-size:13.5px; }23th, td { text-align:left; vertical-align:top; padding:6px 9px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }24th { color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid #3a3d4d; }25table.small { font-size:12.5px; } table.small td, table.small th { padding:4px 7px; }26table.kv td:first-child { color:var(--muted); width:230px; white-space:nowrap; }27table.num td:not(:first-child) { font-variant-numeric:tabular-nums; }28.s-critical, .s-high, .v-FAILED, .v-fail { color:var(--bad); font-weight:600; }29.s-medium, .v-partial, .v-NOT { color:var(--warn); }30.s-fixed, .v-passed, .v-pass, .v-RUN, .v-PASSED { color:var(--ok); }31footer { margin-top:50px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:12.5px; }32code { font:12.5px ui-monospace, "SF Mono", Menlo, monospace; }33@page { size:A4; margin:16mm 14mm 18mm; @bottom-center { content:"QYVORA — internal technical audit, not an independent certification · page " counter(page) " / " counter(pages); font-size:8pt; color:#666; } }34@media print {35  :root { --bg:#fff; --panel:#f3f2fb; --line:#d6d6e2; --text:#16171d; --muted:#565a6e; --accent:#4b3fd6; --accent2:#2f62c9; --ok:#177a52; --bad:#b4233a; --warn:#8a5a00; }36  html, body { background:#fff; }37  body { max-width:none; padding:0; font-size:9.6pt; line-height:1.42; }38  header.cover h1 { font-size:20pt; } h2 { font-size:14pt; margin-top:22pt; break-after:avoid; } h3 { font-size:11.5pt; color:#3b32b0; break-after:avoid; } h4 { font-size:10pt; break-after:avoid; }39  table { font-size:8.2pt; } table.small { font-size:7.4pt; } th { font-size:7pt; }40  tr { break-inside:avoid; } .note, .warn { break-inside:avoid; }41}42</style></head><body>43<header class="cover"><div class="brand">QYVORA</div><h1>Security Audit Report</h1><div class="sub">Version 1.0.0 (3) · commit b60686dbecb2 · 2026-12-05 · full run</div></header>44<h2>1. Summary</h2>45<div class="note">Internal automated technical audit run on the project&#x27;s own infrastructure. Not an independent certification; no independent cryptographic review has taken place. Post-quantum cryptography protects the local vault, backups, transfers and the separate identity; it does not make Bitcoin or Ethereum transactions quantum-resistant.</div>46<table class="kv"><tr><td>Product</td><td>QYVORA — non-custodial iOS wallet (Bitcoin, Ethereum), cryptographic engine written in Swift</td></tr><tr><td>Audited version</td><td>1.0.0 (build 3), from App/project.yml</td></tr><tr><td>Git commit</td><td>b60686dbecb225160e700666eff4cd3be5af0748 on main (2026-12-05T09:31:17-05:00) — clean working tree</td></tr><tr><td>Date of the run (UTC)</td><td>2026-12-05T14:31:23Z</td></tr><tr><td>Kind of run</td><td>FULL</td></tr><tr><td>Machine</td><td>MacBookPro-de-simon-pierre-2.local (arm64), macOS 27.3, Xcode 27.2 Build version 27B52, Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4.1.1)</td></tr><tr><td>Command</td><td>Scripts/security-audit.sh --full --nodes M3U96a M3U96b M2U64 --timing-node M4M64a</td></tr><tr><td>Duration</td><td>53 min 35 s</td></tr><tr><td>Release gate</td><td>PASSED — 0 blocking condition(s), 6 warning(s)</td></tr></table>47<p>20 tools and check suites ran, 0 did not run and 0 failed. 9 570 510 434 test cases were executed in 1 432 recorded checks. 165 findings are recorded: 16 open, 76 fixed, 13 accepted risk, 60 false positive.</p>48<table class="num"><thead><tr><th>Severity</th><th>Open</th><th>Fixed</th><th>Accepted risk</th><th>False positive</th><th>Total</th></tr></thead><tbody><tr><td>Critical</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>High</td><td>0</td><td>9</td><td>0</td><td>4</td><td>13</td></tr><tr><td>Medium</td><td>3</td><td>29</td><td>0</td><td>14</td><td>46</td></tr><tr><td>Low</td><td>7</td><td>35</td><td>6</td><td>40</td><td>88</td></tr><tr><td>Info</td><td>6</td><td>3</td><td>7</td><td>2</td><td>18</td></tr><tr><td>Total</td><td>16</td><td>76</td><td>13</td><td>60</td><td>165</td></tr></tbody></table>49<h4>Checks executed, by area</h4>50<table class="num"><thead><tr><th>Area</th><th>Recorded checks</th><th>Cases</th><th>Failed</th><th>Checks not run</th></tr></thead><tbody><tr><td>binary</td><td>34</td><td>31</td><td>0</td><td>3</td></tr><tr><td>conformance</td><td>397</td><td>20 022</td><td>0</td><td>1</td></tr><tr><td>differential</td><td>138</td><td>2 603 147</td><td>0</td><td>0</td></tr><tr><td>engine</td><td>187</td><td>1 160</td><td>0</td><td>0</td></tr><tr><td>fuzz</td><td>283</td><td>9 178 394 835</td><td>0</td><td>0</td></tr><tr><td>hygiene</td><td>7</td><td>7</td><td>0</td><td>0</td></tr><tr><td>property</td><td>100</td><td>381 617 278</td><td>0</td><td>0</td></tr><tr><td>sanitizer</td><td>26</td><td>1 099</td><td>0</td><td>2</td></tr><tr><td>secrets</td><td>3</td><td>289</td><td>0</td><td>0</td></tr><tr><td>static</td><td>7</td><td>364</td><td>4</td><td>0</td></tr><tr><td>timing</td><td>195</td><td>7 866 102</td><td>0</td><td>28</td></tr><tr><td>wallet</td><td>21</td><td>41</td><td>0</td><td>0</td></tr><tr><td>wycheproof</td><td>34</td><td>6 059</td><td>0</td><td>0</td></tr></tbody></table>51<p>&#x27;Failed&#x27; in the areas static, binary and framework counts rules or controls that reported something; what they reported is triaged in the findings. In the areas conformance, wycheproof, differential, property, fuzz, engine and timing a failed case blocks the release gate.</p>52<h2>2. Scope and method</h2>53<p>Scope: the Swift package at the repository root — cryptographic engine (QyvoraMath, QyvoraKeccak, QyvoraSymmetric, QyvoraMLKEM, QyvoraMLDSA, QyvoraSLHDSA, QyvoraSecp256k1, QyvoraCrypto), protocol and service modules (QyvoraCore, QyvoraBitcoin, QyvoraEthereum, QyvoraStorage, QyvoraNetworking, QyvoraVault, QyvoraIdentity, QyvoraRecovery, QyvoraQuantumShield, QyvoraMigration, QyvoraWallet, QyvoraUI) — and the iOS application (App/). The audit engine lives in security/ and re-runs with one command.</p>54<ul><li>Cryptography: replay of official vectors (NIST ACVP and CAVP, RFC, BIP, Wycheproof), differential tests against independent implementations, property and invariant tests, mutation fuzzing with crash capture, sanitizer builds, statistical timing tests and inspection of the compiled code, manual source review.</li><li>Wallet and application: source review of key storage, authentication, backup, networking and transaction construction; OWASP MASVS v2 and MASTG, Coinspect Wallet Security Framework; static analysis (Semgrep with project rules, mobsfscan, repository checks, Dontrust); secret scanning of the tree and of the Git history (Gitleaks); static analysis of the compiled application (MobSF, own binary checks).</li><li>Findings: one record per problem with root cause, severity (higher of the CVSS v3.1 band and the wallet-impact class of security/policies/severity-policy.md), location, status, fix commit and regression test. Tool findings are triaged in security/policies/triage.json with a written justification.</li><li>Release gate (security/policies/release-gate.json): blocks on an unresolved critical or high finding, a failed cryptographic test, a fuzzing crash, a secret, a failed or missing required tool.</li><li>No source code leaves the project&#x27;s machines: Semgrep and mobsfscan run with the network denied, MobSF runs in a container without network on the project&#x27;s server, rule packs and vectors are downloaded as public files only.</li></ul>55<h2>3. Tools and real coverage</h2>56<table class="small"><thead><tr><th>Tool</th><th>Status</th><th>Version</th><th>Duration</th><th>Findings</th><th>Reason when not run</th></tr></thead><tbody><tr><td>vectors</td><td><span class="v-passed">RUN</span></td><td>security/vectors/MANIFEST.json</td><td>0.1 s</td><td>0</td><td></td></tr><tr><td>engine-tests</td><td><span class="v-passed">RUN</span></td><td>Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4…</td><td>2 min 15 s</td><td>0</td><td></td></tr><tr><td>swift-audit</td><td><span class="v-passed">RUN</span></td><td>Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4…</td><td>8 min 59 s</td><td>0</td><td></td></tr><tr><td>ct-machine-code</td><td><span class="v-passed">RUN</span></td><td>Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4…</td><td>2.4 s</td><td>0</td><td></td></tr><tr><td>dudect-timing</td><td><span class="v-passed">RUN</span></td><td>qytiming (security/tests/Sources/qytiming)</td><td>3 min 02 s</td><td>0</td><td></td></tr><tr><td>qyfuzz</td><td><span class="v-passed">RUN</span></td><td>qyfuzz (security/tests), own mutation engine</td><td>30 min 35 s</td><td>0</td><td></td></tr><tr><td>sanitizers</td><td><span class="v-passed">RUN</span></td><td>swift-driver version: 1.148.6 Apple Swift version 6.3.3 (sw…</td><td>10 min 55 s</td><td>0</td><td></td></tr><tr><td>semgrep</td><td><span class="v-passed">RUN</span></td><td>1.172.0</td><td>45.8 s</td><td>54</td><td></td></tr><tr><td>gitleaks</td><td><span class="v-passed">RUN</span></td><td>8.30.1</td><td>10.1 s</td><td>0</td><td></td></tr><tr><td>mobsfscan</td><td><span class="v-passed">RUN</span></td><td>1.2.0</td><td>5.1 s</td><td>12</td><td></td></tr><tr><td>static-checks</td><td><span class="v-passed">RUN</span></td><td>repository checks (security/audit/runners/static_checks.py)</td><td>0.7 s</td><td>2</td><td></td></tr><tr><td>coinspect-wsf</td><td><span class="v-passed">RUN</span></td><td>commit 9b707066ffb37182683bd4e36f19cfd891694a54 (2026-09-28)</td><td>1.2 s</td><td>0</td><td></td></tr><tr><td>owasp-masvs</td><td><span class="v-passed">RUN</span></td><td>MASVS v2 control set incl. MASVS-PRIVACY, repository commit…</td><td>0.6 s</td><td>0</td><td></td></tr><tr><td>owasp-mastg</td><td><span class="v-passed">RUN</span></td><td>repository commit 6ebc1aa2b280bffbf5832e0849f079ce44146b6e …</td><td>1.0 s</td><td>0</td><td></td></tr><tr><td>wallet-audit</td><td><span class="v-passed">RUN</span></td><td>1</td><td>0.4 s</td><td>0</td><td></td></tr><tr><td>dontrust</td><td><span class="v-passed">RUN</span></td><td>0.1.0 (892a29fc9e5f)</td><td>0.7 s</td><td>4</td><td></td></tr><tr><td>ipa-build</td><td><span class="v-passed">RUN</span></td><td>Xcode 27.2 Build version 27B52</td><td>1 min 10 s</td><td>0</td><td></td></tr><tr><td>mobsf</td><td><span class="v-passed">RUN</span></td><td>v4.6.9</td><td>19.2 s</td><td>5</td><td></td></tr><tr><td>binary-checks</td><td><span class="v-passed">RUN</span></td><td>Xcode command-line tools: Xcode 27.2 Build version 27B52</td><td>0.7 s</td><td>1</td><td></td></tr><tr><td>ct-machine-code-ios</td><td><span class="v-passed">RUN</span></td><td>Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4…</td><td>2.5 s</td><td>0</td><td></td></tr></tbody></table>57<h4>vectors</h4>58<p>SHA-256 of every third-party vector file (Wycheproof, BIP vectors) against the manifest written at fetch time. The NIST ACVP/CAVP files committed with the engine tests carry their checksums in their own README files and are not re-hashed here.</p>59<table class="kv"><tr><td>files</td><td>49</td></tr><tr><td>mismatches</td><td>0</td></tr></table>60<h4>engine-tests</h4>61<p>Every test target of the root Swift package (cryptographic engine, Bitcoin, Ethereum, vault, identity, recovery, networking parsers, wallet service), release build, macOS. Includes the vectors embedded in the test sources (RFC 8439, RFC 5869, RFC 6979, RFC 9106, BIP-84, BIP-143, BIP-174, BIP-380, FIPS examples) and the regression tests of the fixed findings. Large-data (LDT) hash vectors included. Live-network tests are opt-in and are not run by the audit.</p>62<h4>swift-audit</h4>63<p>Audit-specific executable tests (security/tests): replay of the NIST ACVP/CAVP files with counts per parameter set, Wycheproof vectors at the pinned revision, differential tests against independent implementations (CryptoKit, CommonCrypto, the Rust library spb-quantum-crypto, libsecp256k1 and other Python references — test environment only), property and invariant tests, and replay of the fuzzing corpus and of past crash inputs. Random cases are generated from logged seeds.</p>64<h4>ct-machine-code</h4>65<p>Counts conditional branch instructions in the functions listed in security/policies/constant-time-functions.json: arm64 release code of the Swift package built on macOS with this toolchain (the iOS application binary is checked by ct-machine-code-ios when the archive is built). A count at or below the reviewed maximum means no new branch appeared; it does not prove the absence of other leaks (variable-time instructions, memory access patterns, functions inlined into callers that are not listed).</p>66<table class="kv"><tr><td>functions in policy</td><td>65</td></tr><tr><td>functions checked</td><td>51</td></tr><tr><td>not visible</td><td>14</td></tr><tr><td>above maximum</td><td>0</td></tr></table>67<h4>dudect-timing</h4>68<p>dudect-style test: two input classes timed in random interleaved order, Welch t-test on raw and percentile-cropped measurements, threshold |t| &gt; 4.5, confirmed by a second run. Both classes read their inputs through the same working buffers, from one block of memory whose slots are dealt to the classes at random, and the timed region is separated from the preparation of the inputs by a serialising barrier (dsb sy, isb), so that only the contents differ (QYV-AUD-005). Controls: an early-exit comparison and a decapsulation followed by a loop whose length is a byte of the shared secret must be detected; identical contents, two sets of random AES keys and two sets of valid ML-KEM ciphertexts must not (the asymmetric preparation that produced QYV-AUD-005 is kept as an informational measurement). Operations: ConstantTime.equal (position and number of differing bits), AES-GCM and ChaCha20-Poly1305 tag verification, AES key dependence, secp256k1 scalar multiplication, ECDSA and BIP-340 signing, ML-KEM decapsulation (valid against invalid ciphertexts; one ciphertext against many under one key), Ed25519 public-key derivation and signing (fixed against random seeds, fixed against random nonces) and SLIP-0010 derivation through the public interface; and, in a second build of the tool with testability, the Ed25519 internals with chosen operands (base-point and variable-base multiplication with scalars 0, 1, 2^252, 2^256-1 and a repeated scalar; field multiplication, squaring, inversion and canonical encoding; scalar reduction and multiply-add), measured with the data-independent-timing flag set as the production entry points set it (verdict) and without it (informational, `info-nodit-`). Two informational measurements compare one ML-KEM key against many: they include the public matrix expansion (rejection sampling on the public seed, variable-time by specification) and are reported without verdict. Not tested this way: ML-DSA and SLH-DSA signing (ML-DSA uses rejection sampling whose iteration count is public by design; SLH-DSA is hash-based), Argon2id and HKDF (their running time depends on public parameters and lengths; Argon2id&#x27;s memory addressing is data-dependent by specification), X25519 (CryptoKit). Statistical evidence on one machine and one build: not a proof; Swift offers no constant-time guarantee; no power or electromagnetic analysis.</p>69<table class="kv"><tr><td>machine</td><td>MacStudnpierre6</td></tr><tr><td>where</td><td>M4M64a (1-minute load 2.31 before the run)</td></tr><tr><td>scale</td><td>1</td></tr><tr><td>seed</td><td>2141648161651245875</td></tr><tr><td>threshold</td><td>4</td></tr><tr><td>dit supported</td><td>True</td></tr><tr><td>dit enabled</td><td></td></tr><tr><td>serialised timed region</td><td>True</td></tr><tr><td>targets</td><td>65</td></tr><tr><td>ed25519 internals</td><td>run (second build with QY_TIMING_INTERNALS=1 and -enable-testing)</td></tr></table>70<h4>qyfuzz</h4>71<p>Mutation-based fuzzing of 93 harnesses (parsers, decoders and verifiers that take untrusted input) with a seeded generator, a committed seed corpus and crash capture in worker processes. libFuzzer is not available in the Xcode Swift toolchain. The plain build has no coverage feedback (outcome classes only). The instrumented build (built and run) keeps inputs that reach new control-flow edges, measured with LLVM SanitizerCoverage inline counters and read by our own engine, under AddressSanitizer. A run without a crash shows that no trap was found in the executions made; it is not a proof of absence.</p>72<table class="kv"><tr><td>mode</td><td>full</td></tr><tr><td>targets</td><td>93</td></tr><tr><td>executions</td><td>9 178 114 682</td></tr><tr><td>seconds</td><td>1 835</td></tr><tr><td>crashes</td><td>0</td></tr><tr><td>hangs</td><td>0</td></tr><tr><td>unique crash sites</td><td>0</td></tr><tr><td>libfuzzer</td><td>unavailable: swiftc refuses -sanitize=fuzzer in the Xcode toolchain (checked on the laptop, Swift 6.4, and on the nodes, Swift 6.3)</td></tr><tr><td>coverage guided build</td><td>built and run</td></tr></table>73<h4>sanitizers</h4>74<p>AddressSanitizer on the fuzz-replay tests and the parser/crypto/storage suites; ThreadSanitizer on the actor services and the concurrent SLH-DSA suite; both on the Ed25519, Solana and TRON suites; UBSan accepted but nearly void for pure Swift. Sanitizers see only what the tests execute. Not executed: address/FuzzReplayTests: BUILD FAILED; undefined/FuzzReplayTests: BUILD FAILED.</p>75<table class="kv"><tr><td>host</td><td>MacStudnpierre2</td></tr><tr><td>where</td><td>M3U96a</td></tr><tr><td>swift</td><td>swift-driver version: 1.148.6 Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)</td></tr><tr><td>passed</td><td>24</td></tr><tr><td>failed</td><td>0</td></tr><tr><td>sanitizer reports</td><td>0</td></tr><tr><td>tests executed</td><td>1 099</td></tr></table>76<h4>semgrep</h4>77<p>Semgrep community engine on Swift (support level: experimental; single-file, no cross-function data flow). Custom rules in security/policies/semgrep (counts in the metrics): syntax-tree pattern rules for UserDefaults writes, non-constant-time ==/!= on tag/MAC/secret names and trap calls; the other rules are regex rules that match text line by line, comments included, and cannot follow a value across lines or through renaming (`try! $X` had to be a regex: the Swift pattern also matches `try` and `try?`). Semgrep&#x27;s Swift parser rejects some Swift 6 constructs of this code base (#Preview, ~Copyable, nonisolated(unsafe), `do throws`): in the files listed under files_with_parse_errors the pattern rules see a partial tree and may miss matches; regex rules are unaffected. They catch constructs by name and shape: logging calls mentioning secret-named values, pasteboard use outside QClipboard, generators other than SystemRandom, http:// literals, server-trust overrides, weak Keychain classes, file writes outside FileStore, try!/fatalError/precondition in input-handling modules, runtime debug switches. They do not prove the absence of a leak: a secret held in a neutrally named variable, a timing leak that is not an == on a named tag, or a trap by array index or arithmetic overflow is invisible to them (covered by the fuzzing, timing and review parts of the audit). Registry packs (rules only, cached locally): p/swift and p/secrets; the p/mobsfscan pack is the rule set of mobsfscan, which the mobsfscan runner executes, so it is not run a second time here.</p>78<table class="kv"><tr><td>custom rules</td><td>23</td></tr><tr><td>custom rules pattern</td><td>4</td></tr><tr><td>custom rules regex</td><td>19</td></tr><tr><td>rule tests passed</td><td>23</td></tr><tr><td>rule tests total</td><td>23</td></tr><tr><td>files scanned</td><td>452</td></tr><tr><td>raw matches</td><td>384</td></tr><tr><td>findings</td><td>54</td></tr><tr><td>network</td><td>denied by sandbox-exec (deny network*)</td></tr><tr><td>pinned version</td><td>1.172.0</td></tr><tr><td>version matches pin</td><td>True</td></tr></table>79<h4>gitleaks</h4>80<p>Gitleaks default rule set (API keys, tokens, private-key blocks, generic high-entropy assignments) plus one QYVORA rule for BIP-32 extended private keys, over the working tree and over the patches of every commit reachable from any reference. Pattern and entropy based: it does not recognise a BIP-39 mnemonic written as plain words, a raw 32-byte hex key without a telling name, or a secret inside a compressed or binary file. The allowlist is limited to published test-vector files, each entry justified in security/policies/gitleaks.toml.</p>81<table class="kv"><tr><td>working tree hits</td><td>0</td></tr><tr><td>history hits</td><td>0</td></tr><tr><td>bytes scanned working tree</td><td>32 772 027</td></tr><tr><td>commits scanned</td><td>287</td></tr><tr><td>commits reachable all refs</td><td>321</td></tr><tr><td>commits reachable non merge</td><td>287</td></tr><tr><td>note commits</td><td>Gitleaks scans the patch of each non-merge commit; merge commits carry no patch of their own.</td></tr><tr><td>allowlist entries</td><td>16</td></tr><tr><td>canary detected</td><td>True</td></tr><tr><td>pinned version</td><td>8.30.1</td></tr><tr><td>version matches pin</td><td>True</td></tr></table>82<h4>mobsfscan</h4>83<p>mobsfscan&#x27;s iOS rule set for Swift is small: 24 Semgrep rules (weak hashes and TLS versions, UIWebView, logging calls, keychain accessibility, biometric ACLs, hard-coded secret names, random generators, pasteboard) plus 2 Objective-C pattern rules that do not apply to this code base. It runs on source text only, with the same Swift parsing limits as Semgrep (files with Swift 6 constructs are parsed partially). It knows nothing about wallets or about cryptography written from scratch.</p>84<table class="kv"><tr><td>swift rules</td><td>24</td></tr><tr><td>located matches</td><td>10</td></tr><tr><td>absent best practices</td><td>2</td></tr><tr><td>network</td><td>denied by sandbox-exec (deny network*)</td></tr><tr><td>pinned version</td><td>1.2.0</td></tr><tr><td>version matches pin</td><td>True</td></tr></table>85<h4>static-checks</h4>86<p>Text-level checks of this code base: single entropy source, no secret-named value in logging calls, pasteboard only through QClipboard (local-only, expiring), no secret-named UserDefaults key, privacy cover wired to the scene phase, privacy-sensitive seed views, ATS left at its default, URLSession hardening and redirect refusal, endpoint acceptance enforced in the engine, Keychain accessibility classes, file protection and backup exclusion, mainnet build flag, debug-only code fenced by #if DEBUG, Info.plist exposure keys; since 2026-12-05 also: the application signs only through the calls that take the acknowledged critical warnings, no consent is set by the code, a watch-only package is imported only with its compared code, payment requests go through the bounded parser and never past the form, dollar ceilings are converted only by the cross-checked price function. They show the presence or absence of constructs in the source, not run-time behaviour.</p>87<table class="kv"><tr><td>checks</td><td>28</td></tr><tr><td>checks failed</td><td>0</td></tr><tr><td>checks not run</td><td>0</td></tr><tr><td>engine files</td><td>150</td></tr><tr><td>app files</td><td>88</td></tr><tr><td>findings</td><td>2</td></tr><tr><td>failed cases</td><td>0</td></tr></table>88<h4>coinspect-wsf</h4>89<p>All 50 controls of the WSC and all 34 tests of the WSB are mapped. The framework targets web3 wallets with dApp connectivity and browser extensions: those items are not applicable to a native iOS wallet without any dApp surface (an automated check confirms the absence). The WSB is designed as a black-box, interaction-based benchmark; here it is assessed by source review of the service layer and of the UI components. Items that depend on application screens not finished at the audited commit are `partial` or `not-assessed` and must be re-assessed on the final commit. This is a self-assessment against a public checklist, not a Coinspect review or ranking.</p>90<table class="kv"><tr><td>pass</td><td>28</td></tr><tr><td>fail</td><td>3</td></tr><tr><td>partial</td><td>8</td></tr><tr><td>not applicable</td><td>45</td></tr><tr><td>not assessed</td><td>0</td></tr><tr><td>stale evidence</td><td>0</td></tr><tr><td>checks run</td><td>45</td></tr><tr><td>checks unmet</td><td>0</td></tr><tr><td>checks inconclusive</td><td>0</td></tr><tr><td>unreferenced failures</td><td>0</td></tr><tr><td>total</td><td>84</td></tr></table>91<h4>owasp-masvs</h4>92<p>All 24 MASVS v2 controls are assessed by source review, with automated checks over the sources, Info.plist and entitlements that are re-evaluated at every run. MASVS is not a certification scheme and this is an internal self-assessment: no dynamic analysis on a device (no runtime instrumentation, no traffic interception, no jailbroken-device test) was performed. Controls that depend on unfinished screens are `partial`; evidence named `runner:&lt;tool&gt;` is supplied by that tool&#x27;s result in the same audit run.</p>93<table class="kv"><tr><td>pass</td><td>12</td></tr><tr><td>fail</td><td>4</td></tr><tr><td>partial</td><td>5</td></tr><tr><td>not applicable</td><td>3</td></tr><tr><td>not assessed</td><td>0</td></tr><tr><td>stale evidence</td><td>0</td></tr><tr><td>checks run</td><td>37</td></tr><tr><td>checks unmet</td><td>0</td></tr><tr><td>checks inconclusive</td><td>0</td></tr><tr><td>unreferenced failures</td><td>0</td></tr><tr><td>total</td><td>24</td></tr></table>94<h4>owasp-mastg</h4>95<p>All 129 iOS tests of the MASTG at the pinned commit are listed. The current atomic tests that can be decided from the source, Info.plist and entitlements are assessed here, most with an automated check re-evaluated at every run. Tests on the compiled binary are delegated to the binary checks and MobSF runners; secret-detection tests to Gitleaks, Semgrep and Dontrust. Dynamic tests (runtime instrumentation with Frida, traffic interception, inspection of an installed application on a device) are NOT performed and are reported as not assessed. Deprecated v1 tests are listed as not applicable, for traceability.</p>96<table class="kv"><tr><td>pass</td><td>34</td></tr><tr><td>fail</td><td>2</td></tr><tr><td>partial</td><td>4</td></tr><tr><td>not applicable</td><td>59</td></tr><tr><td>not assessed</td><td>30</td></tr><tr><td>stale evidence</td><td>0</td></tr><tr><td>checks run</td><td>46</td></tr><tr><td>checks unmet</td><td>0</td></tr><tr><td>checks inconclusive</td><td>0</td></tr><tr><td>unreferenced failures</td><td>0</td></tr><tr><td>total</td><td>129</td></tr></table>97<h4>wallet-audit</h4>98<p>Source review of the service layer (QyvoraWallet, QyvoraVault, QyvoraStorage, QyvoraNetworking, QyvoraBitcoin, QyvoraEthereum, QyvoraRecovery, QyvoraIdentity), of the UI components (QyvoraUI) and of the application sources present at the audited commit, with automated checks re-evaluated at every run. The application screens for sending, reviewing, unlocking and displaying the phrase were not finished: items that depend on them say so. No dynamic test on a device, no real funds.</p>99<table class="kv"><tr><td>pass</td><td>78</td></tr><tr><td>fail</td><td>0</td></tr><tr><td>partial</td><td>14</td></tr><tr><td>not applicable</td><td>2</td></tr><tr><td>not assessed</td><td>0</td></tr><tr><td>stale evidence</td><td>0</td></tr><tr><td>checks run</td><td>24</td></tr><tr><td>checks unmet</td><td>1</td></tr><tr><td>checks inconclusive</td><td>0</td></tr><tr><td>unreferenced failures</td><td>0</td></tr><tr><td>total</td><td>94</td></tr></table>100<h4>dontrust</h4>101<p>Dontrust 0.1.0: 21 line-regex rules (entropy 8, keys 3, crypto 2, memory 2, firmware 2, supply-chain 3, build 1) run on a copy of Package.swift, Sources/, App/ and Scripts/. Only 2 rules declare Swift (secret in a logging call, hard-coded key material); the others are written for C/Python/firmware code and are structurally unable to match most Swift constructs, so a clean result on them proves little. `require` rules report the absence of a safeguard text anywhere in scope. No data flow, no build, no binary inspection. Raw hits are review locations, each triaged in security/policies/dontrust.json.</p>102<table class="kv"><tr><td>scanned files</td><td>252</td></tr><tr><td>staged files</td><td>254</td></tr><tr><td>rules loaded</td><td>21</td></tr><tr><td>rules skipped</td><td>5</td></tr><tr><td>raw hits</td><td>4</td></tr><tr><td>hits triaged</td><td>3</td></tr><tr><td>hits untriaged</td><td>1</td></tr><tr><td>node</td><td>v26.13.0</td></tr></table>103<h4>ipa-build</h4>104<p>Unsigned Release archive (xcodebuild archive, iphoneos SDK, arm64, CODE_SIGNING_ALLOWED=NO). It is the same compiler configuration as the distributed build, but it is not the signed App Store binary: no code signature, no embedded provisioning profile, entitlements not applied.</p>105<table class="kv"><tr><td>commit</td><td>b60686dbecb225160e700666eff4cd3be5af0748</td></tr><tr><td>dirty</td><td></td></tr><tr><td>reused previous build</td><td></td></tr><tr><td>ipa bytes</td><td>4 904 081</td></tr><tr><td>ipa sha256</td><td>1771d2ab1d9a3c86d3aaaddaf8658b995b250336538296a09d56c7180558c93f</td></tr><tr><td>executable bytes</td><td>11 200 984</td></tr><tr><td>signed</td><td></td></tr></table>106<h4>mobsf</h4>107<p>MobSF static analysis of the unsigned Release .ipa (Mach-O arm64 binary, Info.plist, bundle files). It inspects binary protections, imported symbols/APIs, Info.plist permissions and ATS, embedded strings, URLs, e-mails and secret patterns, and the files of the bundle. It does NOT analyse Swift source logic, it does not run the application (no dynamic analysis: that needs a jailbroken device or Corellium), and on a Linux host the checks that need macOS tools are skipped by MobSF. Because the container has no network, MobSF&#x27;s online lookups (App Store metadata, domain reputation and geolocation, update check) do not happen. The archive is unsigned: code-signature, provisioning-profile and applied-entitlement checks do not apply.</p>108<table class="kv"><tr><td>host</td><td>BHS128 (ssh)</td></tr><tr><td>docker version</td><td>29.10.1</td></tr><tr><td>image</td><td>opensecurity/mobile-security-framework-mobsf@sha256:14646df326970ba21558c3c67e0a4ab9e9d92f7938ecb7b1a780c8cc536e16b0</td></tr><tr><td>image pulled now</td><td></td></tr><tr><td>container network</td><td>none</td></tr><tr><td>ipa sha256</td><td>1771d2ab1d9a3c86d3aaaddaf8658b995b250336538296a09d56c7180558c93f</td></tr><tr><td>ipa commit</td><td>b60686dbecb225160e700666eff4cd3be5af0748</td></tr><tr><td>ipa dirty tree</td><td></td></tr><tr><td>mobsf version</td><td>v4.6.9</td></tr><tr><td>file name</td><td>Qyvora.ipa</td></tr><tr><td>sha256</td><td>1771d2ab1d9a3c86d3aaaddaf8658b995b250336538296a09d56c7180558c93f</td></tr><tr><td>bundle id</td><td>ai.spboucher.qyvora</td></tr><tr><td>app version</td><td>1.0.0</td></tr><tr><td>build</td><td>3</td></tr><tr><td>sdk name</td><td>iphoneos27.2</td></tr><tr><td>min os version</td><td>26.0</td></tr></table>109<h4>binary-checks</h4>110<p>Static inspection of the unsigned Release build with the Xcode command-line tools (otool, nm, strings, codesign, dwarfdump, plutil): compiler/linker hardening flags, linked libraries, symbols, Info.plist, entitlements file, bundle content, embedded strings (secret patterns, recovery phrases, URLs). It proves properties of the binary that was built here, not of the binary Apple distributes (signing, FairPlay encryption and App Store processing happen later). String scanning finds literal secrets only; it says nothing about run-time behaviour. No dynamic analysis, no jailbroken-device test.</p>111<table class="kv"><tr><td>executable sha256</td><td>7deb690bc97c70d67f51d0575d1cebb2a36368bd4de6a6cb7ce7d9014fa7435c</td></tr><tr><td>imported symbols</td><td>2 422</td></tr><tr><td>linked libraries</td><td>37</td></tr><tr><td>cryptid</td><td>0</td></tr><tr><td>strings scanned</td><td>32 190</td></tr><tr><td>source file paths in binary</td><td>104</td></tr><tr><td>mnemonic like strings</td><td>1</td></tr><tr><td>public test mnemonics allowlisted</td><td>1</td></tr><tr><td>ats</td><td>key absent (system default: ATS fully enabled)</td></tr><tr><td>QYInternalMainnet</td><td>True</td></tr><tr><td>signed</td><td></td></tr><tr><td>entitlements origin</td><td>App/Resources/Qyvora.entitlements (the build is unsigned: entitlements are not applied, the source file is read instead)</td></tr><tr><td>build commit</td><td>b60686dbecb225160e700666eff4cd3be5af0748</td></tr><tr><td>build dirty tree</td><td></td></tr><tr><td>build kind</td><td>unsigned audit archive</td></tr><tr><td>checks</td><td>34</td></tr></table>112<h4>ct-machine-code-ios</h4>113<p>Counts conditional branch instructions in the functions listed in security/policies/constant-time-functions.json: arm64 code of the iOS application binary (unsigned Release archive built by xcodebuild in this run, symbols from its dSYM). A count at or below the reviewed maximum means no new branch appeared; it does not prove the absence of other leaks (variable-time instructions, memory access patterns, functions inlined into callers that are not listed).</p>114<table class="kv"><tr><td>functions in policy</td><td>65</td></tr><tr><td>functions checked</td><td>51</td></tr><tr><td>not visible</td><td>14</td></tr><tr><td>above maximum</td><td>0</td></tr></table>115<h2>4. Cryptographic validation</h2>116<p>The cryptographic engine is written from scratch; this part of the audit has priority. The complete tables are in CRYPTOGRAPHIC_VALIDATION_REPORT.pdf.</p>117<h3>Conformance to the standards: official test vectors</h3>118<p>Each line is a replay by the audit package (security/tests) of the vector files named in the source column, with the engine&#x27;s deterministic entry points. A case passes when the engine&#x27;s output is byte-identical to the expected output (or when the expected accept/reject decision is reproduced).</p>119<table class="num"><thead><tr><th>Algorithm</th><th>Parameter set</th><th>Vector source</th><th>Cases</th><th>Failed</th><th>Result</th></tr></thead><tbody><tr><td>AES-256-GCM</td><td>IV 1024 bits</td><td>NIST CAVP (SP 800-38D)</td><td>750</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-256-GCM</td><td>IV 8 bits</td><td>NIST CAVP (SP 800-38D)</td><td>750</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-256-GCM</td><td>IV 96 bits</td><td>NIST CAVP (SP 800-38D)</td><td>750</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-GCM</td><td>AES-128</td><td>GCM specification test cases</td><td>6</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-GCM</td><td>AES-192</td><td>GCM specification test cases</td><td>6</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-GCM</td><td>AES-256</td><td>GCM specification test cases</td><td>6</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-32</td><td>—</td><td>BIP-32 test vectors 1–5</td><td>33</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-39</td><td>—</td><td>BIP-39 reference vectors (trezor/python-mnemonic, English)</td><td>24</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bech32</td><td>—</td><td>BIP-173 / BIP-350 reference vectors (sipa/bech32)</td><td>7</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bech32m</td><td>—</td><td>BIP-173 / BIP-350 reference vectors (sipa/bech32)</td><td>7</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash</td><td>—</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>78</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash</td><td>p2pkh</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>73</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash sighash</td><td>—</td><td>Bitcoin Cash Node src/test/data/sighash.json (tag v29.2.0, pinned commit)</td><td>1 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash sighash</td><td>fork-id algorithm, amount 0</td><td>Bitcoin Cash Node src/test/data/sighash.json (tag v29.2.0, pinned commit)</td><td>494</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash sighash</td><td>original algorithm</td><td>Bitcoin Cash Node src/test/data/sighash.json (tag v29.2.0, pinned commit)</td><td>1 506</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Built-in ERC-20 lists</td><td>35 pinned tokens on 7 main networks; every list checked for shape</td><td>issuers&#x27; documentation, transcribed by the reviewer</td><td>343</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>CashAddr</td><td>checksum</td><td>Bitcoin Cash Node src/test/cashaddr_tests.cpp (pinned commit)</td><td>277</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>CashAddr</td><td>larger</td><td>CashAddr specification (bitcoincashorg/bitcoincash.org spec/cashaddr.md, pinned commit)</td><td>320</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>CashAddr</td><td>translation</td><td>CashAddr specification (bitcoincashorg/bitcoincash.org spec/cashaddr.md, pinned commit)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Dogecoin</td><td>—</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>72</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Dogecoin</td><td>p2pkh</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>56</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EVM network table</td><td>14 networks: chain id, native symbol, decimals, explorer, lookups, fee properties, default endpoints</td><td>ethereum-lists/chains, transcribed by the reviewer</td><td>350</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>—</td><td>RFC 8032 section 7.1 (rfc8032.txt, pinned SHA-256)</td><td>15</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>strict</td><td>ed25519-speccheck cases.json (novifinancial, pinned commit)</td><td>24</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Litecoin</td><td>—</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>107</td><td>0</td><td>passed (1 check(s) not run)</td></tr><tr><td>Litecoin</td><td>p2pkh</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>63</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Litecoin</td><td>p2wpkh</td><td>public main-network transactions (security/vectors/utxo-mainnet, fetched 2026-12-05)</td><td>35</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-44</td><td>NIST ACVP (FIPS 204)</td><td>205</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-65</td><td>NIST ACVP (FIPS 204)</td><td>205</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-87</td><td>NIST ACVP (FIPS 204)</td><td>205</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-1024</td><td>NIST ACVP (FIPS 203)</td><td>80</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-512</td><td>NIST ACVP (FIPS 203)</td><td>80</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-768</td><td>NIST ACVP (FIPS 203)</td><td>80</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>OP-Stack GasPriceOracle, ERC-20 ABI, policy constants</td><td>—</td><td>OP-Stack specification (predeploys), Solidity ABI, owner&#x27;s limits</td><td>20</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-256</td><td>—</td><td>NIST ACVP (FIPS 180-4)</td><td>616</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-512</td><td>—</td><td>NIST ACVP (FIPS 180-4)</td><td>1 128</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-256</td><td>—</td><td>NIST ACVP (FIPS 202)</td><td>1 298</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-512</td><td>—</td><td>NIST ACVP (FIPS 202)</td><td>786</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHAKE128</td><td>—</td><td>NIST ACVP (FIPS 202)</td><td>2 004</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHAKE256</td><td>—</td><td>NIST ACVP (FIPS 202)</td><td>1 760</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-128f</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-128s</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-192f</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-192s</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-256f</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-256s</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-128f</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-128s</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-192f</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-192s</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-256f</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-256s</td><td>NIST ACVP (FIPS 205, complete files)</td><td>104</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLIP-0010</td><td>ed25519</td><td>SLIP-0010 (satoshilabs/slips, pinned commit), test vectors 1 and 2 for ed25519</td><td>36</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Schnorr BIP-340</td><td>—</td><td>BIP-340 test-vectors.csv</td><td>27</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SegWit address</td><td>—</td><td>BIP-173 / BIP-350 reference vectors (sipa/bech32)</td><td>28</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana address</td><td>module vectors</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), bip-utils 2.14.1 (SLIP-0010)</td><td>64</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana associated token account</td><td>SPL Token</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>56</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana associated token account</td><td>Token-2022</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>56</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana associated token account</td><td>module vectors</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), bip-utils 2.14.1 (SLIP-0010)</td><td>12</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana cluster</td><td>genesis hash</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>4</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana compact-u16</td><td>boundaries</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>20</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana fees</td><td>constants</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>1</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana key derivation</td><td>SLIP-0010 Ed25519</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), bip-utils 2.14.1 (SLIP-0010)</td><td>5</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana key derivation</td><td>path</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>1</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana payment</td><td>SOL (System transfer)</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), pynacl 1.6.2 (libsodium)</td><td>96</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana payment</td><td>SPL Token TransferChecked</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), pynacl 1.6.2 (libsodium)</td><td>48</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana payment</td><td>SPL Token TransferChecked + CreateIdempotent</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), pynacl 1.6.2 (libsodium)</td><td>48</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana payment</td><td>Token-2022 TransferChecked</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), pynacl 1.6.2 (libsodium)</td><td>48</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana payment</td><td>Token-2022 TransferChecked + CreateIdempotent</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), pynacl 1.6.2 (libsodium)</td><td>48</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program address</td><td>documented constants</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>5</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program address</td><td>solders constants</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>8</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program-derived address</td><td>16 seeds</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>24</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program-derived address</td><td>edge seeds</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>225</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program-derived address</td><td>module vectors</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), bip-utils 2.14.1 (SLIP-0010)</td><td>40</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program-derived address</td><td>seed limits</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek)</td><td>3</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana transaction</td><td>module vectors</td><td>solders 0.29.0 (solana-sdk types, ed25519-dalek), bip-utils 2.14.1 (SLIP-0010)</td><td>8</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON Transaction.raw decoding, transaction id, signature recovery</td><td>main network blocks 65000000, 70000000, 70000001; Nile blocks 50000001, 50000003</td><td>the public chain (TronGrid /wallet/getblockbynum, 2026-12-05): txID and raw_data_hex of each transaction</td><td>1 103</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON address (Base58Check of 0x41 ‖ Keccak-256(public key)[12...]), BIP-44 coin type 195</td><td>—</td><td>published address pairs; tronscan.org; TronWeb (account of the test phrase)</td><td>16</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON address from a private key; BIP-32/BIP-44 account m/44&#x27;/195&#x27;/0&#x27;/0/i</td><td>—</td><td>tronpy 0.8.0 (OpenSSL point, pycryptodome Keccak-256), coincurve 21.0.0 (libsecp256k1), bip-utils 2.14.1 (BIP-44 TRON)</td><td>21</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON chain identity (block id of block 0)</td><td>—</td><td>five public endpoints read on 2026-12-05; TIP-474 chain ids (0x2b6653dc, 0xcd8690dc, 0x94a9059e)</td><td>4</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON raw_data, transaction id and ECDSA signature (RFC 6979, low s, v = 27 + recovery id)</td><td>TRX transfers (with and without memo), TRC-20 transfer and approve; account m/44&#x27;/195&#x27;/0&#x27;/0/0 of the test phrase</td><td>TronWeb (vectors recorded in Tests/QyvoraTronTests/ReferenceVectors.swift)</td><td>10</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON transaction signature: r ‖ s ‖ v, 65 bytes, v = 27 + recovery id, low s</td><td>—</td><td>java-tron / TronWeb convention (v 27/28; 0/1 also accepted); RFC 6979</td><td>960</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>chain constants</td><td>—</td><td>reference clients: Litecoin Core v0.21.4 chainparams.cpp / policy.h / amount.h, Dogecoin Core v1.14.9 chainparams.cpp / policy.h / amount.h, Bitcoin Cash Node v29.2.0 chainparams.cpp, SLIP-0044</td><td>51</td><td>0</td><td><span class="v-passed">passed</span></td></tr></tbody></table>120<p>Total: 19 973 vector cases replayed, 0 failed.</p>121<p>Integrity of the third-party vector files: RUN — 49 files checked against the manifest, 0 mismatch(es).</p>122<h3>Wycheproof: edge cases and invalid inputs</h3>123<p>Wycheproof vectors at the pinned revision (security/vectors/MANIFEST.json): signature malleability, invalid encodings, special curve points, tag and nonce edge cases, malformed keys and ciphertexts. &#x27;Valid&#x27; vectors must be accepted with the expected output, &#x27;invalid&#x27; ones rejected without trapping; &#x27;acceptable&#x27; ones are tallied in the note.</p>124<table class="num small"><thead><tr><th>Algorithm</th><th>Parameter set</th><th>Cases</th><th>Failed</th><th>File and notes</th></tr></thead><tbody><tr><td>AES-GCM (128/192/256-bit keys)</td><td>—</td><td>316</td><td>0</td><td>aes_gcm_test; 119 cases with a nonce that is not 96 bits: refused by the public interface, replayed through the internal entry point</td></tr><tr><td>ChaCha20-Poly1305</td><td>—</td><td>325</td><td>0</td><td>chacha20_poly1305_test</td></tr><tr><td>ECDSA secp256k1 (DER, SHA-256)</td><td>—</td><td>476</td><td>0</td><td>ecdsa_secp256k1_sha256_test</td></tr><tr><td>ECDSA secp256k1 (DER, SHA-256, Bitcoin low-s)</td><td>—</td><td>464</td><td>0</td><td>ecdsa_secp256k1_sha256_bitcoin_test</td></tr><tr><td>ECDSA secp256k1 (r‖s, SHA-256)</td><td>—</td><td>252</td><td>0</td><td>ecdsa_secp256k1_sha256_p1363_test</td></tr><tr><td>Ed25519 verification (strict policy)</td><td>—</td><td>210</td><td>0</td><td>ed25519_test; acceptable: 21 accepted, 8 rejected; small-order public keys: 8/8 refused; mixed-order public keys: 21/22 accepted (cofactorless equati…</td></tr><tr><td>HKDF-SHA-256</td><td>—</td><td>86</td><td>0</td><td>hkdf_sha256_test</td></tr><tr><td>HKDF-SHA-512</td><td>—</td><td>83</td><td>0</td><td>hkdf_sha512_test</td></tr><tr><td>HMAC-SHA-256</td><td>—</td><td>174</td><td>0</td><td>hmac_sha256_test</td></tr><tr><td>HMAC-SHA-512</td><td>—</td><td>174</td><td>0</td><td>hmac_sha512_test</td></tr><tr><td>ML-DSA signing (expanded keys, key validation)</td><td>ML-DSA-44</td><td>73</td><td>0</td><td>mldsa_44_sign_noseed_test</td></tr><tr><td>ML-DSA signing (expanded keys, key validation)</td><td>ML-DSA-65</td><td>78</td><td>0</td><td>mldsa_65_sign_noseed_test</td></tr><tr><td>ML-DSA signing (expanded keys, key validation)</td><td>ML-DSA-87</td><td>69</td><td>0</td><td>mldsa_87_sign_noseed_test</td></tr><tr><td>ML-DSA signing (seed keys)</td><td>ML-DSA-44</td><td>86</td><td>0</td><td>mldsa_44_sign_seed_test</td></tr><tr><td>ML-DSA signing (seed keys)</td><td>ML-DSA-65</td><td>105</td><td>0</td><td>mldsa_65_sign_seed_test</td></tr><tr><td>ML-DSA signing (seed keys)</td><td>ML-DSA-87</td><td>96</td><td>0</td><td>mldsa_87_sign_seed_test</td></tr><tr><td>ML-DSA verification</td><td>ML-DSA-44</td><td>180</td><td>0</td><td>mldsa_44_verify_test</td></tr><tr><td>ML-DSA verification</td><td>ML-DSA-65</td><td>210</td><td>0</td><td>mldsa_65_verify_test</td></tr><tr><td>ML-DSA verification</td><td>ML-DSA-87</td><td>241</td><td>0</td><td>mldsa_87_verify_test</td></tr><tr><td>ML-KEM decapsulation (expanded key validation)</td><td>ML-KEM-1024</td><td>9</td><td>0</td><td>mlkem_1024_semi_expanded_decaps_test</td></tr><tr><td>ML-KEM decapsulation (expanded key validation)</td><td>ML-KEM-512</td><td>9</td><td>0</td><td>mlkem_512_semi_expanded_decaps_test</td></tr><tr><td>ML-KEM decapsulation (expanded key validation)</td><td>ML-KEM-768</td><td>9</td><td>0</td><td>mlkem_768_semi_expanded_decaps_test</td></tr><tr><td>ML-KEM decapsulation (seed keys)</td><td>ML-KEM-1024</td><td>202</td><td>0</td><td>mlkem_1024_test</td></tr><tr><td>ML-KEM decapsulation (seed keys)</td><td>ML-KEM-512</td><td>200</td><td>0</td><td>mlkem_512_test</td></tr><tr><td>ML-KEM decapsulation (seed keys)</td><td>ML-KEM-768</td><td>201</td><td>0</td><td>mlkem_768_test</td></tr><tr><td>ML-KEM encapsulation (key validation)</td><td>ML-KEM-1024</td><td>269</td><td>0</td><td>mlkem_1024_encaps_test</td></tr><tr><td>ML-KEM encapsulation (key validation)</td><td>ML-KEM-512</td><td>261</td><td>0</td><td>mlkem_512_encaps_test</td></tr><tr><td>ML-KEM encapsulation (key validation)</td><td>ML-KEM-768</td><td>265</td><td>0</td><td>mlkem_768_encaps_test</td></tr><tr><td>ML-KEM keygen from seed</td><td>ML-KEM-1024</td><td>100</td><td>0</td><td>mlkem_1024_keygen_seed_test</td></tr><tr><td>ML-KEM keygen from seed</td><td>ML-KEM-512</td><td>100</td><td>0</td><td>mlkem_512_keygen_seed_test</td></tr><tr><td>ML-KEM keygen from seed</td><td>ML-KEM-768</td><td>100</td><td>0</td><td>mlkem_768_keygen_seed_test</td></tr><tr><td>PBKDF2-HMAC-SHA-256</td><td>—</td><td>60</td><td>0</td><td>pbkdf2_hmacsha256_test</td></tr><tr><td>PBKDF2-HMAC-SHA-512</td><td>—</td><td>58</td><td>0</td><td>pbkdf2_hmacsha512_test</td></tr><tr><td>X25519 (CryptoKit, QYVORA wrapper policy)</td><td>—</td><td>518</td><td>0</td><td>x25519_test; acceptable: 223 accepted, 31 rejected</td></tr></tbody></table>125<p>Total: 6 059 Wycheproof cases, 0 failed.</p>126<h3>Differential testing against independent implementations</h3>127<p>Random inputs (seeds logged in the results file) are given to the engine and to an independent implementation used in the test environment only; any difference is a failure. CryptoKit and CommonCrypto are Apple&#x27;s; libsecp256k1, the Argon2 reference, pycryptodome, hashlib and the BIP reference scripts are third-party; the Rust library spb-quantum-crypto is the owner&#x27;s own (experimental, not audited): agreement with it is a consistency check, not an external validation.</p>128<table class="num small"><thead><tr><th>Algorithm / operation</th><th>Parameter set</th><th>Reference</th><th>Cases</th><th>Mismatches</th><th>Result</th></tr></thead><tbody><tr><td>AES-GCM</td><td>AES-128, 96-bit nonce</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-GCM</td><td>AES-192, 96-bit nonce</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>AES-GCM</td><td>AES-256, 96-bit nonce</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Argon2id / Argon2i / Argon2d</td><td>t 1–4, p 1–4, m 8p–512 KiB, tag 4–200 bytes, key and associated data</td><td>argon2-cffi 25.1.0 (reference C implementation), bindings 26.2.0</td><td>3 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-32</td><td>private derivation, public derivation, xprv / xpub serialization</td><td>embit 0.8.0 and a second derivation on coincurve 21.0.0 (libsecp256k1)</td><td>8 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-32 / BIP-44 / BIP-84 accounts of Litecoin, Dogecoin, Bitcoin Cash</td><td>account path and coin type, account key, address, public key, private key, WIF; receive and change chains</td><td>bip-utils 2.14.1 (Bip44, Bip84, WifEncoder)</td><td>4 004</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-39</td><td>checksum and word validation of altered sentences</td><td>mnemonic 0.21 (Trezor reference)</td><td>19 310</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-39</td><td>entropy → words → seed (PBKDF2-HMAC-SHA512, 2048), 12–24 words, Unicode passphrases</td><td>mnemonic 0.21 (Trezor reference)</td><td>3 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BLAKE2b</td><td>digest 1–64 bytes, key 0–64 bytes</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Base58 / Base58Check</td><td>encode, decode, altered strings</td><td>Base58Check written in the oracle (Python integers, hashlib)</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bech32 / Bech32m</td><td>encode, decode, altered strings (BIP-173, BIP-350)</td><td>segwit_addr.py reference (sipa/bech32 ef0181a)</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash P2PKH transaction</td><td>SIGHASH_ALL | SIGHASH_FORKID, 1 to 4 inputs, 1 to 3 outputs; raw transaction byte for byte</td><td>bitcash 1.2.1 (create_p2pkh_transaction, its own preimage and libsecp256k1 signature)</td><td>5 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin Cash signature hash (SIGHASH_FORKID)</td><td>random transactions and amounts, the six standard hash types with the fork-id flag</td><td>UAHF replay-protected sighash written in the oracle from the specification (hashlib), transaction parsed by embit 0.8.0</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin P2WPKH transaction</td><td>serialization, BIP-143 digests (six SIGHASH types), DER signatures, txid, wtxid</td><td>embit 0.8.0 (parsing, BIP-143) + coincurve 21.0.0 (libsecp256k1)</td><td>8 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin addresses</td><td>P2PKH, P2SH, P2WPKH, P2WSH, P2TR on mainnet / testnet / signet</td><td>embit 0.8.0</td><td>40 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>CashAddr</td><td>decode: valid, altered (substitutions, case, prefix, length) and crafted strings with a valid checksum</td><td>CashAddr decoding rules of the specification over bitcash 1.2.1 (polymod, convertbits); bitcash Address.from_string where it applies</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>CashAddr</td><td>encode: any prefix, types 0…15, the eight hash sizes</td><td>bitcash 1.2.1 (polymod, convertbits, checksum; Address class for its named versions)</td><td>20 014</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ChaCha20-Poly1305</td><td>RFC 8439, 96-bit nonce</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ECDSA secp256k1</td><td>RFC 6979 signing, low s, recovery id</td><td>coincurve 21.0.0 (libsecp256k1)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ECDSA secp256k1</td><td>public-key recovery (valid signatures, wrong ids, random r ‖ s)</td><td>coincurve 21.0.0 (libsecp256k1)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ECDSA secp256k1</td><td>verification verdicts (valid, mutated, high s, r/s out of range, bad keys)</td><td>coincurve 21.0.0 (libsecp256k1) + integer ECDSA in the oracle</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ECDSA secp256k1 (RFC 6979, low-s, strict DER) as placed in scripts</td><td>DER signature + sighash byte 0x01 / 0x41 / 0xc1…; verification by the reference</td><td>coincurve 21.0.0 (libsecp256k1)</td><td>30 008</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EIP-155 / EIP-1559 replay protection</td><td>every ordered pair of the 14 networks, random transactions: the relabelled signature never recovers the signer</td><td>eth-keys 0.8.0 (public key recovery), rlp 5.0.0</td><td>14 560</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EIP-1559 transaction on 27 chain identifiers</td><td>14 networks of the table + boundaries (0, 1, 2^31, 2^53, 2^63, 2^64−1…): unsigned payload, signing hash, r, s, yParity, raw, hash, sender</td><td>eth-account 0.14.0 (sign_transaction, recover_transaction), rlp 5.0.0, pycryptodome 3.24.1 (Keccak-256), coincurve 21.0.0 (libsecp256k1 through eth-keys)</td><td>27 200</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EIP-55</td><td>checksum encoding, parsing of altered addresses</td><td>EIP-55 written in the oracle on pycryptodome 4.7.0 (Keccak-256)</td><td>40 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EIP-55 checksum of the built-in token contracts and of the OP-Stack oracle</td><td>every row of the seven lists</td><td>eth-utils 6.0.0 (to_checksum_address)</td><td>198</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EVM network table</td><td>chain identifier → network name in the registry shipped with eth-utils (ethereum-lists/chains)</td><td>eth-utils 6.0.0 (eth_utils.network)</td><td>28</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>—</td><td>Apple CryptoKit (Curve25519.Signing)</td><td>12 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>—</td><td>pynacl 1.6.2 (libsodium); cryptography 51.0.1 (OpenSSL 4.1.1 1 Dec 2026); solders 0.29.0 (ed25519-dalek verify_strict); integer transcription of RFC 8032</td><td>40 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>strict</td><td>OpenSSL, CryptoKit</td><td>6 500</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>strict</td><td>pynacl 1.6.2 (libsodium); cryptography 51.0.1 (OpenSSL 4.1.1 1 Dec 2026); solders 0.29.0 (ed25519-dalek verify_strict); integer transcription of RFC 8032</td><td>666</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>strict</td><td>pynacl 1.6.2 (libsodium); cryptography 51.0.1 (OpenSSL 4.1.1 1 Dec 2026); solders 0.29.0 (ed25519-dalek verify_strict); integer transcription of RFC 8032; Apple CryptoKit</td><td>33 175</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ethereum EIP-1559 transaction</td><td>unsigned payload, signing hash, signature, raw transaction, hash, sender</td><td>RLP + EIP-1559 written in the oracle, pycryptodome 4.7.0 (Keccak-256), coincurve 21.0.0 (libsecp256k1)</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ethereum personal_sign (EIP-191)</td><td>digest, 65-byte signature, signer recovery</td><td>pycryptodome 4.7.0 (Keccak-256), coincurve 21.0.0 (libsecp256k1)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>GF(2^255-19)</td><td>—</td><td>Python integers</td><td>290 272</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HASH160 (RIPEMD-160 ∘ SHA-256)</td><td>—</td><td>pycryptodome 4.7.0 + hashlib</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HKDF</td><td>SHA-256 / SHA-512, extract and expand, length limit 255·HashLen</td><td>RFC 5869 written in the oracle on CPython hmac</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HKDF-SHA-256</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HKDF-SHA-512</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HMAC</td><td>SHA-224, SHA-384, SHA3-256, SHA3-512, BLAKE2b-512, SHA-256, SHA-512</td><td>CPython 3.12.13 hmac (OpenSSL 3.5.6 7 Apr 2026)</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HMAC-SHA-256</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>HMAC-SHA-512</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Keccak-256 (Ethereum)</td><td>—</td><td>pycryptodome 4.7.0</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-44</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>4 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-65</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>4 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-65</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>4 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-87</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>4 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-87</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>4 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-1024</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>10 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-1024</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>6 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-1024 key validation (FIPS 203 §7.2, §7.3)</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>5 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-512</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>6 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-512 key validation (FIPS 203 §7.2, §7.3)</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>5 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-768</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>10 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-768</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>6 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-768 / 1024 encapsulation-key check</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>4 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-768 key validation (FIPS 203 §7.2, §7.3)</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>5 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>OP-Stack GasPriceOracle getL1Fee(bytes)</td><td>selector, call data, return data (one uint256)</td><td>eth-abi 6.0.0 (encode, strict decode), pycryptodome 3.24.1 (Keccak-256)</td><td>7 549</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>PBKDF2-HMAC-SHA-256 / SHA-512</td><td>1–50 iterations, 1–200 bytes</td><td>Apple CommonCrypto, macOS Version 27.3 (Build 26C5056a)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>PBKDF2-HMAC-SHA-256 / SHA-512</td><td>1–64 iterations (and 2048), empty passwords and salts included</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>PBKDF2-HMAC-SHA-512</td><td>2048 iterations, 64 bytes (BIP-39)</td><td>Apple CommonCrypto, macOS Version 27.3 (Build 26C5056a)</td><td>1 500</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>RIPEMD-160</td><td>—</td><td>pycryptodome 4.7.0</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>RLP</td><td>encoding of random trees, strict decoding of altered encodings</td><td>RLP (Yellow Paper, appendix B) written in the oracle</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-224</td><td>—</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-224 / SHA-256 / SHA-384 / SHA-512, HMAC-SHA-256 / 512</td><td>—</td><td>Apple CommonCrypto, macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-256</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-256 / SHA-512 (incremental update)</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>10 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-256d (double SHA-256)</td><td>—</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-384</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA-512</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA2-224</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA2-256</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA2-384</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA2-512</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA2-512/224</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA2-512/256</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-224</td><td>—</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-224</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-256</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-256</td><td>—</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-256</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-384</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-384</td><td>—</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-384</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-512</td><td>—</td><td>Apple CryptoKit (corecrypto), macOS Version 27.3 (Build 26C5056a)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-512</td><td>—</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHA3-512</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHAKE-128</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHAKE-256</td><td>—</td><td>spbqc 1.0.0-alpha.1 [EXPERIMENTAL / NOT AUDITED] (Rust, command-line tool)</td><td>250</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHAKE128</td><td>output 0–700 bytes, incremental squeeze</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SHAKE256</td><td>output 0–700 bytes, incremental squeeze</td><td>CPython 3.12.13 hashlib (OpenSSL 3.5.6 7 Apr 2026)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-128f</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>100</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-128s</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-192f</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>100</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-192s</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-256f</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>100</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-256s</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-128f</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>100</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-128s</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-192f</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>100</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-192s</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-256f</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>100</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-256s</td><td>spb-quantum-crypto 1.0.0-alpha.1 (Rust, FFI through ctypes)</td><td>30</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLIP-0010</td><td>ed25519</td><td>bip-utils 2.14.1; HMAC-SHA512 transcription of SLIP-0010 (Python hashlib)</td><td>24 008</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Schnorr BIP-340</td><td>signing with auxiliary randomness, x-only keys (32-byte messages)</td><td>coincurve 21.0.0 (libsecp256k1)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Schnorr BIP-340</td><td>signing, messages of 0–200 bytes</td><td>BIP-340 reference.py (bitcoin/bips f98774a) and coincurve 21.0.0 (libsecp256k1)</td><td>600</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Schnorr BIP-340</td><td>verification verdicts (valid, mutated, r ≥ p, s ≥ n, keys off the curve)</td><td>coincurve 21.0.0 (libsecp256k1) (+ reference.py on one case in 20)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SegWit addresses</td><td>witness v0–v16 (and invalid versions / program lengths), altered strings</td><td>segwit_addr.py reference (sipa/bech32 ef0181a)</td><td>40 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana account key</td><td>SLIP-0010 Ed25519 at m/44&#x27;/501&#x27;/a&#x27;/0&#x27;, m/44&#x27;/501&#x27;/a&#x27; and m/44&#x27;/501&#x27;, random BIP-39 seeds and accounts</td><td>bip-utils 2.14.1 (Bip32Slip10Ed25519), solders 0.29.0 (Keypair.from_seed)</td><td>3 001</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana address</td><td>32 bytes to base58 (two codecs), is_on_curve (random, leading zeros, non-canonical y, small order)</td><td>solders 0.29.0 (Pubkey, curve25519-dalek), base58 2.1.1</td><td>40 056</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana address</td><td>text accepted or refused, decoded bytes (valid, wrong length, foreign characters, white space, other chains)</td><td>solders 0.29.0 (Pubkey.from_string)</td><td>30 016</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana associated token account</td><td>Token and Token-2022, random owners (wallet keys and off-curve addresses) and mints</td><td>solders 0.29.0 (find_program_address and solders.token.associated)</td><td>25 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana legacy message</td><td>—</td><td>solders 0.29.0 (Transaction)</td><td>648</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana legacy message</td><td>account ordering (fee payer, writable signers, read-only signers, writable, read-only; byte order inside a role), de-duplication, privilege merging, several signers</td><td>solders 0.29.0 (Message.new_with_blockhash, Transaction)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana message and transaction decoding</td><td>—</td><td>solders 0.29.0 (bincode decoding)</td><td>17 839</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana message and transaction decoding</td><td>bytes built by solders (legacy and version 0 with lookup tables) decode to the same fields; altered bytes: accepted here implies accepted, identical and canonical for solders</td><td>solders 0.29.0 (Message.from_bytes, from_bytes_versioned, VersionedTransaction.from_bytes (bincode))</td><td>92 011</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana payment transaction</td><td>legacy message, unsigned and signed transaction, signature; SOL, SPL Token and Token-2022 TransferChecked, with and without CreateIdempotent and memo</td><td>solders 0.29.0 (Message.new_with_blockhash, Transaction, Keypair), pynacl 1.6.2 (libsodium)</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana program-derived address</td><td>find_program_address (address and bump) and create_program_address, random seeds and programs</td><td>solders 0.29.0 (Pubkey.find_program_address)</td><td>50 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRC-20 transfer / approve call data (ABI)</td><td>encoding of transfer(address,uint256); decoding of valid and altered call data</td><td>eth-abi 6.0.0 (strict decoding)</td><td>10 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON Transaction.raw encoding, transaction id, ECDSA signature, signed Transaction</td><td>TRX transfer, TRC-20 transfer, contract call; integers at the int64 edges; memo; permission id</td><td>protobuf 5.29.5 (Google runtime on the tron.proto descriptors shipped by tronpy) + a second encoder written in the oracle; coincurve 21.0.0 (libsecp256k1, RFC 6979); tronpy 0.8.0 (its OpenSSL signer and recovery); eth-abi 6.0.0</td><td>12 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON Transaction.raw strict decoding</td><td>valid encodings and twenty kinds of alteration</td><td>protobuf 5.29.5 (Google runtime: parse, unknown-field sets, deterministic re-serialisation), then the engine&#x27;s policy stated in the test</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON account m/44&#x27;/195&#x27;/0&#x27;/0/i from a BIP-39 seed</td><td>—</td><td>bip-utils 2.14.1 (BIP-32, BIP-44 TRON)</td><td>600</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON address of a secp256k1 key</td><td>Base58Check and hexadecimal forms, compressed and uncompressed public key</td><td>tronpy 0.8.0 (OpenSSL, pycryptodome Keccak-256, base58), coincurve 21.0.0 (libsecp256k1)</td><td>6 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON address validation</td><td>valid, altered, other version bytes, hexadecimal and EVM forms, white space</td><td>strict rule written in the oracle on base58 2.1.1; tronpy 0.8.0 for the record of what it accepts</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON address validation: texts tronpy converts and the wallet&#x27;s Base58Check parser refuses</td><td>—</td><td>tronpy 0.8.0</td><td>5 359</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON signed Transaction decoding and signer recovery</td><td>zero to six signatures; v 0, 1, 27, 28 and others; high s; altered bytes</td><td>protobuf 5.29.5 (Google runtime); coincurve 21.0.0 (libsecp256k1 recovery)</td><td>10 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>UInt256</td><td>add, sub, mul (256 and 64-bit), divmod by 64-bit, compare, decimal / hex forms, overflow flags</td><td>Python arbitrary-precision integers</td><td>60 003</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>X25519</td><td>public key, shared secret, low-order and non-canonical peer keys</td><td>RFC 7748 Montgomery ladder written in the oracle (Python integers)</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>addresses of Litecoin, Dogecoin, Bitcoin Cash</td><td>version bytes, Base58Check, Bech32 / Bech32m (ltc, tltc), CashAddr and legacy forms, cross-network acceptance</td><td>bip-utils 2.14.1 (coin parameters, Bech32), base58 2.1.1, bitcash 1.2.1 (CashAddr checksum)</td><td>108 024</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>edwards25519</td><td>—</td><td>Python integers (RFC 8032 formulas); solders is_on_curve; libsodium base multiplication</td><td>53 540</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>integers modulo ℓ</td><td>—</td><td>Python integers</td><td>210 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>original signature hash (Dogecoin, legacy inputs of Litecoin)</td><td>random transactions, the six standard hash types</td><td>embit 0.8.0 (Transaction.sighash_legacy, except SIGHASH_SINGLE beyond the first input) and Bitcoin Core&#x27;s SignatureHash rewritten in the oracle (hashlib)</td><td>20 621</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1</td><td>SEC 1 public-key parsing and conversion</td><td>coincurve 21.0.0 (libsecp256k1) + integer parser in the oracle</td><td>30 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1</td><td>private and public tweak addition</td><td>coincurve 21.0.0 (libsecp256k1)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1</td><td>public key from private key (compressed, uncompressed, x-only)</td><td>coincurve 21.0.0 (libsecp256k1)</td><td>20 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>signed P2PKH transaction (Dogecoin, Litecoin legacy, Bitcoin Cash)</td><td>raw transaction, txid, scriptSig; compressed and uncompressed keys</td><td>embit 0.8.0 (sighash_legacy, serialization), coincurve 21.0.0 (libsecp256k1 RFC 6979), fork-id digest of the oracle</td><td>6 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>wallet account: build, derive, sign (Litecoin P2WPKH, Dogecoin and Bitcoin Cash P2PKH)</td><td>signed transaction or witness signatures byte for byte</td><td>embit 0.8.0 (sighash_legacy, sighash_segwit), coincurve 21.0.0 (libsecp256k1 RFC 6979), fork-id digest of the oracle</td><td>3 057</td><td>0</td><td><span class="v-passed">passed</span></td></tr></tbody></table>129<p>Total: 2 603 147 differential cases, 0 mismatch(es).</p>130<h3>Properties and mathematical invariants</h3>131<table class="num small"><thead><tr><th>Area</th><th>Parameter set</th><th>Property</th><th>Cases</th><th>Failed</th><th>Result</th></tr></thead><tbody><tr><td>BIP-174 with PSBT_IN_NON_WITNESS_UTXO (Dogecoin, Bitcoin Cash, Litecoin legacy)</td><td>—</td><td>PSBT fee = authenticated inputs − outputs, or no fee and no signature: missing, replaced, altered previous transactions and witness-UTXO records</td><td>29 525</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>BIP-32 / descriptors / addresses</td><td>—</td><td>public derivation = neutered private derivation; hardened from public refused; xpub/descriptor/address round trips</td><td>35 976</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Base58Check / Bech32</td><td>—</td><td>Base58Check and Bech32/Bech32m: round trips, single-character errors detected, variants not interchangeable</td><td>280 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Bitcoin transaction</td><td>—</td><td>parse(serialize(tx)) = tx with and without witness; truncation and trailing bytes refused</td><td>67 456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>CashAddr</td><td>—</td><td>round trip; every single substitution, random double and triple substitutions, prefix changes, case mixing, truncation and extension refused</td><td>1 552 530</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Chain snapshot persistence</td><td>Solana, TRON and EVM files</td><td>a file of another account, network, endpoint list or version, or with a value out of range, is ignored and removed; what is restored is flagged as coming from a previous…</td><td>15 101</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Cold EVM payload</td><td>—</td><td>the network of a cold EVM review is the one of the chain identifier in the payload; a chain that is not active, a non-canonical encoding, a legacy or typed-other transac…</td><td>55</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Cold-mode envelope</td><td>—</td><td>qyvtx1|u/s|&lt;chain&gt;|&lt;payload&gt;: exactly four parts, a known and active chain, a canonical payload of that family signed by this account; the review is decoded from the pay…</td><td>36 224</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ECDSA secp256k1</td><td>—</td><td>ECDSA sign/verify/recover invariants, malleability, cross-key rejection</td><td>22 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EIP-1559 transaction</td><td>—</td><td>sign → raw → decode = same transaction; sender = signer; chain id inside the signed payload</td><td>18 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EVM cost arithmetic</td><td>—</td><td>send-max value + gas limit × max fee + L1 fee = balance; nil instead of overflow or of a negative value; margin of one quarter</td><td>527 334</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EVM endpoint policy</td><td>two endpoints, one lying</td><td>chain id and nonce: every endpoint must agree; balance, fee data, eth_call, gas estimate: first endpoint that answers</td><td>14</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EVM fee rules</td><td>14 networks × 3 speeds × hostile figures</td><td>priority ≤ max fee, max fee = 2 × base + priority below 100 000 gwei, network floors respected, refused instead of overflowing</td><td>754 430</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>EVM indexer dialects (Blockscout API v2, Etherscan-compatible)</td><td>—</td><td>rows of both dialects: bounded text, decimals in 0…36, addresses well formed (Etherscan dialect), no trap on any JSON</td><td>15 009</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>—</td><td>sign-verify</td><td>25 010</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ed25519</td><td>—</td><td>single-bit-flips</td><td>69 584</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Endpoint configuration</td><td>—</td><td>decode(encode(c)) = c; a stored value never gains an endpoint it did not name (schema 2); schema 1 gains the defaults of the networks it could not know; unacceptable URL…</td><td>900 018</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Ethereum address</td><td>—</td><td>EIP-55: checksummed form round-trips, a wrong mixed-case checksum is refused</td><td>79 990</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>GF(2^255-19)</td><td>—</td><td>field-laws</td><td>570 003</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>GF(2^255-19)</td><td>—</td><td>field-operation-chains</td><td>160 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>JSON-RPC quantities</td><td>—</td><td>&quot;0x&quot; + 1…64 hexadecimal digits or refusal; never a trap; 2^256 and beyond refused</td><td>355 853</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>L1 data fee</td><td>—</td><td>OP-Stack: the oracle&#x27;s word below 0.1 ETH or an error; other networks: zero without a request</td><td>4 538</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-44</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>8 700</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-65</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>8 700</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA</td><td>ML-DSA-87</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>8 700</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA arithmetic</td><td>—</td><td>NTT⁻¹∘NTT = id, linearity, MultiplyNTT = negacyclic product</td><td>8 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA arithmetic</td><td>—</td><td>Power2Round, Decompose and UseHint∘MakeHint, exhaustive over r ∈ [0, q)</td><td>25 141 251</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA arithmetic</td><td>—</td><td>UseHint(MakeHint(z, r), r) = HighBits(r + z) for |z| ≤ γ2 (FIPS 204 Lemma)</td><td>10 000 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-DSA arithmetic</td><td>—</td><td>Montgomery reduction and reduce32: ranges and congruence on boundary and random inputs</td><td>100 000 025</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-1024</td><td>decapsulation of mutated ciphertexts: no error, never the real secret, equals J(z‖c′)</td><td>17 985</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-512</td><td>decapsulation of mutated ciphertexts: no error, never the real secret, equals J(z‖c′)</td><td>17 985</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM</td><td>ML-KEM-768</td><td>decapsulation of mutated ciphertexts: no error, never the real secret, equals J(z‖c′)</td><td>17 985</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM arithmetic</td><td>—</td><td>Barrett reduction and canonical form, exhaustive over Int16</td><td>131 072</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM arithmetic</td><td>—</td><td>Compress/Decompress equal their definitions, exhaustive over [0, q) × d ∈ {1,4,5,10,11}</td><td>39 534</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM arithmetic</td><td>—</td><td>NTT⁻¹∘NTT = id, linearity, MultiplyNTTs = negacyclic product</td><td>8 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>ML-KEM arithmetic</td><td>—</td><td>Montgomery reduction: range (−q, q) and congruence, exhaustive over |a| &lt; q·2^15</td><td>218 169 343</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>OP-Stack L1 fee decoding</td><td>—</td><td>exactly one 32-byte word strictly below 0.1 ETH, anything else is no fee</td><td>227 458</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>PSBT (BIP-174)</td><td>—</td><td>PSBT built from a transaction serialises and parses back to an equal object</td><td>15 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>RLP</td><td>—</td><td>decode(encode(x)) = x and encode(decode(b)) = b; trailing data and nesting beyond the limit refused</td><td>114 425</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-128f</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-128s</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-192f</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-192s</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-256f</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHA2-256s</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-128f</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-128s</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-192f</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-192s</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-256f</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLH-DSA</td><td>SLH-DSA-SHAKE-256s</td><td>sign/verify, mutation of signature, message, context and key, cross-key rejection</td><td>456</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>SLIP-0010</td><td>ed25519</td><td>slip10-structure</td><td>7 543</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Schnorr BIP-340</td><td>—</td><td>BIP-340 sign/verify invariants, bit flips, cross-key rejection</td><td>6 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana JSON reader</td><td>—</td><td>64-bit integers of an answer are read exactly; a sign, a fraction, an exponent or a 65th bit is not an amount</td><td>50 013</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana compact-u16</td><td>exhaustive: 65 536 values, 256 + 65 536 + 16 777 216 byte strings</td><td>every value encodes to its shortest form and decodes back; of all strings of 1, 2 and 3 bytes exactly the canonical ones decode; longer or padded forms are refused</td><td>17 039 503</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana history normalisation</td><td>—</td><td>native and token changes of an account are post − pre of the answer, summed over its token accounts, with the sign; the fee is shown once, to the account that paid it; a…</td><td>60 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana instruction decoding</td><td>—</td><td>each recognised layout is recognised only at its exact data length and account count; anything else is unknown, and unknown means blind signing</td><td>160 002</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana legacy message compilation</td><td>—</td><td>fee payer first; signers before non-signers; writable before read-only in each; byte order inside a role; one entry per key; a privilege asked once is granted, none is i…</td><td>30 002</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana message and transaction</td><td>—</td><td>decode(serialize(m)) = m for compiled messages; serialize(decode(b)) = b for every accepted b; a trailing byte, a truncation and a padded length are refused; transaction…</td><td>231 664</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana per-transaction limits</td><td>view of a transaction (WalletService.solanaOutflow)</td><td>the outflow the limits are computed from adds every System transfer and every TransferChecked of the owner found in the bytes (saturating), flags every instruction that …</td><td>50 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana priority fee</td><td>—</td><td>priorityFee = ⌈limit × price / 10^6⌉ exactly or nil; the suggested price stays in its bounds on hostile samples, and with the default limits its fee is far below the cei…</td><td>400 001</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana send planner</td><td>send-max</td><td>send-max of SOL transfers exactly balance − fee and empties the account; of a token, exactly the token balance, and the lamports left are zero or rent-exempt; never more…</td><td>200 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Solana send planner</td><td>u64 boundaries and random figures, SOL and tokens</td><td>on any 64-bit balance, rent minimum, amount, price and limit the planner gives a plan or a refusal (no overflow); a plan never spends more than the balance, leaves the s…</td><td>200 001</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON Transaction.raw and signed Transaction</td><td>TRX transfer, TRC-20 transfer, contract call, unknown contract types; memo, permission id, 0 to 5 signatures</td><td>tron-encode-decode-identity</td><td>100 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON Transaction.raw strict decoding</td><td>every value of every byte of three transactions, and sampled pairs of changes</td><td>tron-single-byte-changes</td><td>1 022 655</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON Transaction.raw strict decoding</td><td>non-minimal and over-long varints, negative integers, order, duplicates, unknown fields, wire types, lengths, explicit defaults, trailing bytes, values, size, truncation at every byte</td><td>tron-protobuf-non-canonical-classes</td><td>385</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON address text forms</td><td>Base58Check, hexadecimal, EVM form, altered characters, white space, other version bytes</td><td>tron-address-forms</td><td>60 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON node JSON: exact integers, RFC 8259 strictness, bounds; TRX units</td><td>—</td><td>tron-json-parser</td><td>360 072</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON protobuf reader (varint, tag, length-delimited)</td><td>random bytes, hostile lengths up to 2^64 − 1, long varints; accepted input re-encodes to itself</td><td>tron-protobuf-reader-bounds</td><td>400 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON send planner (TRX and TRC-20): fees, send-max, fee limit, lifetime</td><td>realistic and hostile chain parameters, resources, balances, clocks and policies (values up to 2^64 − 1)</td><td>tron-planner-arithmetic</td><td>120 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON send-max of TRX</td><td>balances at the fee boundaries; free, staked and burned bandwidth; new and known recipients; memo</td><td>tron-send-max</td><td>100 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON signing: owner check, blind-signing refusal, self-verification</td><td>—</td><td>tron-signing-rules</td><td>8 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TRON transaction id = SHA-256(raw_data)</td><td>reference block bytes and hash, expiration, timestamp, owner, recipient, amount, memo, permission id, fee limit</td><td>tron-txid-binding</td><td>220 000</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>TronGrid API key: accepted characters, redaction in every textual form; endpoint URL rules</td><td>—</td><td>tron-api-key-type</td><td>21</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Vault account binding v2</td><td>—</td><td>encode/decode identity; versions 1 and 2 only; a profile that differs from the vault&#x27;s record is replaced by it at unlock, for every family</td><td>40 396</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>Watch-only package v2</td><td>—</td><td>no private material in the package; a private key in a package is refused; chains cannot be enabled without an account; hostile packages never trap and never leave a wal…</td><td>5 416</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>addresses of Litecoin, Dogecoin, Bitcoin Cash</td><td>—</td><td>address(script) parses back to the script; canonical text; other coins refuse it; witness programs have no address without SegWit</td><td>120 504</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>checkAddress</td><td>29 networks × addresses of 4 families</td><td>an address of one family is refused by name on every chain of another family; accepted in its canonical form on its own network; never a trap</td><td>205 163</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>edwards25519</td><td>—</td><td>torsion</td><td>603</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>edwards25519</td><td>—</td><td>group-laws</td><td>30 004</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>eth_getBlockByNumber / eth_maxPriorityFeePerGas / eth_gasPrice</td><td>—</td><td>base fee, priority fee and gas price below 10 000 gwei or refusal; BNB Smart Chain needs a non-zero gas price</td><td>23 896</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>fee and dust policy (Litecoin, Dogecoin, Bitcoin Cash)</td><td>—</td><td>dust thresholds follow GetDustThreshold at the coin&#x27;s rate (Litecoin) or the coin&#x27;s fixed limit (Dogecoin, Bitcoin Cash); estimates are clamped to [floor, ceiling]; unau…</td><td>156 687</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>hiddenTokens / showHiddenToken</td><td>random lists of 0 to 300 entries, 6 chains</td><td>a hidden-token list of any content is listed per chain without duplicates across chains and within its own size; showing an entry again removes that entry only and chang…</td><td>3 001</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>integers modulo ℓ</td><td>—</td><td>scalar-ranges</td><td>320 002</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>prepareSend / prepareSweepOfExposed on a restored UTXO coin</td><td>Litecoin, Dogecoin and Bitcoin Cash test networks</td><td>after a restart on a persisted coin synchronization (honest or with inflated amounts), no payment and no sweep is prepared from its coins, whatever the amount, and no re…</td><td>288</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>replay protection (SIGHASH_FORKID)</td><td>—</td><td>a Bitcoin Cash signature is invalid under Bitcoin&#x27;s / Dogecoin&#x27;s rules and the reverse; the fork-id flag is mandatory there and refused elsewhere; identical transactions…</td><td>32 003</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>restoredUTXOCoin</td><td>Litecoin, Dogecoin and Bitcoin Cash test networks × 1 to 4 structural changes</td><td>a persisted coin synchronization altered in its structure is refused and removed, or restored flagged as the previous session&#x27;s, on the account&#x27;s own addresses, inside t…</td><td>18 003</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>—</td><td>out-of-range scalars and coordinates refused</td><td>79</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>field p</td><td>ring and field laws</td><td>56 126</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>field p</td><td>add against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>field p</td><td>sub against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>field p</td><td>mul against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>field p</td><td>inverse against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>scalar n</td><td>ring and field laws</td><td>56 126</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>scalar n</td><td>add against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>scalar n</td><td>sub against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>scalar n</td><td>mul against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 arithmetic</td><td>scalar n</td><td>inverse against Python integers</td><td>20 081</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>secp256k1 group</td><td>—</td><td>group laws</td><td>3 208</td><td>0</td><td><span class="v-passed">passed</span></td></tr><tr><td>transaction builder and account signatures (Litecoin, Dogecoin, Bitcoin Cash)</td><td>—</td><td>inputs = outputs + fee; fee ≥ rate × size and ≤ rate × size + change tolerance; no dust output; coin rules for sequence, lock time, witness, sighash byte; signed size ≤ …</td><td>100 978</td><td>0</td><td><span class="v-passed">passed</span></td></tr></tbody></table>132<p>Total: 381 617 278 property cases (exhaustive loops included), 0 failed.</p>133<h3>Engine test suites</h3>134<p>The engine&#x27;s own suites (root Swift package, release build): 974 test functions in 186 suites, 0 failed. They include the vectors embedded in the test sources (RFC 8439, RFC 5869, RFC 6979, RFC 9106, BIP-84, BIP-143, BIP-174, BIP-380, FIPS examples) and the regression tests of the fixed findings.</p>135<h3>Fuzzing</h3>136<p>Mutation-based fuzzing of 93 harnesses (parsers, decoders and verifiers that take untrusted input) with a seeded generator, a committed seed corpus and crash capture in worker processes. libFuzzer is not available in the Xcode Swift toolchain. The plain build has no coverage feedback (outcome classes only). The instrumented build (built and run) keeps inputs that reach new control-flow edges, measured with LLVM SanitizerCoverage inline counters and read by our own engine, under AddressSanitizer. A run without a crash shows that no trap was found in the executions made; it is not a proof of absence.</p>137<table class="kv"><tr><td>mode</td><td>full</td></tr><tr><td>targets</td><td>93</td></tr><tr><td>executions</td><td>9 178 114 682</td></tr><tr><td>seconds</td><td>1 835</td></tr><tr><td>crashes</td><td>0</td></tr><tr><td>hangs</td><td>0</td></tr><tr><td>unique crash sites</td><td>0</td></tr><tr><td>libfuzzer</td><td>unavailable: swiftc refuses -sanitize=fuzzer in the Xcode toolchain (checked on the laptop, Swift 6.4, and on the nodes, Swift 6.3)</td></tr><tr><td>coverage guided build</td><td>built and run</td></tr></table>138<table class="num"><thead><tr><th>Host</th><th>Cores</th><th>Workers</th><th>Seconds</th><th>Executions</th><th>Crashes</th><th>Hangs</th></tr></thead><tbody><tr><td>macbookpro-de-simon-pierre-2.local</td><td>18</td><td>9</td><td>604</td><td>848 159 020</td><td>0</td><td>0</td></tr><tr><td>MacStudnpierre2</td><td>28</td><td>14</td><td>1 811</td><td>3 118 742 882</td><td>0</td><td>0</td></tr><tr><td>m3u96b</td><td>28</td><td>14</td><td>1 809</td><td>3 125 099 202</td><td>0</td><td>0</td></tr><tr><td>MacStudio-de-simon-pierre</td><td>24</td><td>12</td><td>1 826</td><td>2 086 113 578</td><td>0</td><td>0</td></tr></tbody></table>139<h4>Recorded long campaigns (security/fuzzing/campaigns)</h4>140<p>Campaign summaries committed with the repository. They were produced by earlier runs of the fuzzer on cluster nodes; the commit they ran on is in each file.</p>141<table class="num small"><thead><tr><th>File</th><th>Machine</th><th>Workers</th><th>Duration</th><th>Executions</th><th>Crashes</th><th>Hangs</th></tr></thead><tbody><tr><td>2026-12-04T2152-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>32 min 00 s</td><td>3 507 843 278</td><td>0</td><td>0</td></tr><tr><td>2026-12-04T2153-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>16</td><td>32 min 00 s</td><td>5 373 436 250</td><td>0</td><td>0</td></tr><tr><td>2026-12-04T2153-m3u96b.json</td><td>m3u96b</td><td>16</td><td>32 min 00 s</td><td>5 136 779 601</td><td>0</td><td>0</td></tr><tr><td>2026-12-04T2305-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 00 s</td><td>3 092 696 867</td><td>0</td><td>0</td></tr><tr><td>2026-12-04T2305-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 00 s</td><td>3 934 505 804</td><td>0</td><td>0</td></tr><tr><td>2026-12-04T2305-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 00 s</td><td>3 989 908 648</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0120-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 00 s</td><td>3 087 455 765</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0120-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 00 s</td><td>3 933 061 224</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0120-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 00 s</td><td>3 966 676 453</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0514-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 00 s</td><td>3 090 800 072</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0514-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 00 s</td><td>3 918 061 580</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0514-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 00 s</td><td>3 961 631 627</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0903-m3u96b.json</td><td>m3u96b</td><td>14</td><td>25 min 08 s</td><td>2 394 863 061</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0903-totals-only.json</td><td></td><td></td><td>—</td><td></td><td></td><td></td></tr><tr><td>2026-12-05T0945-m2u64.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>20 min 00 s</td><td>1 729 287 597</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T0945-m4m64b.json</td><td>MacStudio-de-simon-pierre-4</td><td>8</td><td>20 min 00 s</td><td>1 214 034 059</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1143-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 00 s</td><td>3 124 840 864</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1143-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 00 s</td><td>3 126 609 152</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1144-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 00 s</td><td>2 088 929 922</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1242-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 02 s</td><td>2 088 262 061</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1242-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 00 s</td><td>3 117 356 803</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1242-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 00 s</td><td>3 134 040 801</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1348-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 14 s</td><td>2 084 485 277</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1348-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 08 s</td><td>3 114 254 473</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1348-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 03 s</td><td>3 130 916 801</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1443-MacStudio-de-simon-pierre.json</td><td>MacStudio-de-simon-pierre</td><td>12</td><td>30 min 26 s</td><td>2 086 113 578</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1443-MacStudnpierre2.json</td><td>MacStudnpierre2</td><td>14</td><td>30 min 11 s</td><td>3 118 742 882</td><td>0</td><td>0</td></tr><tr><td>2026-12-05T1443-m3u96b.json</td><td>m3u96b</td><td>14</td><td>30 min 09 s</td><td>3 125 099 202</td><td>0</td><td>0</td></tr></tbody></table>142<p>Replay of the corpus and of past crash inputs by the test package: 280 153 inputs, 0 failed.</p>143<h4>Sanitizers</h4>144<p>AddressSanitizer on the fuzz-replay tests and the parser/crypto/storage suites; ThreadSanitizer on the actor services and the concurrent SLH-DSA suite; both on the Ed25519, Solana and TRON suites; UBSan accepted but nearly void for pure Swift. Sanitizers see only what the tests execute. Not executed: address/FuzzReplayTests: BUILD FAILED; undefined/FuzzReplayTests: BUILD FAILED.</p>145<table class="num small"><thead><tr><th>Suite / sanitizer</th><th>Cases</th><th>Failed</th><th>Note</th></tr></thead><tbody><tr><td>address/FuzzReplayTests</td><td>0</td><td>0</td><td>BUILD FAILED in 7.5 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraBitcoinTests</td><td>100</td><td>0</td><td>PASSED in 6.4 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraCoreTests</td><td>40</td><td>0</td><td>PASSED in 1.7 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraEd25519Tests</td><td>24</td><td>0</td><td>PASSED in 6.7 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraEthereumTests</td><td>27</td><td>0</td><td>PASSED in 1.1 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraIdentityTests</td><td>26</td><td>0</td><td>PASSED in 1.0 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraKeccakTests</td><td>22</td><td>0</td><td>PASSED in 1.5 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraMLKEMTests</td><td>21</td><td>0</td><td>PASSED in 5.8 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraRecoveryTests</td><td>20</td><td>0</td><td>PASSED in 1.5 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraSecp256k1Tests</td><td>11</td><td>0</td><td>PASSED in 1.1 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraSolanaTests</td><td>47</td><td>0</td><td>PASSED in 3.7 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraStorageTests</td><td>14</td><td>0</td><td>PASSED in 0.9 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraSymmetricTests</td><td>58</td><td>0</td><td>PASSED in 3.2 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraTronTests</td><td>65</td><td>0</td><td>PASSED in 1.4 s on MacStudnpierre2</td></tr><tr><td>address/QyvoraVaultTests</td><td>46</td><td>0</td><td>PASSED in 1.7 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraEd25519Tests</td><td>24</td><td>0</td><td>PASSED in 173.9 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraNetworkingTests</td><td>73</td><td>0</td><td>PASSED in 8.7 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraSLHDSATests</td><td>18</td><td>0</td><td>PASSED in 216.2 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraSolanaTests</td><td>47</td><td>0</td><td>PASSED in 75.9 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraTronTests</td><td>65</td><td>0</td><td>PASSED in 8.5 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraVaultTests</td><td>46</td><td>0</td><td>PASSED in 10.0 s on MacStudnpierre2</td></tr><tr><td>thread/QyvoraWalletTests</td><td>212</td><td>0</td><td>PASSED in 161.3 s on MacStudnpierre2</td></tr><tr><td>undefined/FuzzReplayTests</td><td>0</td><td>0</td><td>BUILD FAILED in 7.7 s on MacStudnpierre2</td></tr><tr><td>undefined/QyvoraEd25519Tests</td><td>24</td><td>0</td><td>PASSED in 6.4 s on MacStudnpierre2</td></tr><tr><td>undefined/QyvoraSecp256k1Tests</td><td>11</td><td>0</td><td>PASSED in 1.5 s on MacStudnpierre2</td></tr><tr><td>undefined/QyvoraSymmetricTests</td><td>58</td><td>0</td><td>PASSED in 1.2 s on MacStudnpierre2</td></tr></tbody></table>146<h3>Timing and side channels</h3>147<h4>Machine code of the functions that process secrets</h4>148<p>Counts conditional branch instructions in the functions listed in security/policies/constant-time-functions.json: arm64 release code of the Swift package built on macOS with this toolchain (the iOS application binary is checked by ct-machine-code-ios when the archive is built). A count at or below the reviewed maximum means no new branch appeared; it does not prove the absence of other leaks (variable-time instructions, memory access patterns, functions inlined into callers that are not listed).</p>149<table class="small"><thead><tr><th>Function</th><th>Conditional branches</th><th>Reviewed maximum</th><th>Status</th><th>What the remaining branches test</th></tr></thead><tbody><tr><td>static QyvoraSecp256k1.U256.adc</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>add with carry: bit arithmetic only</td></tr><tr><td>static QyvoraSecp256k1.U256.sbb</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>subtract with borrow: bit arithmetic only</td></tr><tr><td>static QyvoraSecp256k1.U256.add</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>256-bit addition (was 8 branches on carries before the fix of QYV-AUD-002)</td></tr><tr><td>static QyvoraSecp256k1.U256.sub</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>256-bit subtraction (was 8 branches on borrows before the fix)</td></tr><tr><td>static QyvoraSecp256k1.U256.select</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>masked selection</td></tr><tr><td>QyvoraSecp256k1.Modulus.add</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>modular addition</td></tr><tr><td>QyvoraSecp256k1.Modulus.sub</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>modular subtraction</td></tr><tr><td>QyvoraSecp256k1.Modulus.neg</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>modular negation</td></tr><tr><td>QyvoraSecp256k1.Modulus.reduce</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>conditional subtraction by mask</td></tr><tr><td>static QyvoraSecp256k1.Modulus.addMod</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>modular addition</td></tr><tr><td>QyvoraSecp256k1.Modulus.montMul</td><td>4</td><td>4</td><td><span class="v-passed">ok</span></td><td>Montgomery product (was 20 before the fix); the 4 remaining branches select the limb of the multiplier by the loop index 0..3, a public value</td></tr><tr><td>QyvoraSecp256k1.Modulus.montPow</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td><td>square-and-multiply on a PUBLIC exponent (p-2, n-2, (p+1)/4): loop counter and exponent bit</td></tr><tr><td>QyvoraSecp256k1.Modulus.inverse</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td><td>Fermat inversion with a public exponent</td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.select</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>masked selection of a point</td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.add</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td><td>complete addition formulas; the 2 branches are the one-time initialisation checks of the constants (field, 3b)</td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.double</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td><td>complete doubling; same 2 initialisation checks</td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.multiply</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td><td>double-and-add-always: loop counter over 256 bits and the limb index of the scalar bit (public position)</td></tr><tr><td>static QyvoraMath.ConstantTime.isZeroMask</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>mask from a byte</td></tr><tr><td>static QyvoraMath.ConstantTime.equal</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td><td>length check and vectorised loop control (lengths are public); the accumulator is never tested before the end</td></tr><tr><td>static QyvoraSymmetric.AES.subBytes</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>bit-sliced S-box: no table, no branch</td></tr><tr><td>static QyvoraSymmetric.AES.invSubBytes</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td><td>bit-sliced inverse S-box</td></tr><tr><td>QyvoraSymmetric.AES.encrypt</td><td>6</td><td>6</td><td><span class="v-passed">ok</span></td><td>round loop (number of rounds depends on the key LENGTH, public)</td></tr><tr><td>QyvoraSymmetric.GHASH.update(Swift.UInt64, Swift.UInt64)</td><td>—</td><td>2</td><td>not visible (inlined or absent)</td><td>loop over the 64+64 bits of the block with masked table reads</td></tr><tr><td>QyvoraMLKEM.MLKEM.decapsCore</td><td>16</td><td>16</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: length and bounds traps on the key …</td></tr><tr><td>QyvoraMLKEM.MLKEM.pkeDecrypt</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: loop counters over k and 256 coeffi…</td></tr><tr><td>QyvoraMLKEM.MLKEM.pkeEncrypt</td><td>41</td><td>41</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: loop counters, bounds and overflow …</td></tr><tr><td>QyvoraMLKEM.MLKEM.NTT.forward</td><td>7</td><td>7</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: layer, block and coefficient loop c…</td></tr><tr><td>QyvoraMLKEM.MLKEM.NTT.inverseToMontgomery</td><td>9</td><td>9</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: loop counters only</td></tr><tr><td>QyvoraMLKEM.MLKEM.NTT.multiplyAccumulate</td><td>7</td><td>7</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: the public `accumulate` flag, buffe…</td></tr><tr><td>QyvoraMLKEM.MLKEM.Sampling.samplePolyCBD</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: the public parameter eta (2 or 3), …</td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.compressEncode</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: count and bit-width traps, the bit-…</td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.decodeDecompress</td><td>12</td><td>13</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: bit-width traps and the bit-unpacki…</td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.decode12</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: count check, overflow trap, loop co…</td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.messageToPoly</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: buffer-overlap check and loop count…</td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.montgomeryReduce</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>multiplication, subtraction, shift</td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.multiply</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>Montgomery product</td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.barrettReduce</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>Barrett reduction by multiplication and shift</td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.canonical</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>sign mask (arithmetic shift), no comparison</td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.compress</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td><td>traps on the public bit width d only (out-of-line copy; the hot path is inlined in compressEncode)</td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.decompress</td><td>5</td><td>5</td><td><span class="v-passed">ok</span></td><td>traps on the public bit width d only</td></tr><tr><td>static QyvoraMath.ConstantTime.select</td><td>12</td><td>12</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: length equality trap and loop contr…</td></tr><tr><td>in static QyvoraKeccak.KeccakF1600.permute</td><td>1</td><td>1</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: the round counter</td></tr><tr><td>in QyvoraKeccak.KeccakSponge.absorb</td><td>17</td><td>17</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: input length, position in the rate …</td></tr><tr><td>in QyvoraKeccak.KeccakSponge.squeeze</td><td>11</td><td>11</td><td><span class="v-passed">ok</span></td><td>ML-KEM decapsulation path, every branch read in the disassembly of Swift 6.3.3 and 6.4.2 (macOS) for QYV-AUD-005: output length, position in the rate…</td></tr><tr><td>static QyvoraEd25519.Fe.mul</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>field multiplication modulo 2^255-19 (five 51-bit limbs, 128-bit accumulators with carries by bit arithmetic): no branch</td></tr><tr><td>static QyvoraEd25519.Fe.equalMask</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>equality as a mask: no branch</td></tr><tr><td>QyvoraEd25519.Fe.isZeroMask</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>zero test as a mask on the canonical words: no branch</td></tr><tr><td>QyvoraEd25519.Fe.isNegative</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>parity of the canonical representative: no branch</td></tr><tr><td>QyvoraEd25519.Fe.toBytes</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>canonical encoding (two carry passes and a masked subtraction of p): no branch</td></tr><tr><td>QyvoraEd25519.Fe.(pow250</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: the common part o…</td></tr><tr><td>static QyvoraEd25519.Fe.invert</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td><td>Fermat inversion with the public exponent p-2 (inlined into its callers in the builds reviewed; when visible, only the loop counters of the squaring …</td></tr><tr><td>static QyvoraEd25519.EdPoint.add</td><td>1</td><td>1</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: complete unified …</td></tr><tr><td>static QyvoraEd25519.EdPoint.double</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>doubling: straight-line field operations</td></tr><tr><td>static QyvoraEd25519.EdPoint.multiply(scalar: [Swift.UInt8], table:</td><td>4</td><td>4</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: fixed-window scal…</td></tr><tr><td>QyvoraEd25519.EdPoint.encode</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: encoding of a poi…</td></tr><tr><td>static QyvoraEd25519.Sc.montMul</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: Montgomery produc…</td></tr><tr><td>static QyvoraEd25519.Sc.mulAdd</td><td>1</td><td>1</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: S = r + k*a: two …</td></tr><tr><td>static QyvoraEd25519.Sc.reduceWide</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: reduction of the …</td></tr><tr><td>static QyvoraEd25519.Sc.reduce</td><td>—</td><td>1</td><td>not visible (inlined or absent)</td><td>reduction of a 256-bit value (inlined into its callers in the builds reviewed; when visible, only the one-time initialisation check is allowed)</td></tr><tr><td>QyvoraEd25519.Sc.bytes</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td><td>serialisation of a scalar: no branch</td></tr><tr><td>static QyvoraEd25519.Ed25519.expand(seed:</td><td>7</td><td>7</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: SHA-512 of the se…</td></tr><tr><td>static QyvoraEd25519.Ed25519.publicKey(seed:</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: the seed-length c…</td></tr><tr><td>static QyvoraEd25519.Ed25519.sign(message:</td><td>5</td><td>5</td><td><span class="v-passed">ok</span></td><td>Ed25519 secret path, every branch read in the disassembly of Swift 6.3.3 (M4M64a) and 6.4 (M5M36), macOS release build, 2026-12-05: the seed-length c…</td></tr><tr><td>QyvoraSymmetric.SHA512.(compress in</td><td>21</td><td>21</td><td><span class="v-passed">ok</span></td><td>SHA-512 compression (expanded Ed25519 key, signing nonce, SLIP-0010 and BIP-32 HMAC), every branch read in the disassembly of Swift 6.3.3 and 6.4, 20…</td></tr><tr><td>static QyvoraEd25519.EdPoint.multiplyBase</td><td>—</td><td>2</td><td>not visible (inlined or absent)</td><td>base-point multiplication: the fixed-window loop on the shifted table plus one addition of a public constant (inlined into publicKey and sign in the …</td></tr></tbody></table>150<h4>Machine code of the iOS application binary</h4>151<p>Counts conditional branch instructions in the functions listed in security/policies/constant-time-functions.json: arm64 code of the iOS application binary (unsigned Release archive built by xcodebuild in this run, symbols from its dSYM). A count at or below the reviewed maximum means no new branch appeared; it does not prove the absence of other leaks (variable-time instructions, memory access patterns, functions inlined into callers that are not listed).</p>152<table class="small"><thead><tr><th>Function</th><th>Conditional branches</th><th>Reviewed maximum</th><th>Status</th></tr></thead><tbody><tr><td>static QyvoraSecp256k1.U256.adc</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.U256.sbb</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.U256.add</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.U256.sub</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.U256.select</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraSecp256k1.Modulus.add</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraSecp256k1.Modulus.sub</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraSecp256k1.Modulus.neg</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraSecp256k1.Modulus.reduce</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>static QyvoraSecp256k1.Modulus.addMod</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraSecp256k1.Modulus.montMul</td><td>4</td><td>4</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraSecp256k1.Modulus.montPow</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraSecp256k1.Modulus.inverse</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.select</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.add</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.double</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSecp256k1.Secp256k1.Point.multiply</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td></tr><tr><td>static QyvoraMath.ConstantTime.isZeroMask</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMath.ConstantTime.equal</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraSymmetric.AES.subBytes</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>static QyvoraSymmetric.AES.invSubBytes</td><td>—</td><td>0</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraSymmetric.AES.encrypt</td><td>6</td><td>6</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraSymmetric.GHASH.update(Swift.UInt64, Swift.UInt64)</td><td>—</td><td>2</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraMLKEM.MLKEM.decapsCore</td><td>16</td><td>16</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.pkeDecrypt</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.pkeEncrypt</td><td>41</td><td>41</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.NTT.forward</td><td>7</td><td>7</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.NTT.inverseToMontgomery</td><td>9</td><td>9</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.NTT.multiplyAccumulate</td><td>7</td><td>7</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.Sampling.samplePolyCBD</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.compressEncode</td><td>10</td><td>10</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.decodeDecompress</td><td>12</td><td>13</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.decode12</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraMLKEM.MLKEM.Coding.messageToPoly</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.montgomeryReduce</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.multiply</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.barrettReduce</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.canonical</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.compress</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMLKEM.MLKEM.Field.decompress</td><td>5</td><td>5</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraMath.ConstantTime.select</td><td>12</td><td>12</td><td><span class="v-passed">ok</span></td></tr><tr><td>in static QyvoraKeccak.KeccakF1600.permute</td><td>1</td><td>1</td><td><span class="v-passed">ok</span></td></tr><tr><td>in QyvoraKeccak.KeccakSponge.absorb</td><td>17</td><td>17</td><td><span class="v-passed">ok</span></td></tr><tr><td>in QyvoraKeccak.KeccakSponge.squeeze</td><td>11</td><td>11</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Fe.mul</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Fe.equalMask</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraEd25519.Fe.isZeroMask</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraEd25519.Fe.isNegative</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraEd25519.Fe.toBytes</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraEd25519.Fe.(pow250</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Fe.invert</td><td>—</td><td>3</td><td>not visible (inlined or absent)</td></tr><tr><td>static QyvoraEd25519.EdPoint.add</td><td>1</td><td>1</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.EdPoint.double</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.EdPoint.multiply(scalar: [Swift.UInt8], table:</td><td>4</td><td>4</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraEd25519.EdPoint.encode</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Sc.montMul</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Sc.mulAdd</td><td>1</td><td>1</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Sc.reduceWide</td><td>2</td><td>2</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Sc.reduce</td><td>—</td><td>1</td><td>not visible (inlined or absent)</td></tr><tr><td>QyvoraEd25519.Sc.bytes</td><td>0</td><td>0</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Ed25519.expand(seed:</td><td>7</td><td>7</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Ed25519.publicKey(seed:</td><td>3</td><td>3</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.Ed25519.sign(message:</td><td>5</td><td>5</td><td><span class="v-passed">ok</span></td></tr><tr><td>QyvoraSymmetric.SHA512.(compress in</td><td>21</td><td>21</td><td><span class="v-passed">ok</span></td></tr><tr><td>static QyvoraEd25519.EdPoint.multiplyBase</td><td>—</td><td>2</td><td>not visible (inlined or absent)</td></tr></tbody></table>153<h4>Statistical timing test (dudect method)</h4>154<p>dudect-style test: two input classes timed in random interleaved order, Welch t-test on raw and percentile-cropped measurements, threshold |t| &gt; 4.5, confirmed by a second run. Both classes read their inputs through the same working buffers, from one block of memory whose slots are dealt to the classes at random, and the timed region is separated from the preparation of the inputs by a serialising barrier (dsb sy, isb), so that only the contents differ (QYV-AUD-005). Controls: an early-exit comparison and a decapsulation followed by a loop whose length is a byte of the shared secret must be detected; identical contents, two sets of random AES keys and two sets of valid ML-KEM ciphertexts must not (the asymmetric preparation that produced QYV-AUD-005 is kept as an informational measurement). Operations: ConstantTime.equal (position and number of differing bits), AES-GCM and ChaCha20-Poly1305 tag verification, AES key dependence, secp256k1 scalar multiplication, ECDSA and BIP-340 signing, ML-KEM decapsulation (valid against invalid ciphertexts; one ciphertext against many under one key), Ed25519 public-key derivation and signing (fixed against random seeds, fixed against random nonces) and SLIP-0010 derivation through the public interface; and, in a second build of the tool with testability, the Ed25519 internals with chosen operands (base-point and variable-base multiplication with scalars 0, 1, 2^252, 2^256-1 and a repeated scalar; field multiplication, squaring, inversion a…</p>155<table class="kv"><tr><td>Machine</td><td>MacStudnpierre6 — M4M64a (1-minute load 2.31 before the run)</td></tr><tr><td>Sample scale</td><td>1.0</td></tr><tr><td>Seed</td><td>2141648161651245875</td></tr><tr><td>Threshold</td><td>|t| &gt; 4.5, confirmed by a second run</td></tr><tr><td>Data-independent-timing flag (PSTATE.DIT)</td><td>supported: True, set during the measurements: False</td></tr><tr><td>Exceeded once / confirmed</td><td>none / none</td></tr></table>156<table class="num small"><thead><tr><th>Target</th><th>Classes (A / B)</th><th>Measurements</th><th>Mean ns (A / B)</th><th>t (raw)</th><th>max |t|</th><th>Verdict</th></tr></thead><tbody><tr><td>control-leaky-compare</td><td>difference in the first byte / difference in the last byte</td><td>200 000</td><td>2.5 / 86.7</td><td>-5606.22</td><td>9003.15</td><td>control</td></tr><tr><td>control-same-class</td><td>contents X / contents X</td><td>200 000</td><td>38.4 / 38.4</td><td>-1.28</td><td>1.28</td><td>control</td></tr><tr><td>ct-equal-position</td><td>difference in the first byte / difference in the last byte</td><td>400 000</td><td>35.7 / 35.7</td><td>-0.09</td><td>1.61</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ct-equal-hamming</td><td>one bit differs / random contents</td><td>400 000</td><td>36.2 / 36.2</td><td>+0.66</td><td>1.24</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>aesgcm-tag-position</td><td>tag wrong in the first byte / tag wrong in the last byte</td><td>300 000</td><td>2616.2 / 2616.2</td><td>-0.17</td><td>2.46</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>chachapoly-tag-position</td><td>tag wrong in the first byte / tag wrong in the last byte</td><td>300 000</td><td>774.3 / 774</td><td>+1.80</td><td>1.80</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>aes-key-dependence</td><td>all-zero key / random keys</td><td>200 000</td><td>10341.6 / 10342.7</td><td>-1.06</td><td>1.34</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>control-negative-aes-random-keys</td><td>random keys / other random keys</td><td>200 000</td><td>10346.5 / 10348.1</td><td>-1.29</td><td>1.66</td><td>control</td></tr><tr><td>secp256k1-mul-sparse</td><td>scalar = 1 (one bit set) / random scalars</td><td>24 000</td><td>201497.9 / 201508.6</td><td>-0.19</td><td>0.45</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>secp256k1-mul-dense</td><td>scalar = n − 1 / random scalars</td><td>24 000</td><td>201107.8 / 201146.8</td><td>-0.96</td><td>1.48</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>secp256k1-mul-fixed</td><td>one repeated scalar / random scalars</td><td>24 000</td><td>203038.6 / 203127.5</td><td>-0.82</td><td>1.54</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ecdsa-sign-key</td><td>one fixed key / random keys</td><td>16 000</td><td>838558.5 / 838871.8</td><td>-1.04</td><td>2.04</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ecdsa-sign-fixed-message</td><td>one repeated key / random keys</td><td>16 000</td><td>837305.1 / 837279</td><td>+0.12</td><td>1.79</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>schnorr-sign-key</td><td>one repeated key / random keys</td><td>10 000</td><td>819600.6 / 818846.7</td><td>+1.07</td><td>1.50</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>mlkem-decaps-ML-KEM-512</td><td>valid ciphertexts / invalid ciphertexts</td><td>80 000</td><td>14245.7 / 14239.7</td><td>+0.97</td><td>0.97</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>mlkem-decaps-ML-KEM-768</td><td>valid ciphertexts / invalid ciphertexts</td><td>80 000</td><td>21217.8 / 21216.6</td><td>+0.14</td><td>1.59</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>mlkem-decaps-ML-KEM-1024</td><td>valid ciphertexts / invalid ciphertexts</td><td>80 000</td><td>30298.2 / 30294.8</td><td>+0.30</td><td>1.38</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>mlkem-decaps-message-ML-KEM-512</td><td>one repeated ciphertext / random valid ciphertexts</td><td>80 000</td><td>14312.6 / 14317.8</td><td>-0.89</td><td>1.88</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>mlkem-decaps-message-ML-KEM-768</td><td>one repeated ciphertext / random valid ciphertexts</td><td>80 000</td><td>21099.4 / 21092.3</td><td>+0.93</td><td>1.52</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>mlkem-decaps-message-ML-KEM-1024</td><td>one repeated ciphertext / random valid ciphertexts</td><td>80 000</td><td>30242.4 / 30242.5</td><td>-0.01</td><td>0.93</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>control-negative-mlkem-ciphertexts-ML-KEM-512</td><td>random valid ciphertexts / other random valid ciphertexts</td><td>80 000</td><td>14217.7 / 14215.9</td><td>+0.32</td><td>1.27</td><td>control</td></tr><tr><td>control-negative-mlkem-ciphertexts-ML-KEM-768</td><td>random valid ciphertexts / other random valid ciphertexts</td><td>80 000</td><td>21273.9 / 21291.5</td><td>-2.09</td><td>2.45</td><td>control</td></tr><tr><td>control-negative-mlkem-ciphertexts-ML-KEM-1024</td><td>random valid ciphertexts / other random valid ciphertexts</td><td>80 000</td><td>30242 / 30240</td><td>+0.18</td><td>1.59</td><td>control</td></tr><tr><td>info-former-preparation-ML-KEM-512</td><td>one repeated ciphertext in one buffer / random valid ciphertexts in 5…</td><td>80 000</td><td>14735.6 / 14735.6</td><td>+0.00</td><td>1.07</td><td>informational</td></tr><tr><td>info-former-preparation-ML-KEM-768</td><td>one repeated ciphertext in one buffer / random valid ciphertexts in 5…</td><td>80 000</td><td>21329.1 / 21327.2</td><td>+0.22</td><td>1.93</td><td>informational</td></tr><tr><td>info-former-preparation-ML-KEM-1024</td><td>one repeated ciphertext in one buffer / random valid ciphertexts in 5…</td><td>80 000</td><td>30289.2 / 30308.6</td><td>-1.77</td><td>2.26</td><td>informational</td></tr><tr><td>control-positive-mlkem-leak-ML-KEM-768</td><td>one repeated ciphertext with K[0] = 0 / random valid ciphertexts</td><td>80 000</td><td>21397.7 / 21490</td><td>-10.86</td><td>43.19</td><td>control</td></tr><tr><td>info-mlkem-encaps-publickey-ML-KEM-768</td><td>one repeated public key / random public keys</td><td>80 000</td><td>16310.6 / 18522.8</td><td>-321.27</td><td>390.15</td><td>informational</td></tr><tr><td>info-mlkem-decaps-key-ML-KEM-768</td><td>one repeated key / random keys</td><td>80 000</td><td>22065 / 23821.7</td><td>-149.91</td><td>686.39</td><td>informational</td></tr><tr><td>ed25519-publickey-fixed</td><td>one repeated seed / random seeds</td><td>40 000</td><td>39204.1 / 39204.9</td><td>-0.03</td><td>0.90</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-sign-fixed-seed</td><td>one fixed seed / random seeds</td><td>16 000</td><td>165255.9 / 165091.5</td><td>+1.54</td><td>2.47</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-sign-fixed-nonce</td><td>one repeated message / random messages</td><td>16 000</td><td>165192.4 / 165251.9</td><td>-0.56</td><td>0.56</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>slip10-derive-fixed</td><td>one repeated seed / random seeds</td><td>40 000</td><td>10379.5 / 10381.1</td><td>-0.40</td><td>2.64</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-basemul-fixed</td><td>one repeated scalar / random scalars below ℓ</td><td>40 000</td><td>35244.6 / 35204.4</td><td>+1.79</td><td>1.79</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-basemul-one</td><td>scalar = 1 / random scalars below ℓ</td><td>40 000</td><td>34257.9 / 34266.2</td><td>-0.48</td><td>1.10</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-basemul-zero</td><td>scalar = 0 / random scalars below ℓ</td><td>40 000</td><td>34421.4 / 34428.7</td><td>-0.41</td><td>3.18</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-basemul-dense</td><td>scalar = 2^256 − 1 / random scalars below ℓ</td><td>40 000</td><td>34430.4 / 34419.4</td><td>+0.59</td><td>0.59</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-basemul-highbit</td><td>scalar = 2^252 / random scalars below ℓ</td><td>40 000</td><td>34533 / 34527.9</td><td>+0.27</td><td>1.34</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>info-public-ed25519-varmul-one</td><td>scalar = 1 / random scalars below ℓ</td><td>40 000</td><td>36321.2 / 36341.6</td><td>-1.02</td><td>1.57</td><td>informational</td></tr><tr><td>info-public-ed25519-varmul-fixed</td><td>one repeated scalar / random scalars below ℓ</td><td>40 000</td><td>36675.2 / 36663.9</td><td>+0.54</td><td>3.09</td><td>informational</td></tr><tr><td>ed25519-field-mul-one</td><td>operand = 1 / random values</td><td>200 000</td><td>19.5 / 19.5</td><td>+0.63</td><td>0.63</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-field-mul-max</td><td>operand = 2^255 − 1 / random values</td><td>200 000</td><td>19.9 / 19.9</td><td>-0.50</td><td>1.20</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-field-square-zero</td><td>value = 0 / random values</td><td>200 000</td><td>21 / 21</td><td>-0.96</td><td>1.15</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-field-invert-one</td><td>value = 1 / random values</td><td>80 000</td><td>4661 / 4663.4</td><td>-0.82</td><td>1.41</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-field-tobytes-edge</td><td>value = p − 1 / random values</td><td>200 000</td><td>10.9 / 11</td><td>-1.13</td><td>2.12</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-scalar-muladd-one</td><td>a = 1 / random values</td><td>200 000</td><td>50.4 / 50.4</td><td>-0.78</td><td>3.41</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-scalar-muladd-max</td><td>a = 2^255 − 1 / random values</td><td>200 000</td><td>51.9 / 51.9</td><td>-0.19</td><td>1.21</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-scalar-reducewide-zero</td><td>value = 0 / random values</td><td>200 000</td><td>64.4 / 64.4</td><td>-0.31</td><td>2.40</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>ed25519-scalar-reducewide-max</td><td>value = 2^512 − 1 / random values</td><td>200 000</td><td>64.4 / 64.4</td><td>-0.02</td><td>2.05</td><td><span class="v-passed">no evidence of leak</span></td></tr><tr><td>control-internals-control-leaky-compare</td><td>difference in the first byte / difference in the last byte</td><td>200 000</td><td>5.4 / 102.5</td><td>-996.99</td><td>15245.49</td><td>control</td></tr><tr><td>control-internals-control-same-class</td><td>contents X / contents X</td><td>200 000</td><td>11.7 / 11.7</td><td>+1.18</td><td>1.82</td><td>control</td></tr><tr><td>info-nodit-ed25519-basemul-fixed</td><td>one repeated scalar / random scalars below ℓ</td><td>40 000</td><td>33465.1 / 33466</td><td>-0.05</td><td>2.05</td><td>informational</td></tr><tr><td>info-nodit-ed25519-basemul-one</td><td>scalar = 1 / random scalars below ℓ</td><td>40 000</td><td>33479.7 / 33477.8</td><td>+0.11</td><td>1.24</td><td>informational</td></tr><tr><td>info-nodit-ed25519-basemul-zero</td><td>scalar = 0 / random scalars below ℓ</td><td>40 000</td><td>33421.4 / 33438.9</td><td>-0.95</td><td>4.72</td><td>informational</td></tr><tr><td>info-nodit-ed25519-basemul-dense</td><td>scalar = 2^256 − 1 / random scalars below ℓ</td><td>40 000</td><td>33596.6 / 33591</td><td>+0.30</td><td>3.64</td><td>informational</td></tr><tr><td>info-nodit-ed25519-basemul-highbit</td><td>scalar = 2^252 / random scalars below ℓ</td><td>40 000</td><td>33535.9 / 33516.1</td><td>+1.05</td><td>2.50</td><td>informational</td></tr><tr><td>info-nodit-ed25519-field-mul-one</td><td>operand = 1 / random values</td><td>200 000</td><td>18.8 / 18.8</td><td>+1.36</td><td>1.36</td><td>informational</td></tr><tr><td>info-nodit-ed25519-field-mul-max</td><td>operand = 2^255 − 1 / random values</td><td>200 000</td><td>18.7 / 18.8</td><td>-1.35</td><td>1.35</td><td>informational</td></tr><tr><td>info-nodit-ed25519-field-square-zero</td><td>value = 0 / random values</td><td>200 000</td><td>18.5 / 18.5</td><td>+0.49</td><td>0.49</td><td>informational</td></tr><tr><td>info-nodit-ed25519-field-invert-one</td><td>value = 1 / random values</td><td>80 000</td><td>4391.9 / 4391.9</td><td>-0.03</td><td>1.29</td><td>informational</td></tr><tr><td>info-nodit-ed25519-field-tobytes-edge</td><td>value = p − 1 / random values</td><td>200 000</td><td>10.5 / 10.5</td><td>+0.77</td><td>1.78</td><td>informational</td></tr><tr><td>info-nodit-ed25519-scalar-muladd-one</td><td>a = 1 / random values</td><td>200 000</td><td>48.6 / 48.6</td><td>+0.40</td><td>1.23</td><td>informational</td></tr><tr><td>info-nodit-ed25519-scalar-muladd-max</td><td>a = 2^255 − 1 / random values</td><td>200 000</td><td>48.8 / 48.8</td><td>-0.98</td><td>1.56</td><td>informational</td></tr><tr><td>info-nodit-ed25519-scalar-reducewide-zero</td><td>value = 0 / random values</td><td>200 000</td><td>63.9 / 63.9</td><td>-0.60</td><td>1.37</td><td>informational</td></tr><tr><td>info-nodit-ed25519-scalar-reducewide-max</td><td>value = 2^512 − 1 / random values</td><td>200 000</td><td>64.2 / 64.2</td><td>+1.01</td><td>1.92</td><td>informational</td></tr></tbody></table>157<h4>Source review for secret-dependent operations</h4>158<p>Manual review of the primitives (security/audit/review/crypto-primitives.json): 84 constructs examined (branches, table lookups, divisions, early exits, comparisons on secret data). The review reads the source; the machine-code check and the timing test above are its complement — finding QYV-AUD-002 was invisible in the source.</p>159<table class="num"><thead><tr><th>Verdict</th><th>Constructs</th></tr></thead><tbody><tr><td>constant-time by construction</td><td>34</td></tr><tr><td>conforms</td><td>24</td></tr><tr><td>variable-time, public data only</td><td>17</td></tr><tr><td>variable-time, rejection of values independent of the released secret</td><td>5</td></tr><tr><td>variable-time on secret-derived data, inherent to the algorithm</td><td>2</td></tr><tr><td>residual risk (documented)</td><td>1</td></tr><tr><td>finding (fixed)</td><td>1</td></tr></tbody></table>160<h3>Entropy and random numbers</h3>161<p>Static check — entropy: single source (SecRandomCopyBytes only in SystemRandom.swift, no other generator API): passed. 23 SystemRandom.bytes call sites in 12 files; SecRandomCopyBytes call sites: Sources/QyvoraMath/SystemRandom.swift:52; forbidden generator API occurrences: 0</p>162<p>Static check — entropy: deterministic generators in the engine (inventory): passed. defined: Sources/QyvoraBitcoin/CoinSelection.swift:276 `struct SeededGenerator {` | instantiated: Sources/QyvoraBitcoin/TransactionBuilder.swift:430 `var rng = SeededGenerator(seed: seedValue ?? 0)`. These are not key sources; see finding QYV-STA-002 when present.</p>163<table class="kv"><tr><td>source</td><td>SystemRandom.bytes (SecRandomCopyBytes) is the only generator referenced in Sources/ (grep for arc4random, SystemRandomNumberGenerator, .random(, drand48, SecRandom: no other use outside QyvoraMath/SystemRandom.swift at the reviewed revision).</td></tr><tr><td>failure mode</td><td>precondition failure (process stops) if SecRandomCopyBytes does not return errSecSuccess</td></tr><tr><td>key generation paths</td><td>[&#x27;MLKEM.generateKeyPair (d, z)&#x27;, &#x27;MLKEM.encapsulate (m)&#x27;, &#x27;MLDSA.generateKeyPair (xi)&#x27;, &#x27;MLDSA.sign hedged (rnd)&#x27;, &#x27;SLHDSA.generateKeyPair (SK.seed, SK.prf, PK.seed)&#x27;, &#x27;SLHDSA.sign hedged (opt_rand)&#x27;, &#x27;AES256GCM.seal / ChaCha20Poly1305.seal (96-bit nonce)&#x27;]</td></tr><tr><td>secp256k1</td><td>no key generation in the module (keys come from BIP-32 derivation in QyvoraCore); ECDSA nonces are deterministic (RFC 6979), Schnorr takes caller-supplied auxiliary randomness</td></tr><tr><td>aead random nonce birthday bound</td><td>{&#x27;nonce_bits&#x27;: 96, &#x27;collision_probability&#x27;: &#x27;about q^2 / 2^97 after q seals under one key&#x27;, &#x27;examples&#x27;: {&#x27;2^16 seals&#x27;: &#x27;2^-65&#x27;, &#x27;2^20 seals&#x27;: &#x27;2^-57&#x27;, &#x27;2^24 seals&#x27;: &#x27;2^-49&#x27;, &#x27;2^32 seals (SP 800-38D limit)&#x27;: &#x27;2^-33&#x27;}, &#x27;consequence_of_reuse&#x27;: &#x27;XOR of the two plaintexts revealed and, for GCM, the authentication key recoverable (forgeries)&#x27;, &#x27;enforced_by_engine&#x27;: False}</td></tr></table>164<p>Every key, seed and nonce of the engine is drawn from SystemRandom (SecRandomCopyBytes); the static check fails if another generator appears in the sources. Statistical sanity of the operating-system generator is not tested: such tests cannot establish that a generator is unpredictable. AEAD nonces are random 96-bit values: with q seals under one key the probability of a repeated nonce is about q²/2⁹⁷ (2⁻³³ after 2³² seals); the engine does not count seals per key, the vault and backups use per-record or per-file keys.</p>165<h3>Sensitive data in memory</h3>166<p>Swift offers no guaranteed erasure: arrays are copied on write, values may live in registers and on the stack, and strings (passwords, recovery phrases typed by the user) cannot be wiped. The reviews list what is erased and what cannot be.</p>167<table class="kv"><tr><td>Erased by the primitives</td><td>10 groups of temporaries (seeds, hash states, key schedules, nonces)</td></tr><tr><td>Not erasable</td><td>11 items (see findings QYV-CRY-003)</td></tr></table>168<table class="small"><thead><tr><th>Secret (service layer)</th><th>Representation</th><th>Wiping</th><th>Residual risk</th></tr></thead><tbody><tr><td>Vault master key</td><td>SecretBytes (manually allocated, mlock best effort, memset_s in deinit); copies handed to operations as [UInt8] and zeroed with defer</td><td>wiped</td><td>low</td></tr><tr><td>Vault password and PIN</td><td>Swift String parameters (`password`, `pin`, `current`, `new`), converted to NFKD UTF-8 bytes passed as temporaries</td><td>not wiped</td><td><span class="s-medium">medium</span></td></tr><tr><td>Key-encryption keys, Argon2 and PBKDF2 outputs, HKDF subkeys</td><td>[UInt8] locals</td><td>wiped</td><td>low</td></tr><tr><td>Device key and PIN device secret</td><td>[UInt8] read from the Keychain</td><td>wiped</td><td>low</td></tr><tr><td>Decrypted vault records (VaultRecord.payload)</td><td>immutable [UInt8] inside a struct returned to callers</td><td>partly wiped</td><td><span class="s-medium">medium</span></td></tr><tr><td>Recovery phrase as words</td><td>[String] from PhraseCodec.words, String from String(decoding:)</td><td>not wiped</td><td><span class="s-medium">medium</span></td></tr><tr><td>BIP-39 seed</td><td>[UInt8]</td><td>wiped</td><td>low</td></tr><tr><td>Extended private keys (ExtendedKey)</td><td>struct with immutable [UInt8] members (`privateKey`, `chainCode`)</td><td>not wiped</td><td><span class="s-medium">medium</span></td></tr><tr><td>Signing keys (Bitcoin, Ethereum)</td><td>[UInt8] copy of ExtendedKey.privateKey</td><td>copy wiped</td><td><span class="s-medium">medium</span></td></tr><tr><td>WIF payload</td><td>[UInt8]</td><td>partly wiped</td><td>low</td></tr><tr><td>Identity private keys</td><td>struct with immutable [UInt8] members (ML-DSA, SLH-DSA, ML-KEM, X25519 private keys)</td><td>not wiped</td><td><span class="s-medium">medium</span></td></tr><tr><td>Hybrid envelope secrets</td><td>[UInt8] (ephemeral X25519 private key, both shared secrets, payload key, HKDF input)</td><td>wiped</td><td>low</td></tr><tr><td>Backup plaintext</td><td>[UInt8]</td><td>wiped</td><td>low</td></tr><tr><td>Recovery sheet with private material</td><td>Codable struct holding the phrase and passphrase as String, JSON and plain-text renderings</td><td>not wiped</td><td>high (by design, opt-in)</td></tr><tr><td>Secure Enclave wrapping</td><td>private key inside the Secure Enclave; opaque handle in the Keychain</td><td>not applicable</td><td>low</td></tr><tr><td>Profile and caches</td><td>plain JSON on disk (account public keys, addresses, labels, endpoints, price cache)</td><td>not secret</td><td>low</td></tr></tbody></table>169<h2>5. Wallet and application security</h2>170<p>Post-quantum protection concerns local storage (vault), backups, device-to-device transfers and the separate identity. It is assessed separately from the security of Bitcoin and Ethereum transactions, which rest on secp256k1, on the protocols themselves and on the review-before-sign logic of the wallet service.</p>171<h3>Wallet audit (key storage, authentication, backup, network, transactions)</h3>172<p>Source review of the service layer (QyvoraWallet, QyvoraVault, QyvoraStorage, QyvoraNetworking, QyvoraBitcoin, QyvoraEthereum, QyvoraRecovery, QyvoraIdentity), of the UI components (QyvoraUI) and of the application sources present at the audited commit, with automated checks re-evaluated at every run. The application screens for sending, reviewing, unlocking and displaying the phrase were not finished: items that depend on them say so. No dynamic test on a device, no real funds.</p>173<table class="num"><thead><tr><th>Items</th><th>Pass</th><th>Partial</th><th>Fail</th><th>Not applicable</th><th>Not assessed</th><th>Stale evidence</th></tr></thead><tbody><tr><td>94</td><td>78</td><td>14</td><td>0</td><td>2</td><td>0</td><td>0</td></tr></tbody></table>174<table class="small"><thead><tr><th>Item</th><th>Title</th><th>Verdict</th><th>Rationale (abridged)</th></tr></thead><tbody><tr><td>WA-KEY-01</td><td>Vault file format: every secret encrypted and the whole file authenticated</td><td><span class="v-passed">pass</span></td><td>One file holds all secrets as records sealed with AES-256-GCM (96-bit random nonce, associated data binding vault, record identifier, type, creation time and key epoch). The file ends with an HMAC-SHA256 under a key derived from the master key and a SHA-256 checksum; parsing is bounds-checked and returns typed errors. Tests cor…</td></tr><tr><td>WA-KEY-02</td><td>Slot wrapping: the master key is wrapped independently per credential, with a slow, salte…</td><td><span class="v-passed">pass</span></td><td>Password and PIN slots wrap the random 256-bit master key under HKDF-SHA256(Argon2id ‖ PBKDF2-HMAC-SHA512) with per-slot salts and a slot-type label; the associated data binds the slot to the vault and the key epoch. A wrong credential and a damaged file are distinguished; changing the password scrubs the previous copy.</td></tr><tr><td>WA-KEY-03</td><td>Keychain attributes</td><td><span class="v-passed">pass</span></td><td>Generic-password items in the data-protection Keychain, class WhenPasscodeSetThisDeviceOnly, never synchronizable; the device-slot key adds `.biometryCurrentSet`. The PIN failure counter also lives there, so replacing the vault file does not reset it.</td></tr><tr><td>WA-KEY-04</td><td>Secure Enclave wrapper</td><td><span class="v-passed">pass</span></td><td>Optional second layer of the device slot: an ECIES-like wrap (ephemeral P-256 ECDH, HKDF-SHA256, AES-256-GCM, CryptoKit only) under a Secure Enclave key-agreement key that never leaves the hardware. The service enables it by default for biometrics and refuses to enable it where no enclave exists.</td></tr><tr><td>WA-KEY-05</td><td>Design versus implementation of key storage</td><td><span class="v-passed">pass</span></td><td>The implementation matches the documented format (a test compares the byte layout with the documentation) and the threat model: system AEAD by default with an engine backend proven interoperable, two independent KDF implementations combined, previous-generation file kept for crash safety and scrubbed whenever a secret is replac…</td></tr><tr><td>WA-KEY-06</td><td>Secrets in memory</td><td><span class="v-NOT">partial</span></td><td>On the signing path the phrase, the passphrase, the seed, the master key, the derived extended keys and the child private key are held as bytes for the duration of one signature and erased where they are; no String of the phrase is built for a signature (QYV-CRY-003, reduced). The vault keeps its master key in `SecretBytes`.</td></tr><tr><td>WA-AUTH-01</td><td>Face ID path</td><td><span class="v-passed">pass</span></td><td>Biometric unlock reads a Keychain item protected by `.biometryCurrentSet`: the system performs the match and releases the key; no boolean result is trusted, a changed enrolment invalidates the item, and a key from an older slot generation is rejected by the AEAD.</td></tr><tr><td>WA-AUTH-02</td><td>PIN: throttling, device binding, optional wipe</td><td><span class="v-passed">pass</span></td><td>Six digits, trivial PINs refused by the service (QYV-APP-011, fixed); bound to a device secret in the Keychain; escalating delays measured on the monotonic clock of the boot session, restarted in full after a restart or a clock change (QYV-SVC-010, fixed); counter in the Keychain, optional wipe. On a compromised device the Keyc…</td></tr><tr><td>WA-AUTH-03</td><td>Auto-lock</td><td><span class="v-passed">pass</span></td><td>Applied by the application on a timer, on leaving for the background and before content is shown on return; decisions in `AutoLockRule`, tested against the service; &quot;never&quot; and delays above fifteen minutes refused (QYV-APP-003 and QYV-APP-004, fixed).</td></tr><tr><td>WA-AUTH-04</td><td>Fresh authentication for sensitive operations</td><td><span class="v-passed">pass</span></td><td>Enforced by the service: a credential verified within two minutes on the monotonic clock is required by every sensitive call (QYV-APP-002, fixed); `changePassword` and `rotateMasterKey` verify the password themselves.</td></tr><tr><td>WA-PHR-01</td><td>Generation and storage of the recovery phrase</td><td><span class="v-passed">pass</span></td><td>24 words from 256 bits of `SystemRandom` entropy (BIP-39, checksum verified by the official vectors); stored only as a vault record; returned once at creation; imports verify word list and checksum; the service checks at every signature that the phrase in the vault still derives the wallet&#x27;s public account.</td></tr><tr><td>WA-PHR-02</td><td>Display and entry of the recovery phrase</td><td><span class="v-passed">pass</span></td><td>Keyboard extensions refused (QYV-APP-005, fixed); words hidden while the screen is captured, warning after a screenshot, no copy and no selection, reveal behind a re-authentication and removed when the screen is left (QYV-APP-006, fixed); warning on a device that looks compromised. Residual: a screenshot cannot be prevented; th…</td></tr><tr><td>WA-BAK-01</td><td>Backup file</td><td><span class="v-passed">pass</span></td><td>&quot;QYVORA Backup v1&quot;: all records re-encrypted with AES-256-GCM under a key stretched from an independent backup password (own salts, same combiner), header authenticated as associated data, optional signature by the wallet&#x27;s post-quantum identity with signer pinning on restore, trailing checksum, size limits. Scope of the post-q…</td></tr><tr><td>WA-BAK-02</td><td>Restore</td><td><span class="v-passed">pass</span></td><td>Everything is verified before a vault is created (decryption, optional signature and signer, presence of a phrase, derivation of the public data); a failure leaves nothing half-created; restore is refused when a wallet already exists.</td></tr><tr><td>WA-BAK-03</td><td>Device-to-device transfer</td><td><span class="v-passed">pass</span></td><td>The encrypted backup is wrapped in a hybrid envelope for the receiving device&#x27;s temporary identity: X25519 and ML-KEM-1024 combined through HKDF over a transcript, AES-256-GCM, signed by the sender; the backup password still applies inside. Scope of the post-quantum statement: this concerns the protection of data at rest and in…</td></tr><tr><td>WA-DP-01</td><td>Data-protection class and backup exclusion</td><td><span class="v-passed">pass</span></td><td>FileStore writes with NSFileProtectionComplete, sets the protection key on every file and on the directory, and flags them excluded from backups; the entitlement declares the same default; the container is not exposed to file sharing.</td></tr><tr><td>WA-DP-02</td><td>Logs, crash reports and defaults</td><td><span class="v-passed">pass</span></td><td>No logging call anywhere in the engine, the services or the application; errors carry no secret by construction (typed enums); UserDefaults holds appearance and endpoint URLs only; debug launch code is compiled out of Release.</td></tr><tr><td>WA-DP-03</td><td>Pasteboard and screenshots</td><td><span class="v-passed">pass</span></td><td>Every copied value is local to the device and expires (60 s sensitive, 600 s otherwise); the phrase is never copied; screen capture hides the words and a screenshot is reported (QYV-APP-006, fixed).</td></tr><tr><td>WA-NET-01</td><td>Transport security (ATS, redirects, cookies, trust)</td><td><span class="v-passed">pass</span></td><td>ATS at its default; ephemeral session without cookies, cache or credentials; redirects refused; no trust override; fixed User-Agent, no identifier.</td></tr><tr><td>WA-NET-02</td><td>No certificate pinning — rationale</td><td>not-applicable</td><td>By design: there is no QYVORA server, and the endpoints are public third-party services or the user&#x27;s own nodes. See MASVS-NETWORK-2 for what a TLS-level attacker can and cannot do; the decisive checks (what is signed, to whom, for how much, on which chain) never depend on an endpoint&#x27;s honesty.</td></tr><tr><td>WA-NET-03</td><td>Endpoint validation</td><td><span class="v-passed">pass</span></td><td>Every configured URL must be https, or http to a local or private host (literal private IPv4, localhost, .local, .onion); credentials in URLs are refused; unknown network names are refused; the editor applies the same rule; the service filters again when building clients.</td></tr><tr><td>WA-NET-04</td><td>Chain-identity checks</td><td><span class="v-passed">pass</span></td><td>Before first use of an endpoint list the Esplora endpoints must serve the expected genesis block and every JSON-RPC endpoint must agree on the expected chain id; a mismatch is a `wrongChain` error; changing endpoints resets the verification. Since the multi-chain upgrade the comparison is made by one function for every UTXO ind…</td></tr><tr><td>WA-NET-05</td><td>Cold mode</td><td><span class="v-passed">pass</span></td><td>When on, the gate fails every request with `.offline` before it leaves the device; creation, import, address display and signing keep working.</td></tr><tr><td>WA-FRD-01</td><td>Address validation</td><td><span class="v-passed">pass</span></td><td>Bitcoin: Base58Check and Bech32 / Bech32m decoding with checksum, network and witness-program checks, refusal of unassigned witness versions. Ethereum: EIP-55 verified when mixed case, warning when absent, zero address and token-contract-as-recipient refused.</td></tr><tr><td>WA-FRD-02</td><td>Review before signing; what is shown is what is signed</td><td><span class="v-passed">pass</span></td><td>Signing takes the review object produced by `prepare…`; these types have no public initializer, so the interface cannot forge or alter one. Before signing the plan is re-validated against the current state; after signing, every signature is verified, the transaction identifier, outputs and lock time are compared with the review…</td></tr><tr><td>WA-FRD-03</td><td>Change detection by derivation</td><td><span class="v-passed">pass</span></td><td>Change goes to the next unused address of the internal chain; in a received PSBT an output is treated as the wallet&#x27;s own only if its script is found by deriving the account&#x27;s keys, and as change only on the internal chain; everything else counts as sent to others.</td></tr><tr><td>WA-FRD-04</td><td>Blind-signing rules</td><td><span class="v-passed">pass</span></td><td>Call data the wallet cannot decode is shown as raw hexadecimal with a `.blindSigning` warning and refused unless `allowBlindSigning` is passed; on mainnet it is always refused, approvals are limited to revocations and token transfers must be priced. Only SIGHASH_ALL is signed for Bitcoin. No arbitrary-message signing with chain…</td></tr><tr><td>WA-FEE-01</td><td>Bitcoin fee caps and dust</td><td><span class="v-passed">pass</span></td><td>Hard caps of 1 000 000 sat and 1 000 sat/vB at build time, re-checked at signature and for received PSBTs; warnings for a high absolute fee or fee share; dust outputs refused by the builder and dust change folded into the fee with a warning; a PSBT whose fee cannot be computed is refused.</td></tr><tr><td>WA-FEE-02</td><td>UTXO handling</td><td><span class="v-passed">pass</span></td><td>Outputs are range-checked when read from the indexer; frozen and unconfirmed outputs are not selected unless asked; outputs spent in the session are set aside until the next synchronisation; a plan is refused when an input is no longer available or changed value; exposure of public keys is tracked per output.</td></tr><tr><td>WA-FEE-03</td><td>Ethereum fees, gas and nonce</td><td><span class="v-passed">pass</span></td><td>maxFeePerGas = 2 × base fee + tip, refused above 100 000 gwei; gas 21 000 for transfers, estimate × 1.3 + 5 000 capped at 200 000 for token calls; total cost checked against the balance read again on chain. The nonce is the latest count; a pending transaction blocks a new one unless the caller asks to replace it; both counts ne…</td></tr><tr><td>WA-RPL-01</td><td>Ethereum replay protection</td><td><span class="v-passed">pass</span></td><td>Only EIP-1559 type-2 transactions: the chain id is inside the signed payload and must equal the active network&#x27;s before signing and before broadcasting a cold-signed transaction.</td></tr><tr><td>WA-RPL-02</td><td>Bitcoin replay protection</td><td>not-applicable</td><td>Bitcoin transactions carry no chain identifier: a transaction valid on Bitcoin is not protected against replay on a fork that shares its history and signature scheme (the historical forks added their own fork identifier). Between the networks the wallet supports, separation comes from distinct keys (coin type 0 versus 1 in the …</td></tr><tr><td>WA-MNG-01</td><td>Mainnet gate: both conditions</td><td><span class="v-passed">pass</span></td><td>Mainnet operations require `auditCompleted` or (the build&#x27;s `QYInternalMainnet` declaration AND the user&#x27;s opt-in). A stored profile cannot widen the policy; every account accessor, client constructor and network switch calls `requireAllowed`; turning the opt-in off moves the wallet back to test networks.</td></tr><tr><td>WA-MNG-02</td><td>Limits of an unaudited build, enforced at prepare and at sign</td><td><span class="v-passed">pass</span></td><td>Bitcoin: at most 0.002 BTC to recipients per transaction, checked when the plan is built (requested amount and actual paid amount), again in `validate` on what will be signed, and for PSBTs at signature and at broadcast. Ethereum: at most 0.05 ETH, token transfers at most 150 USD at a fresh price and only for priced tokens, app…</td></tr><tr><td>WA-PQC-01</td><td>Post-quantum protection of local storage is stated separately from transaction security</td><td><span class="v-passed">pass</span></td><td>What post-quantum algorithms protect: the device-to-device transfer envelope (X25519 + ML-KEM-1024 hybrid) and the identity signatures on backups, envelopes and rotation certificates (ML-DSA, optionally with SLH-DSA). The vault and backup files themselves are protected by symmetric cryptography (AES-256-GCM, Argon2id / PBKDF2),…</td></tr><tr><td>WA-EVM-01</td><td>EVM network table: chain identifiers, native coins and decimals of the fourteen networks</td><td><span class="v-passed">pass</span></td><td>The chain identifier signs for a chain and the decimals scale what is shown: both equal the public chain registry for the seven main and seven test networks (transcribed by the reviewer, and compared with the registry shipped in eth-utils); an identifier the wallet does not support names no network.</td></tr><tr><td>WA-EVM-02</td><td>EIP-1559 signing on every EVM network, identical to an independent library</td><td><span class="v-passed">pass</span></td><td>Unsigned payload, signing hash, RFC 6979 signature (r, s, yParity), raw transaction, hash and sender are byte-identical to eth-account 0.14.0 for random transactions on the fourteen identifiers of the table and on boundary identifiers up to 2^64 − 1; a signature relabelled for another network never recovers the signer. Only typ…</td></tr><tr><td>WA-EVM-03</td><td>EVM fee rules bound every figure an endpoint supplies</td><td><span class="v-passed">pass</span></td><td>maxPriorityFeePerGas ≤ maxFeePerGas always; base fee, priority fee and gas price below 10 000 gwei, max fee below 100 000 gwei, checked arithmetic; Polygon&#x27;s minimum tip and BNB Smart Chain&#x27;s zero base fee handled; gas limit at most 200 000; on an unaudited mainnet build the maximum fee of a transaction is capped (0.01 ETH, or …</td></tr><tr><td>WA-EVM-04</td><td>OP-Stack L1 data fee: quoted for the transaction, never assumed zero, counted in the fee,…</td><td><span class="v-NOT">partial</span></td><td>On Base and OP networks the L1 data fee is read from the GasPriceOracle predeploy for the very transaction; the answer must be one 32-byte word below 0.1 ETH, a failure refuses the payment; the fee with a margin of one quarter is in the maximum fee, in the total checked against the balance, in the fee ceiling of an unaudited bu…</td></tr><tr><td>WA-EVM-05</td><td>Chain identity of the endpoints of every EVM network</td><td><span class="v-passed">pass</span></td><td>Before anything an endpoint says is used, every endpoint of the network must answer the chain identifier of the table (checked once per session and per endpoint list, again after any change of endpoints). An endpoint of another chain configured for a network is refused on each of the fourteen networks.</td></tr><tr><td>WA-EVM-06</td><td>Built-in token lists of the EVM networks: pinned decimals, checksummed contracts, unknown…</td><td><span class="v-passed">pass</span></td><td>A built-in row is accepted only with its exact EIP-55 checksum; decimals are pinned in the list and compared with the contract once per session; tokens the indexer reports are described by the chain and quarantined in detectedTokens; a token without a price identifier cannot be sent on an unaudited mainnet build.</td></tr><tr><td>WA-MC-01</td><td>Limits table: a ceiling for every main network of every family, applied to the bytes at p…</td><td><span class="v-NOT">partial</span></td><td>Each of the thirteen main networks has a value ceiling and a fee ceiling (no default that means unlimited); they are applied to the transaction itself when it is prepared, again when it is signed (hot and cold), and at the broadcast of a cold-signed transaction. A review object altered after the review, a review of another netw…</td></tr><tr><td>WA-MC-02</td><td>Mainnet gate on every family and every entry point</td><td><span class="v-passed">pass</span></td><td>Both conditions (build declaration and user switch) are required by one rule that every family&#x27;s entry points reach: synchronization, preparation, signature, broadcast, tracking, token management, the cold envelope by its label and the EVM cold payload by its chain identifier, watch-only import, restored snapshots. A stored pro…</td></tr><tr><td>WA-MC-03</td><td>Leaving the test networks needs a fresh authentication, through every setter</td><td><span class="v-passed">pass</span></td><td>setNetworkMode(.main), setBitcoinNetwork, setEthereumNetwork and setActiveNetworks require a credential verified within the authentication window when a network goes from test to main; turning the user switch on does as well. Going back to test networks asks nothing.</td></tr><tr><td>WA-MC-04</td><td>Cold-mode envelope: strict form, family bound, review decoded from the payload, signed re…</td><td><span class="v-NOT">partial</span></td><td>qyvtx1|u or s|chain|payload with exactly four parts, a known and active chain, a canonical payload of that family paid and signed by this wallet&#x27;s account alone; nothing descriptive travels next to the payload, so the cold device can only show what it decodes; the limits and the gate are applied on the cold device; a signed res…</td></tr><tr><td>WA-MC-05</td><td>Watch-only package v2: public material only, strict reading, chains limited to the accoun…</td><td><span class="v-NOT">partial</span></td><td>The package holds account public keys and addresses only (checked against every private form of the test phrase); a private key in a package is refused; a chain is enabled only when the package carried an account of its family; main-network accounts are left out while the gate is closed; a refused package leaves no wallet.</td></tr><tr><td>WA-MC-06</td><td>Vault account binding v2: the accounts of every family are vouched for by the vault</td><td><span class="v-passed">pass</span></td><td>The public account data of every family (UTXO account keys by network, EVM, Solana and TRON addresses) is kept in a vault record and compared with the profile file at every unlock; a difference is repaired from the vault and counted; the key derived for a signature is compared with the vault&#x27;s record. A version-1 record is comp…</td></tr><tr><td>WA-MC-07</td><td>Persisted chain snapshots: validated, bounded, tied to account, network and endpoints, ne…</td><td><span class="v-passed">pass</span></td><td>One file per network under a constant name; a file of another account, network, endpoint list or version, oversized or with a value out of range is ignored and removed; restored data is flagged as coming from a previous session; payments read their figures again on chain (or need a snapshot of this session on UTXO chains), and …</td></tr><tr><td>WA-MC-08</td><td>Address validation across families: one entry point, no address valid for two families</td><td><span class="v-NOT">partial</span></td><td>checkAddress is called by prepareSend on every chain; an address of another family or network is refused with a reason that names what it is; the result carries the notes the interface needs (no checksum, off-curve Solana address, legacy Bitcoin Cash form, own address); no text is accepted by two families on any of the 29 netwo…</td></tr><tr><td>WA-MC-09</td><td>Endpoint configuration: https, private hosts only over http, no credentials, bounded, set…</td><td><span class="v-passed">pass</span></td><td>A configuration is accepted only when every URL of every family is https, or http to the device itself or a private network, without user or password; counts, lengths and network names are bounded; the change needs a fresh authentication, forgets what was read from the previous endpoints and verifies chain identity again. A sto…</td></tr><tr><td>WA-SOL-01</td><td>Solana key derivation and recovery sheet</td><td><span class="v-passed">pass</span></td><td>The account key is the SLIP-0010 Ed25519 key at m/44&#x27;/501&#x27;/0&#x27;/0&#x27; of the BIP-39 seed (the default of Phantom, Solflare and Ledger); the recovery sheet prints the path from the same function and the address derived by the same code, with the note that the address is the public key. Differential: 3 001 random seeds, accounts and s…</td></tr><tr><td>WA-SOL-02</td><td>Solana signing key in memory</td><td><span class="v-passed">pass</span></td><td>The BIP-39 seed exists only inside withSeed (vault unlocked, fresh authentication) and is zeroed on every exit path; the SLIP-0010 node is wiped; the 32-byte Ed25519 seed is zeroed by defer, including when the key does not match the account or signing throws. Nothing is captured by an escaping closure, converted to text or logg…</td></tr><tr><td>WA-SOL-03</td><td>Solana address validation and cross-family confusion</td><td><span class="v-NOT">partial</span></td><td>Strict base58 of exactly 32 bytes (no trimming), programs, sysvars and the wrapped-SOL mint refused, a text of another family refused with its family named; notes for &quot;no checksum&quot; and for an address that is not a curve point; the planner refuses a recipient that exists and is not a wallet, and warns on off-curve, new and first…</td></tr><tr><td>WA-SOL-04</td><td>Solana: what is shown is what is signed</td><td><span class="v-passed">pass</span></td><td>The transaction is built locally by the planner (never taken from a server), the review is checked against the decoding of its bytes when it is made and again before signing (QYV-SVC-023), the signature covers message.serialize() of that very value and the signed transaction must decode back to the reviewed message. Tokens move…</td></tr><tr><td>WA-SOL-05</td><td>Solana blind signing</td><td><span class="v-passed">pass</span></td><td>Only exact layouts of the System, Compute Budget, Token, Token-2022, Associated Token Account and Memo programs are recognised; any other program or layout, and any account taken from an address lookup table, makes the review blind. The hot path signs only the planner&#x27;s payments; the cold path refuses a blind transaction unless…</td></tr><tr><td>WA-SOL-06</td><td>Solana replay protection and cluster binding</td><td><span class="v-NOT">partial</span></td><td>Replay on the same cluster is prevented by the protocol (recent blockhash, about 150 blocks; a processed signature is refused) and by the service (a review is signed once and re-sent as the same bytes; the same payment is refused while one is pending; an expired review is not signed). Durable nonces are not used and a foreign n…</td></tr><tr><td>WA-SOL-07</td><td>Solana fees: ceiling and rent</td><td><span class="v-passed">pass</span></td><td>Signature fee 5 000 lamports; priority fee = ⌈limit × price / 10^6⌉ computed with overflow detection, refused above 0.01 SOL at prepare and at sign on every cluster; the suggested price is clamped to 5 000 … 2 000 000 micro-lamports whatever the endpoint reports; rent minimums from the endpoint must be positive and at most 0.01…</td></tr><tr><td>WA-SOL-08</td><td>Solana per-transaction limits of an unaudited build</td><td><span class="v-passed">pass</span></td><td>On mainnet-beta an unaudited build signs only a plain payment it decodes entirely, with SOL ≤ 150 USD and each token ≤ 150 USD at a fresh price (no price, no transaction), a priority fee ≤ 0.01 SOL and at most one token-account creation. The figures are computed from the decoded bytes — not from the plan — when the transaction …</td></tr><tr><td>WA-SOL-09</td><td>Solana mainnet gate (both conditions)</td><td><span class="v-passed">pass</span></td><td>Every Solana operation on mainnet-beta passes requireAllowed: refused unless the audit is recorded as completed, or the build is internal AND the user switched mainnet on. The account and the client are obtained only through functions that call it. A test-cluster signature can no longer be turned into a mainnet one by a test en…</td></tr><tr><td>WA-SOL-10</td><td>Solana endpoint policy</td><td><span class="v-NOT">partial</span></td><td>JSON-RPC over the shared transport (https, or http for local hosts only); answers bounded (8 MiB, capped lists, truncated texts), integers read exactly, strict JSON with bounded depth; the genesis hash of every endpoint is checked once per session. Reads take the first answer (no quorum); broadcasts go to every endpoint with a …</td></tr><tr><td>WA-SOL-11</td><td>Solana: the address is the public key (post-quantum scope)</td><td><span class="v-passed">pass</span></td><td>A Solana address is the Ed25519 public key itself: it is public as soon as the address is shared or used, unlike a hashed address. Ed25519 offers no protection against a quantum adversary and nothing in QYVORA changes that for Solana transactions; the service states it in the exposure note of the chain. The post-quantum algorit…</td></tr><tr><td>WA-TRON-01</td><td>TRON key derivation and recovery sheet</td><td><span class="v-passed">pass</span></td><td>The account key is the BIP-32 secp256k1 key at m/44&#x27;/195&#x27;/0&#x27;/0/0 of the BIP-39 seed (what TronLink, Ledger Live and TronWeb derive), on every TRON network. The recovery sheet prints the path from the same function and the address from the same code. Random seeds and indices agree with bip-utils; the account of the test phrase e…</td></tr><tr><td>WA-TRON-02</td><td>TRON signing key lives in memory for the duration of a signature</td><td><span class="v-passed">pass</span></td><td>signTron derives the key under withMasterKey, checks that it gives the account the profile and the vault vouch for, signs, and wipes the derived key and the private scalar on every path. No TRON private key is stored, logged or returned.</td></tr><tr><td>WA-TRON-03</td><td>TRON address validation and cross-family confusion</td><td><span class="v-passed">pass</span></td><td>A recipient must be the Base58Check form (34 characters, T, checksum, prefix 0x41). The hexadecimal 41… form and the EVM 0x… form — the same twenty bytes — are refused with their own sentences, as are the zero address, the mainnet burn address, the wallet&#x27;s own address and token contracts. A contract recipient is a critical war…</td></tr><tr><td>WA-TRON-04</td><td>TRON: what is shown is what is signed; nothing a node built is signed</td><td><span class="v-passed">pass</span></td><td>raw_data is encoded on the device from the plan; the transaction id is SHA-256 of those bytes; the review is derived from the same transaction and, before signing, compared with the figures shown; a payload received by a cold device must be the canonical encoding of what it decodes to. The node&#x27;s createtransaction is never used…</td></tr><tr><td>WA-TRON-05</td><td>TRON blind signing</td><td><span class="v-passed">pass</span></td><td>The wallet builds TransferContract and TRC-20 transfer(address,uint256) only. On a cold device a TRC-20 approval is decoded and shown (unlimited approvals flagged critical); any other contract call and any other contract type is refused unless blind signing is allowed explicitly, and refused whatever is passed on an unaudited m…</td></tr><tr><td>WA-TRON-06</td><td>TRON replay protection and network binding</td><td><span class="v-NOT">partial</span></td><td>A transaction is bound to a recent block (TaPoS), an expiration (120 s by default, never more than 65 minutes at signing) and its own id; the chain refuses duplicates. No chain identifier exists in the format: the reference block is agreed by every answering node and, on a test network, checked against the main network before s…</td></tr><tr><td>WA-TRON-07</td><td>TRON fees: fee_limit ceiling, bandwidth, energy, activation</td><td><span class="v-passed">pass</span></td><td>Fees are computed with checked arithmetic from chain parameters that are bounded when read. fee_limit is the simulated energy plus 25 % at the chain price, refused above 100 TRX (and above the protocol&#x27;s ceiling) when planning and again when signing, on every network; the worst-case fee of a plan is refused above 100 TRX. Send-…</td></tr><tr><td>WA-TRON-08</td><td>TRON mainnet gate: both conditions</td><td><span class="v-passed">pass</span></td><td>Every TRON entry point resolves the account through tronAccount / verifiedTron, which call requireAllowed: the main network needs the build&#x27;s declaration and the user&#x27;s switch. The cold path goes through the same function.</td></tr><tr><td>WA-TRON-09</td><td>TRON per-transaction limits at prepare and at sign</td><td><span class="v-passed">pass</span></td><td>On an unaudited mainnet: TRX amount under the dollar ceiling at a fresh price (no price, no transaction), TRC-20 only for tokens with a known price under their ceiling, nothing else. Applied when the review is prepared, before signing in signAndBroadcastTron, inside signTron (so a cold signature too) and before a cold-signed tr…</td></tr><tr><td>WA-TRON-10</td><td>TRON endpoint policy</td><td><span class="v-NOT">partial</span></td><td>Endpoints are https (http for a local host), user-editable, genesis-checked once per session. Reads follow the first usable answer; the reference block alone is agreed between nodes. Answers are size-bounded, strictly parsed and range-checked; no redirect is followed.</td></tr><tr><td>WA-TRON-11</td><td>TronGrid API key handling</td><td><span class="v-passed">pass</span></td><td>The key is a vault record, set behind a fresh authentication; the profile stores a boolean; the type redacts itself in every textual form and accepts only letters, digits, &#x27;-&#x27; and &#x27;_&#x27; (8 to 128); it is sent as a header to trongrid.io hosts over https only, never in a URL, never to a custom endpoint, and the transport follows no…</td></tr><tr><td>WA-TRON-12</td><td>TRON and post-quantum scope</td><td><span class="v-passed">pass</span></td><td>TRON transactions are signed with secp256k1 ECDSA, as the protocol requires: nothing post-quantum protects them. The post-quantum layer protects the vault that holds the seed and the API key, not the chain.</td></tr><tr><td>WA-UTXO-01</td><td>Litecoin, Dogecoin, Bitcoin Cash: derivation paths, and the recovery sheet prints the pat…</td><td><span class="v-passed">pass</span></td><td>Accounts are m/84&#x27;/2&#x27;/0&#x27; (Litecoin, native SegWit), m/44&#x27;/3&#x27;/0&#x27; (Dogecoin) and m/44&#x27;/145&#x27;/0&#x27; (Bitcoin Cash), coin type 1 on test networks: the SLIP-0044 values other wallets use. The recovery sheet builds each entry from the same `UTXOAccount` and prints its `accountPath`, its account key (xpub / tpub) and its first address. Ac…</td></tr><tr><td>WA-UTXO-02</td><td>Address validation of the UTXO coins: no acceptance of another coin&#x27;s address</td><td><span class="v-passed">pass</span></td><td>An address is accepted only in the encodings of its own network: Litecoin 0x30 / 0x32 / ltc1 (the former 0x05 P2SH form, Bitcoin&#x27;s own, is refused); Dogecoin 0x1e / 0x16 and no SegWit address; Bitcoin Cash CashAddr with the network&#x27;s prefix, 20-byte P2PKH and P2SH only. Version bytes and prefixes match the reference clients and…</td></tr><tr><td>WA-UTXO-03</td><td>Replay protection of the UTXO coins</td><td><span class="v-NOT">partial</span></td><td>Bitcoin Cash: every signature carries SIGHASH_FORKID (0x41) over the fork-id digest; it is invalid on Bitcoin, and a Bitcoin, Litecoin or Dogecoin signature is invalid on Bitcoin Cash (tested both ways on random keys and on main-network transactions). Litecoin and Dogecoin sign the same digest as Bitcoin; a signature is bound t…</td></tr><tr><td>WA-UTXO-04</td><td>Dogecoin: every coin is checked against the transaction that created it before it is sign…</td><td><span class="v-passed">pass</span></td><td>The original signature hash does not commit to the amounts spent: an indexer understating a coin would turn the difference into fee. Before signing a P2PKH input outside Bitcoin Cash the account requires the previous transaction, recomputes its identifier, and compares the amount and the script; the service fetches the raw tran…</td></tr><tr><td>WA-UTXO-05</td><td>Fee floors, ceilings and dust of the UTXO coins</td><td><span class="v-passed">pass</span></td><td>Per network: a fee floor (Litecoin 1 lit/vB, Dogecoin 0.01 DOGE/kB — the reference wallet&#x27;s recommended fee —, Bitcoin Cash 1 sat/byte), a ceiling above which nothing is built, and the dust rule of the reference client (Litecoin: Bitcoin Core&#x27;s formula at 30 000 lit/kvB; Dogecoin: 0.01 DOGE; Bitcoin Cash: 546 sat). The builder …</td></tr><tr><td>WA-UTXO-06</td><td>Limits of an unaudited build on Litecoin, Dogecoin and Bitcoin Cash, at prepare and at si…</td><td><span class="v-passed">pass</span></td><td>On a main network of an unaudited build one transaction sends at most 150 USD of the coin (converted with a fresh price; without one the payment is refused), pays at most 0.001 LTC / 5 DOGE / 0.0005 BCH of fee and at most 200 lit/vB / 1 DOGE/kB / 20 sat/byte. The ceilings are applied when the payment is prepared and again, on t…</td></tr><tr><td>WA-UTXO-07</td><td>Mainnet gate of the UTXO coins: both conditions</td><td><span class="v-passed">pass</span></td><td>Litecoin, Dogecoin and Bitcoin Cash main networks are refused unless the build allows main networks and the user opted in — the same two conditions as Bitcoin&#x27;s; the account, the indexers, the synchronization and the payment all pass through the gate, and no request is made for a main network while it is closed.</td></tr><tr><td>WA-UTXO-08</td><td>Chain identity of the UTXO coin indexers</td><td><span class="v-passed">pass</span></td><td>Before anything is read or broadcast each indexer must serve the network&#x27;s identity block: the genesis block for Litecoin and Dogecoin; block 661648 for Bitcoin Cash (its genesis is Bitcoin&#x27;s, Bitcoin SV&#x27;s and eCash&#x27;s) and block 200000 for its testnet4 (whose genesis is chipnet&#x27;s). An endpoint on another chain fails the network…</td></tr><tr><td>WA-UTXO-09</td><td>Endpoint policy of the UTXO coins: what one lying indexer can do</td><td><span class="v-NOT">partial</span></td><td>No signature can be obtained for something the user did not review, and no fee above the ceilings can be paid, whatever an indexer answers: amounts are authenticated (previous transactions on Dogecoin, signature commitment on Bitcoin Cash and Litecoin), fee estimates are clamped, identifiers are computed locally, answers are bo…</td></tr><tr><td>WA-ED-01</td><td>Ed25519 (Solana signatures): conformance and agreement with independent implementations</td><td><span class="v-passed">pass</span></td><td>The from-scratch Ed25519 that signs Solana transactions is replayed against RFC 8032 section 7.1, the SLIP-0010 vectors, Wycheproof and the ed25519-speccheck edge cases, and compared with libsodium, OpenSSL, ed25519-dalek (verify_strict, the rule of Solana validators), CryptoKit and an integer transcription of RFC 8032: public …</td></tr><tr><td>WA-ED-02</td><td>Ed25519 secret path: constant-time construction, processor flag, machine-code and timing …</td><td><span class="v-NOT">partial</span></td><td>No secret-dependent branch or memory index at source level; the table of the scalar multiplication is read entirely under a mask; every conditional branch of the compiled secret-path functions was read (two compiler versions) and is re-counted at each audit; public-key derivation and signing set the data-independent-timing flag…</td></tr><tr><td>WA-NEW-01</td><td>Sweep of exposed coins (Litecoin, Dogecoin, Bitcoin Cash): ceilings of an unaudited build…</td><td><span class="v-passed">pass</span></td><td>A sweep is a send-max plan built and signed by the payment functions: the 150 USD value ceiling, the fee and fee-rate ceilings apply when it is prepared and again on the transaction about to be signed, whatever the plan object states; a sweep above the ceiling is not signed on any of the three coins.</td></tr><tr><td>WA-NEW-02</td><td>Sweep of exposed coins: the destination is the wallet&#x27;s own fresh address and cannot be r…</td><td><span class="v-passed">pass</span></td><td>The service derives the destination from the account (internal chain, never-used index); the caller passes no address; before signing, every output of a plan presented as a sweep must be a script of the account&#x27;s change chain (QYV-SVC-101).</td></tr><tr><td>WA-NEW-03</td><td>Sweep on Dogecoin: coins authenticated against their previous transactions</td><td><span class="v-passed">pass</span></td><td>The sweep is signed by signAndBroadcastCoin: an indexer that misstates an exposed coin obtains no signature (QYV-SVC-064 rule).</td></tr><tr><td>WA-NEW-04</td><td>Persisted synchronization of a UTXO coin: hostile file refused or bounded, tied to accoun…</td><td><span class="v-passed">pass</span></td><td>The record is size-capped, bound to an identity (network, account key, endpoint lists), each address is derived again from the account, and the content passes the validation of a synchronization; anything else is removed. Structural mutations and fuzzing never trap and never restore a coin outside the account or the monetary ra…</td></tr><tr><td>WA-NEW-05</td><td>A persisted coin snapshot never feeds a signed transaction</td><td><span class="v-passed">pass</span></td><td>prepare, sweep, the check before signing and tracking all go through freshCoinSnapshot, which refuses a snapshot of the previous session; the flag is set by the loader. Nothing else of the session state comes from the file (QYV-SVC-100).</td></tr><tr><td>WA-NEW-06</td><td>Fee quotes: behind the mainnet gate, chain-identity checked, no trap on hostile figures, …</td><td><span class="v-passed">pass</span></td><td>feeQuote resolves the chain through activeKind (gate), uses the verified clients (identity check, offline refusal), bounds and overflow-checks every figure, and returns an estimate that no later step trusts.</td></tr><tr><td>WA-NEW-07</td><td>acceptUnverifiedAmounts lifts no ceiling and nothing on an unaudited mainnet build</td><td><span class="v-passed">pass</span></td><td>The flag of the unified cold signing reaches signPSBT only; unverified amounts stay refused on an unaudited mainnet build whatever is passed; value and fee ceilings and the wallet&#x27;s fee bounds are applied after it.</td></tr><tr><td>WA-NEW-08</td><td>Token description of a payment comes from the wallet, on every family; hidden and detecte…</td><td><span class="v-passed">pass</span></td><td>Showing a hidden token again uses its chain and address only; a detected token of a restored file cannot enter the list (QYV-SVC-102); TRON and Solana payments resolve the token to the wallet&#x27;s own description like EVM (QYV-SVC-103).</td></tr><tr><td>WA-NEW-10</td><td>Address indices of the profile file cannot trap the wallet or widen a key search</td><td><span class="v-passed">pass</span></td><td>Used indices are bounded when the profile is read and the account&#x27;s index arithmetic is saturating or checked (QYV-SVC-104).</td></tr><tr><td>WA-NEW-09</td><td>Ed25519 in the start-up self-test with a real RFC 8032 vector</td><td><span class="v-passed">pass</span></td><td>The self-test derives the public key and signs TEST 1 of RFC 8032 section 7.1, verifies the signature and refuses it for another message; a mismatch fails the self-test like any other primitive.</td></tr></tbody></table>175<h3>OWASP MASVS v2</h3>176<p>All 24 MASVS v2 controls are assessed by source review, with automated checks over the sources, Info.plist and entitlements that are re-evaluated at every run. MASVS is not a certification scheme and this is an internal self-assessment: no dynamic analysis on a device (no runtime instrumentation, no traffic interception, no jailbroken-device test) was performed. Controls that depend on unfinished screens are `partial`; evidence named `runner:&lt;tool&gt;` is supplied by that tool&#x27;s result in the same audit run.</p>177<table class="num"><thead><tr><th>Items</th><th>Pass</th><th>Partial</th><th>Fail</th><th>Not applicable</th><th>Not assessed</th><th>Stale evidence</th></tr></thead><tbody><tr><td>24</td><td>12</td><td>5</td><td>4</td><td>3</td><td>0</td><td>0</td></tr></tbody></table>178<table class="small"><thead><tr><th>Item</th><th>Title</th><th>Verdict</th><th>Rationale (abridged)</th></tr></thead><tbody><tr><td>MASVS-STORAGE-1</td><td>The app securely stores sensitive data.</td><td><span class="v-passed">pass</span></td><td>Every secret (recovery phrase, BIP-39 passphrase, identity keys) is a record of the vault file, sealed with AES-256-GCM under a subkey of a random 256-bit master key; the file is authenticated (HMAC-SHA256 and a checksum), written atomically with NSFileProtectionComplete and excluded from backups. The master key is wrapped per …</td></tr><tr><td>MASVS-STORAGE-2</td><td>The app prevents leakage of sensitive data.</td><td><span class="v-NOT">partial</span></td><td>Keyboard extensions are refused application-wide (QYV-APP-005, fixed); the recovery words are hidden while the screen is captured and a screenshot is reported (QYV-APP-006, fixed); the phrase is never copied and every copied value is local and expires; the privacy cover hides the content in the app switcher; nothing secret is l…</td></tr><tr><td>MASVS-CRYPTO-1</td><td>The app employs current strong cryptography and uses it according to industry best practi…</td><td><span class="v-NOT">partial</span></td><td>Algorithms and parameters are current and standard: AES-256-GCM (96-bit random nonces, 128-bit tags), ChaCha20-Poly1305, SHA-2, SHA-3 / Keccak, HMAC, HKDF, Argon2id (RFC 9106 second recommended set) combined with PBKDF2-HMAC-SHA512, ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205), secp256k1 ECDSA with RFC 6979 and low-…</td></tr><tr><td>MASVS-CRYPTO-2</td><td>The app performs key management according to industry best practices.</td><td><span class="v-passed">pass</span></td><td>All keys, salts, nonces and seeds come from `SystemRandom` (SecRandomCopyBytes), the only entropy source. The 256-bit master key never touches the disk unwrapped; purpose-separated subkeys are derived with HKDF-SHA256 and labels; each slot has its own salts; the key epoch and `rotateMasterKey` re-encrypt every record and scrub …</td></tr><tr><td>MASVS-AUTH-1</td><td>The app uses secure authentication and authorization protocols and follows the relevant b…</td><td>not-applicable</td><td>No remote account, session or token exists: the wallet has no server and authenticates to nothing. The endpoints it reads are public blockchain interfaces.</td></tr><tr><td>MASVS-AUTH-2</td><td>The app performs local authentication securely according to the platform best practices.</td><td><span class="v-passed">pass</span></td><td>Password floor enforced by the service (QYV-APP-001), trivial PINs refused (QYV-APP-011), PIN delays on the monotonic clock with the counter in the Keychain (QYV-SVC-010), biometrics through the device slot (Keychain, optionally Secure Enclave), auto-lock applied by the application and bounded at fifteen minutes (QYV-APP-003, Q…</td></tr><tr><td>MASVS-AUTH-3</td><td>The app secures sensitive operations with additional authentication.</td><td><span class="v-passed">pass</span></td><td>The sensitive calls of the service (phrase reveal, private recovery sheet, backup and transfer export, every signature, identity signature and rotation, disabling an unlock method, switching mainnet on, changing endpoints, lengthening the auto-lock) throw `authenticationRequired` unless a credential was verified within two minu…</td></tr><tr><td>MASVS-NETWORK-1</td><td>The app secures all network traffic according to the current best practices.</td><td><span class="v-passed">pass</span></td><td>All traffic goes through one URLSession transport: ephemeral, no cookies, cache or credentials, redirects refused, system TLS validation untouched. App Transport Security is at its default (no exception in Info.plist). Endpoints must be https; http is accepted by the service only for local or private hosts, and ATS would still …</td></tr><tr><td>MASVS-NETWORK-2</td><td>The app performs identity pinning for all remote endpoints under the developer&#x27;s control.</td><td>not-applicable</td><td>No remote endpoint is under the developer&#x27;s control: QYVORA has no server. It reads public blockchain interfaces (Esplora, Ethereum JSON-RPC, a block explorer API, a price API) whose list the user can replace with their own nodes. Pinning certificates of third-party services that rotate them freely, or of arbitrary user-configu…</td></tr><tr><td>MASVS-PLATFORM-1</td><td>The app uses IPC mechanisms securely.</td><td><span class="v-passed">pass</span></td><td>The application exposes no IPC surface: no custom URL scheme, no universal link, no app extension, no app group, no shared keychain group, no document sharing. The only outbound exchanges are the system pasteboard through one helper and files written to a location chosen by the user (encrypted backup).</td></tr><tr><td>MASVS-PLATFORM-2</td><td>The app uses WebViews securely.</td><td>not-applicable</td><td>The application contains no web view.</td></tr><tr><td>MASVS-PLATFORM-3</td><td>The app uses the user interface securely.</td><td><span class="v-passed">pass</span></td><td>Custom keyboards refused (QYV-APP-005, fixed); recovery words and revealed passwords hidden while the screen is captured, warning after a screenshot (QYV-APP-006, fixed); privacy cover while the application is not active, kept until the auto-lock check has run on return; phrase views marked privacy-sensitive, not selectable. Re…</td></tr><tr><td>MASVS-CODE-1</td><td>The app requires an up-to-date platform version.</td><td><span class="v-passed">pass</span></td><td>The deployment target is iOS 26.0, the current major version.</td></tr><tr><td>MASVS-CODE-2</td><td>The app has a mechanism for enforcing app updates.</td><td><span class="v-FAILED">fail</span></td><td>There is no mechanism to require an update (the wallet has no server to announce one).</td></tr><tr><td>MASVS-CODE-3</td><td>The app only uses software components without known vulnerabilities.</td><td><span class="v-passed">pass</span></td><td>The engine, the services and the application have no third-party component: the Swift package declares no dependency and the application links only that package and system frameworks. The reference implementations used by the audit (CryptoKit, CommonCrypto, a Rust library, Python packages) exist in the test environment only.</td></tr><tr><td>MASVS-CODE-4</td><td>The app validates and sanitizes all untrusted inputs.</td><td><span class="v-NOT">partial</span></td><td>Untrusted input reaches the code through QR payloads, pasted text, backup and transfer files and network answers. Parsers return typed errors; addresses, PSBTs, transactions, descriptors, envelopes and backup files are validated structurally and cryptographically before use; network answers are range-checked. No web content, no…</td></tr><tr><td>MASVS-RESILIENCE-1</td><td>The app validates the integrity of the platform.</td><td><span class="v-NOT">partial</span></td><td>The application looks for the files of a jailbroken iOS and for an attached debugger and warns before a recovery phrase is shown or typed (QYV-APP-009, partly addressed). It does not refuse to run.</td></tr><tr><td>MASVS-RESILIENCE-2</td><td>The app implements anti-tampering mechanisms.</td><td><span class="v-FAILED">fail</span></td><td>No integrity self-check beyond the system code signature. This is a design position: the wallet&#x27;s security rests on the vault cryptography and the platform (Data Protection, Keychain, Secure Enclave), not on hiding how it works. The debug launch code is compiled out of Release.</td></tr><tr><td>MASVS-RESILIENCE-3</td><td>The app implements anti-static analysis mechanisms.</td><td><span class="v-FAILED">fail</span></td><td>No obfuscation; the source is published. Symbol stripping of the Release binary is reported by runner:binary_checks. This is a design position: the wallet&#x27;s security rests on the vault cryptography and the platform (Data Protection, Keychain, Secure Enclave), not on hiding how it works. The debug launch code is compiled out of …</td></tr><tr><td>MASVS-RESILIENCE-4</td><td>The app implements anti-dynamic analysis techniques.</td><td><span class="v-FAILED">fail</span></td><td>No debugger, hooking or instrumentation detection. This is a design position: the wallet&#x27;s security rests on the vault cryptography and the platform (Data Protection, Keychain, Secure Enclave), not on hiding how it works. The debug launch code is compiled out of Release.</td></tr><tr><td>MASVS-PRIVACY-1</td><td>The app minimizes access to sensitive data and resources.</td><td><span class="v-passed">pass</span></td><td>Two protected resources only, each with an accurate purpose string: the camera (QR codes) and Face ID. No contacts, location, photos, tracking, advertising identifier or third-party SDK. The single entitlement is the default data protection.</td></tr><tr><td>MASVS-PRIVACY-2</td><td>The app prevents identification of the user.</td><td><span class="v-NOT">partial</span></td><td>No account, no identifier, no analytics; requests carry a fixed User-Agent and no cookie. Cold mode stops all traffic.</td></tr><tr><td>MASVS-PRIVACY-3</td><td>The app is transparent about data collection and usage.</td><td><span class="v-passed">pass</span></td><td>The bundle carries a privacy manifest declaring no tracking, no tracking domain, no collected data and the required-reason APIs used (the manifest half of QYV-APP-012, fixed; QYV-BIN-002 fixed); the About screen links the privacy policy; the endpoint editor says what each server learns.</td></tr><tr><td>MASVS-PRIVACY-4</td><td>The app offers user control over their data.</td><td><span class="v-passed">pass</span></td><td>The user chooses every endpoint the wallet talks to and can reset them, can switch every network request off (cold mode), and can delete the wallet from the device (vault, Keychain material, profile and caches). No data leaves the device otherwise: there is no account and no server of the publisher.</td></tr></tbody></table>179<h3>OWASP MASTG (iOS tests)</h3>180<p>All 129 iOS tests of the MASTG at the pinned commit are listed. The current atomic tests that can be decided from the source, Info.plist and entitlements are assessed here, most with an automated check re-evaluated at every run. Tests on the compiled binary are delegated to the binary checks and MobSF runners; secret-detection tests to Gitleaks, Semgrep and Dontrust. Dynamic tests (runtime instrumentation with Frida, traffic interception, inspection of an installed application on a device) are NOT performed and are reported as not assessed. Deprecated v1 tests are listed as not applicable, for traceability.</p>181<table class="num"><thead><tr><th>Items</th><th>Pass</th><th>Partial</th><th>Fail</th><th>Not applicable</th><th>Not assessed</th><th>Stale evidence</th></tr></thead><tbody><tr><td>129</td><td>34</td><td>4</td><td>2</td><td>59</td><td>30</td><td>0</td></tr></tbody></table>182<table class="small"><thead><tr><th>Item</th><th>Title</th><th>Verdict</th><th>Rationale (abridged)</th></tr></thead><tbody><tr><td>MASTG-TEST-0240</td><td>Jailbreak Detection in Code</td><td><span class="v-NOT">partial</span></td><td>`DeviceIntegrity.jailbreakIndicators` checks a list of paths; the result is a warning on the phrase screens, not a reaction of the application (QYV-APP-009).</td></tr><tr><td>MASTG-TEST-0300</td><td>References to APIs for Storing Unencrypted Data in Private Storage</td><td><span class="v-NOT">partial</span></td><td>Secrets are stored only inside the encrypted vault file.</td></tr><tr><td>MASTG-TEST-0346</td><td>References to APIs Hiding Sensitive Data in Text Input Fields</td><td><span class="v-NOT">partial</span></td><td>Passwords use `SecureField`; secret views are `.privacySensitive`.</td></tr><tr><td>MASTG-TEST-0383</td><td>References to Enforced Updating APIs</td><td><span class="v-FAILED">fail</span></td><td>No enforced-update API or mechanism is referenced.</td></tr><tr><td>MASTG-TEST-0391</td><td>Insufficient Obfuscation of Security-Relevant Native Code</td><td><span class="v-FAILED">fail</span></td><td>No obfuscation (design position; the source is published).</td></tr><tr><td>MASTG-TEST-0401</td><td>References to Debugging Detection APIs</td><td><span class="v-NOT">partial</span></td><td>`DeviceIntegrity.isDebuggerAttached` reads P_TRACED; in a Release build an attached debugger produces the compromised-device warning. No reaction beyond the warning (QYV-APP-009).</td></tr></tbody></table>183<p>Only the items rated fail or partial are listed; the complete mapping with evidence is in security/policies/ and in the results file.</p>184<h3>Coinspect Wallet Security Framework</h3>185<p>All 50 controls of the WSC and all 34 tests of the WSB are mapped. The framework targets web3 wallets with dApp connectivity and browser extensions: those items are not applicable to a native iOS wallet without any dApp surface (an automated check confirms the absence). The WSB is designed as a black-box, interaction-based benchmark; here it is assessed by source review of the service layer and of the UI components. Items that depend on application screens not finished at the audited commit are `partial` or `not-assessed` and must be re-assessed on the final commit. This is a self-assessment against a public checklist, not a Coinspect review or ranking.</p>186<table class="num"><thead><tr><th>Items</th><th>Pass</th><th>Partial</th><th>Fail</th><th>Not applicable</th><th>Not assessed</th><th>Stale evidence</th></tr></thead><tbody><tr><td>84</td><td>28</td><td>8</td><td>3</td><td>45</td><td>0</td><td>0</td></tr></tbody></table>187<table class="small"><thead><tr><th>Item</th><th>Title</th><th>Verdict</th><th>Rationale (abridged)</th></tr></thead><tbody><tr><td>WSC-4.6</td><td>Interaction with known phishing or scam addresses prevented</td><td><span class="v-FAILED">fail</span></td><td>No screening against a list of known phishing or scam addresses: the wallet has no server and a list shipped with the application ages between releases. The first-payment warning is the control offered instead.</td></tr><tr><td>WSC-4.15</td><td>User must review all data before the sign button is enabled</td><td><span class="v-NOT">partial</span></td><td>The sign button is on the review screen itself, below the whole review, and every signature is preceded by a re-authentication enforced by the service (QYV-APP-002, fixed). The mainnet warning does require scrolling to its end before its switch is enabled.</td></tr><tr><td>WSC-4.16</td><td>Clickable links to a block explorer for addresses and transactions</td><td><span class="v-NOT">partial</span></td><td>A transaction (its detail, and the result of a payment) and the wallet&#x27;s own account on each network offer a link to the explorer of the network&#x27;s table; links are built from validated identifiers only, and a network without explorer in the table gives no link. No explorer is contacted before the user follows a link.</td></tr><tr><td>WSC-4.18</td><td>Mobile wallet prevents screenshots of the mnemonic phrase</td><td><span class="v-NOT">partial</span></td><td>iOS gives an application no way to prevent a screenshot. The words are replaced by dots while the screen is recorded or mirrored, and the screens that show the phrase display a critical warning after a screenshot was taken (QYV-APP-006, fixed).</td></tr><tr><td>WSC-4.19</td><td>Mnemonic obfuscated by default</td><td><span class="v-NOT">partial</span></td><td>On the reveal screen nothing is shown before an explicit action and a re-authentication, and the words are removed when the screen or the application is left. While the screen is captured the words are dots.</td></tr><tr><td>WSC-4.20</td><td>Truncated data can be displayed in full</td><td><span class="v-NOT">partial</span></td><td>Recipients, senders, token contracts and transaction identifiers are shown in full on the review and detail screens (monospaced, in groups of four, spelled for VoiceOver); the cold review prints every decoded line in full.</td></tr><tr><td>WSC-7.2</td><td>Reputable cryptographic libraries, no custom cryptographic code</td><td><span class="v-FAILED">fail</span></td><td>QYVORA&#x27;s engine is written from scratch by design (hash functions, AES-GCM, ChaCha20-Poly1305, Argon2id, secp256k1, ML-KEM, ML-DSA, SLH-DSA). Mitigations in place: the vault seals with the system AEAD by default (`aead: .system`, CryptoKit) and stretches the password with a combiner of the engine&#x27;s Argon2id and CommonCrypto&#x27;s P…</td></tr><tr><td>WSB-PERM-005</td><td>Token approval management</td><td><span class="v-NOT">partial</span></td><td>The wallet never grants an allowance (mainnet policy: approvals only with amount zero) and can revoke one with `revokeApproval`.</td></tr><tr><td>WSB-VERI-002</td><td>Links to blockchain explorers</td><td><span class="v-NOT">partial</span></td><td>See WSC-4.16: explorer links for transactions and for the wallet&#x27;s own account, from the network&#x27;s explorer table; none for other addresses.</td></tr><tr><td>WSB-VERI-003</td><td>Transaction simulation</td><td><span class="v-NOT">partial</span></td><td>Token transfers and revocations are simulated with eth_call and eth_estimateGas before the review is produced; a revert or an unexpected return value refuses the transaction.</td></tr><tr><td>WSB-THRE-002</td><td>Malicious address detection</td><td><span class="v-FAILED">fail</span></td><td>See WSC-4.6.</td></tr></tbody></table>188<p>Only the items rated fail or partial are listed; the complete mapping with evidence is in security/policies/ and in the results file.</p>189<h3>Dontrust</h3>190<p>RUN — Dontrust 0.1.0: 21 line-regex rules (entropy 8, keys 3, crypto 2, memory 2, firmware 2, supply-chain 3, build 1) run on a copy of Package.swift, Sources/, App/ and Scripts/. Only 2 rules declare Swift (secret in a logging call, hard-coded key material); the others are written for C/Python/firmware code and are structurally unable to match most Swift constructs, so a clean result on them proves little. `require` rules report the absence of a safeguard text anywhere in scope. No data flow, no build, no binary inspection. Raw hits are review locations, each triaged in security/policies/dontrust.json.</p>191<h3>Repository static checks</h3>192<table class="small"><thead><tr><th>Check</th><th>Result</th><th>Evidence</th></tr></thead><tbody><tr><td>entropy: single source (SecRandomCopyBytes only in SystemRandom.swift, no other generator API)</td><td><span class="v-passed">passed</span></td><td>23 SystemRandom.bytes call sites in 12 files; SecRandomCopyBytes call sites: Sources/QyvoraMath/SystemRandom.swift:52; forbidden generator API occurrences: 0</td></tr><tr><td>entropy: deterministic generators in the engine (inventory)</td><td><span class="v-passed">passed</span></td><td>defined: Sources/QyvoraBitcoin/CoinSelection.swift:276 `struct SeededGenerator {` | instantiated: Sources/QyvoraBitcoin/TransactionBuilder.swift:430 `var rng = SeededGenerator(seed: seedValue ?? 0)`.…</td></tr><tr><td>logs: no logging call mentions a secret-named value</td><td><span class="v-passed">passed</span></td><td>0 logging call(s) in Sources/ and App/Sources: none; secret-named: 0</td></tr><tr><td>pasteboard: used only inside the sanctioned helper QClipboard</td><td><span class="v-passed">passed</span></td><td>3 pasteboard reference(s), 0 outside Sources/QyvoraUI/Feedback.swift</td></tr><tr><td>pasteboard: sensitive copies are local-only and expire</td><td><span class="v-passed">passed</span></td><td>localOnly + expirationDate present: True; lifetime: 60 s</td></tr><tr><td>pasteboard: secret-named values are copied with sensitive: true</td><td><span class="v-passed">passed</span></td><td>15 copy call site(s); secret-named without `sensitive: true`: 0</td></tr><tr><td>UserDefaults: no secret-named key or value</td><td><span class="v-passed">passed</span></td><td>8 write site(s): App/Sources/AppModel.swift:125 `if let data = try? JSONEncoder().encode(endpoints) { defaults.set(data, forKey: Self.endpo`; App/Sources/AppearanceSettingsView.swift:45 `@AppStorage(…</td></tr><tr><td>privacy cover: defined, applied at the root and driven by the scene phase</td><td><span class="v-passed">passed</span></td><td>definition: Sources/QyvoraUI/Privacy.swift:45 `public struct PrivacyCover: View {`; applied: App/Sources/RootView.swift:78 `.qPrivacyCover(isActive: coverIsActive)`; App/Sources/Wallet/WalletCommon.s…</td></tr><tr><td>screen capture: recording / screenshot awareness present</td><td><span class="v-passed">passed</span></td><td>references: Sources/QyvoraUI/Security.swift:266 `@Environment(\.qIsSceneCaptured) private var isCaptured`; Sources/QyvoraUI/Security.swift:282 `if SeedPhraseVisibility.showsPasswordInClear(revealed: …</td></tr><tr><td>recovery phrase views are marked .privacySensitive</td><td><span class="v-passed">passed</span></td><td>views: Sources/QyvoraUI/SeedPhrase.swift, App/Sources/Onboarding/PhraseQuizStep.swift, App/Sources/Security/RevealPhraseView.swift, App/Sources/Security/VerifyPhraseView.swift; without .privacySensit…</td></tr><tr><td>keyboards: third-party keyboard extensions refused</td><td><span class="v-passed">passed</span></td><td>application(_:shouldAllowExtensionPointIdentifier:) present: App/Sources/AppDelegate.swift:51 `shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPoint`; autocorrect…</td></tr><tr><td>ATS: no App Transport Security exception in Info.plist</td><td><span class="v-passed">passed</span></td><td>NSAppTransportSecurity absent (system default: TLS 1.2+, forward secrecy, valid certificate)</td></tr><tr><td>Info.plist: no file sharing, URL scheme, document type or background mode exposed</td><td><span class="v-passed">passed</span></td><td>exposure keys set: none</td></tr><tr><td>Info.plist: permissions limited to Face ID and camera</td><td><span class="v-passed">passed</span></td><td>usage descriptions: NSCameraUsageDescription, NSFaceIDUsageDescription</td></tr><tr><td>mainnet build flag QYInternalMainnet (state recorded)</td><td><span class="v-passed">passed</span></td><td>QYInternalMainnet = True in App/Resources/Info.plist (true = internal TestFlight build allowed to reach mainnet with the user switch; a public build must not carry it)</td></tr><tr><td>entitlements: default data protection is NSFileProtectionComplete</td><td><span class="v-passed">passed</span></td><td>default-data-protection = &#x27;NSFileProtectionComplete&#x27;; other entitlements: none</td></tr><tr><td>mainnet gate: needs the build flag AND the user switch; audit flag is false</td><td><span class="v-passed">passed</span></td><td>mainnetEnabled = auditCompleted || (internalBuild &amp;&amp; userOptIn): True; auditCompleted = false: True</td></tr><tr><td>debug code: Debug* files and their references are fenced by #if DEBUG; Release does not define DEBUG</td><td><span class="v-passed">passed</span></td><td>debug files: App/Sources/DebugGallery.swift, App/Sources/DebugLaunch.swift, App/Sources/Wallet/DebugWalletLaunch.swift; unfenced lines: 0; Release defines DEBUG: False; launch-argument/environment re…</td></tr><tr><td>network: one hardened URLSession (ephemeral, no cookies/cache/credentials, redirects refused), system trust evaluation untouched</td><td><span class="v-passed">passed</span></td><td>missing settings: none; network API outside HTTP.swift: none; server-trust overrides: none</td></tr><tr><td>network: endpoint acceptance (https, or http to local/private hosts only) enforced in the engine</td><td><span class="v-passed">passed</span></td><td>EndpointConfiguration.isAcceptable enforced at: Sources/QyvoraNetworking/HTTP.swift:375 `func urls(_ list: [String]) -&gt; [URL] { list.compactMap { EndpointConfiguration.isAcceptabl`; Sources/QyvoraWal…</td></tr><tr><td>Keychain: only WhenPasscodeSetThisDeviceOnly / WhenUnlockedThisDeviceOnly, nothing synchronizable</td><td><span class="v-passed">passed</span></td><td>accessibility references: Sources/QyvoraStorage/KeychainStore.swift:102 `query[kSecAttrAccessible as String] = kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly`; Sources/QyvoraStorage/KeychainStore.sw…</td></tr><tr><td>files: FileStore applies data protection and backup exclusion; default protection class is Complete</td><td><span class="v-passed">passed</span></td><td>file protection applied: True; isExcludedFromBackup = true: True; entitlement: &#x27;NSFileProtectionComplete&#x27;; writes outside FileStore: Sources/QyvoraSolana/SolanaJSON.swift:116 `v.write(to: &amp;out)`; Sou…</td></tr><tr><td>files: writes outside FileStore (inventory)</td><td><span class="v-passed">passed</span></td><td>direct writes (exports chosen by the user and benchmark reports are expected here): Sources/QyvoraSolana/SolanaJSON.swift:116 `v.write(to: &amp;out)`; Sources/QyvoraSolana/SolanaJSON.swift:125 `o[key]!.w…</td></tr><tr><td>signing: the application signs only through the calls that take the acknowledged critical warnings</td><td><span class="v-passed">passed</span></td><td>4 signature call(s) in App/Sources, without `acknowledged:`: 0; calls of a family-specific signing function: 0; public form without the rule in the service: 0; rule present: True</td></tr><tr><td>acknowledgements: no consent is set by the code (controls start off, only their own binding turns them on)</td><td><span class="v-passed">passed</span></td><td>assignments outside the control and outside #if DEBUG: 0; consent states that start on: 0</td></tr><tr><td>watch-only package: both screens compute its code, and the import states the code compared</td><td><span class="v-passed">passed</span></td><td>package imports in App/Sources: 1, without `comparedFingerprint:`: 0; preview computed on the export and on the import side: True</td></tr><tr><td>payment requests: parsed by the bounded engine parser only, checked against the network of the form, never advanced to a review</td><td><span class="v-passed">passed</span></td><td>URL parsing in the wallet screens: 0; parser bounds and scheme rule present: True; a scanned request opens the form only: True; the form checks the scheme and the network of a scanned request: True</td></tr><tr><td>dollar ceilings: converted only by limitUSDPrice (peg rule or two agreeing sources, floors)</td><td><span class="v-passed">passed</span></td><td>single-source conversions left: 0; rules present in the converter: True; uses of the converter: 9; sites that apply a dollar ceiling (inventory): 12</td></tr></tbody></table>193<h3>Binary checks of the compiled application</h3>194<table class="small"><thead><tr><th>Check</th><th>Result</th><th>Evidence</th></tr></thead><tbody><tr><td>Mach-O: position-independent executable (PIE)</td><td><span class="v-passed">passed</span></td><td>otool -hv flags: ARM64 ALL EXECUTE NOUNDEFS DYLDLINK TWOLEVEL PIE</td></tr><tr><td>Mach-O: stack not executable</td><td><span class="v-passed">passed</span></td><td>MH_ALLOW_STACK_EXECUTION absent</td></tr><tr><td>Stack canaries (___stack_chk_guard / ___stack_chk_fail imported)</td><td><span class="v-passed">passed</span></td><td></td></tr><tr><td>Automatic reference counting (objc_release / swift_release imported)</td><td><span class="v-passed">passed</span></td><td>Swift has no manual memory-management mode; the check confirms the runtime entry points are used</td></tr><tr><td>Runpaths limited to the application bundle</td><td><span class="v-passed">passed</span></td><td>LC_RPATH: [&#x27;@executable_path/Frameworks&#x27;]; Frameworks directory in bundle: False</td></tr><tr><td>No embedded dynamic library, framework or extension in the bundle</td><td><span class="v-passed">passed</span></td><td>found: none</td></tr><tr><td>Linked libraries are system libraries only (no third-party dylib)</td><td><span class="v-passed">passed</span></td><td>37 libraries, all under /System/Library/Frameworks, /usr/lib/swift, libobjc, libSystem</td></tr><tr><td>Linked system frameworks match the expected list</td><td><span class="v-passed">passed</span></td><td>frameworks: AVFoundation, Accessibility, Charts, CoreFoundation, CoreGraphics, CoreImage, CoreTransferable, CryptoKit, Foundation, LocalAuthentication, Security, SwiftUI, Symbols, UIKit</td></tr><tr><td>Encryption info load command present (FairPlay applied by the App Store)</td><td><span class="v-passed">passed</span></td><td>cryptid 0: 0 is expected before App Store processing; not a protection we control</td></tr><tr><td>No banned C function, non-system random generator or weak hash imported</td><td><span class="v-passed">passed</span></td><td>checked: _gets, _strcpy, _strcat, _sprintf, _vsprintf, _system, _popen, _rand, _srand, _random, _srandom, _drand48, _arc4random, _arc4random_buf, _arc4random_uniform, _CC_MD5, _CC_MD4, _CC_MD2, _CC_S…</td></tr><tr><td>SecRandomCopyBytes imported (system CSPRNG is the entropy source)</td><td><span class="v-passed">passed</span></td><td></td></tr><tr><td>Logging entry points: imports vs calls in the shipped sources</td><td>not applicable</td><td>imported: [&#x27;__os_log_impl&#x27;]; logging calls found in Sources/ and App/Sources (excluding the benchmark CLI): 0. Imports without a source call come from SwiftUI/Foundation code inlined into the binary;…</td></tr><tr><td>Release binary stripped (no debug symbols, no local symbol table)</td><td><span class="v-passed">passed</span></td><td>local defined symbols 0, debug entries 0, exported 1, __DWARF segment False, strip marker True</td></tr><tr><td>Debug information kept in a separate dSYM matching the binary UUID</td><td><span class="v-passed">passed</span></td><td>binary [&#x27;7AEB6976-6E2B-3EE2-B4ED-50C7E9815A71&#x27;], dSYM [&#x27;7AEB6976-6E2B-3EE2-B4ED-50C7E9815A71&#x27;]</td></tr><tr><td>DEBUG-only code absent from the Release binary (DebugGallery, DebugLaunch, -QY… launch arguments)</td><td><span class="v-passed">passed</span></td><td>15 markers searched in strings and symbols; none present</td></tr><tr><td>No absolute build path (developer home directory) embedded in the binary</td><td><span class="v-passed">passed</span></td><td>104 module-relative Swift file identifiers (used by runtime traps), absolute paths: 0</td></tr><tr><td>Embedded strings: no secret pattern (private keys, tokens, API keys, credentials in URLs)</td><td><span class="v-passed">passed</span></td><td>32259 strings of the executable and bundle resources against 12 patterns</td></tr><tr><td>Embedded strings: no recovery phrase other than allow-listed public test vectors</td><td><span class="v-passed">passed</span></td><td>1 BIP-39 phrase(s) found, 1 are public reference vectors listed with their justification in security/policies/mobsf.json</td></tr><tr><td>Embedded endpoints: every host is on the reviewed list</td><td><span class="v-passed">passed</span></td><td>77 hosts: amoy.polygonscan.com, api.avax-test.network, api.avax.network, api.bitcore.io, api.coingecko.com, api.devnet.solana.com, api.kraken.com, api.mainnet-beta.solana.com, api.nileex.io, api.rout…</td></tr><tr><td>Embedded endpoints: every host of the binary appears in the first-party sources</td><td><span class="v-passed">passed</span></td><td>no host comes from anything other than Sources/, App/Sources or Info.plist</td></tr><tr><td>Embedded endpoints: no cleartext http:// URL</td><td><span class="v-passed">passed</span></td><td>only the Info.plist DTD reference (never fetched)</td></tr><tr><td>App Transport Security: no exception (default policy: TLS 1.2+, forward secrecy, no cleartext)</td><td><span class="v-passed">passed</span></td><td>NSAppTransportSecurity absent from Info.plist</td></tr><tr><td>Permissions: usage descriptions limited to camera and Face ID, each with a purpose text</td><td><span class="v-passed">passed</span></td><td>NSCameraUsageDescription, NSFaceIDUsageDescription</td></tr><tr><td>Documents directory not exposed (no iTunes file sharing, no open-in-place)</td><td><span class="v-passed">passed</span></td><td>UIFileSharingEnabled false/absent, LSSupportsOpeningDocumentsInPlace absent</td></tr><tr><td>No custom URL scheme registered (no deep-link entry point)</td><td><span class="v-passed">passed</span></td><td>CFBundleURLTypes absent</td></tr><tr><td>No background mode declared</td><td><span class="v-passed">passed</span></td><td>UIBackgroundModes: absent</td></tr><tr><td>Info.plist key QYInternalMainnet (internal mainnet gate) — state recorded</td><td>not applicable</td><td>present and true: True. Informational: it is the owner&#x27;s decision for the internal TestFlight build; a public build must not carry it</td></tr><tr><td>Device family matches the project setting (iPhone only)</td><td><span class="v-passed">passed</span></td><td>UIDeviceFamily in the built Info.plist: [1]; App/project.yml sets TARGETED_DEVICE_FAMILY &quot;1&quot;</td></tr><tr><td>Code signature</td><td>not applicable</td><td>unsigned audit archive (CODE_SIGNING_ALLOWED=NO): signature, provisioning profile and applied entitlements must be checked on the signed build of the release pipeline</td></tr><tr><td>Entitlement: default data protection is NSFileProtectionComplete</td><td><span class="v-passed">passed</span></td><td>&#x27;NSFileProtectionComplete&#x27; from App/Resources/Qyvora.entitlements (the build is unsigned: entitlements are not applied, the source file is read instead)</td></tr><tr><td>Entitlements: no debugger attachment, shared container, iCloud, push or associated domain</td><td><span class="v-passed">passed</span></td><td>keys: [&#x27;com.apple.developer.default-data-protection&#x27;]</td></tr><tr><td>Privacy manifest (PrivacyInfo.xcprivacy) present and covering the required-reason APIs used</td><td><span class="v-passed">passed</span></td><td>manifest in bundle: True; required-reason API categories used in the sources: [&#x27;NSPrivacyAccessedAPICategoryUserDefaults&#x27;]; not declared: none</td></tr><tr><td>Bundle content limited to the expected files</td><td><span class="v-passed">passed</span></td><td>7 files: AppIcon60x60@2x.png, AppIcon76x76@2x~ipad.png, Assets.car, Info.plist, PkgInfo, PrivacyInfo.xcprivacy, Qyvora</td></tr><tr><td>No C, Objective-C, C++ or assembly source in the shipped modules beyond the reviewed list</td><td><span class="v-passed">passed</span></td><td>reviewed exceptions only: Sources/QyvoraCSupport/dit.c, Sources/QyvoraCSupport/include/qycsupport.h</td></tr></tbody></table>195<h3>MobSF (compiled application)</h3>196<p>MobSF static analysis of the unsigned Release .ipa (Mach-O arm64 binary, Info.plist, bundle files). It inspects binary protections, imported symbols/APIs, Info.plist permissions and ATS, embedded strings, URLs, e-mails and secret patterns, and the files of the bundle. It does NOT analyse Swift source logic, it does not run the application (no dynamic analysis: that needs a jailbroken device or Corellium), and on a Linux host the checks that need macOS tools are skipped by MobSF. Because the container has no network, MobSF&#x27;s online lookups (App Store metadata, domain reputation and geolocation, update check) do not happen. The archive is unsigned: code-signature, provisioning-profile and applied-entitlement checks do not apply.</p>197<table class="kv"><tr><td>host</td><td>BHS128 (ssh)</td></tr><tr><td>docker version</td><td>29.10.1</td></tr><tr><td>image</td><td>opensecurity/mobile-security-framework-mobsf@sha256:14646df326970ba21558c3c67e0a4ab9e9d92f7938ecb7b1a780c8cc536e16b0</td></tr><tr><td>image pulled now</td><td></td></tr><tr><td>container network</td><td>none</td></tr><tr><td>ipa sha256</td><td>1771d2ab1d9a3c86d3aaaddaf8658b995b250336538296a09d56c7180558c93f</td></tr><tr><td>ipa commit</td><td>b60686dbecb225160e700666eff4cd3be5af0748</td></tr><tr><td>ipa dirty tree</td><td></td></tr><tr><td>mobsf version</td><td>v4.6.9</td></tr><tr><td>file name</td><td>Qyvora.ipa</td></tr><tr><td>sha256</td><td>1771d2ab1d9a3c86d3aaaddaf8658b995b250336538296a09d56c7180558c93f</td></tr><tr><td>bundle id</td><td>ai.spboucher.qyvora</td></tr><tr><td>app version</td><td>1.0.0</td></tr><tr><td>build</td><td>3</td></tr><tr><td>sdk name</td><td>iphoneos27.2</td></tr><tr><td>min os version</td><td>26.0</td></tr><tr><td>security score</td><td>74</td></tr><tr><td>binary analysis items</td><td>3</td></tr></table>198<h2>6. Findings</h2>199<p>105 findings other than false positives. Identifiers QYV-* are entries of the findings register (security/audit/findings); identifiers QY-&lt;TOOL&gt;-* are tool results triaged in security/policies/triage.json.</p>200<table class="small"><thead><tr><th>Id</th><th>Severity</th><th>Status</th><th>CVSS</th><th>Title</th><th>Location</th><th>Fix commit</th></tr></thead><tbody><tr><td>QYV-APP-080</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>4.0</td><td>A watch-only package is not authenticated and no fingerprint is shown: a substituted package makes the companion show someone else&#x27;s addresses as the…</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:553</td><td>bf3150b</td></tr><tr><td>QYV-AUD-002</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>4.7</td><td>secp256k1 field and scalar arithmetic compiled with conditional branches on carries (secret-dependent timing of k·G, ECDSA and BIP-340 signing)</td><td>Sources/QyvoraSecp256k1/U256.swift:99</td><td>5d28ee3</td></tr><tr><td>QYV-AUD-005</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>4.7</td><td>Timing harness artefact reported as a leak: ML-KEM decapsulation, one repeated ciphertext against many (QY-TIMING-MLKEM-DECAPS-MESSAGE-ML-KEM-768); q…</td><td>security/tests/Sources/qytiming/main.swift</td><td>972721e, f175054, da2d3b2</td></tr><tr><td>QYV-AUD-006</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>4.7</td><td>Ed25519 base-point multiplication: scalars whose windows are zero were measurably distinguishable by their duration (the neutral element was added)</td><td>Sources/QyvoraEd25519/Edwards25519.swift:169</td><td>2577679</td></tr><tr><td>QYV-CRY-001</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>7.5</td><td>KMAC.verify accepted an empty or one-byte tag chosen by the sender</td><td>Sources/QyvoraKeccak/SP800185.swift:215</td><td>58a0ddd</td></tr><tr><td>QYV-SVC-022</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>A Solana transaction prepared for a test cluster could be made valid on mainnet-beta by the test endpoint (no cluster in the signed bytes)</td><td>Sources/QyvoraWallet/WalletService+Solana.swift:540</td><td>04bb687, 7ded8f8</td></tr><tr><td>QYV-SVC-040</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>A TRON transaction prepared for a test network could be made valid on mainnet by the test node (no network in the signed bytes; reference block taken…</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:111</td><td>03a3554</td></tr><tr><td>QYV-SVC-082</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>A price close to zero from the price source lifted every dollar ceiling of the native coins (POL, BNB, AVAX, SOL, TRX, LTC, DOGE, BCH)</td><td>Sources/QyvoraCore/Networks.swift:902</td><td>10c39f8</td></tr><tr><td>QYV-SVC-087</td><td><span class="s-high">high</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>The 150 USD ceiling of a token transfer (ERC-20, SPL, TRC-20) is converted with the price of one source, without floor or cross-check</td><td>Sources/QyvoraWallet/WalletService+Market.swift:152</td><td>4f469e9</td></tr><tr><td>QYV-APP-001</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>6.7</td><td>Vault and backup passwords are not held to a minimum strength</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:88</td><td>04ebf03</td></tr><tr><td>QYV-APP-002</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>6.1</td><td>Recovery-phrase reveal, private recovery sheet, backup export and signing need no fresh authentication</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:257</td><td>28567b0</td></tr><tr><td>QYV-APP-003</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>6.1</td><td>Auto-lock is not wired in the application</td><td>App/Sources/WalletStore.swift:120</td><td>371006e</td></tr><tr><td>QYV-APP-004</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.0</td><td>The auto-lock policy can be set to never</td><td>Sources/QyvoraWallet/WalletService.swift:416</td><td>3f71ca9</td></tr><tr><td>QYV-APP-005</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.7</td><td>Third-party keyboards are not excluded while the recovery phrase is typed</td><td>Sources/QyvoraUI/SeedPhrase.swift:239</td><td>a7d6560</td></tr><tr><td>QYV-APP-006</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.7</td><td>The recovery phrase can be captured by screenshot or screen recording, and is not masked by default</td><td>Sources/QyvoraUI/SeedPhrase.swift:54</td><td>34332de</td></tr><tr><td>QYV-APP-011</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.7</td><td>Trivial PINs are accepted</td><td>Sources/QyvoraVault/Vault.swift:455</td><td>14514f6</td></tr><tr><td>QYV-APP-020</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Solana recipients have no checksum: the review screen must make the user compare the address and must block on critical warnings</td><td>Sources/QyvoraWallet/WalletService+Solana.swift:447</td><td>7b1e37e</td></tr><tr><td>QYV-APP-040</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>—</td><td>A cold device cannot tell which TRON network a transaction is for: a payload labelled as a test network can be valid on mainnet, past the gate and th…</td><td>Sources/QyvoraWallet/WalletService+Cold.swift:176</td><td>0fe8b74</td></tr><tr><td>QYV-APP-061</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.2</td><td>Balances, history and confirmations of the UTXO coins rest on one indexer, the one announcing the highest tip</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:134</td><td>7b1e37e</td></tr><tr><td>QYV-APP-062</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>Bitcoin Cash payments of coins that predate the splits of Bitcoin SV and eCash can be replayed on those chains</td><td>Sources/QyvoraWallet/WalletService+Send.swift:485</td><td>0fe8b74</td></tr><tr><td>QYV-APP-082</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Statements the multi-chain engine produces for the review screens must be shown: L1 data fee as a quote, address notes, critical warnings, network of…</td><td>Sources/QyvoraWallet/WalletService+Send.swift:560</td><td>0fe8b74</td></tr><tr><td>QYV-APP-101</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>3.1</td><td>A payment request scanned inside the send form filled in the address and the amount of another coin, network or asset; requests were parsed without b…</td><td>App/Sources/Wallet/SendFormView.swift:198</td><td>7685b32</td></tr><tr><td>QYV-APP-102</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>—</td><td>On the cold device the critical warnings of a transaction were displayed but not acknowledged, and nothing in the service required an acknowledgement</td><td>App/Sources/Security/SecColdSignView.swift:200</td><td>0fe8b74</td></tr><tr><td>QYV-CRY-002</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.1</td><td>Secret temporaries left in released memory by the engine (hash states, HMAC and RFC 6979 intermediates, seed copies)</td><td>Sources/QyvoraKeccak/Keccak.swift:241</td><td>58a0ddd, c481d53</td></tr><tr><td>QYV-CRY-005</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.1</td><td>SHA-256 / SHA-512 kept the digest in their chaining state after finalize: the expanded Ed25519 key, the signing nonce and derived child keys outlived…</td><td>Sources/QyvoraSymmetric/SHA2.swift:220</td><td>f8b62b9</td></tr><tr><td>QYV-FUZ-080</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Explorer links of UTXO networks were built from any alphanumeric text, without an explorer on Dogecoin Testnet and with the wrong path on Dogecoin</td><td>Sources/QyvoraWallet/Chains.swift:215</td><td>19b2fc5</td></tr><tr><td>QYV-SVC-001</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.9</td><td>A hostile Ethereum indexer answer crashes the application (unchecked Double to UInt64 / UInt64 to Int conversions)</td><td>Sources/QyvoraNetworking/Indexers.swift:92</td><td>3ff9505</td></tr><tr><td>QYV-SVC-002</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.9</td><td>Esplora address statistics with extreme counters crash the application (Int overflow)</td><td>Sources/QyvoraNetworking/Esplora.swift:95</td><td>3ff9505</td></tr><tr><td>QYV-SVC-003</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.9</td><td>Unspent-output totals from a hostile Esplora endpoint overflow UInt64 / Int64 and crash the wallet</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:218</td><td>f111cfb, 1936fc4</td></tr><tr><td>QYV-SVC-008</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>Cold PSBT signing trusts the input amounts written in the PSBT when the device has no synchronized snapshot (BIP-143 fee attack)</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:782</td><td>8311bd8</td></tr><tr><td>QYV-SVC-009</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>The per-transaction ceilings of an unaudited mainnet build do not bound the fee, and fee data comes from the first endpoint that answers</td><td>Sources/QyvoraNetworking/EthereumRPC.swift:179</td><td>120ca41</td></tr><tr><td>QYV-SVC-010</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.7</td><td>PIN escalating delays rely on the wall clock, which the holder of the device can advance</td><td>Sources/QyvoraVault/Vault.swift:307</td><td>218a4af</td></tr><tr><td>QYV-SVC-020</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>2.6</td><td>Solana send planner trapped on a rent minimum near 2^64 supplied by an endpoint</td><td>Sources/QyvoraSolana/SolanaSendPlanner.swift:357</td><td>04bb687</td></tr><tr><td>QYV-SVC-021</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.3</td><td>One Solana endpoint could declare a live transaction expired or failed and release the double-payment guard</td><td>Sources/QyvoraSolana/SolanaRPC.swift:523</td><td>04bb687</td></tr><tr><td>QYV-SVC-060</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>5.9</td><td>A hostile tip height from one UTXO indexer overflows the survey of indexers and crashes the wallet</td><td>Sources/QyvoraNetworking/UTXOIndexer.swift:470</td><td>2c8f987, 3cb4f27</td></tr><tr><td>QYV-SVC-061</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>4.8</td><td>A refused broadcast was reported as a success when the refusal contained &quot;known&quot; or was a mempool conflict</td><td>Sources/QyvoraNetworking/UTXOIndexer.swift:348</td><td>2c8f987</td></tr><tr><td>QYV-SVC-064</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>—</td><td>PSBT amounts were not authenticated where signatures do not commit to them (Dogecoin, Bitcoin Cash, BIP-44 accounts)</td><td>Sources/QyvoraBitcoin/Account.swift:407</td><td>3996ed6</td></tr><tr><td>QYV-SVC-080</td><td><span class="s-medium">medium</span></td><td><span class="s-fixed">fixed</span></td><td>2.4</td><td>A primary network could be moved to a main network without a fresh authentication (1.0 setters, and setNetworkMode when the stored mode already said …</td><td>Sources/QyvoraWallet/WalletService.swift:497</td><td>f8ff2b8</td></tr><tr><td>QY-DONTRUST-2ac8743fd890</td><td><span class="s-medium">medium</span></td><td>open</td><td>—</td><td>No secret-wiping primitive anywhere in a native codebase</td><td></td><td>—</td></tr><tr><td>QYV-APP-007</td><td><span class="s-medium">medium</span></td><td>open</td><td>—</td><td>Transaction signing relies on cryptography written from scratch that has no independent review</td><td>Sources/QyvoraCore/Networks.swift:90</td><td>—</td></tr><tr><td>QYV-CRY-003</td><td><span class="s-medium">medium</span></td><td>open</td><td>4.1</td><td>Key material that the engine cannot erase: secp256k1 scalars on the stack, hash scratch, keys returned as arrays</td><td>Sources/QyvoraSecp256k1/Secp256k1.swift:339</td><td>—</td></tr><tr><td>QY-SEMGREP-08c843448d22</td><td>low</td><td>accepted-risk</td><td>—</td><td>qyvora-parser-trap-call: precondition(!o, &quot;UInt256 overflow&quot;)</td><td>Sources/QyvoraCore/UInt256.swift:194</td><td>—</td></tr><tr><td>QY-SEMGREP-45b5b48378cb</td><td>low</td><td>accepted-risk</td><td>—</td><td>qyvora-insecure-randomness: rng.shuffle(&amp;orderedInputs)</td><td>Sources/QyvoraBitcoin/TransactionBuilder.swift:432</td><td>—</td></tr><tr><td>QY-SEMGREP-6a1d9425bec2</td><td>low</td><td>accepted-risk</td><td>—</td><td>qyvora-file-write-without-protection: try Data(bytes).write(to: url, options: [.atomic])</td><td>Sources/QyvoraWallet/WalletService+Shield.swift:505</td><td>—</td></tr><tr><td>QY-SEMGREP-99878e848143</td><td>low</td><td>accepted-risk</td><td>—</td><td>qyvora-parser-trap-call: precondition(!o, &quot;UInt256 underflow&quot;)</td><td>Sources/QyvoraCore/UInt256.swift:200</td><td>—</td></tr><tr><td>QY-SEMGREP-d6fd379b8c55</td><td>low</td><td>accepted-risk</td><td>—</td><td>qyvora-insecure-randomness: rng.shuffle(&amp;tagged)</td><td>Sources/QyvoraBitcoin/TransactionBuilder.swift:434</td><td>—</td></tr><tr><td>QYV-STA-002</td><td>low</td><td>accepted-risk</td><td>—</td><td>Deterministic (non-cryptographic) generator used for transaction ordering</td><td>Sources/QyvoraBitcoin/TransactionBuilder.swift:430</td><td>—</td></tr><tr><td>QYV-APP-021</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Solana: the interface must show pending/expired states, the cross-cluster warning of a cold review and the weakness of a single endpoint</td><td>Sources/QyvoraWallet/WalletService+Cold.swift:128</td><td>7b1e37e</td></tr><tr><td>QYV-APP-041</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>TRON: the interface must carry the service&#x27;s refusals and notices (reference block, contract recipient, address forms, expiry, receipts)</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:487</td><td>0fe8b74</td></tr><tr><td>QYV-APP-060</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>The interface must make the user acknowledge the critical warnings of a Bitcoin Cash payment (legacy address, coins replayable on forks)</td><td>App/Sources:1</td><td>0fe8b74</td></tr><tr><td>QYV-APP-100</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Interface duties for the sweep of exposed coins, the fee quote, hidden tokens and the unverified-amounts confirmation</td><td>App/Sources</td><td>8ffcf8a</td></tr><tr><td>QYV-AUD-003</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>2.5</td><td>ConstantTime.equal: a sub-nanosecond dependence on the compared contents is statistically detectable when the processor&#x27;s DIT flag is not set</td><td>Sources/QyvoraMath/ConstantTime.swift:50</td><td>b806c00</td></tr><tr><td>QYV-AUD-004</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Two low-severity items reported by the project&#x27;s Semgrep rules: `try!` in SignedEIP1559Transaction.raw and `==` on a decapsulated probe secret</td><td>Sources/QyvoraEthereum/Transaction.swift:153</td><td>ad48602</td></tr><tr><td>QYV-BIN-002</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>No privacy manifest although required-reason APIs are used</td><td>App/Sources/AppModel.swift:129</td><td>e518577</td></tr><tr><td>QYV-CRY-004</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Constant-time behaviour rests on source-level discipline only: no compiler guarantee, DIT not enabled</td><td>Sources/QyvoraSecp256k1/U256.swift:193</td><td>b806c00</td></tr><tr><td>QYV-FUZ-001</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>2.5</td><td>Identity(privateEncoding:) accepts an ML-DSA-87 private key whose t0 component is corrupted</td><td>Sources/QyvoraIdentity/Identity.swift:369</td><td>64500cd</td></tr><tr><td>QYV-SVC-004</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>2.5</td><td>PSBT.fee traps on a PSBT with thousands of inputs claiming the maximum amount</td><td>Sources/QyvoraBitcoin/PSBT.swift:503</td><td>f111cfb</td></tr><tr><td>QYV-SVC-005</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>2.5</td><td>A backup whose records carry timestamps near 2^64 crashes the restoration after the vault was created</td><td>Sources/QyvoraVault/Vault.swift:46</td><td>ec01204</td></tr><tr><td>QYV-SVC-006</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>1.9</td><td>Amount formatting and the Shield report trap on out-of-range values of the stored profile (decimals, durations)</td><td>Sources/QyvoraCore/UInt256.swift:224</td><td>7e854f2</td></tr><tr><td>QYV-SVC-007</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>3.7</td><td>HTTP responses were buffered without any size limit</td><td>Sources/QyvoraNetworking/HTTP.swift:97</td><td>3ff9505</td></tr><tr><td>QYV-SVC-011</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>3.0</td><td>The wallet profile (account public keys, endpoints, mainnet opt-in) is stored unauthenticated outside the vault</td><td>Sources/QyvoraWallet/WalletService.swift:78</td><td>8fb36b0</td></tr><tr><td>QYV-SVC-012</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>3.3</td><td>KDF cost bounds accepted from a backup or vault header allow 2 GiB of memory and 64 passes</td><td>Sources/QyvoraVault/VaultCrypto.swift:229</td><td>9ec716a</td></tr><tr><td>QYV-SVC-015</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>3.3</td><td>Quadratic Base58 decoding was reachable with unbounded text (extended keys, WIF)</td><td>Sources/QyvoraCore/HD/BIP32.swift:191</td><td>7e854f2, f111cfb</td></tr><tr><td>QYV-SVC-023</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Figures of a Solana review came from the planner and were not checked against the bytes to be signed</td><td>Sources/QyvoraWallet/WalletService+Solana.swift:489</td><td>04bb687</td></tr><tr><td>QYV-SVC-024</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>3.1</td><td>Solana memos could carry bidirectional and zero-width characters, and a foreign memo was printed with its line breaks in a review</td><td>Sources/QyvoraSolana/SolanaInstructions.swift:70</td><td>04bb687</td></tr><tr><td>QYV-SVC-041</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>TRON transactions valid for up to 24 hours could be signed (cold payloads): the wallet did not bound the validity window at signing time</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:586</td><td>03a3554</td></tr><tr><td>QYV-SVC-042</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>The TRON mainnet burn address (Blackhole) was not refused as a recipient</td><td>Sources/QyvoraWallet/WalletService+Send.swift:325</td><td>a12879b</td></tr><tr><td>QYV-SVC-043</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>TRON: the transaction of a review was not checked against the figures of the review before signing</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:137</td><td>03a3554</td></tr><tr><td>QYV-SVC-062</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Plans of Litecoin and Dogecoin payments were checked against Bitcoin&#x27;s monetary range before signing</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:692</td><td>13cbf5a</td></tr><tr><td>QYV-SVC-063</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>The value ceiling of a coin plan excluded its change output without checking that it returns to the wallet</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:704</td><td>13cbf5a</td></tr><tr><td>QYV-SVC-065</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>The review of a Bitcoin Cash payment did not say that the recipient was given in the legacy (Bitcoin) address format</td><td>Sources/QyvoraWallet/WalletService+Send.swift:429</td><td>0cff22c</td></tr><tr><td>QYV-SVC-066</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Bitcoin path: the value ceiling excludes the plan&#x27;s change output without checking that it returns to the wallet</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:777</td><td>e1639d6</td></tr><tr><td>QYV-SVC-081</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>A cold-signed EVM transaction was broadcast without applying the limits of an unaudited build again</td><td>Sources/QyvoraWallet/WalletService+Ethereum.swift:978</td><td>cd95302</td></tr><tr><td>QYV-SVC-083</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>EthereumRPC.FeeData.maxFee trapped on figures the fee rules refuse (overflowing addition in the fallback)</td><td>Sources/QyvoraNetworking/EthereumRPC.swift:230</td><td>53bb0eb</td></tr><tr><td>QYV-SVC-084</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Symbol and decimals of a detected token came from the persisted snapshot when a payment was prepared after a restart</td><td>Sources/QyvoraWallet/WalletService+Send.swift:374</td><td>b3b8fac</td></tr><tr><td>QYV-SVC-086</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>A watch-only package naming a network that is not Bitcoin&#x27;s for its Bitcoin account left a wallet behind the error</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:482</td><td>0bdd99b</td></tr><tr><td>QYV-SVC-100</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>A persisted record of a coin synchronization kept addresses &quot;already paid&quot; for the whole next session, silencing the first-payment warning</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:213</td><td>08cfe31</td></tr><tr><td>QYV-SVC-101</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>A plan presented as a sweep of exposed coins was signed without checking that it pays the wallet</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:912</td><td>08cfe31</td></tr><tr><td>QYV-SVC-102</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>A token of the detected list restored from the previous session&#x27;s file could be moved into the wallet&#x27;s list with the file&#x27;s symbol and decimals</td><td>Sources/QyvoraWallet/WalletService+Ethereum.swift:447</td><td>98350c6</td></tr><tr><td>QYV-SVC-103</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>The review of a TRC-20 payment showed the symbol and decimals the caller passed (TRON), and the caller&#x27;s symbol on Solana</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:487</td><td>98350c6</td></tr><tr><td>QYV-SVC-104</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Address indices read from the profile file were used unchecked: 4 294 967 295 in a used-index list trapped or made a PSBT review search billions of k…</td><td>Sources/QyvoraBitcoin/Account.swift:244</td><td>34d4c91</td></tr><tr><td>QYV-SVC-105</td><td>low</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>TRON send-max did not send the most it could at a size boundary of the amount: up to one bandwidth fee stayed in the account</td><td>Sources/QyvoraTron/TronSendPlanner.swift:312</td><td>13fa3c1</td></tr><tr><td>QYV-APP-008</td><td>low</td><td>open</td><td>—</td><td>QYInternalMainnet is set in the only Info.plist, with no build-configuration guard</td><td>App/Resources/Info.plist:45</td><td>—</td></tr><tr><td>QYV-APP-009</td><td>low</td><td>open</td><td>—</td><td>No platform-integrity, anti-tampering or anti-debugging mechanism</td><td>App/Sources/QyvoraApp.swift:45</td><td>—</td></tr><tr><td>QYV-APP-010</td><td>low</td><td>open</td><td>—</td><td>No screening of known malicious addresses (the first-payment warning was added on 2026-12-04)</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:540</td><td>—</td></tr><tr><td>QYV-STA-014</td><td>low</td><td>open</td><td>—</td><td>QYInternalMainnet is set: this build may reach mainnet before the audit is complete</td><td>App/Resources/Info.plist</td><td>—</td></tr><tr><td>QYV-SVC-013</td><td>low</td><td>open</td><td>—</td><td>Identity signatures rest on the from-scratch ML-DSA only: no system-provided component, and the SLH-DSA half is optional at verification</td><td>Sources/QyvoraIdentity/Identity.swift:238</td><td>—</td></tr><tr><td>QYV-SVC-025</td><td>low</td><td>open</td><td>—</td><td>The same-payment guard of Solana does not cover transactions broadcast for a cold device and does not survive a restart</td><td>Sources/QyvoraWallet/WalletService+Cold.swift:330</td><td>—</td></tr><tr><td>QYV-SVC-044</td><td>low</td><td>open</td><td>—</td><td>TRC-20 metadata of a custom token (decimals, symbol) and every account figure come from the first TRON node that answers</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:176</td><td>—</td></tr><tr><td>QY-MOBSF-324f12d3e72d</td><td>info</td><td>accepted-risk</td><td>—</td><td>MobSF: binary protection `rpath`</td><td>App (compiled binary): Qyvora.app/Qyvora</td><td>—</td></tr><tr><td>QY-MOBSF-6bd04ddb0662</td><td>info</td><td>accepted-risk</td><td>—</td><td>MobSF: Binary makes use of insecure API(s)</td><td>App (compiled binary): Qyvora.app/Qyvora</td><td>—</td></tr><tr><td>QY-MOBSF-994c0fa7ebff</td><td>info</td><td>accepted-risk</td><td>—</td><td>MobSF: Binary makes use of malloc function</td><td>App (compiled binary): Qyvora.app/Qyvora</td><td>—</td></tr><tr><td>QY-MOBSFSCAN-2dc4482c3417</td><td>info</td><td>accepted-risk</td><td>—</td><td>mobsfscan best practice not detected in the source: ios_cert_pinning</td><td></td><td>—</td></tr><tr><td>QY-SEMGREP-14b6aa9738f4</td><td>info</td><td>accepted-risk</td><td>—</td><td>qyvora-file-write-without-protection: if (try? Data(report.markdown().utf8).write(to: markdown, options: .atomic)) != nil { mark</td><td>App/Sources/BenchmarksView.swift:186</td><td>—</td></tr><tr><td>QY-SEMGREP-5fd894fe11de</td><td>info</td><td>accepted-risk</td><td>—</td><td>qyvora-parser-trap-call: precondition(status == errSecSuccess, &quot;system random generator failed&quot;)</td><td>Sources/QyvoraMath/SystemRandom.swift:53</td><td>—</td></tr><tr><td>QY-SEMGREP-bfb3143d3017</td><td>info</td><td>accepted-risk</td><td>—</td><td>qyvora-file-write-without-protection: if let data = try? report.jsonData(), (try? data.write(to: json, options: .atomic)) != nil</td><td>App/Sources/BenchmarksView.swift:188</td><td>—</td></tr><tr><td>QYV-AUD-007</td><td>info</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Tests that read the process-wide mainnet policy failed at random while a test that switches it was running</td><td>Tests/QyvoraWalletTests/TestSupport.swift:548</td><td>7b1e37e</td></tr><tr><td>QYV-AUD-008</td><td>info</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>The memory probe of the benchmarks could report a high-water mark below the current resident size</td><td>Sources/QyvoraBenchmarks/SystemProbe.swift:213</td><td>6bc8b67</td></tr><tr><td>QYV-BIN-003</td><td>info</td><td><span class="s-fixed">fixed</span></td><td>—</td><td>Built application declares iPad support although the project targets iPhone only</td><td>App/project.yml:62</td><td>d301504</td></tr><tr><td>QY-MOBSFSCAN-760d47796447</td><td>info</td><td>open</td><td>—</td><td>mobsfscan best practice not detected in the source: ios_detect_reversing</td><td></td><td>—</td></tr><tr><td>QYV-APP-012</td><td>info</td><td>open</td><td>—</td><td>No privacy manifest and no forced-update mechanism</td><td>App/project.yml:1</td><td>—</td></tr><tr><td>QYV-AUD-001</td><td>info</td><td>open</td><td>—</td><td>ML-DSA Montgomery reduction returns q (not a value in (-q, q)) at the single boundary input a = 2^31*q</td><td>Sources/QyvoraMLDSA/MLDSAArithmetic.swift:62</td><td>—</td></tr><tr><td>QYV-BIN-001</td><td>info</td><td>open</td><td>—</td><td>This build declares QYInternalMainnet (mainnet enabled for internal testing)</td><td>App/Resources/Info.plist:47</td><td>—</td></tr><tr><td>QYV-SVC-014</td><td>info</td><td>open</td><td>—</td><td>Balances, unspent outputs and fee estimates are taken from the first endpoint that answers</td><td>Sources/QyvoraNetworking/HTTP.swift:226</td><td>—</td></tr><tr><td>QYV-SVC-067</td><td>info</td><td>open</td><td>—</td><td>Litecoin MWEB serialization (flag 0x08) is not parsed: a previous transaction of that kind cannot be authenticated</td><td>Sources/QyvoraBitcoin/Transaction.swift:192</td><td>—</td></tr></tbody></table>201<h3>Fixes made</h3>202<table class="small"><thead><tr><th>Id</th><th>Severity</th><th>Title</th><th>Fix commit</th><th>Regression test</th></tr></thead><tbody><tr><td>QYV-APP-080</td><td><span class="s-high">high</span></td><td>A watch-only package is not authenticated and no fingerprint is shown: a substituted package makes the companion show someone els…</td><td>bf3150b</td><td>QyvoraWalletTests.MainnetPolicyTests.aWatchOnlyPackageIsImportedOnlyWithItsOwnCode (InterfaceDutiesAuditRegressionTests.swift, commit 0fe8b74) and th…</td></tr><tr><td>QYV-AUD-002</td><td><span class="s-high">high</span></td><td>secp256k1 field and scalar arithmetic compiled with conditional branches on carries (secret-dependent timing of k·G, ECDSA and BI…</td><td>5d28ee3</td><td>Tests/QyvoraSecp256k1Tests/CarryChainTests.swift (functional equivalence); security/audit/runners/timing.py machine-code check (U256.add, U256.sub = …</td></tr><tr><td>QYV-AUD-005</td><td><span class="s-high">high</span></td><td>Timing harness artefact reported as a leak: ML-KEM decapsulation, one repeated ciphertext against many (QY-TIMING-MLKEM-DECAPS-ME…</td><td>972721e, f175054, da2d3b2</td><td>security/tests/Sources/qytiming/main.swift: control-negative-mlkem-ciphertexts-ML-KEM-512/768/1024, control-negative-aes-random-keys and control-same…</td></tr><tr><td>QYV-AUD-006</td><td><span class="s-high">high</span></td><td>Ed25519 base-point multiplication: scalars whose windows are zero were measurably distinguishable by their duration (the neutral …</td><td>2577679</td><td>qytiming (internals build, --dit): ed25519-basemul-one, ed25519-basemul-zero, ed25519-basemul-highbit, run by the dudect-timing step of the audit; Te…</td></tr><tr><td>QYV-CRY-001</td><td><span class="s-high">high</span></td><td>KMAC.verify accepted an empty or one-byte tag chosen by the sender</td><td>58a0ddd</td><td>Tests/QyvoraKeccakTests/SP800185Tests.swift: SP800185Tests.kmacVerifyRefusesShortTags</td></tr><tr><td>QYV-SVC-022</td><td><span class="s-high">high</span></td><td>A Solana transaction prepared for a test cluster could be made valid on mainnet-beta by the test endpoint (no cluster in the sign…</td><td>04bb687, 7ded8f8</td><td>QyvoraWalletTests.SolanaWalletAuditRegressionTests/aTestClusterTransactionValidOnMainnetIsNeverSigned; QyvoraSolanaTests.SolanaAuditRegressionTests/r…</td></tr><tr><td>QYV-SVC-040</td><td><span class="s-high">high</span></td><td>A TRON transaction prepared for a test network could be made valid on mainnet by the test node (no network in the signed bytes; r…</td><td>03a3554</td><td>QyvoraWalletTests.TronAuditRegressionTests/aTestNetworkTransactionTheMainNetworkWouldAcceptIsNeverSigned; QyvoraWalletTests.TronAuditRegressionTests/…</td></tr><tr><td>QYV-SVC-082</td><td><span class="s-high">high</span></td><td>A price close to zero from the price source lifted every dollar ceiling of the native coins (POL, BNB, AVAX, SOL, TRX, LTC, DOGE,…</td><td>10c39f8</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aPriceCloseToZeroDoesNotLiftTheDollarCeilings, everyDollarCeilingHasAPric…</td></tr><tr><td>QYV-SVC-087</td><td><span class="s-high">high</span></td><td>The 150 USD ceiling of a token transfer (ERC-20, SPL, TRC-20) is converted with the price of one source, without floor or cross-c…</td><td>4f469e9</td><td>QyvoraWalletTests (PriceCeilingAuditRegressionTests.swift): PriceCeilingPolicyTests (3 tests) and MainnetPolicyTests.aLyingPriceDoesNotLiftTheCeiling…</td></tr><tr><td>QYV-APP-001</td><td><span class="s-medium">medium</span></td><td>Vault and backup passwords are not held to a minimum strength</td><td>04ebf03</td><td>QyvoraWalletTests.CredentialPolicyTests (theFloorIsTenCharactersAndAFairEstimate, everyEntryPointOfTheServiceRefusesAWeakPassword); OnboardingTests.p…</td></tr><tr><td>QYV-APP-002</td><td><span class="s-medium">medium</span></td><td>Recovery-phrase reveal, private recovery sheet, backup export and signing need no fresh authentication</td><td>28567b0</td><td>QyvoraWalletTests.FreshAuthenticationTests (theWindowsAreTheDocumentedOnes, everySensitiveCallNeedsAFreshAuthentication, lockingAndClockTricksEndTheA…</td></tr><tr><td>QYV-APP-003</td><td><span class="s-medium">medium</span></td><td>Auto-lock is not wired in the application</td><td>371006e</td><td>QyvoraWalletTests.AutoLockTests (theRuleNeverTouchesALockedVaultAndNeverLocksOnInactivity, everyOtherEventLocksOrAppliesThePolicy, theLifeCycleLocksT…</td></tr><tr><td>QYV-APP-004</td><td><span class="s-medium">medium</span></td><td>The auto-lock policy can be set to never</td><td>3f71ca9</td><td>QyvoraWalletTests.AutoLockTests.neverAndLongDelaysAreRefusedAndOldProfilesAreBounded</td></tr><tr><td>QYV-APP-005</td><td><span class="s-medium">medium</span></td><td>Third-party keyboards are not excluded while the recovery phrase is typed</td><td>a7d6560</td><td>No unit test can reach the application delegate from the package: the regression checks are static-checks &#x27;keyboards: third-party keyboard extensions…</td></tr><tr><td>QYV-APP-006</td><td><span class="s-medium">medium</span></td><td>The recovery phrase can be captured by screenshot or screen recording, and is not masked by default</td><td>34332de</td><td>QyvoraUITests.CaptureProtectionTests (theRecoveryWordsAreHiddenWheneverTheSceneIsCaptured, aRevealedPasswordGoesBackToDotsWhileCaptured, theScreensho…</td></tr><tr><td>QYV-APP-011</td><td><span class="s-medium">medium</span></td><td>Trivial PINs are accepted</td><td>14514f6</td><td>QyvoraWalletTests.CredentialPolicyTests (trivialPINsAreNamedByTheRuleThatCatchesThem, theServiceRefusesToEnableATrivialPIN)</td></tr><tr><td>QYV-APP-020</td><td><span class="s-medium">medium</span></td><td>Solana recipients have no checksum: the review screen must make the user compare the address and must block on critical warnings</td><td>7b1e37e</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouches…</td></tr><tr><td>QYV-APP-040</td><td><span class="s-medium">medium</span></td><td>A cold device cannot tell which TRON network a transaction is for: a payload labelled as a test network can be valid on mainnet, …</td><td>0fe8b74</td><td>QyvoraWalletTests.MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork (offline refusal on both chains, online signature after the main-net…</td></tr><tr><td>QYV-APP-061</td><td><span class="s-medium">medium</span></td><td>Balances, history and confirmations of the UTXO coins rest on one indexer, the one announcing the highest tip</td><td>7b1e37e</td><td>QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests.currentIndexersMustAgreeOnAConfirmedBlock and hostileTipHeightsNeitherTrapNorWinTheSurvey; Qyvora…</td></tr><tr><td>QYV-APP-062</td><td><span class="s-medium">medium</span></td><td>Bitcoin Cash payments of coins that predate the splits of Bitcoin SV and eCash can be replayed on those chains</td><td>0fe8b74</td><td>QyvoraWalletTests.MainnetPolicyTests.aBitcoinCashPaymentOfOldCoinsTakesANewerCoinWithIt and bitcoinCashCoinsOlderThanAChainSplitRaiseACriticalWarning.</td></tr><tr><td>QYV-APP-082</td><td><span class="s-medium">medium</span></td><td>Statements the multi-chain engine produces for the review screens must be shown: L1 data fee as a quote, address notes, critical …</td><td>0fe8b74</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouches…</td></tr><tr><td>QYV-APP-101</td><td><span class="s-medium">medium</span></td><td>A payment request scanned inside the send form filled in the address and the amount of another coin, network or asset; requests w…</td><td>7685b32</td><td>QyvoraWalletTests.PaymentRequestTests (4 tests: onlyWhatTheFormShowsIsTaken, aRequestTheWalletCannotHonourIsRefusedAsAWhole, aRequestIsOfferedOnlyOnT…</td></tr><tr><td>QYV-APP-102</td><td><span class="s-medium">medium</span></td><td>On the cold device the critical warnings of a transaction were displayed but not acknowledged, and nothing in the service require…</td><td>0fe8b74</td><td>QyvoraWalletTests.MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork (a critical warning that is not acknowledged refuses the cold signat…</td></tr><tr><td>QYV-CRY-002</td><td><span class="s-medium">medium</span></td><td>Secret temporaries left in released memory by the engine (hash states, HMAC and RFC 6979 intermediates, seed copies)</td><td>58a0ddd, c481d53</td><td>Tests/QyvoraKeccakTests/SP800185Tests.swift: squeezeAndWipeErasesTheState; Tests/QyvoraSymmetricTests/SHA2BasicTests.swift: pendingBufferIsErased; Te…</td></tr><tr><td>QYV-CRY-005</td><td><span class="s-medium">medium</span></td><td>SHA-256 / SHA-512 kept the digest in their chaining state after finalize: the expanded Ed25519 key, the signing nonce and derived…</td><td>f8b62b9</td><td>Tests/QyvoraSymmetricTests/SHA2BasicTests.swift: chainingStateIsErasedAfterFinalize</td></tr><tr><td>QYV-FUZ-080</td><td><span class="s-medium">medium</span></td><td>Explorer links of UTXO networks were built from any alphanumeric text, without an explorer on Dogecoin Testnet and with the wrong…</td><td>19b2fc5</td><td>QyvoraWalletTests.MultichainExplorerLinkRegressionTests.utxoExplorerLinksNeedAnExplorerAndAnAddressOfTheNetwork; security/tests FuzzReplayTests (cras…</td></tr><tr><td>QYV-SVC-001</td><td><span class="s-medium">medium</span></td><td>A hostile Ethereum indexer answer crashes the application (unchecked Double to UInt64 / UInt64 to Int conversions)</td><td>3ff9505</td><td>QyvoraNetworkingTests.ResponseValidationTests/indexerNumberNeverTraps, hostileIndexerAnswersAreParsedWithoutTrap; QyvoraWalletTests.AuditRegressionTe…</td></tr><tr><td>QYV-SVC-002</td><td><span class="s-medium">medium</span></td><td>Esplora address statistics with extreme counters crash the application (Int overflow)</td><td>3ff9505</td><td>QyvoraNetworkingTests.ResponseValidationTests/addressStatisticsWithExtremeCountersDoNotOverflow</td></tr><tr><td>QYV-SVC-003</td><td><span class="s-medium">medium</span></td><td>Unspent-output totals from a hostile Esplora endpoint overflow UInt64 / Int64 and crash the wallet</td><td>f111cfb, 1936fc4</td><td>QyvoraWalletTests.AuditRegressionTests/hostileUnspentListsCannotOverflowTheBalance, unspentTotalAboveTheMoneySupplyIsRefused; QyvoraBitcoinTests.Bitc…</td></tr><tr><td>QYV-SVC-008</td><td><span class="s-medium">medium</span></td><td>Cold PSBT signing trusts the input amounts written in the PSBT when the device has no synchronized snapshot (BIP-143 fee attack)</td><td>8311bd8</td><td>QyvoraWalletTests.PSBTAmountVerificationTests (amountsStatedOnlyByThePSBTAreReportedAndNeedAnExplicitConfirmation, theTwoRoundFeeAttackYieldsNoSignat…</td></tr><tr><td>QYV-SVC-009</td><td><span class="s-medium">medium</span></td><td>The per-transaction ceilings of an unaudited mainnet build do not bound the fee, and fee data comes from the first endpoint that …</td><td>120ca41</td><td>QyvoraWalletTests.MainnetPolicyTests (feeCeilingConstantsAreTheDocumentedOnes, bitcoinFeeCeilingsAreEnforcedAtPrepareAndAtSign, ethereumFeeCeilingIsE…</td></tr><tr><td>QYV-SVC-010</td><td><span class="s-medium">medium</span></td><td>PIN escalating delays rely on the wall clock, which the holder of the device can advance</td><td>218a4af</td><td>QyvoraVaultTests.PINClockTests (settingTheDateForwardDoesNotShortenTheDelay, aRestartOfTheDeviceRestartsTheDelay, aLongerUptimeInAnotherBootSessionGi…</td></tr><tr><td>QYV-SVC-020</td><td><span class="s-medium">medium</span></td><td>Solana send planner trapped on a rent minimum near 2^64 supplied by an endpoint</td><td>04bb687</td><td>QyvoraSolanaTests.SolanaAuditRegressionTests/hostileRentAndBalancesNeverTrapThePlanner; security/tests PropertyAuditTests SolanaPlannerProperties/fee…</td></tr><tr><td>QYV-SVC-021</td><td><span class="s-medium">medium</span></td><td>One Solana endpoint could declare a live transaction expired or failed and release the double-payment guard</td><td>04bb687</td><td>QyvoraSolanaTests.SolanaAuditRegressionTests/oneEndpointCannotDeclareALiveTransactionDeadOrFailed</td></tr><tr><td>QYV-SVC-060</td><td><span class="s-medium">medium</span></td><td>A hostile tip height from one UTXO indexer overflows the survey of indexers and crashes the wallet</td><td>2c8f987, 3cb4f27</td><td>QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests/hostileTipHeightsNeitherTrapNorWinTheSurvey; fuzz target utxo-indexer-normalise (committed seed w…</td></tr><tr><td>QYV-SVC-061</td><td><span class="s-medium">medium</span></td><td>A refused broadcast was reported as a success when the refusal contained &quot;known&quot; or was a mempool conflict</td><td>2c8f987</td><td>QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests/aRefusedBroadcastIsNeverReportedAsAlreadyKnown</td></tr><tr><td>QYV-SVC-064</td><td><span class="s-medium">medium</span></td><td>PSBT amounts were not authenticated where signatures do not commit to them (Dogecoin, Bitcoin Cash, BIP-44 accounts)</td><td>3996ed6</td><td>QyvoraBitcoinTests.UTXOCoinsAuditRegressionTests/aPreviousTransactionSetThroughThePropertyIsAuthenticated, nothingIsSignedWhenTheFeeIsNotAuthenticate…</td></tr><tr><td>QYV-SVC-080</td><td><span class="s-medium">medium</span></td><td>A primary network could be moved to a main network without a fresh authentication (1.0 setters, and setNetworkMode when the store…</td><td>f8ff2b8</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): leavingTheTestNetworksAlwaysNeedsAFreshAuthentication</td></tr><tr><td>QYV-APP-021</td><td>low</td><td>Solana: the interface must show pending/expired states, the cross-cluster warning of a cold review and the weakness of a single e…</td><td>7b1e37e</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouches…</td></tr><tr><td>QYV-APP-041</td><td>low</td><td>TRON: the interface must carry the service&#x27;s refusals and notices (reference block, contract recipient, address forms, expiry, re…</td><td>0fe8b74</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouches…</td></tr><tr><td>QYV-APP-060</td><td>low</td><td>The interface must make the user acknowledge the critical warnings of a Bitcoin Cash payment (legacy address, coins replayable on…</td><td>0fe8b74</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouches…</td></tr><tr><td>QYV-APP-100</td><td>low</td><td>Interface duties for the sweep of exposed coins, the fee quote, hidden tokens and the unverified-amounts confirmation</td><td>8ffcf8a</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouches…</td></tr><tr><td>QYV-AUD-003</td><td>low</td><td>ConstantTime.equal: a sub-nanosecond dependence on the compared contents is statistically detectable when the processor&#x27;s DIT fla…</td><td>b806c00</td><td>security/tests/Sources/qytiming/main.swift (target ct-equal-hamming, without --dit: the engine now sets the flag itself); QyvoraMathTests.DataIndepen…</td></tr><tr><td>QYV-AUD-004</td><td>low</td><td>Two low-severity items reported by the project&#x27;s Semgrep rules: `try!` in SignedEIP1559Transaction.raw and `==` on a decapsulated…</td><td>ad48602</td><td>Tests/QyvoraEthereumTests/AuditRegressionTests.swift (rawEncodingIsTheSignedFieldsFollowedByTheSignature); security/tests PropertyAuditTests (EIP-155…</td></tr><tr><td>QYV-BIN-002</td><td>low</td><td>No privacy manifest although required-reason APIs are used</td><td>e518577</td><td>binary-checks &#x27;Privacy manifest (PrivacyInfo.xcprivacy) present and covering the required-reason APIs used&#x27; (emits QYV-BIN-002 when unmet)</td></tr><tr><td>QYV-CRY-004</td><td>low</td><td>Constant-time behaviour rests on source-level discipline only: no compiler guarantee, DIT not enabled</td><td>b806c00</td><td>QyvoraMathTests.DataIndependentTimingTests (theFlagIsSetInsideAScopeAndRestoredAfterIt, nestedScopesLeaveTheFlagToTheOutermostOne, aThrowingScopeRest…</td></tr><tr><td>QYV-FUZ-001</td><td>low</td><td>Identity(privateEncoding:) accepts an ML-DSA-87 private key whose t0 component is corrupted</td><td>64500cd</td><td>QyvoraMLDSATests.MLDSAPrivateKeyValidationTests (thePublicKeyIsRecomputedFromThePrivateKey, everySingleBitErrorInT0IsDetected, damageInTheOtherCompon…</td></tr><tr><td>QYV-SVC-004</td><td>low</td><td>PSBT.fee traps on a PSBT with thousands of inputs claiming the maximum amount</td><td>f111cfb</td><td>QyvoraBitcoinTests.BitcoinAuditRegressionTests/psbtFeeWithThousandsOfMaximalInputsIsNilNotATrap</td></tr><tr><td>QYV-SVC-005</td><td>low</td><td>A backup whose records carry timestamps near 2^64 crashes the restoration after the vault was created</td><td>ec01204</td><td>QyvoraRecoveryTests.RecoveryAuditRegressionTests/vaultTimeNeverTraps, backupWithExtremeTimestampsIsWrittenReadAndRestoredWithoutTrap</td></tr><tr><td>QYV-SVC-006</td><td>low</td><td>Amount formatting and the Shield report trap on out-of-range values of the stored profile (decimals, durations)</td><td>7e854f2</td><td>QyvoraCoreTests.CoreAuditRegressionTests/baseUnitsToleratesHostileDecimals; QyvoraQuantumShieldTests.ShieldAuditRegressionTests/extremeDurationsInThe…</td></tr><tr><td>QYV-SVC-007</td><td>low</td><td>HTTP responses were buffered without any size limit</td><td>3ff9505</td><td>QyvoraNetworkingTests.ResponseValidationTests/bodyWithinTheLimitIsReturnedWhole, oversizedBodyIsRefused</td></tr><tr><td>QYV-SVC-011</td><td>low</td><td>The wallet profile (account public keys, endpoints, mainnet opt-in) is stored unauthenticated outside the vault</td><td>8fb36b0</td><td>QyvoraWalletTests.AccountBindingTests (aReplacedAccountKeyIsRestoredFromTheVaultAtUnlock, everyUnlockMethodChecksTheBinding, aVaultWithoutBindingGets…</td></tr><tr><td>QYV-SVC-012</td><td>low</td><td>KDF cost bounds accepted from a backup or vault header allow 2 GiB of memory and 64 passes</td><td>9ec716a</td><td>QyvoraVaultTests.KDFCeilingTests (theCeilingIsFourTimesTheDefaultAndFarBelowTheFormatBound, aVaultHeaderAboveTheCeilingIsNotDerived); QyvoraWalletTes…</td></tr><tr><td>QYV-SVC-015</td><td>low</td><td>Quadratic Base58 decoding was reachable with unbounded text (extended keys, WIF)</td><td>7e854f2, f111cfb</td><td>QyvoraCoreTests.CoreAuditRegressionTests/oversizedExtendedKeyTextIsRefusedWithoutDecoding; QyvoraBitcoinTests.BitcoinAuditRegressionTests/oversizedWI…</td></tr><tr><td>QYV-SVC-023</td><td>low</td><td>Figures of a Solana review came from the planner and were not checked against the bytes to be signed</td><td>04bb687</td><td>QyvoraWalletTests.SolanaWalletAuditRegressionTests/aReviewThatDoesNotMatchItsBytesIsNeverSigned; QyvoraWalletTests.MainnetPolicyTests/aSolanaTransact…</td></tr><tr><td>QYV-SVC-024</td><td>low</td><td>Solana memos could carry bidirectional and zero-width characters, and a foreign memo was printed with its line breaks in a review</td><td>04bb687</td><td>QyvoraSolanaTests.SolanaAuditRegressionTests/memosCannotDisguiseTheReview; fuzz targets solana-instructions, solana-review (every summary must be dis…</td></tr><tr><td>QYV-SVC-041</td><td>low</td><td>TRON transactions valid for up to 24 hours could be signed (cold payloads): the wallet did not bound the validity window at signi…</td><td>03a3554</td><td>QyvoraWalletTests.TronAuditRegressionTests/aColdDeviceDoesNotSignATransactionValidForMoreThanAnHour</td></tr><tr><td>QYV-SVC-042</td><td>low</td><td>The TRON mainnet burn address (Blackhole) was not refused as a recipient</td><td>a12879b</td><td>QyvoraWalletTests.TronAuditRegressionTests/theBurnAddressOfTheMainNetworkIsRefused</td></tr><tr><td>QYV-SVC-043</td><td>low</td><td>TRON: the transaction of a review was not checked against the figures of the review before signing</td><td>03a3554</td><td>QyvoraWalletTests.TronAuditRegressionTests/aReviewThatDoesNotMatchItsTransactionIsNotSigned; QyvoraWalletTests.MainnetPolicyTests/aForgedTronPlanAbov…</td></tr><tr><td>QYV-SVC-062</td><td>low</td><td>Plans of Litecoin and Dogecoin payments were checked against Bitcoin&#x27;s monetary range before signing</td><td>13cbf5a</td><td>QyvoraWalletTests.MainnetPolicyTests/plansAboveBitcoinsMonetaryRangeAreValidOnDogecoin</td></tr><tr><td>QYV-SVC-063</td><td>low</td><td>The value ceiling of a coin plan excluded its change output without checking that it returns to the wallet</td><td>13cbf5a</td><td>QyvoraWalletTests.MainnetPolicyTests/coinLimitsHoldAtPrepareAndAtSignEvenWithAnAlteredPlan</td></tr><tr><td>QYV-SVC-065</td><td>low</td><td>The review of a Bitcoin Cash payment did not say that the recipient was given in the legacy (Bitcoin) address format</td><td>0cff22c</td><td>QyvoraWalletTests.UTXOCoinsAddressAuditRegressionTests/aLegacyBitcoinCashRecipientIsACriticalWarningOfTheReview, theWarningExistsOnlyOnBitcoinCash</td></tr><tr><td>QYV-SVC-066</td><td>low</td><td>Bitcoin path: the value ceiling excludes the plan&#x27;s change output without checking that it returns to the wallet</td><td>e1639d6</td><td>QyvoraWalletTests.BitcoinWalletTests/aPlanWhoseChangePaysSomeoneElseIsNotSigned (fails on the sources before the fix: the altered plan was signed and…</td></tr><tr><td>QYV-SVC-081</td><td>low</td><td>A cold-signed EVM transaction was broadcast without applying the limits of an unaudited build again</td><td>cd95302</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aColdSignedEVMTransactionAboveTheCeilingIsNotBroadcast</td></tr><tr><td>QYV-SVC-083</td><td>low</td><td>EthereumRPC.FeeData.maxFee trapped on figures the fee rules refuse (overflowing addition in the fallback)</td><td>53bb0eb</td><td>QyvoraNetworkingTests.EVMChainsAuditRegressionTests.feeDataMaxFeeNeverTraps</td></tr><tr><td>QYV-SVC-084</td><td>low</td><td>Symbol and decimals of a detected token came from the persisted snapshot when a payment was prepared after a restart</td><td>b3b8fac</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aDetectedTokenOfARestoredSnapshotIsNotUsedForAPayment</td></tr><tr><td>QYV-SVC-086</td><td>low</td><td>A watch-only package naming a network that is not Bitcoin&#x27;s for its Bitcoin account left a wallet behind the error</td><td>0bdd99b</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aWatchOnlyPackageIsValidatedBeforeAnythingIsCreated</td></tr><tr><td>QYV-SVC-100</td><td>low</td><td>A persisted record of a coin synchronization kept addresses &quot;already paid&quot; for the whole next session, silencing the first-paymen…</td><td>08cfe31</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.aPersistedRecordDoesNotSilenceTheFirstPaymentWarning</td></tr><tr><td>QYV-SVC-101</td><td>low</td><td>A plan presented as a sweep of exposed coins was signed without checking that it pays the wallet</td><td>08cfe31</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): MainnetPolicyTests.aSweepObeysTheCeilingsAndPaysOnlyTheWalletOnEveryCoin</td></tr><tr><td>QYV-SVC-102</td><td>low</td><td>A token of the detected list restored from the previous session&#x27;s file could be moved into the wallet&#x27;s list with the file&#x27;s symb…</td><td>98350c6</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.aDetectedTokenOfARestoredSnapshotCannotEnterTheList</td></tr><tr><td>QYV-SVC-103</td><td>low</td><td>The review of a TRC-20 payment showed the symbol and decimals the caller passed (TRON), and the caller&#x27;s symbol on Solana</td><td>98350c6</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.showingAHiddenTokenAgainChangesNoPaymentMetadata</td></tr><tr><td>QYV-SVC-104</td><td>low</td><td>Address indices read from the profile file were used unchecked: 4 294 967 295 in a used-index list trapped or made a PSBT review …</td><td>34d4c91</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.hostileAddressIndicesOfAProfileNeitherTrapNorGrowThe…</td></tr><tr><td>QYV-SVC-105</td><td>low</td><td>TRON send-max did not send the most it could at a size boundary of the amount: up to one bandwidth fee stayed in the account</td><td>13fa3c1</td><td>QyvoraTronTests (PlannerTests.swift): sendMaxAtAnEncodingBoundarySendsTheLargestAmountThatTravelsFree; security/tests PropertyAuditTests TronProperti…</td></tr><tr><td>QYV-AUD-007</td><td>info</td><td>Tests that read the process-wide mainnet policy failed at random while a test that switches it was running</td><td>7b1e37e</td><td>The whole QyvoraWalletTests target run repeatedly (see verification); MainnetPolicyTests.aMainNetworkIsRefusedByNameWhileMainnetIsOff and bothConditi…</td></tr><tr><td>QYV-AUD-008</td><td>info</td><td>The memory probe of the benchmarks could report a high-water mark below the current resident size</td><td>6bc8b67</td><td>QyvoraBenchmarksTests.ProbeTests.thePeakNeverTrailsTheCurrentSizeWhileTheProcessGrows and probesReturnPlausibleValues.</td></tr><tr><td>QYV-BIN-003</td><td>info</td><td>Built application declares iPad support although the project targets iPhone only</td><td>d301504</td><td>binary-checks &#x27;Device family matches the project setting (iPhone only)&#x27; (emits QYV-BIN-003 when unmet)</td></tr></tbody></table>203<h3>Residual risks: open and accepted findings</h3>204<table class="small"><thead><tr><th>Id</th><th>Severity</th><th>Status</th><th>Title</th><th>Recommendation (abridged)</th></tr></thead><tbody><tr><td>QY-DONTRUST-2ac8743fd890</td><td><span class="s-medium">medium</span></td><td>open</td><td>No secret-wiping primitive anywhere in a native codebase</td><td>Follow the rule&#x27;s confirm steps (security/reports/raw/dontrust.md).</td></tr><tr><td>QYV-APP-007</td><td><span class="s-medium">medium</span></td><td>open</td><td>Transaction signing relies on cryptography written from scratch that has no independent review</td><td>Keep the mainnet gate and the per-transaction limits until an independent cryptographic review is completed; publish the audit reports with their limits; do not recommend the wallet for significant funds before that review. Not a defect th…</td></tr><tr><td>QYV-CRY-003</td><td><span class="s-medium">medium</span></td><td>open</td><td>Key material that the engine cannot erase: secp256k1 scalars on the stack, hash scratch, keys returned as arrays</td><td>Before production: (a) run the secp256k1 signing path on a heap workspace erased with memset_s, as ML-DSA does with its Workspace; (b) give HashFunction an erase requirement and call it from HMAC, HKDF and PBKDF2; (c) carry keys across mod…</td></tr><tr><td>QY-SEMGREP-08c843448d22</td><td>low</td><td>accepted-risk</td><td>qyvora-parser-trap-call: precondition(!o, &quot;UInt256 overflow&quot;)</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-SEMGREP-45b5b48378cb</td><td>low</td><td>accepted-risk</td><td>qyvora-insecure-randomness: rng.shuffle(&amp;orderedInputs)</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-SEMGREP-6a1d9425bec2</td><td>low</td><td>accepted-risk</td><td>qyvora-file-write-without-protection: try Data(bytes).write(to: url, options: [.atomic])</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-SEMGREP-99878e848143</td><td>low</td><td>accepted-risk</td><td>qyvora-parser-trap-call: precondition(!o, &quot;UInt256 underflow&quot;)</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-SEMGREP-d6fd379b8c55</td><td>low</td><td>accepted-risk</td><td>qyvora-insecure-randomness: rng.shuffle(&amp;tagged)</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QYV-STA-002</td><td>low</td><td>accepted-risk</td><td>Deterministic (non-cryptographic) generator used for transaction ordering</td><td>Keep `seed` nil outside tests (assert it in the wallet service), and state in the type&#x27;s documentation that it must never produce secret material.</td></tr><tr><td>QYV-APP-008</td><td>low</td><td>open</td><td>QYInternalMainnet is set in the only Info.plist, with no build-configuration guard</td><td>Derive the key from a build setting (e.g. `QY_INTERNAL_MAINNET = NO` by default, `YES` only in an internal configuration or xcconfig) and make the release script refuse an App Store export when it is set. The release gate of the audit repo…</td></tr><tr><td>QYV-APP-009</td><td>low</td><td>open</td><td>No platform-integrity, anti-tampering or anti-debugging mechanism</td><td>Decide and document the position. Minimum: detect an obviously compromised device (jailbreak indicators, debugger attached in Release) and warn the user before a recovery phrase is shown or entered; recommend the password (not only the PIN…</td></tr><tr><td>QYV-APP-010</td><td>low</td><td>open</td><td>No screening of known malicious addresses (the first-payment warning was added on 2026-12-04)</td><td>Persist the set of paid recipients (script or address, per network) in the profile and add a `firstPaymentToRecipient` warning to both reviews; show the full address in the review with grouped characters. A local blocklist is optional and …</td></tr><tr><td>QYV-STA-014</td><td>low</td><td>open</td><td>QYInternalMainnet is set: this build may reach mainnet before the audit is complete</td><td>Keep the key out of every public build configuration (set it only in the internal TestFlight configuration) and keep the limits of MainnetPolicy.limits.</td></tr><tr><td>QYV-SVC-013</td><td>low</td><td>open</td><td>Identity signatures rest on the from-scratch ML-DSA only: no system-provided component, and the SLH-DSA half is optiona…</td><td>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, signe…</td></tr><tr><td>QYV-SVC-025</td><td>low</td><td>open</td><td>The same-payment guard of Solana does not cover transactions broadcast for a cold device and does not survive a restart</td><td>Proposed fix (service): in `broadcastSigned`, derive the payment key from the decoded transaction when it is a plain payment — recipient and lamports of the System transfer; for a token, key the guard on the destination token account and u…</td></tr><tr><td>QYV-SVC-044</td><td>low</td><td>open</td><td>TRC-20 metadata of a custom token (decimals, symbol) and every account figure come from the first TRON node that answers</td><td>Proposed fix (service): read `decimals()` on every configured node and require agreement when a token is added and again when a token payment is prepared (the pattern of `referenceBlock`), refuse a token whose decimals changed since it was…</td></tr><tr><td>QY-MOBSF-324f12d3e72d</td><td>info</td><td>accepted-risk</td><td>MobSF: binary protection `rpath`</td><td>Review in the context of the application; MobSF findings are pattern matches on the binary.</td></tr><tr><td>QY-MOBSF-6bd04ddb0662</td><td>info</td><td>accepted-risk</td><td>MobSF: Binary makes use of insecure API(s)</td><td>Review in the context of the application; MobSF findings are pattern matches on the binary.</td></tr><tr><td>QY-MOBSF-994c0fa7ebff</td><td>info</td><td>accepted-risk</td><td>MobSF: Binary makes use of malloc function</td><td>Review in the context of the application; MobSF findings are pattern matches on the binary.</td></tr><tr><td>QY-MOBSFSCAN-2dc4482c3417</td><td>info</td><td>accepted-risk</td><td>mobsfscan best practice not detected in the source: ios_cert_pinning</td><td>Design question: see the MASVS assessment for the rating and the rationale.</td></tr><tr><td>QY-SEMGREP-14b6aa9738f4</td><td>info</td><td>accepted-risk</td><td>qyvora-file-write-without-protection: if (try? Data(report.markdown().utf8).write(to: markdown, options: .atomic)) != n…</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-SEMGREP-5fd894fe11de</td><td>info</td><td>accepted-risk</td><td>qyvora-parser-trap-call: precondition(status == errSecSuccess, &quot;system random generator failed&quot;)</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-SEMGREP-bfb3143d3017</td><td>info</td><td>accepted-risk</td><td>qyvora-file-write-without-protection: if let data = try? report.jsonData(), (try? data.write(to: json, options: .atomic…</td><td>Review the match; fix it, or record a justified triage entry in security/policies/triage.json.</td></tr><tr><td>QY-MOBSFSCAN-760d47796447</td><td>info</td><td>open</td><td>mobsfscan best practice not detected in the source: ios_detect_reversing</td><td>Design question: see the MASVS assessment for the rating and the rationale.</td></tr><tr><td>QYV-APP-012</td><td>info</td><td>open</td><td>No privacy manifest and no forced-update mechanism</td><td>Add `App/Resources/PrivacyInfo.xcprivacy` (no tracking, no collected data, a required-reason entry for UserDefaults, reason CA92.1). For updates: a wallet without a server can at least refuse to operate after a signed, user-visible end-of-…</td></tr><tr><td>QYV-AUD-001</td><td>info</td><td>open</td><td>ML-DSA Montgomery reduction returns q (not a value in (-q, q)) at the single boundary input a = 2^31*q</td><td>Correct the comment to the half-open domain -2^31*q &lt;= a &lt; 2^31*q, or keep as is. No code change required. The property test pins the behaviour so that any change is noticed.</td></tr><tr><td>QYV-BIN-001</td><td>info</td><td>open</td><td>This build declares QYInternalMainnet (mainnet enabled for internal testing)</td><td>Before any public distribution: remove the key (or set it to false) and re-run the audit; the release gate should refuse a public build whose Info.plist contains it.</td></tr><tr><td>QYV-SVC-014</td><td>info</td><td>open</td><td>Balances, unspent outputs and fee estimates are taken from the first endpoint that answers</td><td>Offer the user&#x27;s own node as the recommended configuration; cross-check balances and fee estimates between the configured endpoints and show a disagreement; for Bitcoin, verify block headers (proof of work) rather than the genesis hash alo…</td></tr><tr><td>QYV-SVC-067</td><td>info</td><td>open</td><td>Litecoin MWEB serialization (flag 0x08) is not parsed: a previous transaction of that kind cannot be authenticated</td><td>Proposed: either parse the MWEB flag far enough to recompute the identifier (version, inputs, outputs, lock time — the extension data is not part of the txid), or keep the limitation and state it in the documentation of Litecoin support. N…</td></tr></tbody></table>205<h3>Details of the register findings</h3>206<h4>QYV-APP-080 — A watch-only package is not authenticated and no fingerprint is shown: a substituted package makes the companion show someone else&#x27;s addresses as the wallet&#x27;s own</h4>207<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.0 — CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:553</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>bf3150b</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aWatchOnlyPackageIsImportedOnlyWithItsOwnCode (InterfaceDutiesAuditRegressionTests.swift, commit 0fe8b74) and theWatchOnlyFingerprintFollowsEveryAccountOfThePackage; static check QYV-STA-023; screens read on the simulator (see verification).</td></tr><tr><td>Note</td><td>Both screens exist. The exporting device (WatchOnlyExportView) shows, next to the QR code, the code of the package in five large groups, a warning that says what a substitution means, the steps for the other device and the first address of every account of the package (`WalletService.watchOnlyPreview`, computed from the package text itself). The importing flow (WatchOnlyFlow → WatchOnlyPackageConfirmation) never imports from the scanner: it shows the code of what it scanned WITHOUT its last group, the same list of first addresses with their networks, what a difference means, and enables the import only when the user has typed the last group as the signing device shows it and ticked the comparison (a box that starts empty). The service checks it: `importWatchOnly(package:comparedFingerprint:)` refuses a code that is not the code of the very package being imported, and the form without a code is no longer public — no screen can import a package without stating one. A wrong group names the consequence on screen. The package scanned from the dashboard on a device that already has a wallet is still only named (it is not imported there).</td></tr></table>208<p>Root cause: the watch-only package (`exportWatchOnlyPackage`, versions 1 and 2) is public data in JSON, carried as text or QR frames from the cold device to its online companion. It is neither signed nor bound to anything the companion knows; the QR frame checksum only detects transmission errors. Version 2 extends it to the Solana address, the TRON address and the account keys of the other coins. Impact: a party able to replace the package on its way (a screen shown to the camera instead of the cold device, a file or text sent through a channel it controls) makes the companion watch the attacker&#x27;s accounts: every receive address the companion shows, on every family, is the attacker&#x27;s, and deposits made to them are lost. The attacker cannot sign: payments prepared by the companion for the cold device are refused there (&quot;not this wallet&#x27;s&quot;), which is also how the substitution would eventually be noticed. The design exists since 1.0 (Bitcoin and Ethereum) and had no finding; the upgrade extends it to four families. Rated by the wallet-impact class: loss of funds with a strong precondition (a package the user must be led to import) — high; CVSS 4.0.</p>209<p>Recommendation / fix: Interface: show `WalletService.watchOnlyFingerprint(package:)` on the cold device next to the package it displays, and on the companion for the package it scanned, before `importWatchOnly(package:)` is called; ask the user to compare the five groups and refuse the import otherwise. Keep showing the code in the companion&#x27;s settings. Optionally sign the package with the cold device&#x27;s QYVORA identity (ML-DSA + Ed25519) when the two devices have exchanged identities.</p>210<h4>QYV-AUD-002 — secp256k1 field and scalar arithmetic compiled with conditional branches on carries (secret-dependent timing of k·G, ECDSA and BIP-340 signing)</h4>211<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.7 — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-208 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraSecp256k1/U256.swift:99</td></tr><tr><td>Found by</td><td>dudect-timing (rule secp256k1-mul-fixed)</td></tr><tr><td>Fix commit</td><td>5d28ee3</td></tr><tr><td>Regression test</td><td>Tests/QyvoraSecp256k1Tests/CarryChainTests.swift (functional equivalence); security/audit/runners/timing.py machine-code check (U256.add, U256.sub = 0 conditional branch, Modulus.montMul &lt;= 4) and dudect targets secp256k1-mul-sparse, secp256k1-mul-dense, secp256k1-mul-fixed, ecdsa-sign-key, ecdsa-sign-fixed-message, schnorr-sign-key; step ct-ios (tool ct-machine-code-ios) repeats the machine-code check on the iOS application binary in every full run</td></tr></table>212<p>Root cause: the 256-bit addition, subtraction and Montgomery multiplication computed carries with `addingReportingOverflow` followed by `flag ? 1 : 0`. The source has no branch, but the Swift optimiser (6.3.3 and 6.4.2, -O) compiled these selections into conditional branches on the carry flags: 8 conditional branches in U256.add, 8 in U256.sub and 20 in Modulus.montMul (disassembly of the release build). A carry depends on the operands, which are secret during k·G with a secret scalar (public-key derivation, ECDSA nonce, BIP-340 nonce) and during the scalar arithmetic of signing (k^-1, r·d). How it was found: the dudect-style timing test, not the source review (which had rated the code constant-time by construction). Measurements before the fix (laptop, Swift 6.4.2, 2000 measurements per class): k·G with scalar 1 took 131 µs against 285 µs for random scalars (max |t| = 295); scalar n−1 against random scalars max |t| = 97; BIP-340 signing with one repeated key against random keys 850 µs against 1013 µs (max |t| = 164). Impact: the duration of signing and key derivation depended on secret values, and the secret-dependent branches are observable by an attacker able to measure the device finely (co-located code, branch-predictor side channels). The severity is rated high by the wallet-impact rule of the severity policy (a leak on the signing key or on an ECDSA nonce leads to loss of funds) although the CVSS base score is medium (local vector, high complexity). No practical key recovery was attempted or demonstrated.</p>213<p>Recommendation / fix: Fixed: carries and borrows are computed with bit arithmetic only (majority functions on the operand and result words), so that no Boolean exists for the optimiser to branch on. After the fix the release build has 0 conditional branch in U256.add and U256.sub, and 4 in Modulus.montMul (selection of the multiplier limb by the loop index, a public value). Timing after the fix on a quiet node (M4M64a, Swift 6.3.3, 12 000 measurements per class for k·G): max |t| = 2.60 (scalar 1), 1.87 (scalar n−1), 2.96 (one repeated scalar), ECDSA 0.65 and 1.67, BIP-340 1.33 — all below the 4.5 threshold. The machine-code check and the timing targets run at every audit and fail the gate if a branch reappears (for example after a compiler update). The same check runs on the iOS application binary (symbols from the archive&#x27;s dSYM) in every full audit run. The signing throughput decreased after the change: re-run docs/BENCHMARKS.md.</p>214<h4>QYV-AUD-005 — Timing harness artefact reported as a leak: ML-KEM decapsulation, one repeated ciphertext against many (QY-TIMING-MLKEM-DECAPS-MESSAGE-ML-KEM-768); qytiming did not isolate the timed operation from where and how each class&#x27;s inputs were prepared</h4>215<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.7 — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-208 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>security/tests/Sources/qytiming/main.swift</td></tr><tr><td>Found by</td><td>dudect-timing (rule mlkem-decaps-message-ML-KEM-768)</td></tr><tr><td>Fix commit</td><td>972721e, f175054, da2d3b2</td></tr><tr><td>Regression test</td><td>security/tests/Sources/qytiming/main.swift: control-negative-mlkem-ciphertexts-ML-KEM-512/768/1024, control-negative-aes-random-keys and control-same-class (same distribution in both classes, must stay below the threshold: the per-class storage that failed them at --scale 10 is reproduced by diag-aes-random-vs-random), info-former-preparation-ML-KEM-512/768/1024 (the target exactly as it was written, one buffer against a pool, reported without verdict; reproduces the artefact with --no-barrier), control-positive-mlkem-leak-ML-KEM-768 and control-leaky-compare (must be detected), and the corrected mlkem-decaps-message-ML-KEM-512/768/1024; security/policies/constant-time-functions.json: 21 entries for the compiled ML-KEM decapsulation path (commit c8f0d6a); security/policies/timing-known.json reports a new exceedance of the three targets under this identifier, severity high</td></tr></table>216<p>What the audit reported (full run on commit 60c944c, node M4M64a): the target mlkem-decaps-message-ML-KEM-768 (one key; class A = one valid ciphertext repeated, class B = 512 other valid ciphertexts) exceeded the threshold twice, max |t| = 4.7 then 4.5 with 40 000 measurements per class; with 400 000 per class |t| = 10.7 and 12.8, and 8.1 with --dit. Rated high: unanalysed timing difference on an operation that uses a private key. All measurements below: M4M64a (Mac Studio M4 Max, macOS 26.5.1, Swift 6.3.3), 2026-12-04, 1-minute load between 1.3 and 3 (3 to 7 during the very first series, while Spotlight indexed the copied tree), 400 000 measurements per class for ML-KEM and 1 000 000 for AES unless stated; each value is one run. Reproduction with the harness as it was: ML-KEM-768 max |t| = 12.5, 11.4, 12.0, 9.3; ML-KEM-512 9.7, 8.9, 6.0, 4.8; ML-KEM-1024 5.5, 8.8, 8.3, 12.7. The excess is in the cropped distributions (median crop), class A the slower one; difference of the means between -1 and +12 ns (typically 5 to 8) on 14 to 31 microseconds; uncropped statistic 0.6 to 3.5. Root cause: the measurement, not the decapsulation. The harness let two things differ between the classes besides the contents of the inputs. (1) The timed region was not separated from the preparation. The clock reading is not a serialising instruction; the copy of the ciphertext into the working buffer, made just before, could still be completing when the timed region started, and that copy was not the same for the two classes (class A: from one buffer, always in the first-level cache, by a direct reference; class B: from one of 512 buffers, 0.4 to 0.8 MB, by an indexed access). (2) Each class kept its inputs in its own memory. Even with identical preparation code, a class whose values live in their own buffers differs from the other by a constant of 1 to 3 ns for the whole run, the sign changing from one process to the next. Evidence separating this from a dependence on the ciphertext or on the decrypted message: (a) SAME ciphertext in both classes, one buffer against 512 buffers holding copies of it, former harness: ML-KEM-768 |t| = 8.4, 8.2; ML-KEM-1024 5.7, 7.1 (ML-KEM-512: 1.0, 2.5 in this form, where both classes use the same indexed access). Identical inputs cannot differ because of the engine. (b) Contents varied, storage identical (one ciphertext in 512 buffers against 512 ciphertexts), former harness: 768: 1.3, 2.0; 512: 1.9, 1.4; 1024: 2.6, 2.5. Pool against another pool 2.7; one buffer against another buffer holding a different ciphertext 1.9; ciphertexts differing from the repeated one in u only 1.3, 2.6; in v only 1.8, 1.6. (c) The former target unchanged, plus a serialising barrier (dsb sy; isb) between the preparation and the first clock reading: 768: 1.3, 1.2, 2.0, 1.9, 2.3, 4.35; 512: 2.1, 1.8, 2.2, 1.2, 2.0, 0.6; 1024: 1.2, 1.7, 0.9, 1.5, 0.7, 1.5 (same binary without the barrier in the last series: 768: 5.8, 8.3; 512: 4.7, 6.2; 1024: 6.9, 6.5). The barrier is outside the timed region. The 4.35 shows that the barrier alone does not remove everything from an asymmetric preparation; point (2) is the rest. (d) Making class A read the pool entry class B would have read before copying from its single buffer did not remove the difference (7.6, 4.0): the cache footprint of the pool is not the cause by itself. (e) Point (2) was found when the first correction (barrier, repeated value kept in 512 buffers of its own) made aes-key-dependence fail in the audit run (4.5 then 13.4 at 100 000 per class). With a million per class, AES-256-GCM seal (10 microseconds), two classes drawn from the SAME distribution, each in its own pool: random keys against random keys |t| = 56.7, 21.0, 48.1, 37.9, 43.8 (the last with the opposite sign); all-zero against all-zero 20.3, 24.9, 44.1, 44.2; pools exchanged between the classes 48.2, 76.2; the former form (zero key in one buffer against a pool) 12.8, 15.0 with the barrier and 24.8, 21.9 without. In the run that was dumped the offset was constant (1.9 to 2.4 ns in each tenth of the run) and did not depend on the previous class. A preparation that ignores the class: 1.9, 1.1 (the measuring loop itself is unbiased). Making the loop branch-free on the class changed nothing (hypothesis of a branch-history effect: rejected). With both classes in one block of memory whose slots are dealt to the classes at random: random against random 2.4, 2.1, 1.5, 2.0, 1.5; all-zero key against random keys 0.7, 1.9, 1.2. (f) Machine code of the decapsulation path (decapsCore, pkeDecrypt, pkeEncrypt, NTT forward/inverse/multiply, samplePolyCBD, compressEncode, decodeDecompress, decode12, messageToPoly, the Field reductions, ConstantTime.select, Keccak permutation, absorb and squeeze), read branch by branch in the release builds of Swift 6.3.3 and 6.4.2: every conditional branch tests a loop counter, a public length or parameter (k, eta, d, accumulate), a bounds or overflow trap on such values, a buffer-overlap check of the vectoriser, array uniqueness or a one-time initialisation; the only data-dependent ones are the three of the rejection sampling of the matrix, on bytes expanded from the public seed (same key in both classes). No division instruction in the ML-KEM objects or in Keccak.swift (those of QyvoraMath are in SystemRandom.uniform and permutation, the one of QyvoraKeccak in SP800185.bytepad; none on this path); the only table is the zeta table, indexed by loop counters. Not established: the microarchitectural mechanisms themselves (why the class with the cached source is the slower one in (1); which property of the storage, alignment, cache sets or pages, produces the constant offset in (2)). No performance counter was read. The conclusion rests on (a), (b), (c), (e) and (f). Limits: statistical evidence on one machine and one build; a shift of about 3 ns in 21 microseconds is the smallest the ML-KEM target sees at 400 000 per class; no measurement on an iPhone; no power or electromagnetic analysis. A leak that exists only through the branch predictor is partly hidden by a pool of 512 values, which the predictor learns: 32 branches on bits of the shared secret added after a decapsulation gave a difference of 18 ns with 512 values and 57 ns with 8192 (both detected, |t| = 36.8 and 30.5), and inside the first audit run only 2.4 at 40 000 per class. That is why the positive control is now a loop whose length is a secret byte, and why the machine-code review (f) matters. Scope beyond ML-KEM: every target of qytiming used per-class buffers and the unseparated timed region (AES, secp256k1, ECDSA, BIP-340, ConstantTime.equal, AEAD tags, the informational ML-KEM targets); all now go through the same storage and barrier. Earlier passes of those targets remain valid as &#x27;no difference seen at that sample count&#x27;, with a sensitivity limited by the same 1 to 3 ns floor. ML-DSA and SLH-DSA signing have no timing target, so the artefact could not affect them; their code was not re-examined here.</p>217<p>Recommendation / fix: Fixed in the harness; the engine is unchanged, so its performance is unchanged (no engine file modified). (1) qytiming serialises the processor (dsb sy; isb) between the preparation and the first clock reading and before the last one; --no-barrier restores the former timed region. (2) Both classes of every target keep their inputs in one block of memory whose slots are dealt to the classes at random (ClassStore); a repeated value occupies as many slots as the other class has values. (3) The measuring loop uses the class as an index and splits the measurements afterwards. (4) Controls at every run: control-negative-mlkem-ciphertexts-&lt;set&gt;, control-negative-aes-random-keys, control-same-class (same distribution in both classes; an exceedance invalidates the run); control-positive-mlkem-leak-ML-KEM-768 (measured 62 and 71 with 40 000 per class, 20.7 with 6 000) and control-leaky-compare must be detected. After the fix (400 000 per class, two runs each, load 1.9 to 2.6): mlkem-decaps-message-ML-KEM-512 max |t| = 1.2 and 1.9; ML-KEM-768 1.4 and 0.5 (1.8 and 1.1 with 8192 ciphertexts per class); ML-KEM-1024 2.0 and 2.1. aes-key-dependence at 1 000 000 per class: 0.7, 1.9, 1.2. The former asymmetric form of the target is kept as info-former-preparation-&lt;set&gt;, without verdict: it is protected by the barrier only, each class still has its own memory, and it reached 4.35 once in twelve runs at 400 000 per class and 4.1 once at 40 000; it could not serve as a pass/fail control. Disposition proposed to the owner: measurement artefact of the audit tooling; no dependence of the decapsulation time on the ciphertext or on the decrypted message found at this sensitivity, and none in the compiled code. The severity recorded at detection (high) is kept in this entry and is the owner&#x27;s to reclassify. Remaining recommendations: include the ML-KEM decapsulation path and this harness in the independent cryptographic review; time on an iPhone if a device harness becomes available.</p>218<h4>QYV-AUD-006 — Ed25519 base-point multiplication: scalars whose windows are zero were measurably distinguishable by their duration (the neutral element was added)</h4>219<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.7 — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-208 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraEd25519/Edwards25519.swift:169</td></tr><tr><td>Found by</td><td>dudect-timing (rule ed25519-basemul-one)</td></tr><tr><td>Fix commit</td><td>2577679</td></tr><tr><td>Regression test</td><td>qytiming (internals build, --dit): ed25519-basemul-one, ed25519-basemul-zero, ed25519-basemul-highbit, run by the dudect-timing step of the audit; Tests/QyvoraEd25519Tests/Ed25519Tests.swift: GroupTests/basePointAndOrder (the base table holds 1B..16B, no neutral element, and the offset constant is [0x11..11]B) and GroupTests/scalarMultiplication; differential test ed25519-group-vs-integers (multiplyBase against Python integers and libsodium on edge scalars)</td></tr></table>220<p>Found by the timing tests added for the multi-chain audit (qytiming built with the Ed25519 internals, data-independent-timing flag set as the production entry points set it; node M4M64a, Mac Studio M4 Max, Swift 6.3.3). The fixed-window multiplication used a table 0·B … 15·B: a window equal to zero added the neutral element (0, 1, 1, 0). The source has no secret-dependent branch or index and the machine code has none either (4 conditional branches, all on public values), yet the duration differed between degenerate scalars and random ones: scalar 1 against random scalars max |t| = 9.0 and 6.9 with 20 000 measurements per class, 33.1 and 32.0 with 200 000; scalar 0: 9.4, 5.9, 9.4, 27.9; scalar 2^252: 7.2, 6.5, 18.9, 28.1 (threshold 4.5; the raw means differ by a few nanoseconds in 34 microseconds, the difference shows in the lower half of the distribution). The controls of the same runs behave as required, a repeated random scalar against random scalars shows nothing (2.1, 0.8, 0.5, 1.8), the scalar 2^256−1 (every window 15) shows nothing (1.7, 2.3, 1.9, 0.9), and the field and scalar operations taken alone show nothing with operands 0, 1 or all-ones at one million measurements (all below 2.5): the effect belongs to the loop when it processes the neutral element, not to the arithmetic. Cause not established (a processor effect on constant, mostly-zero data is the hypothesis; it was not proven). Impact: the scalars measured are not reachable in use (the key scalar is clamped SHA-512 output, the nonce is SHA-512 output reduced modulo the order), so no key was recovered or is claimed recoverable; what the measurement shows is that the duration depended on how many windows of a secret scalar are zero, a few bits of information about the long-term scalar for an attacker able to time [a]B precisely and repeatedly on the device. Severity: recorded at the tool&#x27;s default for a confirmed timing difference on an operation with a private key (high); the audit agent did not lower it.</p>221<p>Recommendation / fix: Fixed: the base-point multiplication, the only one made with secret scalars, uses a table shifted by one (window w adds (w + 1)·B) and removes the constant excess [0x11…11]B with one last addition, so that every window of every scalar adds a point that is not the neutral element and the accumulator leaves the neutral element at the first window. After the fix, same node, same sample counts: scalar 1: 1.9, 1.5, 1.6, 1.1; scalar 0: 0.6, 0.5, 2.0, 1.7; scalar 2^252: 0.7, 1.8, 3.7, 2.2; repeated scalar 1.5, 2.0, 2.4, 1.1; public interface (production build) public key 0.7, 1.3, 1.3, 1.2; signing, fixed seed 1.1, 2.1, 0.7, 0.7; signing, fixed nonce 0.9, 1.8, 1.4, 1.2; SLIP-0010 1.3, 2.0, 0.8, 1.5. The variable-base multiplication keeps the plain table: it serves verification only (public scalar, public point) and its targets are reported as informational. Residual: statistical evidence on one Mac and one build, not a proof; not measured on an iPhone; without the data-independent-timing flag the multiplication remains distinguishable for some scalars on this processor (informational targets info-nodit-*), which is why the production entry points set the flag; a processor without FEAT_DIT is not covered. Full data: security/audit/review/ed25519-timing-2026-12-05.json.</p>222<h4>QYV-CRY-001 — KMAC.verify accepted an empty or one-byte tag chosen by the sender</h4>223<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>7.5 — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-347 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraKeccak/SP800185.swift:215</td></tr><tr><td>Found by</td><td>manual-review (rule mac-verify-attacker-chosen-length)</td></tr><tr><td>Fix commit</td><td>58a0ddd</td></tr><tr><td>Regression test</td><td>Tests/QyvoraKeccakTests/SP800185Tests.swift: SP800185Tests.kmacVerifyRefusesShortTags</td></tr></table>224<p>Root cause: KMAC.verify(_:key:message:tag:customization:) recomputed the MAC with outputLength = tag.count and compared the two strings. The tag, and therefore its length, comes from the party being authenticated. KMAC with L = 0 is the empty string for every key and message, so an empty tag verified against anything; a one-byte tag was guessed in at most 256 tries, a two-byte tag in 65 536. Impact: complete forgery of any KMAC-authenticated message for a consumer of this function that did not check the tag length itself. Exposure in QYVORA at the reviewed revision: none - no source file outside QyvoraKeccak calls KMAC (checked with grep over Sources/ and App/Sources); the algorithm is listed as &#x27;available&#x27; in the engine catalogue. The CVSS base score describes the function as a public API of the engine, not a reachable path of the application.</p>225<p>Recommendation / fix: Done: tags shorter than KMAC.minimumTagSize (8 bytes, SP 800-185 section 8.4.2) are refused. A protocol that adopts KMAC must additionally fix its tag length and compare it before calling verify, as AES-GCM and ChaCha20-Poly1305 already do with their 16-byte tags.</p>226<h4>QYV-SVC-022 — A Solana transaction prepared for a test cluster could be made valid on mainnet-beta by the test endpoint (no cluster in the signed bytes)</h4>227<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-294 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Solana.swift:540</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>04bb687, 7ded8f8</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.SolanaWalletAuditRegressionTests/aTestClusterTransactionValidOnMainnetIsNeverSigned; QyvoraSolanaTests.SolanaAuditRegressionTests/recentBlockhashIsAskedFromEveryEndpoint</td></tr></table>228<p>Root cause: a Solana message carries no cluster identifier; the only thing that ties it to a cluster is its recent blockhash, which the wallet takes from the endpoint of the cluster the user selected. The wallet account is the same Ed25519 key on mainnet-beta, devnet and testnet. A devnet or testnet endpoint (one is enough: there is a single default endpoint on each test cluster) that answers getLatestBlockhash with a recent mainnet-beta blockhash, answers the genesis-hash check and the simulation as expected, obtains a signature that mainnet-beta executes. Impact: real SOL or tokens of the same account move on mainnet-beta although the user believes the payment is a test; the mainnet gate (build flag and user switch) and the per-transaction limits of an unaudited build are not applied to test-cluster transactions, so the amount is bounded only by the mainnet balance. The attacker gains when it is, or colludes with, the recipient. Severity by the wallet-impact class of the policy (&quot;replay across chains&quot;, limits bypassed, with a malicious endpoint as precondition), which is higher than the CVSS band.</p>229<p>Recommendation / fix: Fixed: before a test-cluster transaction is prepared, before it is signed, and before bytes signed by a cold device are handed to any endpoint (simulation included), the wallet asks every configured mainnet-beta endpoint `isBlockhashValid` (commitment processed) for the blockhash of the transaction and refuses with `wrongChain` when one knows it; when no mainnet-beta endpoint answers, nothing is prepared or signed. Only the blockhash is sent. The review of a cold device carries the warning `solana.cross-cluster` on a test cluster, because an offline device cannot make the check. Residual risks: (1) a mainnet-beta node that lags behind the cluster may not know a blockhash a few hundred milliseconds old at the instant of the check; the check is repeated at signature time, seconds later; (2) when every configured mainnet-beta endpoint lies or is the same operator as the test endpoint the check is void; (3) a cold device that receives its transaction from a compromised online device has only the warning; (4) test clusters are unusable while no mainnet-beta endpoint answers. The interface must show the cold warning: QYV-APP-021.</p>230<h4>QYV-SVC-040 — A TRON transaction prepared for a test network could be made valid on mainnet by the test node (no network in the signed bytes; reference block taken from the first answer)</h4>231<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-294 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:111</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>03a3554</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.TronAuditRegressionTests/aTestNetworkTransactionTheMainNetworkWouldAcceptIsNeverSigned; QyvoraWalletTests.TronAuditRegressionTests/aNodeThatGivesAnotherReferenceBlockStopsThePayment; QyvoraTronTests.TronAuditRegressionTests/aNodeWithAnotherBlockAtTheSameHeightIsADisagreement; QyvoraTronTests.TronAuditRegressionTests/whetherAChainAcceptsAReference</td></tr></table>232<p>Root cause: `Transaction.raw` carries no chain identifier. The only thing that ties a TRON transaction to a network is its reference block (TaPoS: `ref_block_bytes` = the two low-order bytes of a block number, `ref_block_hash` = bytes 8 to 15 of that block&#x27;s id), and the wallet took it from `latestSolidBlock()`, that is from the first node that answered. The wallet account is the same secp256k1 key and the same address on mainnet, Nile and Shasta (m/44&#x27;/195&#x27;/0&#x27;/0/0). A Nile or Shasta node — one is enough; Shasta has a single default endpoint — that answers the genesis check correctly (the genesis id is a public constant, `verifyChain` cannot tell a liar from an honest node) and then hands out a recent MAIN-NETWORK block as its &#x27;latest irreversible block&#x27; obtains, when the user sends test TRX or a test token, a signed transaction that the main network accepts for as long as it is not expired: the wallet broadcasts it to that very node. Impact: real TRX (or a real TRC-20 with the same contract address) leaves the account on mainnet for the recipient and amount of the &#x27;test&#x27; payment, although the mainnet switch may be off and although the per-transaction limits of an unaudited build (150 USD of TRX, known tokens only) were never applied: both only look at the network the wallet believes it is on. Precondition: a lying or compromised test-network endpoint (default or user-configured), funds on the same address on mainnet, and a test payment by the user. The reverse direction (a mainnet transaction replayed on a test network) moves nothing of value.</p>233<p>Recommendation / fix: Fixed in three layers. (1) `TronClient.referenceBlock()`: the reference is the oldest of the latest irreversible blocks of every configured node that answers, and each other node must give the same block id for that number (`/walletsolidity/getblockbynum`); a different id is `NetworkError.disagreement` → `WalletError.wrongChain`, nothing is built. The review says how many nodes vouched for the block. (2) `requireNotValidOnTronMainnet`: for a test network, before the review is returned and again before signing, the wallet asks the main-network nodes (genesis-verified) whether they would accept the reference (`TronClient.acceptsReference`: the latest block at or under the head whose number ends with `ref_block_bytes` must not have `ref_block_hash`); accepted → `wrongChain`; no answer → `network`, nothing is signed. Only a block number goes out. (3) The cold review of a test-network transaction carries the warning `tron.network-not-bound`. Residual: an offline cold device cannot make check (2) — recorded as QYV-APP-040; with a single reachable node there is nothing to cross-check in (1), which the review states; a main-network endpoint that lies in concert with the test endpoint defeats (2).</p>234<h4>QYV-SVC-082 — A price close to zero from the price source lifted every dollar ceiling of the native coins (POL, BNB, AVAX, SOL, TRX, LTC, DOGE, BCH)</h4>235<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraCore/Networks.swift:902</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>10c39f8</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aPriceCloseToZeroDoesNotLiftTheDollarCeilings, everyDollarCeilingHasAPriceFloor; QyvoraCoreTests.EVMChainsAuditRegressionTests (priceFloorsBoundTheDollarCeilings, ceilingsNeverAllowWhatCannotBeValued)</td></tr><tr><td>Note</td><td>Fixed with price floors: `MainnetPolicy.minimumPlausibleUSDPrice` (POL 0.01, BNB 30, AVAX 1, SOL 5, TRX 0.01, LTC 5, DOGE 0.005, BCH 20 USD) and `isPlausibleUSDPrice`; `freshUSDPrice`, the one function every family converts with, refuses a cached or fetched price under the floor (`unauditedLimitUnverifiable`). One transaction of an unaudited build can therefore move at most 150 USD / floor coins (`absoluteNativeCeiling`: 15 000 POL, 5 BNB, 150 AVAX, 30 SOL, 15 000 TRX, 30 LTC, 30 000 DOGE, 7.5 BCH) whatever the source answers, instead of any amount. No existing ceiling was raised. The regression test fails on the code before the fix (24 issues), checked on M5M36. Severity: CVSS 5.3; rated high by the wallet-impact class &quot;fee or amount limits bypassed&quot; (malicious endpoint).</td></tr></table>236<p>Root cause: the ceilings of the chains added by the multi-chain upgrade are dollar figures (150 USD per transaction, 5 USD of fee on the EVM networks whose coin is not ether) converted with `freshUSDPrice`, which accepted any finite price above zero from the single price source (`PriceClient`, first and only endpoint, no cross-check). Impact: a price source that answers, for example, 0.00000001 USD for BNB makes &quot;150 USD of BNB&quot; 15 billion BNB: the per-transaction ceilings of an unaudited mainnet build no longer bound anything for eight coins, at prepare and at sign. One lying endpoint (or an on-path party able to alter the price answer, or a faulty answer) is enough; the amount and the recipient are still chosen and reviewed by the user, so the ceiling that is lost is the one that bounds a mistake or a defect of the unaudited engine. Bitcoin and ether are not affected (ceilings in their own unit).</p>237<p>Recommendation / fix: Bound the conversion on the price side: a floor per native coin under which a price is treated as no price (the transaction is refused as unverifiable), so that one transaction never moves more than ceiling / floor coins whatever the source says; or require two independent price sources to agree.</p>238<h4>QYV-SVC-087 — The 150 USD ceiling of a token transfer (ERC-20, SPL, TRC-20) is converted with the price of one source, without floor or cross-check</h4>239<table class="kv"><tr><td>Severity / status</td><td>high / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Market.swift:152</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>4f469e9</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests (PriceCeilingAuditRegressionTests.swift): PriceCeilingPolicyTests (3 tests) and MainnetPolicyTests.aLyingPriceDoesNotLiftTheCeilingOfADollarPeggedToken, aTokenThatIsNotPeggedNeedsTwoAgreeingSources, aTokenWithoutSecondSourceOrFromTheProfileIsRefused, nativeCoinCeilingsNeedTwoAgreeingSources, solanaAndTronCeilingsFollowTheSameRules; QyvoraNetworkingTests.PriceCheckParsingTests (3 tests) and the opt-in PriceCheckLiveTests; fuzz target json-indexer (selector 5); static check QYV-STA-025.</td></tr><tr><td>Note</td><td>Fixed with the conservative combination, which only tightens what an unaudited build sends on mainnet. A dollar ceiling is `units × price ≤ dollars`, so a price that is too LOW allows MORE units: every rule errs towards the higher price or refuses. (a) Built-in dollar-pegged tokens — an explicit `pegUSD` flag on the built-in tables of the seven EVM networks (30 rows: USDC, USDT, DAI, PYUSD, USDS and the bridged USDC.e, USDT0, Binance-Peg and Standard-Bridge forms), of Solana (USDC, USDT) and of TRON (USDT, USDC) — are valued at max(quote, 0.90) with one fresh quote, and refused when the quote is outside 0.50…2.00 USD (`MainnetPolicy.stablecoinCeilingPrice`): one transfer never exceeds 150 / 0.90 = 166.66 units whatever the source says. EURC is pegged to the euro: its flag is false and it follows rule (b). (b) Every other token needs a fresh price from two independent sources that differ by at most 5 % of the higher; the HIGHER of the two is used (`MainnetPolicy.agreedCeilingPrice`), because the lower one would let the source that errs low decide. The second source is Kraken&#x27;s public ticker (keyless, configurable: `EndpointConfiguration.priceCheckAPI`, entry &quot;Second price source&quot; of the endpoint editor; it must be another host than the price API); `PriceClient.checkPairs` maps 42 price identifiers to pairs that all answered on 2026-12-05; its answer is read with bounds (16 kB, one entry, decimal texts, bid ≤ ask, last trade within 10 % of the middle). A token the second source does not list (MKR, cbBTC, the wstETH representations, UNI on Base which has no identifier) is refused with `unauditedLimitUnverifiable`. (c) The native coins with a dollar ceiling (POL, BNB, AVAX, SOL, TRX, LTC, DOGE, BCH) follow the same two-source rule in addition to their floors, which were revised upwards from Kraken weekly candles read on 2026-12-05 (table and provenance in the comment of `MainnetPolicy.minimumPlausibleUSDPrice`). (d) `limitUSDPrice` is the one converter, called when a payment is prepared and again before it is signed (hot, cold, broadcast of a cold-signed transaction); a stale quote is never used; when the two quotes disagree they are read again once before the refusal. Also closed here: the price identifier used for a ceiling now comes from the built-in tables only — a token entry of a modified profile file that names the identifier of USDC or LINK for another contract has no price. The tests could not be run against the code before the fix (they use the new interface); the behaviours they pin did not exist there (one source, no floor for tokens).</td></tr></table>240<p>Root cause: the same as QYV-SVC-082, for tokens. `tokenUSDPerTransaction` (150 USD) is checked as `units × price ≤ 150` with `freshUSDPrice(token.priceID)`: one price source, no second source, and — unlike the native coins since QYV-SVC-082 — no plausibility floor (`MainnetPolicy.minimumPlausibleUSDPrice` has no entry for token identifiers). The rule exists since QYVORA 1.0 for ERC-20 on Ethereum and now also bounds the built-in tokens of six more EVM networks, SPL tokens and TRC-20 tokens. Impact: a price source answering a price close to zero for a listed token (for example 0.000001 USD for USDC) removes the ceiling of that token on an unaudited mainnet build, at prepare and at sign. The user still chooses and reviews amount and recipient; what is lost is the bound on a mistake or on a defect of the unaudited engine. Tokens without a price identifier are refused, which is unchanged.</p>241<p>Recommendation / fix: Either (a) a floor per price identifier of the built-in lists (stablecoins at 0.5 USD, wrapped bitcoin and ether at a fraction of the coin&#x27;s floor, the others individually), refusing any token whose identifier has no floor; or (b) a second independent price source that must agree within a tolerance; or (c) for the stablecoins, a ceiling in token units next to the dollar ceiling. The figures are the owner&#x27;s policy: the audit did not choose them.</p>242<h4>QYV-APP-001 — Vault and backup passwords are not held to a minimum strength</h4>243<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>6.7 — CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N</td></tr><tr><td>References</td><td>CWE-521 · MASVS-AUTH-2</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:88</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>04ebf03</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.CredentialPolicyTests (theFloorIsTenCharactersAndAFairEstimate, everyEntryPointOfTheServiceRefusesAWeakPassword); OnboardingTests.pinLockoutBiometricsAndAutoLock (weak new password refused)</td></tr><tr><td>Note</td><td>Fixed: `WalletService.passwordRejection` is the single rule, enforced by the service with the typed error `WalletError.weakPassword`: at least 10 characters and a `PasswordQuality` estimate of &#x27;fair&#x27; (45 bits) or more. It is applied by `createWallet`, `importWallet`, `changePassword`, `restoreBackup`, `completeTransferReception` (new vault password) and by `createBackup` and `createTransferPackage` (backup password), before anything is derived, opened or created. The forms show the same sentence. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Residual risk: The estimate is a heuristic (length x alphabet with penalties for common words, repetitions, sequences, keyboard walks and years): it refuses the passwords tried first, it does not measure real guessing entropy. `Vault.create` itself still accepts any non-empty password: the floor is a rule of the wallet service, which is the only caller in the application.</td></tr></table>244<p>Root cause: `WalletService.install` and `Vault.create` accept any non-empty password, `restore` any non-empty new password and `backupBytes` any non-empty backup password; `PasswordQuality.estimate` is computed only to be displayed. Impact: the password is the only secret between an attacker who obtains the vault file (device compromise, forensic extraction) or a backup file (stored wherever the user chose, possibly a cloud drive) and the recovery phrase. With a short password the Argon2id + PBKDF2 stretching (about a second per guess) does not prevent an offline search. Other locations: Sources/QyvoraVault/Vault.swift:231, Sources/QyvoraWallet/WalletService+Shield.swift:274, Sources/QyvoraWallet/WalletService+Shield.swift:327.</p>245<p>Recommendation / fix: Enforce a floor in the service, not only in the interface: refuse `createWallet`, `importWallet`, `changePassword`, `restoreBackup`, `createBackup` and `createTransferPackage` when `PasswordQuality.estimate(password).level` is below a documented level (and below a minimum length, e.g. 10 characters), with a typed `WalletError`. Add tests for the refusal on each entry point.</p>246<h4>QYV-APP-002 — Recovery-phrase reveal, private recovery sheet, backup export and signing need no fresh authentication</h4>247<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>6.1 — CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N</td></tr><tr><td>References</td><td>CWE-306 · MASVS-AUTH-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:257</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>28567b0</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.FreshAuthenticationTests (theWindowsAreTheDocumentedOnes, everySensitiveCallNeedsAFreshAuthentication, lockingAndClockTricksEndTheAuthentication, aWalletWithoutVaultIsNotAskedForACredential); AutoLockTests.neverAndLongDelaysAreRefusedAndOldProfilesAreBounded (lengthening the delay)</td></tr><tr><td>Note</td><td>Fixed: Step-up authentication is a property of the service: every successful `unlock` (password, PIN, biometrics), wallet creation, import, restore, password change and key rotation records the time on the monotonic clock, and the sensitive calls throw `WalletError.authenticationRequired` unless a credential was verified within `WalletService.authenticationWindow` (120 s) in the same boot session. Gated: `revealRecoveryPhrase`, `recoverySheet(includePrivateMaterial: true)`, `createBackup`, `createTransferPackage`, every signature (`withMasterKey`: `signAndBroadcastBitcoin`, `signPSBT`, `signAndBroadcastEthereum`, `signColdEthereumPayload`), `signMessage`, `rotateIdentity`, `disablePIN`, `disableBiometrics`, `setMainnetOptIn(true)`, `setEndpoints` / `resetEndpoints`, and a longer auto-lock delay; `enablePIN` and `enableBiometrics` within `setupAuthenticationWindow` (900 s). A lock, an auto-lock or the deletion of the wallet ends the authentication. Screens: the existing re-authentication sheet (a real unlock call) now also precedes switching mainnet on and saving endpoints, and the onboarding protection step asks again when the service says so. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Residual risk: `deleteWallet` is not gated by the service (the lock screen offers it to a user who lost every credential; the screen in the vault settings asks for re-authentication). `changePassword` and `rotateMasterKey` verify the password themselves. Within the two-minute window a second sensitive call needs no new credential at the service level; the screens ask each time. The per-signature Face ID check is the re-authentication sheet, not a Secure Enclave key bound to each signature.</td></tr></table>248<p>Root cause: the service gates `revealRecoveryPhrase`, `recoverySheet(includePrivateMaterial: true)`, `createBackup`, `createTransferPackage`, `signAndBroadcast…`, `signPSBT` and `signColdEthereumPayload` on `vault.isUnlocked` only; the comment on `revealRecoveryPhrase` delegates re-authentication to the caller and no screen implements it at the audited commit. Impact: anyone holding the unlocked device inside the auto-lock window (5 minutes by default) can read the recovery phrase or sign a transaction without knowing the password, the PIN or passing Face ID. Only `changePassword` and `rotateMasterKey` verify the password again.</p>249<p>Recommendation / fix: Make step-up authentication a property of the service: the sensitive calls take a credential (password, PIN, or a biometric unlock performed inside the call through the device slot) and verify it against the vault slot before releasing the secret or signing. At minimum for the phrase reveal and the private recovery sheet; for signatures, a per-signature Face ID check as the usage description of the application already announces. Add tests that the calls fail without the credential.</p>250<h4>QYV-APP-003 — Auto-lock is not wired in the application</h4>251<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>6.1 — CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N</td></tr><tr><td>References</td><td>CWE-613 · MASVS-AUTH-2</td></tr><tr><td>Location</td><td>App/Sources/WalletStore.swift:120</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>371006e</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.AutoLockTests (theRuleNeverTouchesALockedVaultAndNeverLocksOnInactivity, everyOtherEventLocksOrAppliesThePolicy, theLifeCycleLocksTheVaultImmediatelyAfterTheDelayAndInTheBackground); wallet-audit check `auto-lock-wired`</td></tr><tr><td>Note</td><td>Fixed: Re-assessed on the current application: `RootView` already applied the policy on a 15 s timer and at the scene-phase changes (the audit read an older commit). The decisions were moved from the view to `AutoLockRule` (Sources/QyvoraWallet/AutoLockRule.swift) so that they are tested with the package: leaving for the background locks at once under &#x27;immediately&#x27; and applies the policy otherwise; coming back applies the policy (the time spent away counts) and the privacy cover now stays on until that check has finished; the timer runs while the vault is unlocked and the scene active; becoming merely inactive does nothing (the Face ID sheet). The life cycle is played against the real service in the tests. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Not exercised on a device or in the simulator by interaction. Residual risk: iOS suspends the application in the background: under a delay the vault is locked when the application comes back, not at the moment the delay expires, and the master key stays in the memory of the suspended process until then. &#x27;Activity&#x27; is a call to the wallet service (every action of the user that reads or changes the wallet), not a touch: reading one screen for longer than the delay locks.</td></tr></table>252<p>Root cause: `WalletStore.autoLockIfNeeded()` and `WalletService.autoLockIfNeeded()` exist, but nothing calls them: no timer, and `RootView` reacts to the scene phase only to show the privacy cover. Impact: once unlocked, the vault stays unlocked until the process ends, whatever the policy says; the master key remains in memory while the application is in the background. (The application is still being built at the audited commit; this finding is the reminder for the final run and is covered by an automated check.)</p>253<p>Recommendation / fix: Call `wallet.autoLockIfNeeded()` when the scene leaves `.active` and when it returns, and on a repeating timer while active; route to the lock screen when it returns true. Verified automatically by the check `auto-lock-wired` (coinspect-wsf / wallet-audit).</p>254<h4>QYV-APP-004 — The auto-lock policy can be set to never</h4>255<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.0 — CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-613 · MASVS-AUTH-2</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService.swift:416</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>3f71ca9</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.AutoLockTests.neverAndLongDelaysAreRefusedAndOldProfilesAreBounded</td></tr><tr><td>Note</td><td>Fixed: `setAutoLockPolicy` refuses `.never` and any delay above `WalletService.maximumAutoLockDelay` (900 s, the Coinspect reference) with `invalidInput`; a profile written by an earlier build with &#x27;never&#x27; or a longer delay is bounded when it is loaded and applied (never becomes 5 minutes, a longer delay 15 minutes); a longer delay than the current one needs a fresh authentication. The settings no longer offer &#x27;After 1 hour&#x27; and &#x27;Never&#x27;. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Residual risk: A watch-only wallet has no vault and no auto-lock. `AutoLockPolicy.never` still exists in QyvoraVault (stored format, Quantum Shield input); the wallet service never applies it.</td></tr></table>256<p>Root cause: `setAutoLockPolicy` only checks that a delay is at least five seconds; `.never` and arbitrarily long delays are accepted. Impact: a user can disable the only time-based protection of an unlocked vault.</p>257<p>Recommendation / fix: Remove `.never` for a full wallet (keep it for watch-only), cap the delay (15 minutes is the Coinspect reference), and always lock when the application has been in the background beyond the delay.</p>258<h4>QYV-APP-005 — Third-party keyboards are not excluded while the recovery phrase is typed</h4>259<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.7 — CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-200 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraUI/SeedPhrase.swift:239</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>a7d6560</td></tr><tr><td>Regression test</td><td>No unit test can reach the application delegate from the package: the regression checks are static-checks &#x27;keyboards: third-party keyboard extensions refused&#x27; (finding QYV-STA-016 when absent), mobsfscan rule ios_custom_keyboard_disabled and MASTG-TEST-0389, run at every audit.</td></tr><tr><td>Note</td><td>Fixed: `QyvoraAppDelegate` (App/Sources/AppDelegate.swift, installed with `@UIApplicationDelegateAdaptor`) returns false for the keyboard extension point in `application(_:shouldAllowExtensionPointIdentifier:)`: iOS presents the system keyboard in every field of the application, whatever keyboard the user installed. Verification: Application target compiled for iphoneos on M3U96a; static-checks and mobsfscan re-run by the quick audit. Not verified on a device with a third-party keyboard installed. Residual risk: The system keyboard itself (its learning is switched off on the phrase fields by `autocorrectionDisabled`) and hardware keyboards are outside the control of the application.</td></tr></table>260<p>Root cause: the recovery-phrase entry uses plain `TextField`s (auto-correction off, ASCII keyboard) and the application does not refuse keyboard extensions. Secure text fields force the system keyboard; plain fields do not. Impact: a custom keyboard installed by the user, with full access granted, receives every word of the phrase and can transmit it.</p>261<p>Recommendation / fix: Refuse keyboard extensions for the whole application: implement `application(_:shouldAllowExtensionPointIdentifier:)` in an application delegate and return false for `.keyboard` (MASTG-TEST-0389).</p>262<h4>QYV-APP-006 — The recovery phrase can be captured by screenshot or screen recording, and is not masked by default</h4>263<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.7 — CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-200 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraUI/SeedPhrase.swift:54</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>34332de</td></tr><tr><td>Regression test</td><td>QyvoraUITests.CaptureProtectionTests (theRecoveryWordsAreHiddenWheneverTheSceneIsCaptured, aRevealedPasswordGoesBackToDotsWhileCaptured, theScreenshotWarningSaysWhatToDo); static-checks &#x27;screen capture: recording / screenshot awareness present&#x27; (QYV-STA-009 when absent)</td></tr><tr><td>Note</td><td>Fixed: `SeedPhraseGrid` (every screen that shows the words: creation, reveal, private recovery sheet) replaces the words by dots while the scene is captured (`isSceneCaptured`: screen recording, AirPlay or cable mirroring) and says why; a password shown in clear by its eye button goes back to dots while captured; the three screens that show the phrase display a critical banner after `userDidTakeScreenshotNotification`. The phrase is shown only after an explicit action and a re-authentication, is hidden again when the screen or the application is left, and cannot be selected or copied. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Capture and screenshot behaviour not exercised on a device. Residual risk: iOS gives an application no way to prevent a screenshot: the warning comes after the image was saved. The words are not masked by default once revealed (press-and-hold masking exists in the component and is not used: 24 words must be copied by hand). The share sheet of the private recovery sheet produces a document with the phrase by design, behind a re-authentication and an acknowledgement.</td></tr></table>264<p>Root cause: `SeedPhraseGrid` relies on `.privacySensitive` and on the privacy cover, which act in the app switcher and in redacted contexts only; `masked` (press and hold to reveal) is off by default; nothing observes `UIScreen.isCaptured` or the screenshot notification. Impact: a screenshot of the phrase lands in the photo library (and its cloud synchronisation); a screen recording or mirroring session captures it.</p>265<p>Recommendation / fix: Show the phrase masked by default; hide it while `UIScreen.main.isCaptured` (or the scene&#x27;s capture state) is true; warn after `UIApplication.userDidTakeScreenshotNotification`; consider rendering the words inside a secure-entry container so that screenshots show a blank area.</p>266<h4>QYV-APP-011 — Trivial PINs are accepted</h4>267<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.7 — CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N</td></tr><tr><td>References</td><td>CWE-521 · MASVS-AUTH-2</td></tr><tr><td>Location</td><td>Sources/QyvoraVault/Vault.swift:455</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>14514f6</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.CredentialPolicyTests (trivialPINsAreNamedByTheRuleThatCatchesThem, theServiceRefusesToEnableATrivialPIN)</td></tr><tr><td>Note</td><td>Fixed: `WalletService.pinRejection` (the rule of `enablePIN`, also used by the two PIN set-up screens) refuses: one digit repeated, a constant step between digits wrapping at ten (123456, 987654, 246802, 890123), a repeated group of one to three digits, three pairs, a palindrome, only two different digits, a year from 1900 to 2099 at the start or at the end (birth years and dates), and a list of 52 PINs that head the published frequency lists (keypad lines and diagonals, 135790, 314159...). Between 4 % and 10 % of the 1 000 000 PINs are refused (counted by the test). Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release). Residual risk: A PIN is still six digits: 10^6 values less the refused ones, behind the escalating delays (QYV-SVC-010). `Vault.enablePIN` itself checks the length only; the rule is in the wallet service, its only caller in the application.</td></tr></table>268<p>Root cause: `enablePIN` checks the length only (six characters or more); `000000` or `123456` are accepted. Impact: the three free attempts before the first delay are enough to try the most common PINs for someone holding the unlocked-by-passcode device. The PIN is bound to a device secret and the counter lives in the Keychain, which limits the attack to the device itself.</p>269<p>Recommendation / fix: Refuse repeated and sequential PINs and the most common ones in `enablePIN` (the `PasswordQuality` detectors already exist), with a typed error.</p>270<h4>QYV-APP-020 — Solana recipients have no checksum: the review screen must make the user compare the address and must block on critical warnings</h4>271<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>References</td><td>CWE-356 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Solana.swift:447</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>7b1e37e</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification).</td></tr><tr><td>Note</td><td>The acknowledgement is now a rule of the service, not only of the screen: `signAndBroadcast(_:acknowledged:)` and `signColdTransaction(…acknowledged:)` refuse unless every critical warning of the review is named in the set the screen collected, and the forms without that set are no longer public (static check QYV-STA-021). The send review and the cold review show every warning with the service&#x27;s sentence and one control per critical warning, off until the user turns it on (static check QYV-STA-022). The five points: (1) the notes of `AddressCheck` are shown under the recipient field as soon as the address validates (SendFormView.recipientNotes); (2) the review prints the recipient in full, in groups of four, and the first payment to a Solana address is now a CRITICAL warning of the service (a Solana address has no checksum), so it needs its own acknowledgement; (3) each critical warning (`solana.off-curve`, `first-payment`, `unaudited-mainnet`) is acknowledged individually and the service refuses otherwise; (4) addresses on the review use `ReviewRow(.address)`, never a middle truncation; (5) a typed, pasted or scanned recipient goes through `checkAddress`, whose refusal names another family as such. (Commits 0fe8b74 and 7b1e37e.)</td></tr></table>272<p>Root cause: a Solana address is 32 bytes in base58 without any checksum; a mistyped or substituted character gives, almost always, another valid address, and an address that is not a curve point (a program-derived address: a token account, program state) is syntactically valid too. The engine does what it can without the network and with it: `checkAddress` refuses programs, sysvars and the wrapped-SOL mint and returns the notes &quot;no checksum&quot; and &quot;not a wallet key&quot;; the planner refuses a recipient that exists and is not owned by the System program (a token account or a mint pasted by mistake) and warns `recipientOffCurve` (critical), `recipientIsNew` and, for the first payment to an address from this device, `first-payment`. None of this protects the user unless the interface shows it and makes it count: a control enforced only by the interface, not yet verifiable because the screens are being rebuilt. Rated by the policy class &quot;a control enforced only by the interface&quot;; no CVSS vector.</p>273<p>Recommendation / fix: Proposed fix (application): on the Solana send screen (1) show `AddressCheck.notes` as soon as the address is entered; (2) on the review, print the full recipient in groups of four characters and require an explicit confirmation when `first-payment` is present (address-book entry or a &quot;compare with the source&quot; step); (3) refuse to enable the signature button while `SendReview.hasCriticalWarning` is true until each critical warning (`solana.off-curve`, `unaudited-mainnet`) has been acknowledged individually; (4) never shorten a Solana address in the middle on the review; (5) offer the paste of an address only through the validated path (`checkAddress`), so that a foreign-family address is named as such. Add a UI test for each.</p>274<h4>QYV-APP-040 — A cold device cannot tell which TRON network a transaction is for: a payload labelled as a test network can be valid on mainnet, past the gate and the limits</h4>275<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>References</td><td>CWE-294 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Cold.swift:176</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0fe8b74</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork (offline refusal on both chains, online signature after the main-network check, acknowledgement required), TronAuditRegressionTests.aColdDeviceDoesNotSignATransactionValidForMoreThanAnHour and theColdReviewOfATestNetworkTransactionSaysItIsNotBoundToItsNetwork.</td></tr><tr><td>Note</td><td>Fixed with the alternative of the recommendation that changes no format: while the build is unaudited, an OFFLINE device refuses to sign a TRON transaction labelled as a test network — and, for the same reason, a Solana one (the cold counterpart of QYV-SVC-022). Nothing in the bytes names the network, so such a label is the companion&#x27;s word; offline it cannot be checked, and a signature would be valid on the main network past the switch and the limits. `reviewColdTransaction` still decodes and shows the transaction, with the statement as a critical warning and `ColdTransactionReview.signingRefusal`; `signColdTransaction` refuses with the same sentence (`unauditedLimitUnverifiable`); the screen replaces the signature control by the refusal. A device that is online signs the same payload only after asking the main-network nodes (`requireNotValidOnMainnet`, `requireNotValidOnTronMainnet`) and after the warning was acknowledged. Behaviour change: with this build, Solana and TRON transactions can no longer be signed in cold mode at all (main networks were already refused for want of prices); the cold-mode screen says so. The other option of the recommendation — a separate key for the test networks (SLIP-44 coin type 1) — remains the way to give offline test-network signing back; it changes addresses, the recovery sheet and the watch-only package, and is the owner&#x27;s decision.</td></tr></table>276<p>Root cause: same as QYV-SVC-040 — nothing in the signed bytes names the network, and the account key is the same everywhere — but on a device that is offline by design. The cold envelope `qyvtx1|u|&lt;chain&gt;|&lt;raw_data hex&gt;` states the chain in its label only. A cold device reviews and signs a payload labelled `tron-nile` without any mainnet rule: the mainnet switch is not consulted (a test network is always allowed) and the limits of an unaudited build — under which main-network TRON payments cannot be cold-signed at all, for want of a fresh price — do not apply. If the payload&#x27;s reference block is a main-network block, the signature moves real funds. The cold device cannot look the block up. What stands in the way: the online companion makes the check when it prepares the payment (QYV-SVC-040), the cold review shows recipient and amount faithfully and now carries the notice `tron.network-not-bound`, and the validity is bounded to about an hour (QYV-SVC-041). What does not: a compromised companion — the very adversary cold mode exists for — builds the payload itself. Rated medium as the weakening of a protection (gate and limits) that leaves the user&#x27;s review of recipient and amount standing; if the owner&#x27;s threat model for cold mode treats &#x27;the user believes it is test money&#x27; as defeating that review, the impact class is high. This rating is for the owner to confirm.</p>277<p>Recommendation / fix: Proposed fix (engine and application, design decision): derive the test-network account from another path (SLIP-44 coin type 1, m/44&#x27;/1&#x27;/0&#x27;/0/0), so that no signature made for a test network can ever spend from the main-network address — the same change closes the Solana equivalent; it changes the test-network address, the profile, the recovery sheet and the watch-only package. Alternative without a format change: on a cold device, apply the main-network rules to every TRON payload whatever its label (in an unaudited build: refuse), i.e. give up cold signing of TRON on test networks. In both cases the interface must show `tron.network-not-bound` prominently until then.</p>278<h4>QYV-APP-061 — Balances, history and confirmations of the UTXO coins rest on one indexer, the one announcing the highest tip</h4>279<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.2 — CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:134</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>7b1e37e</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests.currentIndexersMustAgreeOnAConfirmedBlock and hostileTipHeightsNeitherTrapNorWinTheSurvey; QyvoraWalletTests.MainnetPolicyTests.aBitcoinCashPaymentOfOldCoinsTakesANewerCoinWithIt (the note of a single source reaches the snapshot).</td></tr><tr><td>Note</td><td>Points (a) and (b) of the recommendation are implemented in the service; the screens label what remains. (a) After the survey of the tips, the indexer sources of a coin that are current are asked for the hash of one block under the confirmation depth (`UTXOIndexers.corroborate`): sources that follow the same chain agree; a different hash refuses the synchronization (`untrustedResponse`, naming both). (b) A source that is alone — the only one configured, or the only one current because it announces a tip the others trail by more than the depth — no longer wins silently: the snapshot carries a note starting with `WalletService.singleIndexerNotePrefix`, which the chain screen shows as a warning banner (&quot;Read from one source&quot;) and the transaction detail as &quot;Reported by one source&quot;, with the advice not to hand over goods on it. When several agree, the note says how many and that they confirm the chain, not each payment.</td></tr></table>280<p>Design. For Litecoin, Dogecoin and Bitcoin Cash the wallet reads everything it displays from one indexer client: after the chain-identity check, `UTXOIndexers.survey` ranks the clients by tip height and the highest is used, the others being reported as stale when they trail by more than the confirmation depth. There is no cross-check of balances, coins or history between indexers. Consequences: (1) any one configured endpoint — not only the first — becomes the source by announcing a high tip (up to 99 999 999 passes the service&#x27;s bound); (2) it can then show an incoming payment that does not exist, hide one, or report false confirmations, for as long as it lies. A tip of 10^8 or more is left out of the survey since this audit (before, such an endpoint was chosen as the most advanced and then refused by the service, which made every synchronization of the network fail). It cannot obtain a signature, burn fees (amounts are authenticated: previous transactions on Dogecoin, signature commitment on Bitcoin Cash and Litecoin) or exceed the fee ceilings. Bitcoin Cash Testnet has a single default endpoint; Dogecoin has a single source of raw transactions (payments are refused without it). The Bitcoin path has the same single-source design. Impact: a user who relies on the display to release goods can be defrauded by a lying or compromised endpoint (integrity of what is presented).</p>281<p>Recommendation / fix: Proposed: (a) when two clients of a network answer, compare the hash of a recent block (tip minus the confirmation depth) and refuse to read from a client that disagrees with the majority or, with two, report the disagreement; (b) do not let a tip that is ahead of every other client by more than a few blocks win silently — require a second client within the confirmation depth, or mark the snapshot as unconfirmed by a second source; (c) for incoming payments above a threshold, cross-check the coin with a second protocol before showing it as confirmed. State the residual risk in the user documentation.</p>282<h4>QYV-APP-062 — Bitcoin Cash payments of coins that predate the splits of Bitcoin SV and eCash can be replayed on those chains</h4>283<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-294 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Send.swift:485</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0fe8b74</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aBitcoinCashPaymentOfOldCoinsTakesANewerCoinWithIt and bitcoinCashCoinsOlderThanAChainSplitRaiseACriticalWarning.</td></tr><tr><td>Note</td><td>The wallet now avoids building a replayable transaction when it can, and enforces the acknowledgement when it cannot. When the coins chosen for a Bitcoin Cash payment all predate the split from eCash, the service adds the smallest confirmed, unfrozen coin of the wallet created after the split (`replayProtectingCoin`): a transaction that spends a coin existing on Bitcoin Cash only is invalid on eCash and Bitcoin SV. The review says so (`bch.replay-protected`, information). When the wallet holds no such coin, or the user asked for exactly the selected coins (coin control), the critical warning `bch.replayable-on-forks` remains and the signature is refused by the service until it is acknowledged by its identifier (`signAndBroadcast(_:acknowledged:)`), which the review screen collects with one control per warning. Severity kept as rated; whether the policy example &quot;replay across chains&quot; applies (high) is still the owner&#x27;s reading — the fix does not depend on it.</td></tr></table>284<p>Bitcoin Cash&#x27;s replay protection (SIGHASH_FORKID, fork id 0) separates it from Bitcoin. Bitcoin SV (split at block 556767, 2018-11-15) and eCash / XEC (split at block 661648, 2020-11-15) kept the same flag, fork id and digest: a Bitcoin Cash transaction whose inputs all exist on the other chain — coins that predate the split and were never mixed with coins created after it — is a valid transaction there and can be broadcast by anyone. Who is exposed: a user who restores into QYVORA a recovery phrase holding Bitcoin Cash from before November 2020 (or 2018) and who still holds the corresponding coins on eCash or Bitcoin SV; paying with those coins on Bitcoin Cash lets anyone move the coins of the other chain to the same recipient key. The wallet&#x27;s own chain is protected; the exposure concerns assets of chains the wallet does not support, which is why the rating follows the CVSS band rather than the policy&#x27;s &quot;replay across chains&quot; example (the lead or the owner may rate it otherwise). No wallet can prevent the replay of a valid transaction; it can only avoid building one (by adding an input that exists on Bitcoin Cash only) or tell the user.</p>285<p>Recommendation / fix: Mitigated in the service: the review of a Bitcoin Cash main-network payment whose coins were all confirmed at or before block 661647 carries the critical warning `bch.replayable-on-forks` (naming Bitcoin SV too when all are at or before 556766). Not covered: coins confirmed after a split that descend only from replayed transactions (the ancestry is not examined), and heights reported by a lying indexer. Proposed for a complete answer: a &quot;split coins&quot; action that sends the old coins to a fresh address of the wallet together with a coin created after the split, and the acknowledgement of the warning in the interface (QYV-APP-060).</p>286<h4>QYV-APP-082 — Statements the multi-chain engine produces for the review screens must be shown: L1 data fee as a quote, address notes, critical warnings, network of a cold transaction</h4>287<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>References</td><td>CWE-451 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Send.swift:560</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0fe8b74</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification). Engine side as before: EVMNetworkWalletTests.opStackSendShowsAndReservesTheL1DataFee, MultiChainSendTests.coldSigningOfAnL2SaysWhatItCannotVerify.</td></tr><tr><td>Note</td><td>The acknowledgement is now a rule of the service, not only of the screen: `signAndBroadcast(_:acknowledged:)` and `signColdTransaction(…acknowledged:)` refuse unless every critical warning of the review is named in the set the screen collected, and the forms without that set are no longer public (static check QYV-STA-021). The send review and the cold review show every warning with the service&#x27;s sentence and one control per critical warning, off until the user turns it on (static check QYV-STA-022). The five statements: (1) every fee line and every note of the review is shown; the L1 data fee is labelled &quot;Quoted by the network, with a margin; included in the maximum fee&quot;; (2) the notes of `AddressCheck` are shown under the recipient; (3) critical warnings are acknowledged one by one, on the hot review and on the cold one; (4) the cold review prints every line of `ColdTransactionReview.summary` in full and marks the ones that state a limit of an offline device; (5) the network banner (`NetworkReviewBanner`, with the test tag) heads every review, the form and the receive screen carry the network badge.</td></tr></table>288<p>Design gap to verify in the application (App/Sources is being rebuilt and was not reviewed by this area). The engine returns, and does not itself display: (1) `SendReview.fee.lines` and `SendReview.notes` on Base and OP Mainnet — the L1 data fee is a quote of the network with a margin of one quarter, it is not a field of the signed transaction, and what the network finally charges can differ in both directions; (2) `AddressCheck.notes` — an EVM address without checksum, a Solana address that is not a wallet key (off curve), the legacy form of a Bitcoin Cash address that is also a Bitcoin address, the wallet&#x27;s own address; (3) `SendWarning.isCritical` warnings that must be acknowledged before `signAndBroadcast` (unaudited mainnet, blind signing, contract recipient, the Solana and TRON statements that a transaction names no network); (4) `ColdTransactionReview.summary`, decoded on the cold device from the bytes to be signed, including &quot;Not included: the L1 data fee&quot; on OP-Stack networks; (5) `ChainDescriptor.isTest`: on test networks an address of one test coin is also a valid address of another test coin (shared version bytes 0x6f and 0xc4, prefix tb1), so the network badge is the only thing that tells them apart. A screen that drops any of these makes the control one the interface silently removed.</p>289<p>Recommendation / fix: Integrator checklist for the send, receive and cold-signing screens: show every fee line and note of the review; label the L1 data fee as an estimate; show every address note under the recipient field; block the sign button until each critical warning is acknowledged; show the cold summary in full (no truncation without expansion); show the test-network badge next to every address and amount.</p>290<h4>QYV-APP-101 — A payment request scanned inside the send form filled in the address and the amount of another coin, network or asset; requests were parsed without bounds and partly</h4>291<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>3.1 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N</td></tr><tr><td>References</td><td>CWE-20 · MASVS-PLATFORM-1</td></tr><tr><td>Location</td><td>App/Sources/Wallet/SendFormView.swift:198</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>7685b32</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.PaymentRequestTests (4 tests: onlyWhatTheFormShowsIsTaken, aRequestTheWalletCannotHonourIsRefusedAsAWhole, aRequestIsOfferedOnlyOnTheNetworksOfItsScheme, otherTextsAreNamedForWhatTheyAre); static check QYV-STA-024.</td></tr><tr><td>Note</td><td>The parser moved to the engine (`WalletScanParser`, Sources/QyvoraWallet/PaymentRequests.swift) with tests: 2 048 characters, 130 for an address, 120 visible characters for a note, 16 parameters; a `req-` parameter, a parameter given twice, an unreadable amount, a chain identifier that is not a number, a function call other than `transfer` and a note with invisible characters refuse the whole request with a sentence; only recipient, amount, token and note are taken. The form&#x27;s scanner checks `Payment.matches` against its network and the token against its asset, and fills nothing in otherwise. A scanned request still only fills the visible form: nothing is prepared or signed without the Review button, the acknowledgements and the authentication.</td></tr></table>292<p>Root cause: a payment request (`bitcoin:`, `ethereum:`, `solana:`…) is attacker-controlled input — a QR code someone else printed. Two paths read it. The Scan action of the dashboard bound the request to the family of its scheme. The scanner INSIDE the send form did not: it took the address and the decimal amount of any request and let the address validation decide. Where address forms are shared the validation passes: a `bitcoin:` request scanned in a Bitcoin Cash form with a legacy address (valid on both), any test coin scanned in another test coin&#x27;s form (shared version bytes), an `ethereum:…@137` request scanned in an Ethereum form, or a token request scanned while the coin was selected. The form then showed the address of the request and its amount in the units of another asset (&quot;1&quot; bitcoin became 1 BCH; an amount of USDC became an amount of ETH). The parser also read requests of any length, silently dropped what it did not understand (an unknown `req-` parameter that BIP-21 says invalidates the request, an unreadable amount, a chain identifier that was not a number) and returned a contract call other than a transfer as plain text. Impact: the user still sees the network of the form, the address and the amount, on the form and on the review, and signs after an authentication; what is lost is the binding between the request and the network and asset it was written for. Rated by the CVSS band (3.1) and, higher, by the policy class &quot;weakening of a protection that leaves another barrier standing&quot;: medium.</p>293<p>Recommendation / fix: Parse in one bounded place; refuse a request the wallet cannot honour entirely; take a request only on the network and asset it names.</p>294<h4>QYV-APP-102 — On the cold device the critical warnings of a transaction were displayed but not acknowledged, and nothing in the service required an acknowledgement</h4>295<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>References</td><td>CWE-356 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>App/Sources/Security/SecColdSignView.swift:200</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0fe8b74</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork (a critical warning that is not acknowledged refuses the cold signature); MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; static checks QYV-STA-021 and QYV-STA-022.</td></tr><tr><td>Note</td><td>`signColdTransaction(…acknowledged:)` and `signAndBroadcast(_:acknowledged:)` refuse (`invalidInput`) unless every critical warning is named; the forms without the set are internal. The cold review shows each warning with its control (WarningAcknowledgementList) and announces at the top how many must be acknowledged; the consent to blind signing keeps its own section. The minimal reviews of the sweep and revocation sheets (used only when no review screen is installed) go through the same door with an empty set.</td></tr></table>296<p>Root cause: the review of the watch-only companion shows the critical warnings without controls, on the ground that the device that signs acknowledges them. On the cold device the signature control depended only on the blind-signing consent and on the unverified-amounts consent: `unaudited-mainnet`, `tron.unlimited-approval`, `tron.non-owner-permission`, `tron.value-attached`, `solana.not-a-payment` and the EVM critical warnings were banners above a slider that was already enabled. In the cold flow no device asked for an acknowledgement at all. The service enforced none either (`signColdTransaction`, `signAndBroadcast` took the review as it was): the control existed only where a screen happened to implement it. Found by the review of App/Sources; no CVSS vector (a control enforced only by the interface, and missing on one path): medium by the policy class.</p>297<p>Recommendation / fix: Make the acknowledgement a parameter the service checks, and give every critical warning its control on the device that signs.</p>298<h4>QYV-CRY-002 — Secret temporaries left in released memory by the engine (hash states, HMAC and RFC 6979 intermediates, seed copies)</h4>299<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.1 — CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-226 · MASVS-STORAGE-2</td></tr><tr><td>Location</td><td>Sources/QyvoraKeccak/Keccak.swift:241</td></tr><tr><td>Found by</td><td>manual-review (rule secret-not-erased)</td></tr><tr><td>Fix commit</td><td>58a0ddd, c481d53</td></tr><tr><td>Regression test</td><td>Tests/QyvoraKeccakTests/SP800185Tests.swift: squeezeAndWipeErasesTheState; Tests/QyvoraSymmetricTests/SHA2BasicTests.swift: pendingBufferIsErased; Tests/QyvoraSecp256k1Tests/Secp256k1Tests.swift: rfc6979AfterHardening</td></tr></table>300<p>Root cause: the project rule &#x27;wipe temporary secrets with SecureMemory.zero&#x27; was applied to named buffers but not to (a) the Keccak sponge of the one-shot SHA-3/SHAKE functions - the state after squeezing can be run backwards through the permutation to the last absorbed block, which is the ML-KEM seed d, the ML-DSA seed xi, z or m; (b) the SHA-256/512 padding tail and pending buffer, which hold the end of the message (key bytes inside HMAC and RFC 6979), and whose growth by reallocation left partial copies; (c) the HMAC inner key block and inner digest; (d) every intermediate K and V of the RFC 6979 generator and the two HMAC messages that contain the secp256k1 private key, freed by plain reassignment; (e) the concatenations d || k and m || H(ek) of ML-KEM and xi || k || l of ML-DSA; (f) the stack block, message schedule and Keccak state of the SLH-DSA PRF on SK.seed; (g) Argon2 and BLAKE2b scratch erased by a plain loop that the optimiser may remove. Impact: an attacker able to read the memory of the process after an operation (memory-disclosure bug, crash dump, forensic image of an unlocked device) could recover long-term keys. No such read primitive is known in the application.</p>301<p>Recommendation / fix: Done for the items above. What the language does not allow to erase is tracked as QYV-CRY-003. The erasures themselves cannot be observed from outside for released buffers: the regression tests check the mechanism where the state is reachable (sponge state, hash buffer) and the unchanged outputs elsewhere (RFC 6979 vectors, ACVP suites of ML-KEM, ML-DSA, SLH-DSA, SHA-2, SHA-3, engine self-test).</p>302<h4>QYV-CRY-005 — SHA-256 / SHA-512 kept the digest in their chaining state after finalize: the expanded Ed25519 key, the signing nonce and derived child keys outlived their erasure</h4>303<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.1 — CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-226 · MASVS-STORAGE-2</td></tr><tr><td>Location</td><td>Sources/QyvoraSymmetric/SHA2.swift:220</td></tr><tr><td>Found by</td><td>manual-review (rule secret-not-erased)</td></tr><tr><td>Fix commit</td><td>f8b62b9</td></tr><tr><td>Regression test</td><td>Tests/QyvoraSymmetricTests/SHA2BasicTests.swift: chainingStateIsErasedAfterFinalize</td></tr></table>304<p>Root cause: `SHA256.finalize` and `SHA512.finalize` erased the pending buffer and the padded tail (QYV-CRY-002) but left the eight words of the chaining state `h`, which after the last compression ARE the digest. The previous review recorded this as a low residual risk for HMAC keys (review register memory-hygiene-crypto.json, &#x27;Chaining state h ... after finalize&#x27;). The Ed25519 module added by the multi-chain upgrade makes the digest itself the secret: SHA-512(seed) is the expanded private key (clamped scalar and nonce prefix), SHA-512(prefix ‖ message) is the signing nonce r (r together with the published signature gives the secret scalar), and the HMAC-SHA512 output of SLIP-0010 is the child private key and chain code. `Ed25519.expand`, `Ed25519.sign` and `SLIP10.Node.deriveHardened` erase their copies of these values with SecureMemory.zero, but the identical 64 bytes stayed in the released storage of the hash instance (an array of eight UInt64). Impact: an attacker able to read the memory of the process after a Solana signature or a derivation (memory-disclosure bug, crash dump, forensic image of an unlocked device) could recover the Solana signing key; the same held for the BIP-32 child keys of the other families (HMAC-SHA512 outer state). No such read primitive is known in the application. Severity by the policy: same class and vector as QYV-CRY-002 (4.1, medium).</p>305<p>Recommendation / fix: Fixed: both `finalize` functions erase `h` with SecureMemory.zero after the digest is serialised (an instance is not reusable after `finalize`; copies made before it, as PBKDF2 and HMAC do, are unaffected). What Swift does not allow to erase (struct temporaries on the stack such as the scalar limbs `Sc` and the points of the table lookup, copies made by the runtime) stays tracked as QYV-CRY-003.</p>306<h4>QYV-FUZ-080 — Explorer links of UTXO networks were built from any alphanumeric text, without an explorer on Dogecoin Testnet and with the wrong path on Dogecoin</h4>307<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>References</td><td>CWE-20 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/Chains.swift:215</td></tr><tr><td>Found by</td><td>qyfuzz (rule network-table:an explorer link points at)</td></tr><tr><td>Fix commit</td><td>19b2fc5</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MultichainExplorerLinkRegressionTests.utxoExplorerLinksNeedAnExplorerAndAnAddressOfTheNetwork; security/tests FuzzReplayTests (crash reproducer replay)</td></tr><tr><td>Note</td><td>Fixed as recommended. `qyfuzz repro network-table &lt;reproducer&gt;` answers ok after the fix; the target then ran 125 s × 4 workers without a crash (figures in the report of the area).</td></tr></table>308<p>Root cause: `ChainDescriptor.explorerAddressURL` accepted, for a UTXO network, any text of 14 to 90 alphanumeric characters and prefixed it with the explorer base of the network; `explorerTransactionURL` used &quot;&lt;base&gt;/tx/&quot; for every network. `BitcoinNetwork.explorerBaseURL` is nil for Dogecoin Testnet (read as an empty text), and the Dogecoin explorer names its transaction page &quot;/transaction/&quot;. Impact: (1) on Dogecoin Testnet the function returned URLs without scheme or host (&quot;/address/…&quot;, &quot;/tx/…&quot;), which an interface cannot open; (2) the transaction hash of another family, or any word, was linked as an &quot;address&quot; of a Bitcoin, Litecoin or Bitcoin Cash explorer, against the documented contract (&quot;nil when the text is not an address of this chain&#x27;s family&quot;); (3) Dogecoin transaction links pointed at a page that does not exist. No key, fund or signature is involved; the links are opened by the user. Rated medium by the rule &quot;a crash found by fuzzing is at least medium&quot; (the harness invariant stopped the worker); the impact alone would be low.</p>309<p>Recommendation / fix: Build the links from the network&#x27;s own description: `BitcoinNetwork.explorerTransactionURL(txid:)`, and for an address require an explorer and a text that parses as an address of that network.</p>310<h4>QYV-SVC-001 — A hostile Ethereum indexer answer crashes the application (unchecked Double to UInt64 / UInt64 to Int conversions)</h4>311<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.9 — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H</td></tr><tr><td>References</td><td>CWE-248 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/Indexers.swift:92</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>3ff9505</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.ResponseValidationTests/indexerNumberNeverTraps, hostileIndexerAnswersAreParsedWithoutTrap; QyvoraWalletTests.AuditRegressionTests/hostileIndexerNumbersDoNotCrashTheSynchronization</td></tr></table>312<p>Root cause: `EthereumIndexer.number` converted a JSON number with `UInt64(n)` after checking only `n &gt;= 0`, and `tokenTransfers` converted the result with `Int.init`. Swift traps on a Double at or above 2^64 and on a UInt64 above Int.max. Impact: a Blockscout-compatible indexer (default public endpoint, user-configured endpoint, or anyone able to alter its answer) returning `&quot;block_number&quot;: 1e300` or `&quot;decimals&quot;: &quot;18446744073709551615&quot;` terminated the process on every Ethereum synchronization: a remote, repeatable denial of service of the wallet. No key material is exposed. Verified: with the fix reverted on the build node the regression test exits with SIGTRAP.</p>313<p>Recommendation / fix: Fixed: the conversion is range-checked (`n &lt; 2^64`) and the decimals use `Int(exactly:)`; out-of-range values are read as unknown. Keep every conversion of server-supplied numbers behind a checked helper (`exactly:` initialisers).</p>314<h4>QYV-SVC-002 — Esplora address statistics with extreme counters crash the application (Int overflow)</h4>315<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.9 — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H</td></tr><tr><td>References</td><td>CWE-190 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/Esplora.swift:95</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>3ff9505</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.ResponseValidationTests/addressStatisticsWithExtremeCountersDoNotOverflow</td></tr></table>316<p>Root cause: `EsploraAddressStats.isUsed` and `hasSpent` added two server-supplied `Int` counters (`chain_stats.tx_count + mempool_stats.tx_count`) with the trapping `+`. Impact: an Esplora endpoint answering `tx_count` = 9223372036854775807 in both sections terminated the process when the wallet read the statistics of an address whose history is longer than the pages it reads (`hasSpent`, WalletService+Bitcoin.swift): remote denial of service by a hostile or faulty endpoint.</p>317<p>Recommendation / fix: Fixed: the counters are compared one by one and never added.</p>318<h4>QYV-SVC-003 — Unspent-output totals from a hostile Esplora endpoint overflow UInt64 / Int64 and crash the wallet</h4>319<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.9 — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H</td></tr><tr><td>References</td><td>CWE-190 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:218</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>f111cfb, 1936fc4</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.AuditRegressionTests/hostileUnspentListsCannotOverflowTheBalance, unspentTotalAboveTheMoneySupplyIsRefused; QyvoraBitcoinTests.BitcoinAuditRegressionTests/builderRefusesCandidatesWhoseTotalExceedsTheMoneySupply</td></tr></table>320<p>Root cause: every unspent output was bounded individually (value &lt;= 21 million BTC) but their total was not. The balance (`reduce(0) { $0 + $1.value }`), the per-script balances and, later, the input sums of `BitcoinTransactionBuilder` (`total(selected)` in UInt64, effective values in Int64 for Branch and Bound) used the trapping `+`. Outputs of an address whose history is truncated cannot be cross-checked against their funding transactions, so an endpoint could list 4 500 outputs of 2.1e15 satoshis on each of two addresses (9 000 x 2.1e15 &gt; 2^64). Impact: the process trapped during synchronization (or when a payment was prepared): remote, repeatable denial of service. No fund movement is possible this way: SegWit signatures commit to the real amounts. Verified: with the guard removed on the build node the regression test exits with SIGTRAP.</p>321<p>Recommendation / fix: Fixed in two places: the synchronization refuses a list whose running total leaves the monetary range (`untrustedResponse`), and the builder refuses candidates whose total exceeds 21 million BTC (`invalidAmount`) before any selection arithmetic (Sources/QyvoraBitcoin/TransactionBuilder.swift:200).</p>322<h4>QYV-SVC-008 — Cold PSBT signing trusts the input amounts written in the PSBT when the device has no synchronized snapshot (BIP-143 fee attack)</h4>323<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:782</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>8311bd8</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.PSBTAmountVerificationTests (amountsStatedOnlyByThePSBTAreReportedAndNeedAnExplicitConfirmation, theTwoRoundFeeAttackYieldsNoSignatureWithoutConfirmationAndIsCaughtWithPreviousTransactions, previousTransactionsOrASingleInputMakeTheAmountsVerified, coinsTheWalletReadItselfAreVerifiedAgainstItsSnapshot, exportAttachesPreviousTransactionsThatHashToTheOutpoint); MainnetPolicyTests.unverifiedAmountsAreNeverSignedOnUnauditedMainnet; BitcoinWalletTests.coldSigningRoundTripWithPSBT</td></tr><tr><td>Note</td><td>Fixed: `reviewPSBT` reports `inputAmountsVerified`: true only when the transaction has a single input (its SegWit signature commits to its amount) or when every input carries its previous transaction (PSBT_IN_NON_WITNESS_UTXO, hashed to the outpoint by the parser and the signer) or is an output the wallet read itself (its snapshot). Otherwise the review carries a warning and the fee line is marked NOT VERIFIED, `signPSBT` refuses unless `acceptUnverifiedAmounts` is true (a separate toggle of the cold-signing screen), and on mainnet with an unaudited engine it refuses in every case: a hidden fee cannot be bounded by a ceiling on the fee the PSBT states. Export side: `exportPSBT` now attaches the previous transaction of every input, read from the Esplora endpoint and accepted only when it hashes to the outpoint and agrees with the witness UTXO (best effort: an input whose previous transaction cannot be read keeps its witness UTXO, and the cold device then says the amounts are unverified). Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a (cold PSBT screen). Residual risk: A PSBT prepared by other software without previous transactions needs the explicit confirmation on a test network and is refused on unaudited mainnet. Previous transactions above 50 000 bytes are not attached by the export. All inputs are required to be verified, not only the wallet&#x27;s own: an input presented as foreign could otherwise be one of the wallet&#x27;s.</td></tr></table>324<p>Root cause: `signPSBT` fills `PSBT.SigningOptions.expectedUTXOs` only from `bitcoinSnapshot`. A cold device never synchronizes (cold mode refuses every request), so it has no snapshot, `requireNonWitnessUTXO` stays false, and the amounts of the wallet&#x27;s own inputs are whatever PSBT_IN_WITNESS_UTXO says; `exportPSBT` only writes witness UTXOs. The fee shown by `reviewPSBT` and the fee ceilings (`bitcoinMaximumFee`, `bitcoinMaximumFeeRate`) are computed from these unverified amounts. A SegWit v0 signature commits to the amount of the input it signs, not to the other inputs: a compromised online companion can present the same transaction twice with a different input under-declared each time, collect one valid signature per round, and assemble a transaction whose real fee is the hidden difference. Impact: funds burned as miner fee without the user having seen the amount (theft requires a colluding miner); it needs the user to approve two signing requests for what looks like the same payment. This is the 2020 &quot;BIP-143 fee attack&quot; documented for hardware wallets. Bitcoin transaction security is unrelated to the post-quantum protection of local storage.</p>325<p>Recommendation / fix: Export side: attach PSBT_IN_NON_WITNESS_UTXO (the full previous transaction, fetched with `EsploraClient.transactionHex` and checked by `PSBT.setNonWitnessUTXO`) for every input in `exportPSBT`. Signing side: in `signPSBT`, for every input of this wallet require either a matching `expectedUTXOs` entry or a non-witness UTXO, and refuse otherwise (`options.requireNonWitnessUTXO = true` when no snapshot covers the input); state in the review that the amounts were verified. Add tests for the two-round attack. Until then, state the limit in the cold-signing screen.</p>326<h4>QYV-SVC-009 — The per-transaction ceilings of an unaudited mainnet build do not bound the fee, and fee data comes from the first endpoint that answers</h4>327<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-20 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/EthereumRPC.swift:179</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>120ca41</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests (feeCeilingConstantsAreTheDocumentedOnes, bitcoinFeeCeilingsAreEnforcedAtPrepareAndAtSign, ethereumFeeCeilingIsEnforcedAtPrepareAndAtSign)</td></tr><tr><td>Note</td><td>Fixed: `MainnetPolicy.limits` gained three fee ceilings next to the value ceilings (Sources/QyvoraCore/Networks.swift): Bitcoin fee &lt;= 20 000 sat per transaction and &lt;= 200 sat/vB, Ethereum maximum fee (gas limit x maxFeePerGas) &lt;= 0.01 ETH. The service enforces them while `MainnetPolicy.unauditedMainnet` is true: at prepare (`buildBitcoinPlan`, `buildEthereumReview`), at sign (`validate`, `signPSBT`, `signEthereum` for the hot and the cold path) and at broadcast of a PSBT (`finalizeAndBroadcastPSBT`); the Bitcoin fee tiers offered are capped at the same rate. The settings, the mainnet warning, the permanent notice and the custom fee field show the ceilings. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Residual risk: The second half of the finding is not changed: fee figures still come from the first endpoint that answers (no comparison between endpoints, tracked by QYV-SVC-014). What a hostile endpoint can make one mainnet transaction cost is now bounded by the ceilings instead of 0.63 to 6 ETH. On test networks only the general ceilings apply (1 000 000 sat, 1 000 sat/vB, 10 000 gwei), as before.</td></tr></table>328<p>Root cause: `MainnetPolicy.limits` bounds the value sent (0.002 BTC, 0.05 ETH, 150 USD of tokens); fees are bounded only by the general ceilings. Bitcoin: `bitcoinMaximumFee` = 1 000 000 sat (0.01 BTC, five times the value ceiling) and `bitcoinMaximumFeeRate` = 1 000 sat/vB. Ethereum: `feeData` accepts a base fee and a priority fee below 10 000 gwei each from `call` (first endpoint that answers, no quorum), so `maxFeePerGas` can reach about 30 000 gwei: 0.63 ETH for a 21 000-gas transfer and 6 ETH at the 200 000 gas ceiling, of which the priority fee (up to 0.21 ETH / 2 ETH) is actually paid to the block proposer. Impact: on an unaudited build a single hostile or faulty RPC endpoint (or a defect in the fee arithmetic) can make one reviewed transaction cost 12 to 120 times the ceiling that is meant to bound a mistake. The review screen shows the maximum fee and a warning above 5 % of the value, so the user can notice; nothing refuses it. Limits were not changed by this audit (owner decision).</p>329<p>Recommendation / fix: While `MainnetPolicy.unauditedMainnet` is true, add fee ceilings next to the value ceilings and enforce them at prepare and at sign (for example fee &lt;= the value ceiling of the chain: 200 000 sat, 0.05 ETH). Independently: take `baseFeePerGas` and `eth_maxPriorityFeePerGas` from every endpoint and refuse a disagreement beyond a tolerance (as `quorum` does for the nonce), and cap the priority fee relative to the base fee.</p>330<h4>QYV-SVC-010 — PIN escalating delays rely on the wall clock, which the holder of the device can advance</h4>331<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.7 — CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N</td></tr><tr><td>References</td><td>CWE-307 · MASVS-AUTH-2</td></tr><tr><td>Location</td><td>Sources/QyvoraVault/Vault.swift:307</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>218a4af</td></tr><tr><td>Regression test</td><td>QyvoraVaultTests.PINClockTests (settingTheDateForwardDoesNotShortenTheDelay, aRestartOfTheDeviceRestartsTheDelay, aLongerUptimeInAnotherBootSessionGivesNoCredit, settingTheDateBackwardsRestartsTheDelayAndCannotExtendItForever, aSmallClockCorrectionIsTolerated, theDelayIsServedInMonotonicTimeWhateverTheDateSays, aStateOfTheOldFormatRestartsItsDelay, theSystemClockIsMonotonicAndNamesItsBootSession); VaultPINTests.lockoutScheduleWithInjectedClock, clockRollbackRestartsTheDelay</td></tr><tr><td>Note</td><td>Fixed: The PIN state (Keychain, version 2) records, with the wall-clock time of the last failure, the monotonic time (`clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW)`: continuous time since boot, sleep included, not settable) and the boot session identifier (`kern.bootsessionuuid`). A delay is served only by monotonic time elapsed in the boot session of the failure. When that cannot be measured (the device restarted, or a state of the old format) the full delay starts again from now; when the wall clock disagrees with the monotonic clock by more than 30 s while a delay is pending (date set forward or backwards) the full delay starts again as well. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release). Residual risk: Residual: (1) a restart costs the holder nothing but restarts the wait, so the legitimate user who restarts the phone during a delay waits the full delay again (24 h at most); (2) on a jailbroken device the Keychain items `pin-state` and `pin-secret` can be read or rewritten and the PIN searched offline, as before: the password slot is the protection there; (3) `kern.bootsessionuuid` was read on macOS in the tests, not on an iPhone: when the system does not give it, the monotonic comparison alone applies (a restart is then detected only when the monotonic clock is below its recorded value, and a longer uptime after a restart gives credit for at most the uptime recorded at the failure); (4) the optional wipe after N wrong PINs stays off by default (owner decision).</td></tr></table>332<p>Root cause: `Vault.unlock(pin:)` compares `configuration.now()` (the system date) with the time of the last failure. A clock moved backwards restarts the wait, but a clock moved forwards satisfies it: setting the date ahead by 24 hours in the Settings removes every delay. The optional wipe after N failures is off by default. Impact: someone holding the device with its passcode (the Keychain item `pin-secret` is `WhenPasscodeSetThisDeviceOnly`) can try PINs at the rate of the key stretching instead of 1 per day; a six-digit PIN has 10^6 values. Each try still costs a date change and a manual entry, so an exhaustive search by hand takes months; an attacker able to automate it (jailbreak) can read `pin-secret` and search offline anyway. The password slot is not affected.</p>333<p>Recommendation / fix: Count time with a clock the user cannot set: store `mach_continuous_time` together with the boot session identifier (`kern.bootsessionuuid`) in the PIN state and require the delay to elapse in continuous time of the same boot, a reboot restarting the wait. Consider enabling wipe-after-N by default with a clear warning, or a hard cap of total attempts after which only the password unlocks.</p>334<h4>QYV-SVC-020 — Solana send planner trapped on a rent minimum near 2^64 supplied by an endpoint</h4>335<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>2.6 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-190 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraSolana/SolanaSendPlanner.swift:357</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>04bb687</td></tr><tr><td>Regression test</td><td>QyvoraSolanaTests.SolanaAuditRegressionTests/hostileRentAndBalancesNeverTrapThePlanner; security/tests PropertyAuditTests SolanaPlannerProperties/feeAndRentArithmeticOnAnyFigure; fuzz target solana-planner</td></tr></table>336<p>Root cause: `SolanaSendPlanner.plan` computed `fee + creationCost + rent` with the trapping `+` when it prepared the refusal `senderBelowRentExemption`. `rent` (getMinimumBalanceForRentExemption) and `creationCost` come from an endpoint and were not bounded by the planner; with a rent of 2^64-1 and a recipient balance of 2^64-1 (so that the recipient rule passes by overflow) the process stopped. Impact: denial of service of the pure planning function by one lying endpoint. In the wallet service the path was not reachable, because `prepareSolanaSend` refuses rent minimums above 0.01 SOL before it plans; the planner is a public function of the engine and the brief of the module says it takes any snapshot. Severity by the wallet-impact class of the policy (trap reachable from untrusted input), which is higher than the CVSS band.</p>337<p>Recommendation / fix: Fixed: the reserve saturates at 2^64-1 (nothing is then sendable). The planner is now exercised on every 64-bit boundary by a regression test, a property campaign (200 001 cases in full mode) and the fuzz target `solana-planner`.</p>338<h4>QYV-SVC-021 — One Solana endpoint could declare a live transaction expired or failed and release the double-payment guard</h4>339<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.3 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraSolana/SolanaRPC.swift:523</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>04bb687</td></tr><tr><td>Regression test</td><td>QyvoraSolanaTests.SolanaAuditRegressionTests/oneEndpointCannotDeclareALiveTransactionDeadOrFailed</td></tr></table>340<p>Root cause: `SolanaRPC.track` took the answer of the first endpoint that replied (getSignatureStatuses, then getBlockHeight at the finalized commitment). The wallet marks a sent transaction as settled on `.expired` and `.failed`, and only then lets the same payment be prepared again (`requireNoPaymentInFlight`). An endpoint that hides the inclusion (status null) and announces a block height it invented, or that invents a failure, therefore made the wallet tell the user that a transaction still valid for about 150 blocks was dead; the user pays again and both transactions are executed. Impact: double payment to the intended recipient, needing a lying first endpoint and the user repeating the payment.</p>341<p>Recommendation / fix: Fixed: `track` asks every configured endpoint and returns `.expired`, `.failed` or `.included` only when all those that answer agree (the weakest commitment is kept); any disagreement gives `.pending`. Residual risk: with a single endpoint configured (the default on devnet and testnet) there is nothing to compare with, and an endpoint that lies can also stall a transaction at `pending`; see QYV-APP-021.</p>342<h4>QYV-SVC-060 — A hostile tip height from one UTXO indexer overflows the survey of indexers and crashes the wallet</h4>343<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>5.9 — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H</td></tr><tr><td>References</td><td>CWE-190 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/UTXOIndexer.swift:470</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>2c8f987, 3cb4f27</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests/hostileTipHeightsNeitherTrapNorWinTheSurvey; fuzz target utxo-indexer-normalise (committed seed with the hostile tip)</td></tr></table>344<p>Root cause: `EsploraClient.tip()` returned the height an endpoint writes (`Int(text)`) without bounds, unlike the Blockbook and Bitcore clients, and `UTXOIndexers.survey` computed `best - tip.height` with the trapping `-`. An Esplora endpoint that had passed the chain-identity check and then answered `-9223372036854775808` at `blocks/tip/height` made the subtraction overflow as soon as another indexer of the same network answered a positive tip (Litecoin and Litecoin Testnet have Esplora plus Blockbook or Bitcore by default). Impact: the process traps at every synchronization of the coin — remote, repeatable denial of service by one endpoint of the configuration; no fund movement. Verified: on the build node the regression test and the fuzz target `utxo-indexer-normalise` exit with SIGTRAP against the pre-fix sources (site UTXOIndexer.swift, closure of `survey`).</p>345<p>Recommendation / fix: Fixed: the Esplora tip is bounded (`invalidResponse` otherwise) and the survey treats any tip outside 0 ..&lt; 100 000 000 — the bound the wallet service applies — as no answer before any arithmetic.</p>346<h4>QYV-SVC-061 — A refused broadcast was reported as a success when the refusal contained &quot;known&quot; or was a mempool conflict</h4>347<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>4.8 — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L</td></tr><tr><td>References</td><td>CWE-697 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/UTXOIndexer.swift:348</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>2c8f987</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.UTXOCoinsAuditRegressionTests/aRefusedBroadcastIsNeverReportedAsAlreadyKnown</td></tr></table>348<p>Root cause: the test for &quot;the node already has this transaction&quot; was the regular expression `already|known|in block chain|txn-mempool-conflict` (and `already|known|in block chain` in the Esplora client). It matched any refusal containing &quot;known&quot; — &quot;unknown error&quot;, &quot;Unknown transaction version&quot; — and `txn-mempool-conflict`, which means that another transaction spending the same coins is in the mempool, not this one. Impact: the wallet returned a transaction identifier and recorded the coins as spent although no node had accepted the payment: the user is told a payment was sent when it was not (integrity of what is presented). No fund movement; the coins reappear at the next synchronization. `txn-mempool-conflict` was added with the UTXO coins; the bare &quot;known&quot; predates them.</p>349<p>Recommendation / fix: Fixed: only the messages by which a node says it holds this very transaction are accepted (`txn-already-in-mempool`, `txn-already-known`, &quot;already in block chain&quot;, &quot;outputs already in utxo set&quot;, &quot;already exists&quot;, &quot;already known&quot;, &quot;already have&quot;); the three clients (Esplora, Blockbook, Bitcore) share the rule.</p>350<h4>QYV-SVC-064 — PSBT amounts were not authenticated where signatures do not commit to them (Dogecoin, Bitcoin Cash, BIP-44 accounts)</h4>351<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraBitcoin/Account.swift:407</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>3996ed6</td></tr><tr><td>Regression test</td><td>QyvoraBitcoinTests.UTXOCoinsAuditRegressionTests/aPreviousTransactionSetThroughThePropertyIsAuthenticated, nothingIsSignedWhenTheFeeIsNotAuthenticated; property psbtPreviousTransactionsAuthenticateTheFee; fuzz target psbt-prevtx</td></tr></table>352<p>Root cause, three parts. (1) `UTXOAccount.sign(psbt:)` skipped an input that carried no UTXO record and signed the account&#x27;s other inputs. With the original digest (Dogecoin, legacy inputs) a signature commits to no amount: a PSBT showing input A with its previous transaction and hiding input B gets A signed; a second PSBT gets B signed; together they spend both coins for a fee nobody was shown (two-round fee burn). (2) `PSBT.fee` under Dogecoin&#x27;s scheme was computed from a PSBT_IN_WITNESS_UTXO record when an input had no previous transaction — an amount nothing authenticates. (3) `PSBT.spentOutput` trusted a previous transaction placed through the public `inputs` property without recomputing its identifier (parsing and the setter did check), and indexed the transaction&#x27;s inputs with an index bounded only by the PSBT&#x27;s own list. Reachability: the wallet service does not expose PSBTs for these coins (cold signing answers `featureUnavailable`), so the defect was latent in the engine&#x27;s public interface; had the service used it as is, the impact would have been a fee burn, hence the rating. No CVSS vector.</p>353<p>Recommendation / fix: Fixed: `spentOutput` returns nothing unless the previous transaction hashes to the outpoint and the index is in range; `fee` is nil under Dogecoin&#x27;s and Bitcoin Cash&#x27;s schemes unless every input carries its previous transaction; the account refuses a PSBT with a mismatching previous transaction and, on those networks and for BIP-44 accounts, signs only when every input has an authenticated previous transaction and the fee is known.</p>354<h4>QYV-SVC-080 — A primary network could be moved to a main network without a fresh authentication (1.0 setters, and setNetworkMode when the stored mode already said &quot;main&quot;)</h4>355<table class="kv"><tr><td>Severity / status</td><td>medium / fixed</td></tr><tr><td>CVSS v3.1</td><td>2.4 — CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N</td></tr><tr><td>References</td><td>CWE-306 · MASVS-AUTH-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService.swift:497</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>f8ff2b8</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): leavingTheTestNetworksAlwaysNeedsAFreshAuthentication</td></tr><tr><td>Note</td><td>Fixed: `setBitcoinNetwork` and `setEthereumNetwork` require a fresh authentication when the network goes from a test network to a main one (`setActiveNetworks` goes through them); `setNetworkMode(.main)` requires it whenever the stored mode is not main or a primary network is still on a test network. Moving between test networks, between two main networks, or back to test asks nothing. Severity: CVSS 2.4 (low); rated medium by the wallet-impact class &quot;sensitive action without fresh authentication&quot;. The regression test fails on the code before the fix (14 issues), checked on M5M36.</td></tr></table>356<p>Root cause: `setNetworkMode(.main)` (multi-chain upgrade) asks for a fresh authentication, but the setters kept for the 1.0 screens — `setBitcoinNetwork`, `setEthereumNetwork`, `setActiveNetworks` — only checked the mainnet gate. They move the primary Bitcoin network and the primary EVM network (any of the seven main networks) to real funds. `setNetworkMode(.main)` itself skipped the authentication when `profile.networkMode` was already `.main`, which is the case after `setBitcoinNetwork(.signet)` in main mode or with a profile file whose mode field says &quot;main&quot;. Impact: with mainnet enabled (internal build and user switch), whoever holds the unlocked device after the authentication window could put the wallet on main networks without the credential; signing still needs a fresh authentication, so no funds move, but the user is then shown and asked to act on real-fund networks. The gate itself (both conditions) was never bypassed.</p>357<p>Recommendation / fix: Require `requireFreshAuthentication()` in every call that moves a network from test to main, whatever the entry point, and treat any primary network still on a test network as a switch in `setNetworkMode(.main)`.</p>358<h4>QYV-APP-007 — Transaction signing relies on cryptography written from scratch that has no independent review</h4>359<table class="kv"><tr><td>Severity / status</td><td>medium / open</td></tr><tr><td>References</td><td>CWE-1240 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraCore/Networks.swift:90</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Regression test</td><td>QyvoraCryptoTests.EngineTests.selfTestPasses; QyvoraSecp256k1Tests (RFC 6979 vectors, Wycheproof in the audit package)</td></tr><tr><td>Note</td><td>Still open. Standing limitation: not a defect that a code change closes. Defence in depth added on 2026-12-04: (1) `Secp256k1.sign` verifies every ECDSA signature it produces against the public key recomputed from the private key before returning it (b806c00; Schnorr already did); (2) the start-up self-test now includes an ECDSA signing known answer (RFC 6979, key 1, &#x27;Satoshi Nakamoto&#x27;), its verification, the refusal of a modified digest and public-key recovery (2401ef7); (3) confirmed in the current service: before any signature the key derived from the vault is compared with the stored account (BIP-84 account xpub for Bitcoin, address for Ethereum), every Bitcoin signature is verified by `BitcoinVerifier` and the txid compared with the reviewed plan, every Ethereum transaction is decoded again, its sender recovered and its content compared with what was reviewed; (4) the processor&#x27;s DIT flag is set around operations on secrets (QYV-CRY-004). Proposed disposition: Keep open until an independent cryptographic review is completed; keep the mainnet gate and the per-transaction ceilings (value and, since QYV-SVC-009, fees). Owner decision required for any other disposition.</td></tr></table>360<p>Root cause: a design decision of the project: every primitive is implemented in this repository. The local vault is defended in depth (system AEAD by default, key stretching combined with CommonCrypto&#x27;s PBKDF2), but secp256k1 (ECDSA with RFC 6979, Schnorr), BIP-32 derivation, Keccak-256, RIPEMD-160 and the address encodings have no second implementation in the signing path. Swift gives no constant-time guarantee. Impact: an undiscovered defect in scalar arithmetic, nonce generation or derivation could expose a private key or send funds to an unspendable address. The internal audit (official vectors, differential tests against independent implementations, property tests, fuzzing, statistical timing tests) lowers this risk and does not remove it.</p>361<p>Recommendation / fix: Keep the mainnet gate and the per-transaction limits until an independent cryptographic review is completed; publish the audit reports with their limits; do not recommend the wallet for significant funds before that review. Not a defect that a code change closes.</p>362<h4>QYV-CRY-003 — Key material that the engine cannot erase: secp256k1 scalars on the stack, hash scratch, keys returned as arrays</h4>363<table class="kv"><tr><td>Severity / status</td><td>medium / open</td></tr><tr><td>CVSS v3.1</td><td>4.1 — CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N</td></tr><tr><td>References</td><td>CWE-226 · MASVS-STORAGE-2</td></tr><tr><td>Location</td><td>Sources/QyvoraSecp256k1/Secp256k1.swift:339</td></tr><tr><td>Found by</td><td>manual-review (rule secret-not-erasable)</td></tr><tr><td>Regression test</td><td>QyvoraCoreTests.KeyMaterialHygieneTests (theSeedFromBytesIsTheSeedFromWords, wipeErasesThePrivateKeyAndTheChainCodeWhereTheyAre, wipeLeavesALiveCopyIntact, derivationAlongAPathIsUnchangedByTheErasureOfItsIntermediates); QyvoraWalletTests.SigningPathHygieneTests (theStoredPhraseFormIsRecognised, signingFromBytesGivesTheSameKeysAsTheImport)</td></tr><tr><td>Note</td><td>Still open. Reduced on 2026-12-04 (6ac0546), not closed. Done on the signing path of the service: the recovery phrase and the passphrase are read from the vault as bytes and the seed is computed from those bytes (`BIP39.seed(normalizedMnemonic:normalizedPassphrase:)`): no `String` of the phrase is built for a signature; phrase, passphrase, seed, master key, account key, the intermediate extended keys of every derivation (`ExtendedKey.derive(path)`, `BIP84Account.privateKey`), the BIP-32 tweak IL and the child private key are erased with memset_s where they are, each being the only owner of its buffer when it is erased (`ExtendedKey.wipe`, `BIP84Account.wipe`; the test pins that the buffer does not move). STILL NOT ERASABLE: (1) inside QyvoraSecp256k1, the private scalar d, the nonce k, k^-1 and the coordinates of k*G, which are U256 structs in registers and stack slots during and after `sign` and `schnorrSign` (now also during the verify-after-sign); (2) the message schedule and working variables of SHA-256 / SHA-512 / RIPEMD-160 and the chaining states copied by HMAC and PBKDF2 (the seed derivation runs 2 048 HMAC-SHA512 iterations keyed by the phrase); (3) the `String` / `[String]` forms of the phrase wherever it is displayed or typed: creation (`createWallet` returns the words), import, `revealRecoveryPhrase`, the recovery sheet, `verifyPhraseBackup`, the restoration of a backup, and SwiftUI&#x27;s own copies of text fields; passwords and PINs as `String`; (4) keys the engine returns as arrays to other callers (identity keys, ML-KEM shared secrets, HKDF / Argon2 outputs), whose copies the caller decides; (5) whatever CryptoKit and the system keep internally. Proposed disposition: Keep open until the independent review. Proposed for the reviewer: run the secp256k1 signing path on a heap workspace erased with memset_s (as ML-DSA does), give `HashFunction` an erase requirement, and inspect the generated code for spilled secrets. Owner decision for any acceptance of the residual risk.</td></tr></table>364<p>Root cause: Swift offers no way to erase registers or stack frames, and [UInt8] is a copy-on-write value the callee cannot follow. Remaining after QYV-CRY-002: (1) the secp256k1 private scalar d, the ECDSA/Schnorr nonce k, k^-1 and the projective coordinates of k*G are U256 structs in registers and stack slots during and after sign() and schnorrSign(); a leaked nonce together with its signature gives the private key; (2) the message schedule and working variables of the generic SHA-256/SHA-512/RIPEMD-160 compression (stack scratch) and the chaining states copied by HMAC and PBKDF2; (3) every private key, seed, shared secret or derived key returned by the engine as Bytes, whose lifetime and number of copies are decided by the caller. Impact: same as QYV-CRY-002 (post-hoc memory read), with a shorter window for the stack items, which later calls overwrite without guarantee.</p>365<p>Recommendation / fix: Before production: (a) run the secp256k1 signing path on a heap workspace erased with memset_s, as ML-DSA does with its Workspace; (b) give HashFunction an erase requirement and call it from HMAC, HKDF and PBKDF2; (c) carry keys across module boundaries in a non-copyable secret container (QyvoraVault.SecretBytes already exists in the service layer) instead of plain arrays; (d) have the independent reviewer inspect the generated code for spilled secrets. Not fixed in this pass: (a) and (c) change the public signatures used by the service modules and the application.</p>366<h4>QYV-STA-002 — Deterministic (non-cryptographic) generator used for transaction ordering</h4>367<table class="kv"><tr><td>Severity / status</td><td>low / accepted-risk</td></tr><tr><td>References</td><td>CWE-338 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraBitcoin/TransactionBuilder.swift:430</td></tr><tr><td>Found by</td><td>static-checks (rule QYV-STA-002)</td></tr><tr><td>Triage</td><td>Reviewed 2026-12-04: the wallet service never passes `seed` (no `seed:` argument in Sources/QyvoraWallet); the generator only orders inputs/outputs and jitters the lock time. Residual risk as described in the finding.</td></tr></table>368<p>A seeded SplitMix-style generator shuffles Bitcoin inputs and outputs and jitters the lock time. It is seeded with 64 bits from SystemRandom unless the caller supplies `seed` (meant for tests). It produces no key, nonce or signature material: the impact is limited to the privacy heuristics (ordering, lock time), whose 64-bit seed is ample. Risk: a production caller passing a fixed seed would make ordering predictable. Definition: Sources/QyvoraBitcoin/CoinSelection.swift:276 `struct SeededGenerator {`. Use: Sources/QyvoraBitcoin/TransactionBuilder.swift:430 `var rng = SeededGenerator(seed: seedValue ?? 0)`</p>369<p>Recommendation / fix: Keep `seed` nil outside tests (assert it in the wallet service), and state in the type&#x27;s documentation that it must never produce secret material.</p>370<h4>QYV-APP-021 — Solana: the interface must show pending/expired states, the cross-cluster warning of a cold review and the weakness of a single endpoint</h4>371<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-356 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Cold.swift:128</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>7b1e37e</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification).</td></tr><tr><td>Note</td><td>The three points: (1) a broadcast Solana payment is shown with its status and &quot;Can be included until block height&quot;; the result screen offers only &quot;Check the status&quot; until the chain has settled it, and the form explains `transactionInFlight` with the identifier of the first payment instead of preparing a second one; (2) the cold review shows every line of the summary and every warning; `solana.cross-cluster` is now critical, and an offline device of an unaudited build does not sign a test-cluster transaction at all (QYV-APP-040); (3) the endpoint editor says, for a Solana cluster with one endpoint, that its answers are not cross-checked and what it decides alone, and recommends a second one of another operator. (Commits 0fe8b74 and 7b1e37e.)</td></tr></table>372<p>Root cause: three protections of the service depend on what the interface does with them. (1) A sent Solana transaction stays executable until its blockhash expires; the service answers `.pending`, refuses the same payment (`transactionInFlight`) and answers `.expired` only on a unanimous verdict of the endpoints (QYV-SVC-021). An interface that offers &quot;send again&quot; on a pending payment, or that words `transactionInFlight` as a generic failure, invites the double payment the guard exists to prevent (see also QYV-SVC-025). (2) The review of a cold device on a test cluster carries the non-critical warning `solana.cross-cluster` (QYV-SVC-022): an offline device cannot check that the blockhash is not a mainnet one. (3) With one endpoint per cluster — the default on devnet and testnet, and whatever the user configures — one party decides the balance shown, whether a broadcast happened and whether a transaction is declared expired. Not yet verifiable: the screens are being rebuilt. No CVSS vector.</p>373<p>Recommendation / fix: Proposed fix (application): (1) show a pending Solana payment with its last valid block height, offer only &quot;check again&quot; until the status is final, and explain `transactionInFlight` with the identifier of the first payment; (2) show every line of `ColdTransactionReview.summary` and every warning, `solana.cross-cluster` included, before the signature on the cold device; (3) in the endpoint settings, say when a Solana cluster has a single endpoint that its answers are not cross-checked, and recommend a second one of another operator.</p>374<h4>QYV-APP-041 — TRON: the interface must carry the service&#x27;s refusals and notices (reference block, contract recipient, address forms, expiry, receipts)</h4>375<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-356 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:487</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0fe8b74</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification).</td></tr><tr><td>Note</td><td>The acknowledgement is now a rule of the service, not only of the screen: `signAndBroadcast(_:acknowledged:)` and `signColdTransaction(…acknowledged:)` refuse unless every critical warning of the review is named in the set the screen collected, and the forms without that set are no longer public (static check QYV-STA-021). The send review and the cold review show every warning with the service&#x27;s sentence and one control per critical warning, off until the user turns it on (static check QYV-STA-022). The six points: (1) `tron.recipient-is-contract` and `unaudited-mainnet` are acknowledged individually; (2) the notes of the review (nodes that vouched for the reference block, expiry) and the TRON details (bandwidth, energy, fee limit, activation of the recipient, validity) are shown; (3) the recipient goes through `checkAddress` and no screen converts an address between families (the watch-only form only strips the scheme of a scanned request); (4) the result screen words pending, confirmed, irreversible, failed (&quot;the fee was paid; nothing else moved&quot;) and expired distinctly, and offers another payment only once the first is settled; (5) the cold review shows every warning (`blind-signing` with its separate consent, `tron.unlimited-approval`, `tron.non-owner-permission`, `tron.value-attached`, `tron.network-not-bound`) before the signature control, the critical ones with their acknowledgement; (6) a TRC-20 entry whose symbol and decimals are the index&#x27;s word is labelled as not verified in the activity list and on its detail.</td></tr></table>376<p>Root cause: several TRON protections end in a value the interface must show or act on; the screens are being rebuilt and were not reviewed. (1) Critical warnings: `tron.recipient-is-contract` (TRX or tokens sent to a contract that cannot handle them are lost) and `unaudited-mainnet` must require an explicit confirmation; `SendReview.hasCriticalWarning` exists for that. (2) Notes of the review: how many nodes vouched for the reference block (one node only = nothing was cross-checked), the expiry time, the activation fee of a new recipient, the fee limit of a token transfer. (3) Address entry: the service refuses the hexadecimal `41…` form, the EVM `0x…` form (`wrongFamily`), the zero address and the burn address with distinct sentences; an interface that &#x27;helpfully&#x27; converts an EVM address to its TRON form would recreate the cross-family confusion the service refuses (the same twenty bytes are a valid account on both families, usually controlled by nobody on the other side). (4) Status: a token `transfer` that failed on chain (`OUT_OF_ENERGY`, `REVERT`) still burned its fee and moved nothing: `.failed` must not be worded as &#x27;sent&#x27;; `.pending` after &#x27;accepted&#x27; is not a confirmation; `.expired` means the payment can be made again. (5) Cold review: `blind-signing`, `tron.unlimited-approval`, `tron.non-owner-permission`, `tron.value-attached` and `tron.network-not-bound` must all be visible before the signature is offered. (6) History entries of TRC-20 transfers come from the index alone (`verified: false` for unknown tokens): they must not be presented as confirmed payments, and a forged &#x27;sent&#x27; entry must not be what removes the first-payment notice in the user&#x27;s mind (the service already keys that notice on its own record of payments and on the history).</p>377<p>Recommendation / fix: Proposed fix (application): block the confirm button on `hasCriticalWarning` until acknowledged; render every `SendReview.notes` and `warnings` entry; never transform an address between families; map `TransactionStatus` cases to distinct wording; show the cold-review warnings above the sign button; label index-only history as unverified.</p>378<h4>QYV-APP-060 — The interface must make the user acknowledge the critical warnings of a Bitcoin Cash payment (legacy address, coins replayable on forks)</h4>379<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-356 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>App/Sources:1</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0fe8b74</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification). QyvoraWalletTests.MainnetPolicyTests.aBitcoinCashPaymentOfOldCoinsTakesANewerCoinWithIt (a replayable payment is not signed without its acknowledgement).</td></tr><tr><td>Note</td><td>The acknowledgement is now a rule of the service, not only of the screen: `signAndBroadcast(_:acknowledged:)` and `signColdTransaction(…acknowledged:)` refuse unless every critical warning of the review is named in the set the screen collected, and the forms without that set are no longer public (static check QYV-STA-021). The send review and the cold review show every warning with the service&#x27;s sentence and one control per critical warning, off until the user turns it on (static check QYV-STA-022). For Bitcoin Cash: `bch.legacy-address` and `bch.replayable-on-forks` are critical warnings of the review, each with its control; the review shows the recipient in its CashAddr form (the canonical form the service pays), and the form shows that canonical form under the field when a legacy address is typed.</td></tr></table>380<p>Design item for the application. The service now puts two critical warnings in the review of a Bitcoin Cash payment: `bch.legacy-address` (the recipient was typed in the Base58 form, which is also a Bitcoin address — QYV-SVC-065) and `bch.replayable-on-forks` (every coin predates the split from eCash or Bitcoin SV — QYV-APP-062). `SendWarning.isCritical` means &quot;the user must acknowledge before signing&quot;; the service does not enforce an acknowledgement itself (signAndBroadcast takes the review as it is). The App target was being rebuilt during this audit and was not reviewed. Rated by impact (user error leading to a loss the recovery phrase may not undo); no CVSS vector.</p>381<p>Recommendation / fix: In the send flow: block the confirm action until each critical warning of the review has been acknowledged explicitly; for `bch.legacy-address` show the CashAddr form next to what was typed and prefer asking the payer for a CashAddr. Add a UI test that a review with a critical warning cannot be confirmed without the acknowledgement.</p>382<h4>QYV-APP-100 — Interface duties for the sweep of exposed coins, the fee quote, hidden tokens and the unverified-amounts confirmation</h4>383<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-451 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>App/Sources</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>8ffcf8a</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification).</td></tr><tr><td>Note</td><td>The six points: (1) a sweep is handed to the wallet&#x27;s review through `review(for:)` (SecSendReviewHandoff, installed by MainShell) and is shown and signed like any payment; the minimal review the sheet keeps for the case where no review screen is installed now signs through the same door with an empty acknowledgement set, so it cannot sign a plan that carries a critical warning; (2) a sweep above the ceiling of an unaudited build is explained (refused as a whole, what to do) instead of a bare refusal; (3) `acceptUnverifiedAmounts` comes only from its own control, shown with the warning, off by default, separate from the blind-signing consent, and never offered on mainnet (static check QYV-STA-022 watches the assignment); (4) fee quotes are prefixed &quot;≈&quot; with their basis and never replace the fee of the review; (5) the Solana countdown is worded &quot;valid about&quot; and the details give the last valid block height; (6) amounts on the review are formatted with `SendReview.amountDecimals` and `amountSymbol`, and a token added by its address also shows the amount in base units, as signed. (Commits 0fe8b74 and 8ffcf8a.)</td></tr></table>384<p>Design, for the screens being rebuilt (not reviewed here). (1) `prepareSweepOfExposed(chain:)` returns a `BitcoinSendPlan`: the screen must show it through `review(for:)` and display the destination address and the fee like any payment; on Bitcoin Cash the review of a sweep carries no fork-replay warning (QYV-APP-062) — harmless for the coins (replayed on eCash / Bitcoin SV, the sweep pays the same key of the same wallet there) but the fee is spent on both chains. (2) On an unaudited mainnet build a sweep above the per-transaction ceiling (150 USD of LTC / DOGE / BCH) is refused as a whole: the service offers no partial sweep, so a wallet holding more than the ceiling behind published keys cannot sweep at all; the screen must say so rather than show a generic error. (3) `acceptUnverifiedAmounts` of `signColdTransaction` must be set only from a separate, explicit confirmation shown with the warning text of `PSBTReview.warnings` — never defaulted to true, never merged with the blind-signing consent. (4) `SendFeeQuote` is an estimate (`isEstimate`): it must be labelled as such and never shown in place of the fee of the review; `feeQuote` is refused in cold mode (`offline`) and behind the mainnet gate. (5) `SendReview.expiresAt` on Solana is an estimate from the device clock (60 s): the chain decides by block height; a countdown must not suggest otherwise. (6) Amounts of a token must be formatted with `SendReview.amountDecimals` / `amountSymbol` (the service&#x27;s), not with the decimals of a `ChainToken` or `HiddenToken.token` value the screen holds.</p>385<p>Recommendation / fix: Implement the six points in the send, sweep, cold-signing and token screens; add UI tests for (3) and (6).</p>386<h4>QYV-AUD-003 — ConstantTime.equal: a sub-nanosecond dependence on the compared contents is statistically detectable when the processor&#x27;s DIT flag is not set</h4>387<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>2.5 — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N</td></tr><tr><td>References</td><td>CWE-208 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraMath/ConstantTime.swift:50</td></tr><tr><td>Found by</td><td>dudect-timing (rule ct-equal-hamming)</td></tr><tr><td>Fix commit</td><td>b806c00</td></tr><tr><td>Regression test</td><td>security/tests/Sources/qytiming/main.swift (target ct-equal-hamming, without --dit: the engine now sets the flag itself); QyvoraMathTests.DataIndependentTimingTests</td></tr><tr><td>Note</td><td>Fixed: `ConstantTime.equal` sets the processor&#x27;s data-independent-timing flag for the comparison and restores it afterwards (see QYV-CRY-004). Verification: Measured on M4M64a (Swift 6.3.3, release build of commit 6ac0546) with `qytiming --only ct-equal-hamming --scale 5`, 1 000 000 measurements per class, without --dit, three runs: max |t| = 2.50 (crop p95), 0.90 (crop p99), 2.22 (crop p95), raw t = -1.23, -0.31, -2.15; threshold 4.5. Before the fix, same node and sample size: 11.69, 13.61, 12.21, 12.59, 7.64. Position target (`ct-equal-position`, same size): max |t| = 0.96. Mean per measurement 35.4 to 35.9 ns for both classes. Statistical evidence from one machine and one build, not a proof. Residual risk: The measurement is statistical and was made on one Mac; it was not repeated on an iPhone.</td></tr></table>388<p>Observation: comparing a 64-byte reference with a buffer that differs by one bit, against a buffer with random contents (both comparisons return false, same buffers at the same addresses in both classes), gives a Welch t statistic that grows with the number of measurements: max |t| = 4.6 and 6.3 with 200 000 measurements per class, 11.7, 13.6 and 12.2 with 1 000 000 (node M4M64a, Swift 6.3.3, 32 calls per measurement). The means are equal to the displayed precision (6.0–6.3 ns per call): the difference is below 0.1 ns. The position of a single differing byte shows no effect (max |t| = 1.6–2.4 with the same sample sizes). The machine code of ConstantTime.equal contains no data-dependent branch (vectorised XOR/OR accumulation, branches on the length only). With the processor&#x27;s data-independent-timing flag set (PSTATE.DIT, `qytiming --dit`), three runs of 1 000 000 measurements per class gave max |t| = 6.3 (opposite sign, at the median crop), 1.7 and 3.2, against 12.6 and 7.6 without the flag in the same session: the systematic effect is consistent with processor-level data-dependent timing that DIT suppresses. This is statistical evidence from one machine, not a proof of the cause. Impact: negligible in practice — telling &#x27;almost equal&#x27; from &#x27;different&#x27; would need on the order of a million isolated, sub-nanosecond-precise measurements of the same comparison, which no interface of the wallet offers (AEAD tags are compared once per attempt, and the tag-position targets show no difference: max |t| = 1.5 and 1.7). Recorded because the audit must not hide a reproducible measurement, and because it gives a measured basis to the recommendation of QYV-CRY-004.</p>389<p>Recommendation / fix: Set PSTATE.DIT around the operations that process secrets (signing, decapsulation, AEAD open, comparisons): Apple&#x27;s guidance for constant-time code on Apple silicon. Pure Swift cannot set it; it needs a small C or assembly shim (as security/tests/Sources/CAuditDIT does for the measurement) and therefore a change of Package.swift — an owner decision, tracked with QYV-CRY-004. Until then the residual risk is rated low.</p>390<h4>QYV-AUD-004 — Two low-severity items reported by the project&#x27;s Semgrep rules: `try!` in SignedEIP1559Transaction.raw and `==` on a decapsulated probe secret</h4>391<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-248 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraEthereum/Transaction.swift:153</td></tr><tr><td>Found by</td><td>semgrep (rule qyvora-force-try / qyvora-nonconstant-compare)</td></tr><tr><td>Fix commit</td><td>ad48602</td></tr><tr><td>Regression test</td><td>Tests/QyvoraEthereumTests/AuditRegressionTests.swift (rawEncodingIsTheSignedFieldsFollowedByTheSignature); security/tests PropertyAuditTests (EIP-1559 sign → raw → decode round trip); QyvoraIdentityTests</td></tr></table>392<p>(1) SignedEIP1559Transaction.raw rebuilt the list of signed fields by decoding the transaction&#x27;s own RLP payload with `try!`. The decoder is stricter than the encoder in principle (nesting limit, canonical forms), so the absence of a trap rested on an unstated invariant between the two; a trap there would have crashed the application while building a transaction to broadcast. No input that triggers it was found (fuzzing and the round-trip property tests pass), hence low. (2) Identity(privateEncoding:) compared the secret decapsulated from a throw-away probe encapsulation with `==`. Both values are produced and discarded inside the check and protect nothing; the comparison is now uniform with the rest of the code. Impact of (2): none identified.</p>393<p>Recommendation / fix: Fixed: raw is built from the transaction&#x27;s own field list (no decode, no `try!`); the probe comparison uses ConstantTime.equal.</p>394<h4>QYV-BIN-002 — No privacy manifest although required-reason APIs are used</h4>395<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>MASVS-PRIVACY-1</td></tr><tr><td>Location</td><td>App/Sources/AppModel.swift:129</td></tr><tr><td>Found by</td><td>binary-checks (rule QYV-BIN-002)</td></tr><tr><td>Fix commit</td><td>e518577</td></tr><tr><td>Regression test</td><td>binary-checks &#x27;Privacy manifest (PrivacyInfo.xcprivacy) present and covering the required-reason APIs used&#x27; (emits QYV-BIN-002 when unmet)</td></tr><tr><td>Note</td><td>Fixed: App/Resources/PrivacyInfo.xcprivacy added to the target resources: NSPrivacyTracking false, no tracking domain, no collected data type, required-reason APIs UserDefaults (CA92.1) and system boot time (35F9.1, the monotonic clock of the PIN delays). Verification: The binary-checks runner was run standalone on an unsigned Debug build of the application made on M3U96a at this revision (python3 security/audit/runners/binary_checks.py &lt;Qyvora.app&gt;): the check passes (&#x27;manifest in bundle: True; not declared: none&#x27;) and QYV-BIN-002 is no longer emitted. The Release archive of the full audit is the integrator&#x27;s run.</td></tr></table>396<p>The bundle has no PrivacyInfo.xcprivacy; the sources use required-reason API categories [&#x27;NSPrivacyAccessedAPICategoryUserDefaults&#x27;] (first uses: [&#x27;App/Sources/AppModel.swift:129&#x27;]). App Store Connect rejects or warns about such uploads (ITMS-91053), and the manifest is where the application states that it collects nothing and tracks nobody.</p>397<p>Recommendation / fix: Add App/Resources/PrivacyInfo.xcprivacy: NSPrivacyTracking false, NSPrivacyCollectedDataTypes empty, NSPrivacyAccessedAPITypes with NSPrivacyAccessedAPICategoryUserDefaults reason CA92.1 (and any other category listed here), and include it in the target resources.</p>398<h4>QYV-CRY-004 — Constant-time behaviour rests on source-level discipline only: no compiler guarantee, DIT not enabled</h4>399<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-208 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraSecp256k1/U256.swift:193</td></tr><tr><td>Found by</td><td>manual-review (rule constant-time-not-guaranteed)</td></tr><tr><td>Fix commit</td><td>b806c00</td></tr><tr><td>Regression test</td><td>QyvoraMathTests.DataIndependentTimingTests (theFlagIsSetInsideAScopeAndRestoredAfterIt, nestedScopesLeaveTheFlagToTheOutermostOne, aThrowingScopeRestoresTheFlag, constantTimeComparisonStillAnswersAndRestoresTheFlag); QyvoraMLDSATests.MLDSAPrivateKeyValidationTests.theFlagOfTheProcessorIsRestoredAfterValidation; audit steps ct-machine-code and dudect-timing (security/audit/runners/timing.py), binary-checks source scan against the reviewed list</td></tr><tr><td>Note</td><td>Fixed: The four actions recommended are done. (1) New C target `QyvoraCSupport` (Sources/QyvoraCSupport/dit.c, about forty lines, no dependency): capability read from hw.optional.arm.FEAT_DIT, PSTATE.DIT read with mrs and set / cleared with msr; `DataIndependentTiming` (QyvoraMath) wraps it. The flag is set, and restored on exit, around secp256k1 public-key derivation, key tweak, ECDSA and Schnorr signing, ML-KEM key generation / encapsulation / decapsulation, ML-DSA key generation / signing / private-key validation, SLH-DSA key generation / signing, HMAC, HKDF, PBKDF2, Argon2, AES-GCM and ChaCha20-Poly1305 seal / open, `ConstantTime.equal`, BIP-32 derivation and the BIP-39 seed. (2) The release machine code of the listed functions is inspected at every audit (ct-machine-code: conditional branches per function against a reviewed maximum). (3) The dudect-style timing test stays in the pipeline. (4) `Secp256k1.sign` verifies the signature it produced before returning it. Verification: Package tests on M4M64c and on the laptop. `./Scripts/security-audit.sh --only timing --timing-node M4M64a` at commit 6ac0546: ct-machine-code RUN, 23 functions in the policy, 12 visible and checked, 0 above its maximum (ConstantTime.equal 10 for a maximum of 10, Modulus.montMul 4 / 4, U256.add / sub 0), 11 not visible (inlined; reported as NOT RUN, never as passed); dudect-timing RUN on M4M64a at 15 % of the sample counts, 21 targets, none above |t| = 4.5 (ECDSA sign key 0.96, secp256k1 k*G 2.02 / 2.00 / 1.38, Schnorr sign 2.24). Application target compiled for iphoneos on M3U96a (the C target builds for arm64 iOS). Residual risk: Swift still has no constant-time attribute: the optimiser may turn a mask selection into a branch in a future toolchain (the machine-code check exists to notice it), and functions inlined into their callers are not visible to that check. DIT covers the instructions ARM and Apple list, nothing else; it was verified on Apple silicon Macs, and read back on an iPhone by no test. The engine is no longer &#x27;Swift only&#x27;: it has one C file, on the reviewed list of the binary checks. Cost: about 30 ns per scope on M4M64a (the two writes of the flag), visible only on `ConstantTime.equal`.</td></tr></table>400<p>The review found no secret-dependent branch, table index or division in the secp256k1, ML-KEM, AES, GHASH, ChaCha20-Poly1305, HMAC and comparison code beyond what the standards themselves allow (rejection sampling in ML-DSA, data-dependent addressing in Argon2id; full list in security/audit/review/crypto-primitives.json). Two limits remain: (1) Swift has no constant-time attribute - the optimiser may turn mask selections into branches, and the machine code was not inspected in this audit; (2) on ARM64 the timing of instructions such as multiplications is guaranteed data-independent only when the processor&#x27;s DIT bit (PSTATE.DIT) is set, which the system libraries do for their own cryptography and this engine does not (it cannot be set from pure Swift). ECDSA signing also has no verify-after-sign check against computation faults (Schnorr has one). Impact: a co-located attacker able to time many signing or decapsulation operations precisely could, in principle, learn key bits; the wallet exposes no remote signing or decapsulation oracle.</p>401<p>Recommendation / fix: Before production: add a minimal C or assembly shim that sets DIT around secret-key operations (requires a new target in Package.swift: owner decision, it breaks the &#x27;Swift only&#x27; property but not the zero-dependency one); inspect the release machine code of Point.multiply, montMul, ML-KEM decapsulation and ConstantTime.equal for branches; keep the dudect-style timing test in the audit pipeline; add verify-after-sign to Secp256k1.sign. The statistical timing results are reported separately by the audit run.</p>402<h4>QYV-FUZ-001 — Identity(privateEncoding:) accepts an ML-DSA-87 private key whose t0 component is corrupted</h4>403<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>2.5 — CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L</td></tr><tr><td>References</td><td>CWE-354 · MASVS-CRYPTO-2</td></tr><tr><td>Location</td><td>Sources/QyvoraIdentity/Identity.swift:369</td></tr><tr><td>Found by</td><td>qyfuzz (rule identity-private:accepted private identity signs invalidly)</td></tr><tr><td>Fix commit</td><td>64500cd</td></tr><tr><td>Regression test</td><td>QyvoraMLDSATests.MLDSAPrivateKeyValidationTests (thePublicKeyIsRecomputedFromThePrivateKey, everySingleBitErrorInT0IsDetected, damageInTheOtherComponentsIsDetectedExceptInK); QyvoraIdentityTests.IdentityPrivateKeyConsistencyTests (aDamagedT0IsRefusedWhereverTheDamageIs, theRecordedFuzzerInputIsRefused); fuzz target identity-private with the invariant always enforced (security/tests/Sources/FuzzTargets/Targets+Storage.swift)</td></tr><tr><td>Note</td><td>Fixed: Decision per FIPS 204: the standard defines no private-key validation, but the encoding (rho, K, tr, s1, s2, t0) is redundant: t = A(rho)*s1 + s2, (t1, t0) = Power2Round(t), the public key is (rho, t1) and tr = H(public key). `MLDSA.publicKey(_:fromPrivateKey:)` recomputes them and throws when s1 or s2 is out of range, when the stored t0 differs or when tr is not the hash of the recomputed public key; `MLDSA.isKeyPair` compares the result with a public key. `Identity(privateEncoding:)` requires it (and keeps the test signature). So t0 CAN be validated, completely; only K (the seed of the signer&#x27;s randomness) has no public counterpart: a damaged K changes which valid signature is produced, never whether it verifies. The fuzz target no longer has the QY_FUZZ_STRICT_IDENTITY switch: an accepted identity that signs invalidly is a crash on every run. (The function lives in commit b806c00; 64500cd builds only together with it.) Verification: Package tests on M4M64c and on the laptop. `qyfuzz repro identity-private &lt;recorded input&gt;`: accepted=false. `qyfuzz run --target identity-private --seconds 90` on M4M64c with the invariant enforced: 25 174 064 executions, 0 crash (the same target found 12 accepted inconsistent keys in 40 s before the fix). `qyfuzz run --seconds 60` over the 50 targets: 165 768 322 executions, 0 crash.</td></tr></table>404<p>The strict parser of the private identity encoding checks the ML-DSA-87 private key against the public identity by signing one fixed probe message deterministically and verifying that signature. This check is probabilistic for the t0 component of the private key (FIPS 204: the low bits of t, 3 328 bytes of the 4 896-byte key): t0 is only used to compute the hint, so a private key with a few corrupted t0 coefficients still produces a valid signature for many messages, including — with a sizeable probability — the probe. The fuzzer (target identity-private, run with QY_FUZZ_STRICT_IDENTITY=1) found 12 such encodings in 40 seconds on M2U64: each is accepted by Identity(privateEncoding:), yet the signature the accepted identity makes over another message does not verify under its own public key. Root cause: the acceptance test exercises one signature instead of establishing that the private key matches the public key. Impact: no forgery and no key disclosure; an identity record that is damaged in t0 (the record lives inside the AEAD-authenticated vault, so this needs a writer of vault plaintext or a storage/logic error before sealing) is loaded as valid and then produces signatures that verify only some of the time (backup signatures, rotation certificates, transfer envelopes). The ML-KEM, SLH-DSA and X25519 halves are checked deterministically and are not affected.</p>405<p>Recommendation / fix: Make the check complete: in QyvoraMLDSA, add a private-key validation that recomputes t = A·s1 + s2 from rho, s1 and s2, checks that Power2Round(t) equals (t1 of the public key, t0 of the private key), that tr = H(public key) and that rho matches; call it from Identity(privateEncoding:) instead of (or before) the probe signature. Regression test: replay security/fuzzing/crashes/identity-private/0078fcc1….bin (a throw-away identity generated by the fuzzer, t0 corrupted at offset 6816) and expect IdentityError.invalidKey; then remove the QY_FUZZ_STRICT_IDENTITY switch in security/tests/Sources/FuzzTargets/Targets+Storage.swift so the invariant is always enforced.</p>406<h4>QYV-SVC-004 — PSBT.fee traps on a PSBT with thousands of inputs claiming the maximum amount</h4>407<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>2.5 — CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-190 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraBitcoin/PSBT.swift:503</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>f111cfb</td></tr><tr><td>Regression test</td><td>QyvoraBitcoinTests.BitcoinAuditRegressionTests/psbtFeeWithThousandsOfMaximalInputsIsNilNotATrap</td></tr></table>408<p>Root cause: `PSBT.fee` summed the claimed input amounts in UInt64 after bounding each one only; 8 785 inputs of 2.1e15 satoshis overflow. Impact: a crafted PSBT of about 500 kB trapped any caller of `fee`. The wallet service refuses PSBTs with more than 1 000 inputs before it reads the fee (WalletService+Bitcoin.swift `review`), so the trap was not reachable through the application; it was reachable through the public API of QyvoraBitcoin.</p>409<p>Recommendation / fix: Fixed: the running total is checked at every step and `fee` returns nil when it leaves the monetary range.</p>410<h4>QYV-SVC-005 — A backup whose records carry timestamps near 2^64 crashes the restoration after the vault was created</h4>411<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>2.5 — CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-681 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraVault/Vault.swift:46</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>ec01204</td></tr><tr><td>Regression test</td><td>QyvoraRecoveryTests.RecoveryAuditRegressionTests/vaultTimeNeverTraps, backupWithExtremeTimestampsIsWrittenReadAndRestoredWithoutTrap</td></tr></table>412<p>Root cause: record times are stored as u64 seconds and read back as `Date`; `Vault.seconds` and `BackupFile.recordBody` converted them again with `UInt64(max(0, date.timeIntervalSince1970))`. A stored value above 2^64 - 1024 becomes the Double 2^64, which `UInt64(_:)` refuses with a trap. Impact: restoring a backup (file or device-to-device transfer) whose record `createdAt` is 0xFFFFFFFFFFFFFFFF terminated the process inside `Vault.addRecord`, after `Vault.create` had run, leaving an empty vault behind (cleared by `deleteWallet`). The file must authenticate under the password the user types, so the attacker has to supply both the backup and its password; a damaged authentic backup cannot produce the value.</p>413<p>Recommendation / fix: Fixed: `VaultTime.seconds` saturates (0 below 1970 or NaN, UInt64.max above the range) and is used by the vault and by the backup writer.</p>414<h4>QYV-SVC-006 — Amount formatting and the Shield report trap on out-of-range values of the stored profile (decimals, durations)</h4>415<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>1.9 — CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-20 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraCore/UInt256.swift:224</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>7e854f2</td></tr><tr><td>Regression test</td><td>QyvoraCoreTests.CoreAuditRegressionTests/baseUnitsToleratesHostileDecimals; QyvoraQuantumShieldTests.ShieldAuditRegressionTests/extremeDurationsInTheProfileDoNotTrapTheReport</td></tr></table>416<p>Root cause: `BaseUnits.parse` / `format` passed `decimals` to `String(repeating:count:)` and `dropLast` without a range check (a negative value traps, a huge one allocates as many characters; a negative `maxFractionDigits` trapped in `prefix`), and `QuantumShield.vaultSecurity` converted the auto-lock delay and the backup age with `Int(Double)` (Sources/QyvoraQuantumShield/ShieldReport.swift:511). Values read from the network are bounded before they reach these functions (token decimals &lt;= 36); the unchecked path is the plaintext profile `wallet-profile.json` (`customTokens[].decimals`, `autoLock.after.seconds`, `lastBackupDate`) and `setAutoLockPolicy`, which has no upper bound. Impact: a corrupted or tampered profile made the application trap at every launch or report.</p>417<p>Recommendation / fix: Fixed: `decimals` outside 0...255 is refused by `parse` and clamped by `format`; the durations are bounded before the conversion. See QYV-SVC-011 for the authentication of the profile itself.</p>418<h4>QYV-SVC-007 — HTTP responses were buffered without any size limit</h4>419<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>3.7 — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-770 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/HTTP.swift:97</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>3ff9505</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.ResponseValidationTests/bodyWithinTheLimitIsReturnedWhole, oversizedBodyIsRefused</td></tr></table>420<p>Root cause: `URLSessionTransport.send` used `URLSession.data(for:)`, which accumulates the whole body. Only the resource timeout (24 s) bounded what a faulty or hostile endpoint could make the application hold in memory (hundreds of megabytes on a fast link), enough for iOS to terminate it.</p>421<p>Recommendation / fix: Fixed: the body is read as a stream and abandoned beyond `maximumResponseBytes` (32 MiB by default, also checked against Content-Length); the error is `NetworkError.invalidResponse`. The parsers above already bound counts (history page &lt;= 100 transactions, &lt;= 5 000 unspent outputs per address, &lt;= 20 000 chart points).</p>422<h4>QYV-SVC-011 — The wallet profile (account public keys, endpoints, mainnet opt-in) is stored unauthenticated outside the vault</h4>423<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>3.0 — CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N</td></tr><tr><td>References</td><td>CWE-345 · MASVS-STORAGE-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService.swift:78</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>8fb36b0</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.AccountBindingTests (aReplacedAccountKeyIsRestoredFromTheVaultAtUnlock, everyUnlockMethodChecksTheBinding, aVaultWithoutBindingGetsOneFromItsPhrase, aRestoredBackupCarriesTheBindingOfItsPhrase)</td></tr><tr><td>Note</td><td>Fixed: The public account data (BIP-84 account keys of both coin types, master fingerprint, Ethereum address) is also stored in a vault record (type watchOnlyAccount, format &#x27;qyvora-account-binding&#x27;), written at creation, import and restore. After every unlock (password, PIN, biometrics) the service compares the profile with that record and, when they differ, puts the vault&#x27;s data back in the profile and forgets the indices, frozen coins and cached state read for the other account (`accountBindingRepairCount` reports it). A vault written before this rule gets its record at the next unlock, derived from the recovery phrase. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release). Residual risk: Unchanged: the profile is readable without the vault password (the extended public keys reveal every address to whoever can read the application container), by design: the wallet synchronizes while locked. While the vault is locked the profile is what the file says; a full wallet shows only the lock screen then. Endpoints, labels and the frozen-coin list are still unauthenticated settings (bounded as untrusted input since QYV-SVC-006; changing the endpoints in the application now needs a fresh authentication). The interface does not yet tell the user that a repair happened.</td></tr></table>424<p>Root cause: `wallet-profile.json` is a plain JSON file (data protection `complete`, excluded from backups). Receive addresses are derived from `bitcoinAccounts[].extendedPublicKey` and `ethereumAddress` of this file; nothing compares them with the keys derived from the vault except at signing time (`signAndBroadcastBitcoin`, `signEthereum`). Impact: whoever can write into the application container can replace the account key (the wallet then shows the attacker&#x27;s receive addresses), the endpoints, the frozen-coin list or the labels; whoever can read it learns the xpub (every past and future address) without the vault password. On an intact iOS device the sandbox prevents both; with root access the attacker has stronger options, hence the low rating.</p>425<p>Recommendation / fix: Store the account public data in a vault record (or an HMAC of the profile under a vault subkey) and verify it at every unlock: refuse to show a receive address when the profile does not match the vault. Treat the remaining fields as untrusted input (now bounded, see QYV-SVC-006).</p>426<h4>QYV-SVC-012 — KDF cost bounds accepted from a backup or vault header allow 2 GiB of memory and 64 passes</h4>427<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>3.3 — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-770 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraVault/VaultCrypto.swift:229</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>9ec716a</td></tr><tr><td>Regression test</td><td>QyvoraVaultTests.KDFCeilingTests (theCeilingIsFourTimesTheDefaultAndFarBelowTheFormatBound, aVaultHeaderAboveTheCeilingIsNotDerived); QyvoraWalletTests.BackupCostTests.aBackupAskingForMoreThanTheDeviceAcceptsIsRefusedBeforeItsPasswordIsTried</td></tr><tr><td>Note</td><td>Fixed: `KDFParameters.deviceCeiling` (Argon2id 256 MiB, 16 passes, 16 lanes; PBKDF2 2 400 000 iterations: four times each default) bounds what the device pays for a header it reads. The wallet service refuses a backup or a transfer package above it before the password is tried, with the figures in the message; a vault refuses to open (and to create) a slot above its ceiling (`Vault.Configuration.kdfCeiling`). The format bound (`isWithinLimits`) is unchanged, so files stay readable by a build that chooses a higher ceiling. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release). Residual risk: 256 MiB and 16 passes are still several seconds and a large allocation on an iPhone: the ceiling stops an absurd request, it does not make a hostile file cheap. `BackupFile.open` called directly (outside the wallet service) applies the format bound only.</td></tr></table>428<p>Root cause: `KDFParameters.isWithinLimits` accepts Argon2id memory up to 2 GiB, 64 passes, 16 lanes and 10 000 000 PBKDF2 iterations for files read from outside (`BackupFile.parse`, `VaultFile.parse`). The key derivation runs before the password can be checked. Impact: a crafted backup file makes the device allocate 2 GiB (iOS terminates the application) or compute for a very long time when the user tries to open it: denial of service only. The parameters cannot be lowered to weaken an existing file: the wrapping key depends on them. No allocation trap occurs on macOS.</p>429<p>Recommendation / fix: Read the header first (`BackupFile.inspect`), show the cost, and refuse above what the device can serve (for example 256 MiB and 16 passes on iOS) unless the user confirms; make the bound a parameter of `open` / `restore`. The format bound itself is a product decision and was not changed by this audit.</p>430<h4>QYV-SVC-015 — Quadratic Base58 decoding was reachable with unbounded text (extended keys, WIF)</h4>431<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>3.3 — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L</td></tr><tr><td>References</td><td>CWE-407 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraCore/HD/BIP32.swift:191</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>7e854f2, f111cfb</td></tr><tr><td>Regression test</td><td>QyvoraCoreTests.CoreAuditRegressionTests/oversizedExtendedKeyTextIsRefusedWithoutDecoding; QyvoraBitcoinTests.BitcoinAuditRegressionTests/oversizedWIFTextIsRefusedWithoutDecoding</td></tr></table>432<p>Root cause: `Base58.decode` is quadratic in the length of its input and `ExtendedKey.parse` / `BitcoinWIF.decode` called it without a length check. `importWatchOnly` passes text that comes from a paste or from reassembled QR frames (up to about 20 MB): two million characters keep the wallet actor busy for minutes. Addresses (&lt;= 100 characters) and descriptors (&lt;= 8 192) were already bounded.</p>433<p>Recommendation / fix: Fixed: text longer than 120 characters (extended key) or 60 characters (WIF) is refused before decoding.</p>434<h4>QYV-SVC-023 — Figures of a Solana review came from the planner and were not checked against the bytes to be signed</h4>435<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Solana.swift:489</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>04bb687</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.SolanaWalletAuditRegressionTests/aReviewThatDoesNotMatchItsBytesIsNeverSigned; QyvoraWalletTests.MainnetPolicyTests/aSolanaTransactionAboveTheCeilingIsNeverSignedWhateverThePlanSays</td></tr></table>436<p>Root cause: `prepareSolanaSend` built the `SendReview` (recipient, amount, decimals, fee) from the fields of `SolanaSendPlan`, which the planner fills next to the transaction, and `signAndBroadcastSolana` signed `details.plan.transaction` without comparing it with what the review showed. The two could not diverge through the public interface (`SolanaSendPlan`, `SolanaSendDetails` and `SendReview` have no public initializer and only constant properties, and the limits were already computed from the decoded bytes), so no exploit is known; but the property &quot;what is shown is what is signed&quot; rested on the planner being right and on memory not being altered, not on a check. Design hardening: no CVSS vector, rated by impact and likelihood.</p>437<p>Recommendation / fix: Fixed: `requireSolanaPayment` decodes the transaction with the decoder a cold device uses and requires a legacy message signed and paid by the wallet account alone, made of the compute-unit limit, the compute-unit price, at most one CreateIdempotent of the recipient&#x27;s own associated token account, exactly one transfer of the reviewed amount of the reviewed asset to the reviewed recipient (for a token: TransferChecked with the reviewed decimals between the two derived associated token accounts), at most one memo, and a fee equal to the fee shown. It runs when the review is made and again before signing. The regression test builds forged plans and reviews through the module-internal initializers (more than a caller of the library can do): another amount, another recipient, another fee, an added transfer, an added approval, an added unknown instruction are all refused.</p>438<h4>QYV-SVC-024 — Solana memos could carry bidirectional and zero-width characters, and a foreign memo was printed with its line breaks in a review</h4>439<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>CVSS v3.1</td><td>3.1 — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N</td></tr><tr><td>References</td><td>CWE-451 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraSolana/SolanaInstructions.swift:70</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>04bb687</td></tr><tr><td>Regression test</td><td>QyvoraSolanaTests.SolanaAuditRegressionTests/memosCannotDisguiseTheReview; fuzz targets solana-instructions, solana-review (every summary must be displayable)</td></tr></table>440<p>Root cause: `SolanaMemoProgram.isAcceptable` refused only C0/C1 control characters, so the planner accepted U+202E (right-to-left override), the isolates, zero-width characters and the line separators; and `SolanaDecodedInstruction.summary` printed the memo of a transaction that was not built here as it was. The summary of a cold review is a list of lines: a memo containing a line break and the text of a warning, or an override that reorders an address, could make the review of a foreign transaction read differently from what it does. Impact: display spoofing on the review of a transaction the user is asked to sign on a cold device; the instructions themselves are still listed.</p>441<p>Recommendation / fix: Fixed: `isDisplayable` refuses control, format (bidirectional, zero-width, byte order mark), line and paragraph separator, private-use, surrogate and unassigned characters; the planner refuses such a memo (`invalidMemo`) and the summary of a decoded memo writes each of them as `\u{...}`. The fuzz harnesses check that no summary contains such a character.</p>442<h4>QYV-SVC-041 — TRON transactions valid for up to 24 hours could be signed (cold payloads): the wallet did not bound the validity window at signing time</h4>443<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-613 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:586</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>03a3554</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.TronAuditRegressionTests/aColdDeviceDoesNotSignATransactionValidForMoreThanAnHour</td></tr></table>444<p>Root cause: the planner bounds the lifetime of what it builds (30 s to 1 h, 120 s by default, 30 min for a cold device), and `TronTransaction.init` refuses more than the protocol&#x27;s 24 hours — but `TronTransaction.decode` (the cold path) accepts any expiration, and `signTron` checked neither that the transaction was still valid nor how long it would stay valid. A payload given to a cold device with an expiration a day ahead was signed. Impact: a signed transaction is a bearer instrument until it expires: whoever holds it (a compromised companion device, a node that answered &#x27;accepted&#x27; and kept it) decides when it lands within that window, on whatever TRON network has its reference block; a long window also widens QYV-SVC-040 / QYV-APP-040. No loss beyond the payment that was reviewed.</p>445<p>Recommendation / fix: Fixed: `signTron` (online and cold) refuses an expired transaction (`transactionExpired`) and one that would stay valid for more than `tronMaximumSigningWindowMilliseconds` = 3 900 000 ms (the planner&#x27;s longest lifetime, one hour, plus five minutes for a late device clock) with `signingFailed`. The device clock is the reference: a cold device whose clock is wrong refuses, and says to check the clock.</p>446<h4>QYV-SVC-042 — The TRON mainnet burn address (Blackhole) was not refused as a recipient</h4>447<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-20 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Send.swift:325</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>a12879b</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.TronAuditRegressionTests/theBurnAddressOfTheMainNetworkIsRefused</td></tr></table>448<p>Root cause: `checkAddress` refused the zero address (T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb) and the planner refused token contracts, but not TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy, the account in which the protocol burns fees (&#x27;Blackhole&#x27; in java-tron&#x27;s genesis configuration; `account_name` &quot;Blackhole&quot; and a negative balance on TronGrid and PublicNode on 2026-12-05). Nobody holds its key. In practice a TRX payment to it failed by accident — `TronClient.account` refuses the negative balance the node prints for that account as an invalid answer — with a message about an untrusted response, and a node that hid the balance would have let the payment through. Impact: funds destroyed by a paste or a prank address; user-initiated.</p>449<p>Recommendation / fix: Fixed: `TronNetwork.burnAddress` (mainnet only) and a refusal in `checkAddress` with its own sentence, before any network request. On test networks the same bytes are an ordinary address.</p>450<h4>QYV-SVC-043 — TRON: the transaction of a review was not checked against the figures of the review before signing</h4>451<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:137</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>03a3554</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.TronAuditRegressionTests/aReviewThatDoesNotMatchItsTransactionIsNotSigned; QyvoraWalletTests.MainnetPolicyTests/aForgedTronPlanAboveTheCeilingIsNotSigned</td></tr></table>452<p>Root cause: `signAndBroadcastTron` signed `details.plan.transaction` after checking the account and the limits, without checking that this transaction is the payment the review shows (recipient, asset, amount). Not exploitable through the public interface: `SendReview`, `TronSendDetails` and `TronSendPlan` have no public initialiser and only `let` properties, so a review can only come from `prepareSend`. The check is the barrier behind that property (a future initialiser, a decoding path, a bug in the assembly of the review): without it, what is shown ≠ what is signed would rest on the type system alone. Hardening, rated by impact and likelihood (no CVSS vector).</p>453<p>Recommendation / fix: Fixed: `requireMatches(review, plan:)` decodes the review of the bytes about to be signed and requires the same sender, recipient, asset (TRX, or the token contract) and amount, the owner permission, no blind-signing contract, and for TRX no fee limit; anything else is `stalePlan`. The limits are then read from the bytes again (`enforceTronLimits`), so a plan that agrees with a forged review still cannot exceed them.</p>454<h4>QYV-SVC-062 — Plans of Litecoin and Dogecoin payments were checked against Bitcoin&#x27;s monetary range before signing</h4>455<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-1284 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:692</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>13cbf5a</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests/plansAboveBitcoinsMonetaryRangeAreValidOnDogecoin</td></tr></table>456<p>Root cause: `validateCoinPlan` used `BitcoinTransaction.outputValue`, which bounds the sum of the outputs by 21 million coins (2.1e15 base units). Dogecoin&#x27;s range is 10 billion coins per transaction and Litecoin&#x27;s 84 million: a payment whose outputs (change included) exceed 21 million DOGE was built and reviewed, then refused at signature with &quot;inconsistent amounts&quot;. Impact: such payments could not be made (availability of funds on Dogecoin for large balances; on a main network of an unaudited build the 150 USD ceiling applies to the amount sent, not to the change, so a wallet holding more than 21 million DOGE could not pay at all). No loss of funds. No CVSS vector: not exploitable by an attacker.</p>457<p>Recommendation / fix: Fixed: the plan is checked against the monetary range of its network.</p>458<h4>QYV-SVC-063 — The value ceiling of a coin plan excluded its change output without checking that it returns to the wallet</h4>459<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:704</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>13cbf5a</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests/coinLimitsHoldAtPrepareAndAtSignEvenWithAnAlteredPlan</td></tr></table>460<p>Root cause: before signing, `validateCoinPlan` applied the ceiling of an unaudited build to every output except the one at `plan.changeIndex`, and nothing checked that this output pays a script of the wallet&#x27;s change chain. A plan whose &quot;change&quot; pays someone else would move any amount under the ceiling: verified with a plan built inside the test module — it was signed and broadcast before the fix. Reachability: `BitcoinSendPlan` and `BitcoinTransactionPlan` have no public initializer and no mutable property, and the service builds the change script itself, so no public interface can produce such a plan; this is defence in depth for the limits (the control that bounds a mistake of the unaudited engine). No CVSS vector.</p>461<p>Recommendation / fix: Fixed: the output excluded as change must be a script of the account&#x27;s change chain (searched up to the scan limit), else `stalePlan`. The Bitcoin path has the same shape: QYV-SVC-066.</p>462<h4>QYV-SVC-065 — The review of a Bitcoin Cash payment did not say that the recipient was given in the legacy (Bitcoin) address format</h4>463<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-451 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Send.swift:429</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0cff22c</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.UTXOCoinsAddressAuditRegressionTests/aLegacyBitcoinCashRecipientIsACriticalWarningOfTheReview, theWarningExistsOnlyOnBitcoinCash</td></tr></table>464<p>Root cause: a legacy Base58 Bitcoin Cash address is byte for byte a Bitcoin address. `checkAddress` reported it in a note, but `prepareSend` handed the canonical CashAddr to the builder and the review carried no trace of it: an interface that calls `prepareSend` directly showed nothing. Impact: the classic BTC ↔ BCH mis-send (a Bitcoin address pasted on Bitcoin Cash): the coins go to a key the recipient may not hold on Bitcoin Cash — and for most Bitcoin addresses starting with 3 (SegWit scripts) cannot be spent by them there. User error with loss of funds; no CVSS vector.</p>465<p>Recommendation / fix: Fixed: the review of such a payment carries the critical warning `bch.legacy-address`. The interface must make the user acknowledge it: QYV-APP-060.</p>466<h4>QYV-SVC-066 — Bitcoin path: the value ceiling excludes the plan&#x27;s change output without checking that it returns to the wallet</h4>467<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:777</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>e1639d6</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.BitcoinWalletTests/aPlanWhoseChangePaysSomeoneElseIsNotSigned (fails on the sources before the fix: the altered plan was signed and broadcast)</td></tr></table>468<p>Same shape as QYV-SVC-063 in `WalletService.validate(_:)` of the Bitcoin path (outside the area of the UTXO-coin review, whose fix is limited to the coins): the ceiling of an unaudited build is applied to every output except `changeIndex`, and the output at that index is not checked to be a script of the wallet&#x27;s change chain. No public interface can build such a plan (no public initializer, no mutable property); defence in depth for the limits. No CVSS vector.</p>469<p>Recommendation / fix: Fixed by the lead of the multi-chain audit: `validate(_:)` requires the output at `changeIndex` to exist and to be a script of the account&#x27;s change chain (searched up to the scan limit plus the gap limit), else `stalePlan`.</p>470<h4>QYV-SVC-081 — A cold-signed EVM transaction was broadcast without applying the limits of an unaudited build again</h4>471<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-770 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Ethereum.swift:978</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>cd95302</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aColdSignedEVMTransactionAboveTheCeilingIsNotBroadcast</td></tr><tr><td>Note</td><td>Fixed as recommended: value, maximum fee, token value (fresh price) and the call-data rules are checked before the first request. The regression test fails on the code before the fix (6 issues), checked on M5M36.</td></tr></table>472<p>Root cause: `broadcastSignedEthereum` checked the encoding, the structural rules (`checkSignable`), the sender and the nonce, but not `enforceUnauditedEthereumLimits`. The documentation of the uniform `broadcastSigned` states that the limits are applied again at broadcast, which was true for Bitcoin (PSBT), Solana and TRON only. Impact: a transaction signed for this account outside this build (another device holding the same phrase, an earlier build without ceilings) above 0.05 ETH, above the fee ceiling, or carrying call data this build refuses on mainnet, was relayed by the online device. The signature already exists in that case, so the control is defence in depth: the same bytes can be broadcast by any other tool.</p>473<p>Recommendation / fix: Call `enforceUnauditedEthereumLimits(signed.transaction, network:)` before `verifiedRPC` in `broadcastSignedEthereum`.</p>474<h4>QYV-SVC-083 — EthereumRPC.FeeData.maxFee trapped on figures the fee rules refuse (overflowing addition in the fallback)</h4>475<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-190 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/EthereumRPC.swift:230</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>53bb0eb</td></tr><tr><td>Regression test</td><td>QyvoraNetworkingTests.EVMChainsAuditRegressionTests.feeDataMaxFeeNeverTraps</td></tr><tr><td>Note</td><td>Fixed: the fallback saturates at 2^256 − 1 (a display figure; `gasFees`, which a transaction uses, refuses such values). Before the fix the test process of the regression test died on the first expectation (checked on M5M36). The fuzz target `evm-fee-quotes` exercises `maxFee` on every input.</td></tr></table>476<p>Root cause: `FeeData.maxFee` returned `(try? gasFees())?.maxFeePerGas ?? baseFee + baseFee + priorityFee`; `UInt256.+` is the trapping operator. `FeeData` has a public initializer, so a value built from figures the rules refuse and whose sum exceeds 2^256 stops the process. Impact: not reachable from an endpoint (`feeData()` bounds the three figures below 10 000 gwei before it builds the value); reachable by any caller of the public API, including an interface that would build a `FeeData` from text. Recorded as low: a trap on a public type of the networking module, without an untrusted path to it today.</p>477<p>Recommendation / fix: Compute the fallback with reporting additions and saturate.</p>478<h4>QYV-SVC-084 — Symbol and decimals of a detected token came from the persisted snapshot when a payment was prepared after a restart</h4>479<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-STORAGE-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Send.swift:374</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>b3b8fac</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aDetectedTokenOfARestoredSnapshotIsNotUsedForAPayment</td></tr><tr><td>Note</td><td>Fixed as recommended: a snapshot restored from the previous session no longer supplies token metadata to `prepareSend`; the call answers &quot;This token is not in the wallet&#x27;s list. Add it first.&quot; until a synchronization of this session has read the token on chain. Listed tokens were not concerned (their description comes from the built-in list or from the profile). The regression test fails on the code before the fix, checked on M5M36.</td></tr></table>480<p>Root cause: `evmToken` (uniform `prepareSend` with a token found by the indexer and not yet accepted) took the `TokenInfo` from `evmSnapshots[network].detectedTokens`. After a restart that snapshot is the file `evm-sync-&lt;chain&gt;.json`, restored after range checks only (decimals 0…36, network, non-zero address): symbol and decimals of a detected token are then whatever the file says. Impact: whoever can write into the application container could make the review of such a payment show the amount with other decimals and another symbol than the contract&#x27;s (the base units signed are the ones the caller passed; an interface converts the user&#x27;s figure with the same forged decimals). Needs local write access to the container, a token outside the wallet&#x27;s list, and a test network or an audited build (on an unaudited mainnet build a token outside the list cannot be sent at all). Balances are not concerned: every prepare reads them again on chain.</p>481<p>Recommendation / fix: Use a detected token for a payment only when this session read it on chain (`isFromPreviousSession == false`), otherwise ask for a synchronization or for the token to be added.</p>482<h4>QYV-SVC-086 — A watch-only package naming a network that is not Bitcoin&#x27;s for its Bitcoin account left a wallet behind the error</h4>483<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-460 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Onboarding.swift:482</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>0bdd99b</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.MainnetPolicyTests (EVMChainsAuditRegressionTests.swift): aWatchOnlyPackageIsValidatedBeforeAnythingIsCreated</td></tr><tr><td>Note</td><td>Fixed as recommended. The regression test fails on the code before the fix, checked on M5M36.</td></tr></table>484<p>Root cause: `importWatchOnly(package:)` creates the watch-only wallet, then calls `setBitcoinNetwork(package.bitcoin.network)`. `network` is a `BitcoinNetwork`, which since the multi-chain upgrade also names Litecoin, Dogecoin and Bitcoin Cash networks: for those `setBitcoinNetwork` throws after the wallet was created from the package. Impact: the caller receives an error although a wallet now exists (a second import then fails with `walletAlreadyExists`); no key or fund is at risk. Found by review; the fuzz target `watch-only-v2` checks the invariant &quot;an error leaves no wallet&quot; on every input.</p>485<p>Recommendation / fix: Validate the network of the Bitcoin account (a Bitcoin network, allowed by the mainnet gate) before anything is created.</p>486<h4>QYV-SVC-100 — A persisted record of a coin synchronization kept addresses &quot;already paid&quot; for the whole next session, silencing the first-payment warning</h4>487<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-STORAGE-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:213</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>08cfe31</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.aPersistedRecordDoesNotSilenceTheFirstPaymentWarning</td></tr><tr><td>Note</td><td>Fixed as recommended: `restoredUTXOCoin` restores the snapshot only. Nothing reads the set before a synchronization of the session, since no payment is prepared from a restored snapshot. The regression test fails on the code before the fix (the warning was `destinationAlreadyPaid`), checked on M5M36. The fuzz target `utxo-coin-snapshot` and the property campaign check that a restored state carries nothing but its snapshot.</td></tr></table>488<p>Root cause: the state restored from `utxo-sync-&lt;network&gt;.json` (Litecoin, Dogecoin, Bitcoin Cash; added by the merge of main, 4ac4e69) carried the set of scripts the record says this wallet paid, and a synchronization adds to that set instead of replacing it (`paidScripts.formUnion`), unlike Bitcoin&#x27;s own path which replaces it. The record is public chain data validated for consistency only (its transactions are not authenticated; its identity string is computed from public profile data). Impact: whoever can write into the application container makes any address count as &quot;already paid by this wallet&quot; for the whole next session, after a fresh synchronization too: a payment to that address is then reviewed with `destinationAlreadyPaid` instead of `firstPaymentToAddress`, the warning that asks the user to compare the address (QYV-APP-010). No coin, amount or key comes from the record: a restored snapshot is never spent from (`freshCoinSnapshot`). Needs local write access to the container.</p>489<p>Recommendation / fix: Do not carry the paid scripts of a restored record into the session; a synchronization of this session rebuilds them from what the indexer says.</p>490<h4>QYV-SVC-101 — A plan presented as a sweep of exposed coins was signed without checking that it pays the wallet</h4>491<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+UTXOCoins.swift:912</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>08cfe31</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): MainnetPolicyTests.aSweepObeysTheCeilingsAndPaysOnlyTheWalletOnEveryCoin</td></tr><tr><td>Note</td><td>Fixed as recommended in `validateCoinPlan`: a sweep whose output is not a script of this account&#x27;s change chain is refused as a stale plan, nothing is signed. The regression test builds, for each of the three coins on mainnet, a sweep redirected to a foreign script (refused), a sweep above the value ceiling with a small declared amount (refused at sign), a sweep with a fee above the ceiling (refused), and signs the honest one. It fails on the code before the fix, checked on M5M36.</td></tr></table>492<p>Root cause: `prepareSweepOfExposed(chain:)` (Litecoin, Dogecoin, Bitcoin Cash; added by the merge of main) builds a send-max plan to a never-used address of the wallet&#x27;s internal chain and marks it `purpose == .sweepExposed`; the review of a sweep carries none of the destination warnings of a payment and counts its amount as staying in the wallet (`totalSpent` = fee). Before signing, `validateCoinPlan` did not look at the purpose: nothing checked that the outputs of a plan presented as a sweep return to the wallet. Reachability: `BitcoinSendPlan` has no public initializer and no mutable property and the service computes the destination itself, so no public interface can produce such a plan; verified with a plan built inside the test module, which was signed before the fix. The ceilings of an unaudited build applied to it as to a payment (the output of a send-max plan is not change), so the amount was bounded on mainnet. Defence in depth, same class as QYV-SVC-063.</p>493<p>Recommendation / fix: Before signing a plan whose purpose is a sweep, require every output to pay a script of the account&#x27;s change chain.</p>494<h4>QYV-SVC-102 — A token of the detected list restored from the previous session&#x27;s file could be moved into the wallet&#x27;s list with the file&#x27;s symbol and decimals</h4>495<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-345 · MASVS-STORAGE-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Ethereum.swift:447</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>98350c6</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.aDetectedTokenOfARestoredSnapshotCannotEnterTheList</td></tr><tr><td>Note</td><td>Fixed as recommended on the three families: accepting a detected token of a snapshot or record flagged as the previous session&#x27;s answers `notSynchronized` (&quot;This token was detected in a previous session. Synchronize before adding it to the list.&quot;). The regression test forges the EVM snapshot file (symbol and decimals), checks the refusal and the acceptance after a synchronization with the contract&#x27;s own description, and does the same for an SPL token through the uniform call. It fails on the code before the fix, checked on M5M36.</td></tr></table>496<p>Root cause: QYV-SVC-084 stopped `prepareSend` from using a detected token of a restored snapshot, but `acceptDetectedToken` (the 1.0 call with a `TokenInfo`, and the uniform call for Solana and TRON) still copied the token from the restored snapshot or record into `customTokens` / `customSolanaTokens` / `customTronTokens`. After a restart those lists of detected tokens are files (`evm-sync-&lt;chain&gt;.json`, the Solana and TRON records), restored after range checks only. Impact: whoever can write into the application container, plus one tap on &quot;add&quot; by the user on a token shown as detected, makes a token enter the wallet&#x27;s list with a chosen symbol and decimals; every later payment of it is reviewed with them (the base units signed are the caller&#x27;s; an interface converts the user&#x27;s figure with the forged decimals). The quarantine of QYV-SVC-084 was lifted by one call. Needs local write access to the container and a test network or an audited build (an unaudited mainnet build sends built-in tokens only). On Solana the decimals of a payment are read from the mint and enforced by the token program, so only the symbol was concerned there.</p>497<p>Recommendation / fix: Accept a detected token only when a synchronization of this session read it on chain.</p>498<h4>QYV-SVC-103 — The review of a TRC-20 payment showed the symbol and decimals the caller passed (TRON), and the caller&#x27;s symbol on Solana</h4>499<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-451 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:487</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>98350c6</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.showingAHiddenTokenAgainChangesNoPaymentMetadata</td></tr><tr><td>Note</td><td>Fixed as recommended: `tronToken` and `solanaToken` (WalletService+Send.swift) resolve the caller&#x27;s value to the wallet&#x27;s own description (list, then holdings detected in this session); the review and its `asset` carry that description; a token known from neither is refused (&quot;This token is not in the wallet&#x27;s list. Add it first.&quot;). The regression test fails on the code before the fix, checked on M5M36.</td></tr></table>500<p>Root cause: `prepareTronSend` took `amountSymbol` and `amountDecimals` of the review from the `ChainToken` value the caller passed, and `prepareSolanaSend` took the symbol from it (its decimals come from the mint). On EVM the uniform `prepareSend` resolves the token through the wallet&#x27;s list (`evmToken`); TRON and Solana did not. Nothing in a TRC-20 transfer states decimals: the review then showed an amount scaled by a figure nobody checked. Where the caller&#x27;s value comes from: `ChainData.detectedTokens` — after a restart, the persisted record (the case of QYV-SVC-084, which was fixed for EVM only) — or `HiddenToken.token`, or any value the interface builds. Found while writing the test &quot;showing a hidden token again changes no payment metadata&quot;: a payment asked with a token described as 0 decimals / &quot;LIE&quot; was reviewed as such. Impact: what is shown is not what is signed in token units (the base units signed are the caller&#x27;s), with a forged record or a defect of the interface; test networks and audited builds (an unaudited mainnet build refuses a token without a known price). Not reachable from a network endpoint.</p>501<p>Recommendation / fix: Resolve the token in the service, as on EVM: the wallet&#x27;s list first, then what a synchronization of this session detected; otherwise refuse.</p>502<h4>QYV-SVC-104 — Address indices read from the profile file were used unchecked: 4 294 967 295 in a used-index list trapped or made a PSBT review search billions of keys</h4>503<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-190 · MASVS-STORAGE-1</td></tr><tr><td>Location</td><td>Sources/QyvoraBitcoin/Account.swift:244</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Fix commit</td><td>34d4c91</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests (NewEntryPointsAuditRegressionTests.swift): NewEntryPointsAuditRegressionTests.hostileAddressIndicesOfAProfileNeitherTrapNorGrowTheSearch</td></tr><tr><td>Note</td><td>Fixed in two places: the profile decoder drops used indices above 4 000 (twice what a scan covers), so every search window is bounded; `nextUnusedIndex` saturates, `nextUnusedAddress` and `scanRange` check their additions (an out-of-range index throws `indexOutOfRange`). The regression test covers both. It was not run against the code before the fix: the earlier behaviour is an arithmetic trap, established by reading (`used.max().map { $0 + 1 }`).</td></tr></table>504<p>Root cause: `usedReceiveIndices` / `usedChangeIndices` of the profile (a file that is not authenticated: QYV-SVC-011) were decoded without bound. `UTXOAccount.nextUnusedIndex` computed `max + 1`, `nextUnusedAddress` added `skipping`, `scanRange` added the gap limit, and the PSBT review and signing computed a search window `max + 40`: all unchecked UInt32 additions. Found while reviewing the destination of `prepareSweepOfExposed`, which takes its fresh address from that list. Impact: whoever can write into the application container makes the application stop (arithmetic trap) whenever a payment or a sweep is prepared, a receive address is asked for, or a PSBT is reviewed, on every UTXO chain; with a large index below the overflow, a PSBT review derives up to billions of keys (a hang). No key, coin or amount is affected: an index beyond the non-hardened range cannot be derived. Local write access needed; denial of service only.</p>505<p>Recommendation / fix: Bound the indices where the profile is read, and make the index arithmetic of the account saturating or checked.</p>506<h4>QYV-SVC-105 — TRON send-max did not send the most it could at a size boundary of the amount: up to one bandwidth fee stayed in the account</h4>507<table class="kv"><tr><td>Severity / status</td><td>low / fixed</td></tr><tr><td>References</td><td>CWE-682</td></tr><tr><td>Location</td><td>Sources/QyvoraTron/TronSendPlanner.swift:312</td></tr><tr><td>Found by</td><td>property-test (rule tron-send-max)</td></tr><tr><td>Fix commit</td><td>13fa3c1</td></tr><tr><td>Regression test</td><td>QyvoraTronTests (PlannerTests.swift): sendMaxAtAnEncodingBoundarySendsTheLargestAmountThatTravelsFree; security/tests PropertyAuditTests TronProperties.sendMaxNeverExceedsTheBalance (maximality instead of a fixed remainder)</td></tr><tr><td>Note</td><td>The iterative refinement is replaced by an exact search over the nine varint lengths of the amount; the audit property now checks maximality (one more sun does not fit) instead of a fixed remainder.</td></tr></table>508<p>Found by the full audit run on commit 1f3ba96 (property campaign tron-send-max, seed 2046850160945862867, 2 of 100 000 cases; reproduce with QY_AUDIT_REPLAY_SEED). Root cause: the send-max refinement alternates between two candidates when the fee depends on the encoded size of the amount. Example of the run: balance 2 223 499 sun, 267 bytes of free bandwidth left. The whole balance needs a 4-byte amount (268 bytes, above the free allowance, 268 000 sun burned); balance minus that fee is 1 955 499 sun, which fits a 3-byte amount (267 bytes, free). The planner kept 1 955 499 sun with an expected fee of 0, leaving 268 000 sun unsent, although 2 097 151 sun (the largest 3-byte amount) also travels free. Impact: no loss and no overspend — amount plus fee never exceeded the balance, the review showed the planned amount, and the remainder stays in the account; a &#x27;send everything&#x27; left up to one bandwidth fee (0.268 TRX in the example) behind, more than the best possible. The audit property was also wrong: it bounded the remainder by ten bytes of bandwidth, which no planner can guarantee at such a boundary. The orchestrator recorded the failed audit test at its default severity (high, blocking); this entry records the analysed defect at the severity of its real impact — the owner may reclassify. Fix: the planner also tries the largest amount of every shorter encoding below the balance and keeps the best feasible one; the property now checks that amount plus fee fits the balance and that one more sun would not (maximality).</p>509<p>Recommendation / fix: None beyond the fix.</p>510<h4>QYV-APP-008 — QYInternalMainnet is set in the only Info.plist, with no build-configuration guard</h4>511<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-1188 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>App/Resources/Info.plist:45</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Note</td><td>Still open. Not changed. The key is the owner&#x27;s standing decision of 2026-12-04 for the internal TestFlight build, and internal TestFlight and an App Store submission use the same archive: a build-configuration guard cannot tell them apart. Changing how the key reaches Info.plist was outside this pass (instruction: do not change the mainnet opt-in mechanism). Proposed disposition: Owner decision. Proposed: derive the key from a build setting (`QY_INTERNAL_MAINNET`, NO by default in App/project.yml) that `App/Scripts/release.sh` sets to YES only for an explicit `internal` argument, and make the script refuse an upload when the setting is YES and the target is not internal TestFlight; the audit already reports the value found in the built application (QYV-BIN-001, QYV-STA-014).</td></tr></table>512<p>Root cause: the key that makes the mainnet switch available (owner decision of 2026-12-04 for the internal TestFlight build) is in the single committed Info.plist; nothing distinguishes an internal build from a public one. Impact: a public build produced from this tree would offer mainnet with an unaudited engine (the user opt-in and the per-transaction limits still apply).</p>513<p>Recommendation / fix: Derive the key from a build setting (e.g. `QY_INTERNAL_MAINNET = NO` by default, `YES` only in an internal configuration or xcconfig) and make the release script refuse an App Store export when it is set. The release gate of the audit reports the value found in the built application.</p>514<h4>QYV-APP-009 — No platform-integrity, anti-tampering or anti-debugging mechanism</h4>515<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-693 · MASVS-RESILIENCE-1</td></tr><tr><td>Location</td><td>App/Sources/QyvoraApp.swift:45</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Regression test</td><td>QyvoraUITests.DeviceIntegrityTests (indicatorsAreThePathsThatExist, theWarningNamesWhatWasSeen, theDebuggerProbeAnswersWithoutCrashing)</td></tr><tr><td>Note</td><td>Still open. Partly addressed on 2026-12-04 (d0a2bc2): `DeviceIntegrity` (Sources/QyvoraUI) looks for the files of a jailbroken iOS and for an attached debugger, and the screens that show or accept a recovery phrase (creation, import, reveal) display a critical warning when something is found. It is a warning, not a defence: the checks can be hidden by the tools they look for, and the wallet does not refuse to run. Not done: integrity self-check, anti-tampering, hooking detection, obfuscation (MASVS-RESILIENCE-2 to 4). Proposed disposition: Owner decision. Proposed: accept the residual risk for MASVS-RESILIENCE-2 to 4 (an open-source wallet gains little from obfuscation; on a compromised device the Keychain and the process memory are readable whatever the application does) and keep the warning as the position for MASVS-RESILIENCE-1.</td></tr></table>516<p>Root cause: by design the application contains no jailbreak detection, no integrity self-check, no debugger or hooking detection and no obfuscation (MASVS-RESILIENCE-1 to 4). Impact: on a jailbroken or instrumented device, Keychain items and the unlocked master key in memory can be read, and the PIN delay can be bypassed by an attacker who extracts both the vault file and the Keychain secret (the PIN then protects only as much as an offline search over its digits). Such mechanisms raise the cost of an attack; they do not stop a capable attacker.</p>517<p>Recommendation / fix: Decide and document the position. Minimum: detect an obviously compromised device (jailbreak indicators, debugger attached in Release) and warn the user before a recovery phrase is shown or entered; recommend the password (not only the PIN) on such devices.</p>518<h4>QYV-APP-010 — No screening of known malicious addresses (the first-payment warning was added on 2026-12-04)</h4>519<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-345 · MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Bitcoin.swift:540</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Regression test</td><td>QyvoraWalletTests.FirstPaymentWarningTests (bitcoinWarnsOnceThenRemembersThePayment, ethereumWarnsUnlessTheHistoryOrTheSessionShowsAPayment); EthereumWalletTests.sendEtherReviewSignBroadcast</td></tr><tr><td>Note</td><td>Still open (half fixed). First half fixed on 2026-12-04 (5531173): both reviews carry a warning for a destination this wallet never paid — `BitcoinSendWarning.firstPaymentToAddress` (no payment to the script in the history read, none broadcast in this session) and `EthereumSendWarning.firstPaymentToRecipient` (no successful sent transaction to the address in the history read, none broadcast in this session); own addresses keep their own warning, an allowance revocation is not a payment. Second half NOT done: no screening against a list of known malicious addresses (WSC-4.6, WSB-THRE-002): the wallet has no server and a list shipped with the application ages between releases. The &#x27;paid before&#x27; knowledge comes from the history the endpoints return: with a truncated Bitcoin history or without an Ethereum indexer the warning appears although an old payment exists. Proposed disposition: Owner decision for the screening half. Proposed: accept (no server by design; the first-payment warning and the full-address review are the controls offered), or decide on a local list refreshed with each release.</td></tr></table>520<p>Root cause: the reviews warn about own addresses, reused or already-paid destinations, contracts and missing checksums, but there is no address book and no notion of a recipient never paid before; no list of known scam addresses exists (the wallet has no server). Impact: address-poisoning and clipboard-substitution attacks are caught only if the user compares the address by eye.</p>521<p>Recommendation / fix: Persist the set of paid recipients (script or address, per network) in the profile and add a `firstPaymentToRecipient` warning to both reviews; show the full address in the review with grouped characters. A local blocklist is optional and would age between releases.</p>522<h4>QYV-STA-014 — QYInternalMainnet is set: this build may reach mainnet before the audit is complete</h4>523<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-1188 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>App/Resources/Info.plist</td></tr><tr><td>Found by</td><td>static-checks (rule QYV-STA-014)</td></tr></table>524<p>Info.plist declares QYInternalMainnet = true (owner decision of 2026-12-04 for the internal TestFlight build: mainnet with small amounts, behind a user switch and per-transaction limits, MainnetPolicy.auditCompleted = false). Impact: real funds are handled by cryptography that has had no independent review. This is an accepted, bounded exposure for internal testing; it becomes a release blocker for any public build.</p>525<p>Recommendation / fix: Keep the key out of every public build configuration (set it only in the internal TestFlight configuration) and keep the limits of MainnetPolicy.limits.</p>526<h4>QYV-SVC-013 — Identity signatures rest on the from-scratch ML-DSA only: no system-provided component, and the SLH-DSA half is optional at verification</h4>527<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-327 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraIdentity/Identity.swift:238</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Note</td><td>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 &#x27;dual required&#x27; 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).</td></tr></table>528<p>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.</p>529<p>Recommendation / fix: 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.</p>530<h4>QYV-SVC-025 — The same-payment guard of Solana does not cover transactions broadcast for a cold device and does not survive a restart</h4>531<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-841 · MASVS-CODE-4</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Cold.swift:330</td></tr><tr><td>Found by</td><td>manual-review</td></tr></table>532<p>Root cause: `requireNoPaymentInFlight` refuses to prepare a payment equal (chain, recipient, asset, amount) to one signed in this session that can still be executed. A transaction signed by a cold device is recorded by `broadcastSigned` under the key `cold|&lt;signature&gt;`, which no later `prepareSend` can match; and the register (`sentTransactions`) is in memory only. A user who broadcasts a cold-signed payment, sees it pending and prepares the same payment again within its validity (about 150 blocks, one to two minutes), or who restarts the application in that window, is not stopped. Impact: a double payment by the user&#x27;s own repetition, limited to the validity window of a Solana transaction; no attacker is needed and none gains by default. Design gap: no CVSS vector, rated by impact and likelihood.</p>533<p>Recommendation / fix: Proposed fix (service): in `broadcastSigned`, derive the payment key from the decoded transaction when it is a plain payment — recipient and lamports of the System transfer; for a token, key the guard on the destination token account and use the same key in `prepareSolanaSend` — and persist the in-flight register (signature, payment key, last valid block height) with the chain record until the transaction is settled or expired. Not done in this audit: it changes the key format shared with TRON and the persistence format.</p>534<h4>QYV-SVC-044 — TRC-20 metadata of a custom token (decimals, symbol) and every account figure come from the first TRON node that answers</h4>535<table class="kv"><tr><td>Severity / status</td><td>low / open</td></tr><tr><td>References</td><td>CWE-345 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraWallet/WalletService+Tron.swift:176</td></tr><tr><td>Found by</td><td>manual-review</td></tr></table>536<p>Root cause: `TronClient.first` returns the first usable answer; apart from the reference block (QYV-SVC-040) nothing is compared between nodes. For a token the user adds by contract address, `readTronToken` takes `decimals()` and `symbol()` from that one answer and stores them in the profile; the amount the user types is converted with those decimals. A lying node that reports 8 decimals for a 6-decimal token makes &#x27;1 TOKEN&#x27; on the review 100 times what the user means in base units; the transaction is signed for the base-unit amount, which the lying node&#x27;s balance and simulation answers let through, and the chain executes it if the real balance allows. The recipient is still the user&#x27;s. Built-in tokens (USDT, USDC on mainnet) carry their decimals in the code and a contract that reports another value is not read. On an unaudited mainnet a custom token cannot be sent at all (no price, `unauditedLimitUnverifiable`), so this concerns test networks today and mainnet once the limits are lifted. The same single-answer rule lets a node misreport the balance, the resources, the chain parameters (bounded: QYV fee ceilings), the activation state of a recipient (at most the activation fees, about 1.1 TRX, are mis-stated) and the transaction status.</p>537<p>Recommendation / fix: Proposed fix (service): read `decimals()` on every configured node and require agreement when a token is added and again when a token payment is prepared (the pattern of `referenceBlock`), refuse a token whose decimals changed since it was added, and show the base-unit amount with the contract address on the review of a custom token. A common endpoint-agreement helper for the read calls of every chain would be the cleaner form; it touches the other families, hence not done here.</p>538<h4>QYV-AUD-007 — Tests that read the process-wide mainnet policy failed at random while a test that switches it was running</h4>539<table class="kv"><tr><td>Severity / status</td><td>info / fixed</td></tr><tr><td>References</td><td>CWE-362</td></tr><tr><td>Location</td><td>Tests/QyvoraWalletTests/TestSupport.swift:548</td></tr><tr><td>Found by</td><td>engine-tests</td></tr><tr><td>Fix commit</td><td>7b1e37e</td></tr><tr><td>Regression test</td><td>The whole QyvoraWalletTests target run repeatedly (see verification); MainnetPolicyTests.aMainNetworkIsRefusedByNameWhileMainnetIsOff and bothConditionsAreRequired, moved into the suite.</td></tr><tr><td>Note</td><td>A scoping trait (`MainnetPolicyScope`, an asynchronous readers–writer lock with writer preference) is applied to every suite of QyvoraWalletTests: `.changesMainnetPolicy` on MainnetPolicyTests (one test at a time, nothing else of the target meanwhile), `.readsMainnetPolicy` on the 23 others. The assertion of MultiChainModelTests that depended on the policy and the policy test of QyvoraCoreTests moved into MainnetPolicyTests.</td></tr></table>540<p>Root cause: `MainnetPolicy` is one value per process, configured by every wallet service of an internal build, and Swift Testing runs suites in parallel in one process. `MainnetPolicyTests` is serialized, but only with respect to itself: `MultiChainModelTests.chainsAreEnabledAndDisabled` and `BitcoinWalletTests.coldSigningRoundTripWithPSBT` each failed once (an unexpected or a missing `mainnetDisabled`) while a test of that suite had mainnet on; a test of QyvoraCoreTests switched the policy too. Observed about one run in five after this work added mainnet tests. No impact on the product: the application has one service. Impact on the audit: a failed engine test blocks the release gate, so a random failure would block a run for no defect.</p>541<p>Recommendation / fix: Give the tests that change the policy the process to themselves.</p>542<h4>QYV-AUD-008 — The memory probe of the benchmarks could report a high-water mark below the current resident size</h4>543<table class="kv"><tr><td>Severity / status</td><td>info / fixed</td></tr><tr><td>References</td><td>CWE-362</td></tr><tr><td>Location</td><td>Sources/QyvoraBenchmarks/SystemProbe.swift:213</td></tr><tr><td>Found by</td><td>engine-tests</td></tr><tr><td>Fix commit</td><td>6bc8b67</td></tr><tr><td>Regression test</td><td>QyvoraBenchmarksTests.ProbeTests.thePeakNeverTrailsTheCurrentSizeWhileTheProcessGrows and probesReturnPlausibleValues.</td></tr><tr><td>Note</td><td>`residentMemory()` returns the largest of the kernel&#x27;s mark and of every resident size the probe has read in the process, so `peak &gt;= current` holds for every answer and the peak never decreases; `rawResidentMemory()` exposes the kernel&#x27;s pair. The new test samples the probe for 0.6 s under growth and prints how often the raw pair was inverted.</td></tr></table>544<p>Root cause: `ProbeTests.probesReturnPlausibleValues` failed once in three runs on `memory.peak &gt;= memory.current`. The probe returned the two figures of `task_info(MACH_TASK_BASIC_INFO)` as they are. They are two counters, not a consistent pair: the resident size is computed when the call is made, the kernel&#x27;s high-water mark is kept separately and can trail it while other threads of the process fault pages in. Measured on the laptop (macOS 27, Apple silicon) with four tasks growing the process: the kernel&#x27;s mark was below the size read in the same call in about 0.07 % of 250 000 samples, by up to three pages (49 152 bytes). No security impact; a benchmark report could show a negative or understated peak increase.</p>545<p>Recommendation / fix: Report a real high-water mark, and test the probe under concurrent growth.</p>546<h4>QYV-BIN-003 — Built application declares iPad support although the project targets iPhone only</h4>547<table class="kv"><tr><td>Severity / status</td><td>info / fixed</td></tr><tr><td>References</td><td>MASVS-PLATFORM-3</td></tr><tr><td>Location</td><td>App/project.yml:62</td></tr><tr><td>Found by</td><td>binary-checks (rule QYV-BIN-003)</td></tr><tr><td>Fix commit</td><td>d301504</td></tr><tr><td>Regression test</td><td>binary-checks &#x27;Device family matches the project setting (iPhone only)&#x27; (emits QYV-BIN-003 when unmet)</td></tr><tr><td>Note</td><td>Fixed: `TARGETED_DEVICE_FAMILY: &quot;1&quot;` set in the target settings of App/project.yml (XcodeGen&#x27;s target default overrode the project-level value). Verification: The binary-checks runner was run standalone on an unsigned Debug build made on M3U96a at this revision: UIDeviceFamily in the built Info.plist is [1], the check passes and QYV-BIN-003 is no longer emitted. The Release archive of the full audit is the integrator&#x27;s run.</td></tr></table>548<p>UIDeviceFamily is [1, 2] in the compiled Info.plist while App/project.yml sets TARGETED_DEVICE_FAMILY to &quot;1&quot; at project level. The interface (privacy cover, review screens) has only been designed for iPhone; an iPad layout (split view, slide over, external display) is outside what was reviewed.</p>549<p>Recommendation / fix: Set TARGETED_DEVICE_FAMILY: &quot;1&quot; in the target settings of App/project.yml (the target-level default overrides the project-level value) and check the built Info.plist.</p>550<h4>QYV-APP-012 — No privacy manifest and no forced-update mechanism</h4>551<table class="kv"><tr><td>Severity / status</td><td>info / open</td></tr><tr><td>References</td><td>MASVS-PRIVACY-3</td></tr><tr><td>Location</td><td>App/project.yml:1</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Note</td><td>Still open. Half addressed on 2026-12-04 (e518577): the bundle now carries `PrivacyInfo.xcprivacy` (no tracking, no collected data, required-reason entries for UserDefaults CA92.1 and system boot time 35F9.1); verified in a built application (QYV-BIN-002 fixed). Not done: a mechanism to require an update when a vulnerable version must be retired (MASVS-CODE-2, MASTG-TEST-0383). Proposed disposition: Owner decision for the forced-update half. Proposed: accept for the internal builds (TestFlight builds expire after 90 days and are replaced by the publisher), and decide before a public release whether a signed end-of-support notice shipped with each version is wanted; a wallet without a server cannot be told remotely to stop.</td></tr></table>552<p>Root cause: the application bundle has no `PrivacyInfo.xcprivacy` although it uses required-reason APIs (`UserDefaults`), and it has no way to require an update when a vulnerable version must be retired (MASVS-CODE-2). Impact: App Store submission requires the manifest; without an update mechanism a known-vulnerable build keeps working. No data is collected, so the manifest declares no collection.</p>553<p>Recommendation / fix: Add `App/Resources/PrivacyInfo.xcprivacy` (no tracking, no collected data, a required-reason entry for UserDefaults, reason CA92.1). For updates: a wallet without a server can at least refuse to operate after a signed, user-visible end-of-support notice shipped with the next version; record the decision.</p>554<h4>QYV-AUD-001 — ML-DSA Montgomery reduction returns q (not a value in (-q, q)) at the single boundary input a = 2^31*q</h4>555<table class="kv"><tr><td>Severity / status</td><td>info / open</td></tr><tr><td>References</td><td>CWE-193 · MASVS-CRYPTO-1</td></tr><tr><td>Location</td><td>Sources/QyvoraMLDSA/MLDSAArithmetic.swift:62</td></tr><tr><td>Found by</td><td>property-tests</td></tr><tr><td>Regression test</td><td>security/tests/Tests/PropertyAuditTests/LatticeProperties.swift (MLDSAArithmetic.reductions)</td></tr><tr><td>Note</td><td>Still open. Unchanged: no code change is needed (boundary input not reachable); the property test pins the behaviour. Proposed disposition: accepted-risk proposed by the audit; the decision belongs to the owner.</td></tr></table>556<p>The comment of MLDSA.Field.montgomeryReduce states that for |a| &lt;= 2^31*q the result lies in the open interval (-q, q). The property test shows that for a = +2^31*q exactly the function returns q (congruent to 0, but outside the stated interval); for every other input of the domain -2^31*q &lt;= a &lt; 2^31*q the stated range holds (boundary values and 2 million random inputs per run, 50 million in full mode). This is the same boundary behaviour as the reference implementation of ML-DSA. Impact: none identified. The product 2^31*q can only be formed from the operand pair (-2^31, -q) or (2^31 is not representable), and every call site multiplies operands that are already reduced (|x| &lt; q or bounded NTT coefficients), so the input is not reachable; conformance (ACVP, Wycheproof) and differential tests show no divergence.</p>557<p>Recommendation / fix: Correct the comment to the half-open domain -2^31*q &lt;= a &lt; 2^31*q, or keep as is. No code change required. The property test pins the behaviour so that any change is noticed.</p>558<h4>QYV-BIN-001 — This build declares QYInternalMainnet (mainnet enabled for internal testing)</h4>559<table class="kv"><tr><td>Severity / status</td><td>info / open</td></tr><tr><td>References</td><td>MASVS-CODE-2</td></tr><tr><td>Location</td><td>App/Resources/Info.plist:47</td></tr><tr><td>Found by</td><td>binary-checks (rule QYV-BIN-001)</td></tr><tr><td>Note</td><td>Still open. Unchanged by design: the internal TestFlight build declares QYInternalMainnet (owner decision of 2026-12-04). The runner emits this entry for as long as the key is true; it is information, not a defect of the internal build. Proposed disposition: Owner decision; see QYV-APP-008 for the proposed build-setting guard. Close when a public build without the key is audited.</td></tr></table>560<p>Info.plist carries QYInternalMainnet = true. Together with the user switch it unlocks mainnet with the per-transaction limits of MainnetPolicy (Sources/QyvoraCore/Networks.swift). This is the owner&#x27;s standing decision of 2026-12-04 for the internal TestFlight build only; the cryptography has had no independent review.</p>561<p>Recommendation / fix: Before any public distribution: remove the key (or set it to false) and re-run the audit; the release gate should refuse a public build whose Info.plist contains it.</p>562<h4>QYV-SVC-014 — Balances, unspent outputs and fee estimates are taken from the first endpoint that answers</h4>563<table class="kv"><tr><td>Severity / status</td><td>info / open</td></tr><tr><td>References</td><td>CWE-345 · MASVS-NETWORK-1</td></tr><tr><td>Location</td><td>Sources/QyvoraNetworking/HTTP.swift:226</td></tr><tr><td>Found by</td><td>manual-review</td></tr><tr><td>Note</td><td>Still open. Unchanged by design (documented behaviour). Since 2026-12-04 the consequence for fees on unaudited mainnet is bounded by the fee ceilings (QYV-SVC-009), a PSBT signed cold no longer rests on amounts read from an endpoint or stated by the companion (QYV-SVC-008), and changing the endpoints needs a fresh authentication (QYV-APP-002). Proposed disposition: accepted-risk proposed by the reviewer (by design); the decision belongs to the owner.</td></tr></table>564<p>Design observation, documented behaviour. `firstSuccess` uses the first endpoint that answers; only the chain id and the nonce are compared across endpoints (`quorum`), and the Bitcoin chain check compares a self-reported genesis hash. A hostile endpoint can therefore show wrong balances or history, hide or invent unspent outputs (invented or mis-valued outputs give invalid signatures: BIP-143 commits to amounts), and bias fee estimates up to the ceilings (see QYV-SVC-009). It cannot obtain keys or make the wallet sign something the user did not review. There is no certificate pinning by design (endpoints are user-configurable); plain http is accepted only for localhost, .local, .onion and private IPv4 literals (`EndpointConfiguration.isAcceptable`), redirects are refused and the session is ephemeral without cookies or cache.</p>565<p>Recommendation / fix: Offer the user&#x27;s own node as the recommended configuration; cross-check balances and fee estimates between the configured endpoints and show a disagreement; for Bitcoin, verify block headers (proof of work) rather than the genesis hash alone if light-client assurance is wanted.</p>566<h4>QYV-SVC-067 — Litecoin MWEB serialization (flag 0x08) is not parsed: a previous transaction of that kind cannot be authenticated</h4>567<table class="kv"><tr><td>Severity / status</td><td>info / open</td></tr><tr><td>Location</td><td>Sources/QyvoraBitcoin/Transaction.swift:192</td></tr><tr><td>Found by</td><td>manual-review</td></tr></table>568<p>Observation. Litecoin&#x27;s MWEB upgrade (2022) added a serialization flag (marker 00, flag bit 3) for transactions that carry extension-block data, in particular the integrating transaction whose outputs are the coins pegged out of MWEB to ordinary addresses. `BitcoinTransaction(parsing:)` refuses such bytes (fail closed). Seen on one of the twelve Litecoin main-network vectors: the P2WPKH coin it spends was created by such a transaction. Consequences: none for payments from the wallet&#x27;s Litecoin account (BIP-84: BIP-143 commits to the amount, no previous transaction is needed, and the history comes from the indexer&#x27;s JSON); a BIP-44 Litecoin account, or a PSBT that must carry the previous transaction, could not spend a coin pegged out of MWEB. MWEB addresses (`ltcmweb1…`) are refused as recipients, which is correct for a wallet that cannot build MWEB outputs.</p>569<p>Recommendation / fix: Proposed: either parse the MWEB flag far enough to recompute the identifier (version, inputs, outputs, lock time — the extension data is not part of the txid), or keep the limitation and state it in the documentation of Litecoin support. No security impact as long as the Litecoin account is BIP-84.</p>570<h3>Tool results triaged as false positives</h3>571<table class="num"><thead><tr><th>Tool</th><th>False positives</th></tr></thead><tbody><tr><td>dontrust</td><td>2</td></tr><tr><td>mobsf</td><td>2</td></tr><tr><td>mobsfscan</td><td>10</td></tr><tr><td>semgrep</td><td>46</td></tr></tbody></table>572<p>Each one carries its justification in the results file (field &#x27;triage&#x27;).</p>573<h2>7. Limits, release gate and recommendations</h2>574<h3>Limits of this audit</h3>575<ul><li>Internal and automated: run by the project on its own machines with its own tools and tests. Nobody independent of the project has reviewed the cryptography, the protocol code or this audit engine.</li><li>Tests show the presence of defects, not their absence. Passing every vector and differential test does not prove an implementation correct on all inputs, nor secure against side channels.</li><li>Timing results are statistical evidence on one machine and one compiler build. Swift gives no constant-time guarantee; no power, electromagnetic or fault-injection analysis was made. Timing is measured on the macOS build of the package; the iOS application binary is only disassembled (branch counts), in full runs, not timed on a device.</li><li>Fuzzing uses the project&#x27;s own mutation engine with outcome-class feedback; it is not coverage-guided (the Xcode Swift toolchain refuses -sanitize=fuzzer). Parsers may have unreached states.</li><li>Static tools have limited Swift support (Semgrep: experimental, single-file; mobsfscan: 24 rules; Dontrust: 2 Swift-scoped rules). Their silence proves little; their coverage statements are quoted in this report.</li><li>MobSF analyses an unsigned archive statically: no dynamic analysis on a device, no jailbroken-device testing, no runtime instrumentation. Signed-build checks (entitlements as applied, provisioning) are not covered.</li><li>The framework assessments (OWASP MASVS/MASTG, Coinspect) are self-assessments by source review; MASVS is not a certification scheme and no laboratory was involved.</li><li>No real funds were used. Network code was tested with recorded and synthetic responses; live test-network checks are opt-in and outside the audit.</li><li>Post-quantum algorithms protect the local vault, backups, transfers and the separate identity. Bitcoin and Ethereum transactions rely on secp256k1 and are not quantum-resistant; nothing in this audit changes that.</li></ul>576<h3>Release gate</h3>577<p>Passing this gate means the automated internal audit found no blocking condition at this commit. It is not a certification, not a proof of security, and does not replace the independent cryptographic review required before any recommendation to use the wallet with real funds.</p>578<p>No blocking condition at this commit for this kind of run.</p>579<table class="small"><thead><tr><th>Warning</th><th>Detail</th></tr></thead><tbody><tr><td>checks not run</td><td>swift-audit: 1 check(s) recorded as NOT RUN</td></tr><tr><td>checks not run</td><td>ct-machine-code: 14 check(s) recorded as NOT RUN</td></tr><tr><td>checks not run</td><td>sanitizers: 2 check(s) recorded as NOT RUN</td></tr><tr><td>checks not run</td><td>binary-checks: 3 check(s) recorded as NOT RUN</td></tr><tr><td>checks not run</td><td>ct-machine-code-ios: 14 check(s) recorded as NOT RUN</td></tr><tr><td>open medium findings</td><td>3 open medium finding(s): QY-DONTRUST-2ac8743fd890, QYV-APP-007, QYV-CRY-003</td></tr></tbody></table>580<h3>Recommendations before production</h3>581<ul><li>Commission an independent cryptographic review of the engine (secp256k1, BIP-32/39, AES-GCM, ChaCha20-Poly1305, Argon2id, ML-KEM, ML-DSA, SLH-DSA) and of the vault and backup formats before any recommendation to use the wallet with real funds. Until then keep the mainnet gate and its per-transaction limits.</li><li>Resolve or have the owner explicitly accept every open finding of medium severity; the accepted-risk and false-positive dispositions proposed by the audit agents in the triage files need the owner&#x27;s confirmation.</li><li>Run the full audit (`Scripts/security-audit.sh --full --nodes &quot;…&quot;`) on the final commit with a clean working tree, and commit the reports it produces.</li><li>Set the processor&#x27;s data-independent-timing flag around secret operations (QYV-CRY-004, QYV-AUD-003); it needs a small C or assembly shim in the engine, an owner decision.</li><li>Repeat the audit after every compiler or Xcode update: the constant-time property of the compiled code depends on the optimiser (QYV-AUD-002).</li><li>Complete the application-level items left open for the integrator (auto-lock wiring, fresh authentication for sensitive actions, screenshot and keyboard protections, privacy manifest, removal of QYInternalMainnet from public builds).</li><li>Perform dynamic testing on a device (MASTG dynamic tests recorded as not assessed) and a signed-build verification before distribution.</li></ul>582<h2>8. Reproduction</h2>583<ul><li>Install the pinned tools: security/audit/install-tools.sh</li><li>Quick audit: Scripts/security-audit.sh — full audit: Scripts/security-audit.sh --full --nodes &quot;M3U96a M3U96b&quot;</li><li>Random campaigns are reproducible from the seeds recorded in SECURITY_AUDIT_RESULTS.json (QY_AUDIT_SEED / QY_AUDIT_REPLAY_SEED).</li><li>Tool versions are pinned in security/policies/tools.json; vector files in security/vectors/MANIFEST.json.</li></ul>584<footer>Generated by security/audit/report/generate.py from SECURITY_AUDIT_RESULTS.json — every figure comes from that file. Internal automated technical audit; not an independent certification; no claim of absolute security.</footer></body></html>
Files main
Menu

Theme