SPB Git

Repository Public

THREAT_MODEL.md 62.0 KB

# QYVORA threat model

Status: draft for version 1, 2026-12-04. This document describes a design and a code base that are still being built. Statements about the engine modules were checked against the sources at that date; statements about the vault, the identity, the cold mode, the Quantum Shield and the application layer describe the design of version 1 and are marked design or planned where the code does not exist yet. docs/STATUS.md is the register of what is implemented and tested.

The cryptographic engine of QYVORA is written from scratch, is not audited and is not certified. Until an independent audit is recorded, the application operates on test networks only (Bitcoin Testnet and Signet, Ethereum Sepolia). The gate is MainnetPolicy.auditCompleted in Sources/QyvoraCore/Networks.swift, which is false.


# 1. System summary

QYVORA is a non-custodial iOS wallet for Bitcoin and Ethereum (ether and ERC-20 tokens). Keys are generated and kept on the device. There is no QYVORA server, no account and no telemetry: the only network traffic is the wallet querying public blockchain endpoints (Esplora-compatible REST servers for Bitcoin, JSON-RPC nodes and a Blockscout-compatible indexer for Ethereum, a price API), all of which the user can replace with their own.

Three families of keys exist and must not be confused:

Family Algorithms Purpose Who decides the algorithm
Transaction keys secp256k1 ECDSA (Bitcoin, Litecoin, Dogecoin, Bitcoin Cash, Ethereum and the other EVM networks, TRON), BIP-340 Schnorr (Bitcoin Taproot), Ed25519 (Solana) Authorise spending on chain The blockchain consensus rules. QYVORA cannot change them.
Vault keys 256-bit symmetric keys, AES-256-GCM, HKDF, Argon2id, PBKDF2 Protect secrets at rest on the device and in backup files QYVORA
Quantum Identity keys ML-DSA-87 (optionally SLH-DSA-SHAKE-256f), ML-KEM-1024 Sign and encrypt device-to-device transfers and backups between the user's own devices QYVORA

The Quantum Identity never signs a blockchain transaction and is never derived from, or mixed with, the recovery phrase of the transaction keys.

Multi-chain upgrade (2026-12-05). The wallet now also covers six more EVM networks (Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche), three more UTXO coins (Litecoin, Dogecoin, Bitcoin Cash), Solana and TRON, each with its test network. The sections written for Bitcoin and Ethereum apply to them unless section 5.14 says otherwise; section 5.14 lists what is specific to each family. The upgrade added one more from-scratch primitive, Ed25519 (field arithmetic modulo 2^255 − 19, the Edwards group, scalar arithmetic, RFC 8032 signing, strict verification, SLIP-0010 derivation), and from-scratch encoders and decoders for Solana messages, TRON protobuf transactions, CashAddr and the legacy and fork-id signature hashes. All of it is unaudited by an independent party, like the rest of the engine.

# 2. Assets

# Asset Confidentiality Integrity Availability
A1 Recovery phrase (BIP-39 entropy) and optional BIP-39 passphrase Critical: disclosure is loss of all funds Critical Critical: loss without a backup is loss of funds
A2 Derived private keys and BIP-32 chain codes (in memory while signing) Critical Critical Recomputable from A1
A3 Vault master key and its wrapping slots Critical Critical Critical
A4 Master password, PIN High — Loss of every slot at once means recovery from A1 only
A5 Quantum Identity private keys High High Regenerable (a new identity)
A6 Extended public keys, addresses, balances, history, labels Privacy; an extended public key also matters for quantum exposure (section 5.4) Medium Recomputable
A7 Transaction intent: recipient, amount, fee, calldata, chain — Critical —
A8 Backup files and transfer payloads Protect A1, A3, A5 Critical High
A9 The application binary and its build chain — Critical —
A10 Endpoint configuration — High Medium

# 3. Trust boundaries

  1. Device hardware and iOS. The Secure Enclave, the Keychain, Data Protection, the system random generator, the system cryptography used for the vault AEAD and for PBKDF2, the biometric subsystem and the app sandbox are trusted. QYVORA cannot defend against a failure of this layer (section 5.2).
  2. The QYVORA process. Everything inside the process is trusted with secrets while the vault is unlocked. The from-scratch engine runs inside this boundary on the application processor.
  3. The network. Nothing received from the network is trusted. Endpoints are untrusted data sources and untrusted relays.
  4. Other applications and the user interface surface. The pasteboard, the screen, the camera input (QR codes), notifications, the share sheet and files handed to other applications cross the process boundary.
  5. The build chain. Source repository, compiler, signing identity and distribution channel.
  6. Other devices of the user. A second device taking part in a transfer, or acting as the offline signer in cold mode, is a distinct trust domain reached through an authenticated channel (QR codes or files).

# 4. Adversaries

Adversary Capabilities assumed
T — thief or finder Physical possession of a locked or briefly unlocked phone; no knowledge of the secrets
F — forensic attacker Physical possession, laboratory tools, exploits against the device, time
M — malware / compromised OS Code execution on the device at the same or a higher privilege than QYVORA
N — network attacker Observes or alters traffic; controls DNS or a network path
E — malicious endpoint Operates an Esplora server, a JSON-RPC node, an indexer or the price API that the wallet queries
Q — quantum attacker A future fault-tolerant quantum computer large enough to run Shor's algorithm against 256-bit elliptic curves; may have recorded ciphertexts and public data earlier
C — cryptanalyst Classical cryptanalysis of the primitives; exploitation of implementation bugs
S — supply-chain attacker Tampers with source, toolchain, signing or distribution
O — observer Sees the screen (shoulder surfing, camera)
X — coercer Forces the user to unlock or to sign

# 5. Threats

Each threat gives a description, the impact, the mitigations in QYVORA and the residual risk.

# 5.1 Stolen or lost iPhone (T, F)

Description. The attacker holds the device. It may be locked, or unlocked for a short time (snatched in use).

Impact. Disclosure of A1–A5 means theft of funds. Loss of the device without a backup of the recovery phrase means loss of funds.

Mitigations (design of the vault, version 1).

  • Secrets are stored only as vault records sealed with AES-256-GCM under subkeys derived from a random 256-bit master key. The master key is never stored in clear; it is wrapped in independent slots:
    • Master password slot. The key-encryption key is $\mathrm{KEK} = \mathrm{HKDF}\big(\mathrm{Argon2id}{\text{engine}}(pw, salt) ,\Vert, \mathrm{PBKDF2\text{-}HMAC\text{-}SHA512}{\text{system}}(pw, salt)\big)$. An offline guess costs at least one memory-hard Argon2id evaluation and one PBKDF2 evaluation.
    • Device slot. A random key held in the iOS Keychain with kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly and an access control bound to the current biometric set (biometryCurrentSet): it is released only on this device, only while a passcode is set, only after a successful biometric match, and it is invalidated when the enrolled biometrics change. It is not included in device backups and does not synchronise. Optionally the key is wrapped once more by a P-256 key that never leaves the Secure Enclave.
    • PIN slot. A PIN has too little entropy to resist an offline search, so it never derives a key on its own: it unlocks only in combination with a device-bound Keychain secret, with an attempt counter and escalating delays.
  • Auto-lock after inactivity and when the application goes to the background; re-authentication before every signature and before any export of a secret; the app-switcher snapshot is masked.
  • Secrets are zeroized after use (SecureMemory.zero, built on memset_s).

Residual risk.

  • A weak master password remains searchable offline by an attacker who extracted the vault file. The combiner raises the cost per guess; it does not create entropy.
  • The device slot is exactly as strong as the Keychain, the Secure Enclave and the device passcode. An attacker who knows or guesses the device passcode can, on iOS, enrol new biometrics; biometryCurrentSet then invalidates the item (the slot is lost, not opened), but other passcode-level attacks on the operating system are outside QYVORA's control.
  • The PIN attempt counter is enforced by application code. An attacker with code execution on the device (5.2) can bypass a software counter; the remaining barrier is then the device-bound Keychain secret.
  • A phone snatched while the vault is unlocked exposes whatever the session allows until auto-lock. Re-authentication before signing and export limits this to information disclosure (balances, addresses).
  • The optional Secure Enclave wrap uses P-256, which is not quantum-resistant. It is an additional layer around a key that already requires the Keychain; it does not weaken the slot, and it is not counted as post-quantum protection.

# 5.2 Compromised operating system, jailbreak, malware (M, F)

Description. The attacker executes code with the privileges of QYVORA or of the kernel: a jailbroken device, a kernel exploit, a malicious configuration profile combined with an exploit, a compromised toolchain on the device.

Impact. Total. While the vault is unlocked the master key and decrypted secrets are in process memory; the attacker can read them, read the screen, inject touches, replace the recipient before display and defeat every application-level counter.

Mitigations. Limited by nature.

  • Minimised exposure window: secrets are decrypted on demand and zeroized; the vault auto-locks.
  • No secret is written to logs, analytics, crash metadata or the pasteboard by the application (design rule; the engine modules never print key material).
  • Planned: a best-effort integrity warning when common signs of a jailbreak are present. Such checks are heuristics that a capable attacker bypasses; they inform the user and are not a security control.
  • Cold mode (5.12) keeps signing keys on a device that never connects to a network, which removes the remote part of this threat for that device.

Residual risk. Not defended. A wallet running on a compromised operating system cannot protect its keys. This is stated in section 6.

# 5.3 Network attackers and malicious or lying endpoints (N, E)

Description. Endpoints supply everything the wallet does not compute: balances, unspent outputs, history, nonces, fee estimates, token metadata, prices; and they relay signed transactions. An endpoint or a network path can lie, withhold or delay.

Attack Impact
Wrong balance or history (inflated, hidden, stale) The user is misled: accepts a payment that did not happen, or believes funds are gone
Fabricated unspent outputs Transactions that cannot confirm; with a wrong input amount, fee overpayment (5.12)
Censored or silently dropped broadcast Payment not made while the wallet reports success
Fee manipulation Overpayment, or a transaction stuck by an underestimated fee
Wrong chain (mainnet answer for a testnet wallet, or a fork) Signature valid on an unintended chain; misleading state
Wrong nonce (Ethereum) Stuck transaction, or replacement of a pending one
Wrong token metadata (decimals, symbol) Amount displayed with the wrong scale
Traffic observation The endpoint learns which addresses belong together and the client IP address

Mitigations in the code today (Sources/QyvoraNetworking).

  • Transport: HTTPS is required; cleartext HTTP is accepted only for hosts that look local or private or for .onion hosts (EndpointConfiguration.isAcceptable). The session is ephemeral, without cookies, cache or stored credentials, sends no identifier, and does not follow redirects (URLSessionTransport).
  • Transactions are built, hashed and signed locally. An endpoint never sees a private key and cannot change what is signed. The chain id is part of the signed EIP-1559 payload, so a signature is not valid on another chain. The transaction hash is computed locally and compared with what the endpoint returns.
  • Ethereum chain check: EthereumRPC.verifyChain asks every configured endpoint for eth_chainId; all those that answer must agree with each other and with the expected constant. The same agreement rule (quorum) is used for the account nonce.
  • Bitcoin chain identity: EsploraClient.verifyChain fetches the hash of block 0 from every configured endpoint and compares it with the constant of the expected network (BitcoinNetwork.genesisHash); an endpoint serving another chain is an error.
  • Broadcast goes to every configured endpoint, and succeeds if at least one accepts the transaction or already knows it.
  • Fee data from Ethereum endpoints is bounded: a base fee or a priority fee above 10 000 gwei is rejected as invalid. Bitcoin fee estimates that are not finite and positive are discarded.
  • ERC-20 token decimals are read on chain before a token is used, and token balances reported by the indexer are re-read on chain before display (design rule stated in the sources).
  • Strict parsers: RLP rejects non-canonical encodings and trailing bytes; addresses must carry a valid checksum (Base58Check, Bech32/Bech32m, mixed-case EIP-55).
  • Every endpoint is user-editable, so a user can point the wallet at their own node.

Limits of these mitigations, stated precisely.

  • The agreement rule is lenient: endpoints that fail to answer are ignored, so if only one answers, that one decides. Agreement between endpoints that answer is not a proof: several endpoints can share one backend or be operated by one party.
  • Balances, unspent outputs, history, gas estimates and fee data are taken from the first endpoint that answers, not from an agreement between endpoints. QYVORA is not a light client: it does not verify block headers, proof of work, Merkle inclusion proofs or Ethereum state proofs.
  • The comparison of the Bitcoin genesis hash with the expected constant exists in the test suite; the application-level check when an endpoint is configured is planned.
  • A cap on Bitcoin fee rates and a confirmation prompt on unusually high fees are planned in the transaction builder.
  • Cleartext HTTP is allowed only for localhost, .local, .onion and IPv4 literals in the loopback and private ranges; the host must parse as an IPv4 literal, so a public name that merely begins with such a prefix is refused. A local network attacker can still observe or alter that cleartext traffic.

Residual risk. A lying endpoint can mislead the user about state (balances, confirmations) and can censor. It cannot forge a signature, change the recipient or the amount of a transaction the user reviewed, or move funds. Users who need verified state must run their own node. Network privacy (address clustering, IP address) is not protected unless the user routes traffic through their own node or Tor.

# 5.4 Quantum attackers (Q)

Detailed analysis is in docs/QUANTUM_RESISTANCE.md. Summary:

Attack Target Impact Mitigation in QYVORA Residual risk
Harvest now, decrypt later Backup files, device-to-device transfers recorded today Later recovery of A1 Backups are protected by symmetric cryptography under a password-derived key (no public-key step). Transfers use a hybrid KEM: X25519 and ML-KEM-1024, both shared secrets fed to HKDF; they are signed with ML-DSA-87 A weak backup password stays weak. ML-KEM is young and the implementation is unaudited; the hybrid protects against a classical break of either component, and against a quantum attacker only through ML-KEM
Shor against secp256k1 and Ed25519 Any public key that has been revealed: on chain, in the mempool, through an extended public key, through a signed message. A Solana address is the Ed25519 public key itself, and an account-based address (EVM, TRON) reveals its key at the first outgoing transaction: for these families there is no "unexposed" state to preserve Recovery of the private key, theft of funds None at the cryptographic level: the signature scheme is fixed by the chains. QYVORA reduces exposure: fresh addresses, no address reuse, hashed output types for long-term funds, exposure metrics, migration guidance Not defended once a key is exposed and a sufficiently large quantum computer exists. The window between broadcast and confirmation cannot be closed by a wallet
Grover against symmetric keys and hashes AES-256, HKDF/HMAC-SHA-256, SHA-256, Keccak, Argon2id/PBKDF2 outputs Quadratic speed-up of exhaustive search 256-bit keys throughout; 256-bit or longer hash outputs for security-relevant uses Considered adequate. HASH160 (160 bits) is fixed by Bitcoin and has a smaller margin

An extended public key (A6) deserves a specific note: with a BIP-32 extended public key an attacker can derive every non-hardened child public key without any on-chain exposure. A quantum attacker holding an extended public key therefore sees all public keys of that account. QYVORA queries endpoints by address, not by extended public key, and treats the export of an extended public key as a sensitive action.

# 5.5 Classical cryptanalysis and implementation bugs in unaudited code (C)

Description. Either a primitive is weaker than believed, or — far more likely — the from-scratch implementation is wrong: an arithmetic bug at a rare carry, a missing validation, a wrong constant, a parsing flaw, a non-constant-time path.

Impact. From wrong addresses (funds sent to an unspendable destination) to key recovery (biased nonces, faulty signatures) to loss of confidentiality of the vault.

Mitigations.

  • Conformance testing against published vectors: NIST ACVP vectors for ML-KEM, ML-DSA, SLH-DSA, SHA-2, SHA-3/SHAKE and AES-GCM; RFC vectors for HMAC, HKDF, PBKDF2, Argon2, ChaCha20-Poly1305, RFC 6979; the BIP vectors for BIP-32, BIP-39, BIP-173/350, BIP-340. Differential tests against independent implementations (CryptoKit is used in tests only, as an oracle). Negative tests: malformed keys, ciphertexts and signatures must be rejected without a crash. Results are reported in docs/STATUS.md, not here.
  • Defence in depth for the vault. The secrets at rest are not protected by the unaudited code alone:
    • the default AEAD for vault records is the system AES-256-GCM (CryptoKit); the engine's AES-256-GCM is the same algorithm and is cross-checked against it at start-up; a mismatch stops the application before any secret is processed;
    • the password slot combines the engine's Argon2id with the system PBKDF2-HMAC-SHA512, so a flaw that makes the engine's Argon2id cheap or predictable leaves the cost of a guess at least at the system PBKDF2;
    • randomness comes only from the system generator.
  • Ed25519 (added 2026-12-05, signs Solana transactions): RFC 8032 and SLIP-0010 vectors, Wycheproof, the ed25519-speccheck edge cases, byte-identical keys and signatures against libsodium, OpenSSL, ed25519-dalek and an integer transcription of RFC 8032, verification verdicts identical to ed25519-dalek verify_strict (the rule Solana validators apply) on adversarial inputs, field, scalar and group arithmetic against Python integers. Its nonce is deterministic and every signature is verified before it is returned.
  • Deterministic nonces: ECDSA uses RFC 6979; BIP-340 signing derives its nonce from the key, the message and auxiliary randomness as the BIP specifies, and verifies each signature before returning it. ML-DSA and SLH-DSA default to the hedged variants of their standards, which remain secure if the additional randomness is weak.
  • Strict input validation on every decoder; no fatalError on attacker-controlled input is a rule of the code base.
  • The mainnet gate (section 7).

Residual risk. High until an independent audit. Tests show the absence of the bugs that were tested for. There is no defence in depth for transaction signatures: a faulty secp256k1 or Ed25519 implementation has no second line (the design mitigations are RFC 6979, low-s normalisation, verification after signing for Schnorr, and differential tests). The combiner does not help against a flaw that leaks the password (for example through a side channel), only against one that weakens the derived key.

# 5.6 Memory extraction (F, M)

Description. Secrets are recovered from where they transiently live rather than from the vault: RAM (cold boot, hardware probing, debugger), crash dumps, logs, swap, screenshots and screen recordings, the app-switcher snapshot, the pasteboard, keyboard caches, notifications, backups of application data.

Impact. Disclosure of A1–A5.

Mitigations.

  • Temporary secrets in the engine are overwritten with memset_s (SecureMemory.zero); the ML-DSA workspace that holds secret polynomials is wiped in its destructor; sponge states that absorbed secrets expose wipe(); Argon2 erases its memory matrix before returning.
  • No key material is logged or printed (rule of the code base).
  • The app-switcher snapshot is masked; the vault locks when the application goes to the background (design).
  • Implemented (2026-12-04): the recovery words and a password shown in clear are hidden while the screen is being captured or mirrored, and a screenshot of the phrase is reported after the fact; the recovery phrase is never placed on the pasteboard; every value copied by the user (addresses included) is placed on the pasteboard as a local-only item with an expiry; secret entry fields disable autocorrection, and keyboard extensions are refused for the whole application.

Residual risk.

  • Zeroization in Swift is best effort. Array is a copy-on-write value type: a mutation of a shared buffer, a reallocation on growth, a temporary created by an expression such as a + b, or bridging to String/Data can leave copies that the code cannot reach. Value types on the stack and in registers (for example the 256-bit integers of the secp256k1 code) are not wiped. The recovery phrase is shown to the user as text, which implies String storage and rendering buffers outside the application's control.
  • iOS offers no supported way to prevent the user from taking a screenshot; the application can only react after the fact.
  • An attacker with physical access to a running, unlocked device and suitable hardware, or with kernel privileges, can read process memory. Not defended (5.2).
  • Crash reports generated by the operating system contain register and stack contents at the time of the crash. QYVORA sends none itself; whether the system shares them depends on the user's device settings.

# 5.7 Side channels (F, M, co-located code)

Description. Timing, cache access patterns, power consumption and electromagnetic emanation leak information about secret-dependent computation.

Impact. Recovery of private keys or of the vault key.

What the code does. The engine follows a source-level constant-time discipline for secret data:

  • secp256k1: complete addition and doubling formulas without exceptional cases; scalar multiplication by double-and-add-always over a fixed 256 iterations with a masked selection; Montgomery field arithmetic with masked final subtraction; no table indexed by a secret.
  • ML-KEM: no branch or memory index on secret coefficients; compression by multiplication and shift instead of a division instruction; branch-free implicit rejection (masked selection between $K'$ and $\bar K$). The compiled decapsulation path (K-PKE decryption and re-encryption, comparison, selection, transforms, sampling, encodings, Keccak) is in the machine-code check with a reviewed number of conditional branches per function; the only data-dependent ones test bytes expanded from the public seed (rejection sampling of the matrix).
  • ML-DSA: norm checks accumulate over all coefficients without early exit; branches in the rejection loop depend only on rejected candidates, which is the argument of the standard.
  • AES: no lookup table; the S-box is computed algebraically on eight bytes in parallel. GHASH reads its whole table in a fixed order with masks. ChaCha20 uses only additions, rotations and XORs; Poly1305 uses masked final reduction.
  • Tag and hash comparisons use a constant-time equality.
  • Ed25519 (Solana): field and scalar arithmetic with carries computed by bit arithmetic, complete unified addition, fixed 4-bit windows with a table read entirely under a mask, deterministic nonce (RFC 8032), verification of each signature before it is returned. The compiled functions of the secret path are in the machine-code check; every one of their conditional branches was read in the disassembly (two compiler versions) and tests a public value. Since finding QYV-AUD-006 the multiplication of the base point never adds the neutral element: with a plain table, scalars whose windows are zero were measurably distinguishable by their duration although neither the source nor the machine code had a secret-dependent branch or index.

What constant-time discipline in Swift can guarantee. Only that the source has no secret-dependent branch, memory index or variable-time operation that the authors are aware of.

What it cannot guarantee.

  • The Swift compiler and LLVM give no constant-time guarantee. An optimiser may turn a masked selection into a conditional branch, and the choice may change with the compiler version or the optimisation level.
  • The duration of some CPU instructions can depend on operand values on some processors. Since 2026-12-04 the engine sets the processor's data-independent-timing flag (PSTATE.DIT) around its operations on secrets and restores it afterwards (DataIndependentTiming, a forty-line C shim, finding QYV-CRY-004). The flag covers the instructions ARM and Apple list for it and nothing else; it was verified on Apple silicon Macs and is not read back on an iPhone by any test. The measurements of 2026-12-05 show that the flag matters: with the flag clear, the duration of Ed25519 field operations depends on their operands on an M5 Max core, and that of the scalar multiplication on an M4 Max core; with the flag set neither is detected (security/audit/review/ed25519-timing-2026-12-05.json). On a processor without the flag (hw.optional.arm.FEAT_DIT = 0) the engine cannot set it and nothing was measured.
  • Bounds checks, reference counting, allocation and copy-on-write add data-independent but hard-to-characterise behaviour; memory allocation patterns are not controlled.
  • Argon2id is data-dependent in its second half by design (that is the "d" part of Argon2id).
  • Signature verification and the handling of public data are deliberately not constant-time.
  • No countermeasure against power or electromagnetic analysis or fault injection (no masking, no blinding of scalars, no redundancy beyond verify-after-sign for Schnorr).

Residual risk. Remote timing attacks are unlikely to be practical for a wallet that signs on explicit user action and exposes no signing oracle to the network. A local attacker running code on the device, or with physical measurement equipment, is not defended. No binary-level constant-time verification has been done; it is part of the audit scope.

# 5.8 Failed or biased randomness

Description. The random generator returns predictable, repeated or biased output.

Impact. Predictable recovery phrase or master key (total loss); repeated AES-GCM nonce under one key (loss of confidentiality and authenticity for the affected records); biased signature nonces (key recovery).

Mitigations.

  • A single entropy source: the operating system generator (SecRandomCopyBytes), through SystemRandom.bytes. QYVORA implements no generator of its own, and the program stops if the system generator reports an error rather than continue with weak randomness.
  • Signature nonces do not depend on fresh randomness: RFC 6979 for ECDSA; BIP-340 nonces remain safe with zero auxiliary randomness; ML-DSA and SLH-DSA are hedged.
  • GCM nonces are 96 random bits per record; a subkey protects far fewer records than the bound of SP 800-38D for random nonces ($2^{32}$ invocations per key).

Residual risk. A silently defective system generator at the time the recovery phrase or the master key is created is not detectable by the application and is not defended. No statistical health test in an application can establish that a generator is unpredictable.

# 5.9 Vault corruption

Description. The vault file is damaged: interrupted write, storage fault, a bug in the application, a partial restore, or deliberate tampering.

Impact. Loss of access to funds if no recovery phrase backup exists (availability); with tampering, attempts to roll back or splice records (integrity).

Mitigations (design).

  • Versioned file format; every record is sealed with AES-256-GCM and its header (format version, record identifier, type, creation time) is authenticated as associated data, so a record cannot be moved to another identity or type without detection; a whole-file integrity tag detects truncation and the removal or reordering of records.
  • Atomic writes (write to a temporary file, flush, rename) and a copy of the previous version kept for recovery.
  • Independent wrapping slots: the loss of one slot (for example the Keychain item after a biometric change) does not lose the vault if another slot remains.
  • Key rotation: a password change re-wraps the master key; a master-key rotation re-encrypts every record.
  • The recovery phrase written on paper remains the ultimate recovery path, and the application insists on its verification at creation.

Residual risk. Rollback to the kept previous version is possible for an attacker who can write the application container (which already implies 5.2). Simultaneous loss of the current and previous files without a backup is loss of the vault. A user without a recovery phrase backup has no recourse; QYVORA has no server and cannot help.

# 5.10 Backup compromise

Description. An exported backup file, or the paper copy of the recovery phrase, falls into other hands: cloud storage, e-mail, a stolen computer, a photograph of the paper.

Impact. Offline attack on the backup password; with the paper phrase, immediate loss of funds.

Mitigations.

  • Exported backups are encrypted under a key derived from a backup password by the same combiner as the master password slot (engine Argon2id and system PBKDF2-HMAC-SHA512 into HKDF), then AES-256-GCM with an authenticated header. No public-key cryptography is involved, so there is nothing for Shor's algorithm to attack; a recorded backup is exposed to password guessing only.
  • Device-to-device transfer uses a hybrid KEM (system X25519 and engine ML-KEM-1024, both shared secrets into HKDF) and is signed by the sending wallet's Quantum Identity (ML-DSA-87, optionally also SLH-DSA-SHAKE-256f). The receiving user compares identity fingerprints on both screens.
  • The device slot and the PIN slot are bound to the device and are never part of an exported backup.

Residual risk. The strength of an exported backup is the strength of its password. The paper recovery phrase has no cryptographic protection unless the user sets a BIP-39 passphrase; its physical security is the user's responsibility. If fingerprints are not compared during a transfer, an active attacker in the channel can substitute their own identity.

# 5.11 Software supply chain (S)

Description. Malicious code enters through a dependency, the toolchain, the build machine, the signing identity or the distribution channel.

Impact. Total: a malicious build can exfiltrate keys.

Mitigations.

  • Zero third-party dependency. Package.swift declares no external package; Sources/ uses only the Swift standard library and system frameworks (Security for randomness in the engine; system cryptography where the vault design calls for it). Reference implementations appear only in tests.
  • Source history in a single repository with reviewed, atomic commits; secret scanning before publication.
  • The build machines never see user secrets: every user key is generated on the user's device from the system generator, and nothing is provisioned at build time.
  • Distribution through the App Store with Apple code signing.
  • Test vectors are committed with their source, revision and licence.

Residual risk. The Swift toolchain, Xcode, the iOS SDK and Apple's signing and distribution infrastructure are trusted. A user cannot check that an App Store binary corresponds to the published source: App Store binaries are re-signed and encrypted by Apple, and bit-for-bit reproducibility of the build is a planned objective for the unsigned archive only, not a property of version 1. A compromised developer signing identity or developer machine is not defended beyond ordinary operational security.

# 5.12 Transaction manipulation

Description. The user signs something other than what they intend.

Attack Mechanism
Address substitution A look-alike address supplied by a web page, a message or malware
Clipboard hijack Another application replaces the copied address before it is pasted
QR substitution A printed or displayed QR code is replaced; a QR code carries a different amount or chain
Blind signing of calldata The user approves contract calldata they cannot interpret (an unlimited token approval, for instance)
PSBT tampering in cold mode The online device, or whoever controls the channel, alters outputs, amounts, change or input data before the offline device signs
Change redirection The change output goes to an address that is not the wallet's
Fee inflation Input amounts are understated or outputs dropped so that the difference is paid as fee

Impact. Irreversible loss of the amount sent, or of a token balance through an approval.

Mitigations.

  • Local construction and local review: the confirmation screen is rendered from the exact bytes that will be signed (recipient, amount, fee, maximum total cost, network), never from what an endpoint or a QR code claimed. EIP1559Transaction.maximumCost gives the upper bound of what a transaction can spend.
  • Address validation by checksum: Base58Check, Bech32 for witness version 0 and Bech32m for version 1 and later, EIP-55 for mixed-case Ethereum addresses; an address for the wrong network is rejected.
  • Calldata: version 1 builds only ether transfers, ERC-20 transfer and ERC-20 approve. The decoder (ERC20.decodeCall) recognises exactly those two calls, rejects malformed encodings and flags the unlimited allowance value $2^{256}-1$. QYVORA 1.0 does not create contracts. Calldata that the decoder does not recognise is shown as such, and signing it is refused or requires an explicit warning (design).
  • Cold mode (design): the offline device decodes the unsigned transaction itself (EIP1559Transaction.decodeUnsigned for Ethereum, PSBT for Bitcoin), recomputes which outputs belong to the wallet from its own keys, and displays recipient, amount, change and fee from that decoding. For Bitcoin inputs it requires data that binds the input amounts: the full previous transaction for pre-Taproot inputs, or Taproot inputs whose signature hash commits to all input amounts (BIP-341). The signed result returns by QR code.
  • Re-authentication before every signature.

Residual risk.

  • Checksums detect typing and transmission errors, not a deliberately substituted valid address. If the user does not compare the recipient shown on the confirmation screen with an independent source, a substituted address is signed. EIP-55 is optional in practice: an all-lower-case Ethereum address has no checksum and is accepted.
  • QYVORA does not simulate contract execution. An approve or transfer to a malicious or broken token contract does what the contract code does.
  • Cold mode does not help if the offline device itself is compromised, or if the user confirms without reading.
  • Address poisoning (look-alike addresses planted in the history through dust or zero-value transfers) is mitigated only by never proposing recipients from history without full display (planned).

# 5.13 Shoulder surfing and coercion (O, X)

Description. Someone watches the screen while the recovery phrase, the password or the PIN is shown or typed; or someone forces the user to unlock and sign.

Impact. Disclosure of A1 or A4; forced transfer.

Mitigations. The recovery phrase is shown only on explicit request after re-authentication, with a warning; secret fields are masked; the app-switcher snapshot is masked; planned: concealment while the screen is captured or mirrored.

Residual risk. Observation by a person or a camera while a secret is displayed is not defended. Coercion is out of scope: version 1 has no duress PIN, no decoy wallet and no plausible deniability. A BIP-39 passphrase gives a separate wallet under the same words, but QYVORA does not present it as a defence against coercion and makes no claim about it. Biometric unlocking can be compelled physically.

# 5.14 Threats specific to the chains added on 2026-12-05

Source: the review registers security/audit/review/multichain-*.json and ed25519.json (entries with file and line, what one lying endpoint can do, replay protection), written by the audit extension of 2026-12-05. The findings quoted are in security/audit/findings/. This is an internal review.

Common to every family. The mainnet gate (build declaration and user switch) is one rule applied at every entry point of every family, and leaving the test networks needs a fresh authentication (QYV-SVC-080). Every main network has a value ceiling and a fee ceiling for an unaudited build; they are applied when a payment is prepared and again when it is signed, on the bytes to be signed, and review objects cannot be built or altered outside the service. A dollar ceiling allows ceiling / price units, so a price that is too low lifts it: no single source decides that price any more (QYV-SVC-087, corrected on 2026-12-05). A built-in dollar-pegged token is valued at no less than 0.90 USD and refused outside 0.50–2.00; every other token and every native coin with a dollar ceiling needs two independent sources agreeing within 5 %, the higher being used, and native coins keep their floors (QYV-SVC-082). Not covered: both sources lying low together about a token that is not pegged; a wrapped asset quoted at parity while worthless. Transactions are built locally; no family signs bytes or identifiers supplied by a server. Reads (balances, history, token descriptions, fee figures) are one endpoint's word in every family: a lying endpoint can mislead and censor; what it can make the wallet sign is bounded as described below.

EVM networks (Base, Arbitrum, OP Mainnet, Polygon, BNB Smart Chain, Avalanche and their test networks). One secp256k1 account serves the fourteen networks. A transaction is bound to its network by the EIP-155 chain identifier inside the signed type-2 payload, taken from the wallet's table and never from an endpoint; legacy transactions are not produced. Before use, every endpoint of a network must answer its chain identifier. A lying endpoint can show wrong balances, history and token descriptions, deny service, and raise fee figures up to fixed bounds (and up to the per-transaction fee ceiling on an unaudited mainnet build); it cannot change what is signed after review. On OP-Stack networks the L1 data fee is charged by the network outside the signed transaction: the wallet shows a quote with a margin of one quarter, counts it in its ceilings, refuses to proceed when the quote cannot be read, and cannot bound what the network finally charges (the interface must present the figure as an estimate, QYV-APP-082). A chain that reused a supported chain identifier could not be told apart.

UTXO coins (Litecoin, Dogecoin, Bitcoin Cash). Indexers. The wallet reads these chains through public Esplora, Blockbook and Bitcore instances. Each must serve the chain's identity block (genesis; block 661648 for Bitcoin Cash, whose genesis is Bitcoin's). After that, one indexer — the one announcing the highest tip — decides what is displayed: a lying or compromised endpoint can show a payment that does not exist, hide one, or report false confirmations (QYV-APP-061, open). It cannot obtain a signature the user did not review, cannot burn fees and cannot exceed the fee ceilings. Amounts. Dogecoin signatures do not commit to the amounts spent: before signing, every coin is checked against the raw transaction that created it (identifier recomputed); without that transaction nothing is signed (QYV-SVC-064). Bitcoin Cash (fork id) and Litecoin P2WPKH (BIP-143) signatures commit to the amount. Replay. Bitcoin Cash signatures carry SIGHASH_FORKID and are invalid on Bitcoin; Bitcoin SV and eCash share that fork id, so a payment of coins older than their splits (2018-11-15, 2020-11-15) can be replayed there. Since 2026-12-05 the wallet adds a coin created after the split when it holds one, which makes the transaction invalid on those chains; otherwise it warns and the service requires the acknowledgement (QYV-APP-062). Not covered: heights are the indexer's, and the ancestry of a coin is not examined. Litecoin and Dogecoin signatures are bound to outpoints that exist on one chain only; each coin has its own derivation path on main networks (test networks share coin type 1). Addresses. A legacy Base58 Bitcoin Cash address is also a Bitcoin address: accepted with a critical warning (QYV-SVC-065, QYV-APP-060); Litecoin's former 3… P2SH form is refused; SegWit addresses are refused on Dogecoin and Bitcoin Cash. Not covered. Litecoin MWEB (not parsed, QYV-SVC-067); Schnorr signatures on Bitcoin Cash (never produced, reported unsupported); cold signing for these coins (not offered).

Solana. A Solana address is the Ed25519 public key of the account: the key is public as soon as the address is shared, and Ed25519 gives no protection against a quantum adversary. Nothing in QYVORA makes Solana transactions post-quantum. Addresses have no checksum; a substituted or mistyped address is almost always valid, and addresses that are not curve points (program-derived: token accounts, program state) are valid too. The engine refuses known programs and recipients that exist and are not wallets, and warns on off-curve, new and first-time recipients; the comparison by the user is the control (QYV-APP-020, open). A transaction carries no cluster identifier and the account is the same key on mainnet-beta, devnet and testnet: its recent blockhash alone ties it to a cluster. A test endpoint that supplied a mainnet blockhash could obtain a mainnet-valid signature, past the mainnet gate and the limits; the wallet now asks mainnet-beta whether it knows the blockhash before a test transaction is prepared, signed or relayed, and an offline cold device can only warn (QYV-SVC-022). A signed transaction stays executable for about 150 blocks; the wallet signs a review once, re-sends the same bytes, refuses the same payment while one is pending, and declares expiry only on the unanimous answer of its endpoints (QYV-SVC-021, residual QYV-SVC-025). Endpoints are untrusted for the integrity of what is signed (transaction built locally, review checked against the decoded bytes, TransferChecked pins mint and decimals, rent and priority-fee ceilings of 0.01 SOL, limits computed from the bytes) but trusted, one at a time, for what is displayed, for availability, and for the list of Token-2022 extensions of a mint (a hidden transfer fee or hook can make the recipient receive less than shown). Transactions the wallet cannot decode entirely (unknown program, lookup tables, durable nonce) are blind: refused by default on a cold device and always on an unaudited mainnet build. The signatures come from the from-scratch Ed25519 of section 5.5; its side-channel status is in section 5.7.

TRON. A TRON transaction carries no chain identifier, and the wallet's TRON account is the same secp256k1 key on mainnet, Nile and Shasta. What ties a transaction to one network is its reference block (16 bits of height and 64 bits of block hash) and its expiration.

  1. A node supplies the reference block. A test-network node that hands out a main-network block would obtain a signature valid on mainnet. The wallet takes the reference from the agreement of every answering node and, on a test network, asks the main-network nodes whether they would accept it, when preparing and before signing. It signs nothing valid for more than 65 minutes (QYV-SVC-040, QYV-SVC-041). Not covered: a single reachable node; main-network and test endpoints lying together. An offline device cannot make the check at all: while the build is unaudited it reviews a test-network TRON or Solana transaction but does not sign it (QYV-APP-040, corrected on 2026-12-05); a device that is online signs after the check.
  2. Server-built transactions. The wallet never signs bytes or an identifier from a node: raw_data is encoded locally and the identifier is SHA-256 of those bytes. A received payload must be the canonical encoding of what it decodes to.
  3. Fee griefing. Energy and price figures come from one node; the signed fee limit is capped at 100 TRX at prepare and at sign, so a lying node can make a transfer fail and burn at most its fee limit.
  4. Single-answer reads. Balances, account state, TRC-20 metadata of custom tokens, status and history are one node's (or the TronGrid index's) word (QYV-SVC-044, open).
  5. Cross-family addresses. The 20 bytes of a TRON address are a valid EVM address; the wallet accepts the Base58Check form only and refuses the hexadecimal and 0x forms, the zero address and the mainnet burn address.
  6. Blind signing. Only TRX transfers and TRC-20 transfer/approve are decoded; anything else needs an explicit flag and is refused on an unaudited mainnet.
  7. TronGrid API key. Kept in the vault, sent as a header to trongrid.io over https only; never in a URL, a log, the profile or a snapshot (tests and three static rules).

Shared wallet machinery. In cold mode the cold device decodes what it shows from the payload alone; Solana and TRON payloads name no network, so their network label is the online device's word — which is why an offline device of an unaudited build does not sign them. Every critical warning of a review, hot or cold, must be acknowledged by its identifier or the service does not sign (QYV-APP-102). The watch-only package is public and unauthenticated: a substituted package makes the companion show another party's addresses, and deposits are lost. Both devices now show the code of the package and the first address of each account, and the import requires the last group of the code as the signing device shows it; the service refuses a code that is not the package's (QYV-APP-080, corrected on 2026-12-05). What remains is the user's comparison: sixteen bits are typed, sixty-four are compared by eye, and the package is still not signed. A payment request (QR code, link) is attacker-controlled: it is parsed with bounds, refused as a whole when the wallet cannot honour it, bound to the network and asset it names, and it only ever fills the visible form (QYV-APP-101). The profile file is not authenticated; the vault's account binding (version 2: every family) repairs replaced account data at unlock and is what signatures are checked against. Persisted chain snapshots are display data, validated and tied to account, network and endpoints; payments re-read chain state (QYV-SVC-084).

Entry points added with the application screens. (1) Persisted coin synchronization (utxo-sync-<network>.json): unauthenticated public data; a local writer can forge a self-consistent record. It is validated like an indexer answer against the account's own addresses, displayed flagged as the previous session's, and never used to prepare or sign; no other session state comes from it (QYV-SVC-100). (2) Sweep of exposed coins (Litecoin, Dogecoin, Bitcoin Cash): destination derived by the service on the internal chain and verified again before signing (QYV-SVC-101); subject to the ceilings of an unaudited build as a whole — no partial sweep. (3) Fee quotes: estimates from one endpoint, behind the mainnet gate, never trusted by a later step. (4) Token descriptions: symbol and decimals of a payment come from the wallet's list or from what this session read on chain, on every family (QYV-SVC-084, 102, 103); values passed by the interface are not used. (5) Profile indices: bounded at decode (QYV-SVC-104); the profile remains unauthenticated (QYV-SVC-011). (6) acceptUnverifiedAmounts: a consent the interface must collect separately (QYV-APP-100); it lifts no ceiling and nothing on an unaudited mainnet build.


# 6. Out of scope / not defended

QYVORA does not defend against the following, and no documentation or interface text may suggest otherwise:

  1. A compromised operating system, a jailbroken device, kernel-level malware, or a malicious keyboard or accessibility tool with access to the application's input and screen.
  2. Hardware attacks on an unlocked or running device, fault injection, power and electromagnetic analysis.
  3. Flaws in iOS, the Secure Enclave, the Keychain, the system random generator or the system cryptography.
  4. A quantum attack on a secp256k1 public key that has been exposed. The Bitcoin and Ethereum networks are not quantum-resistant, and no wallet can make them so.
  5. Loss of the recovery phrase, of every unlock credential, or of the device without a backup. There is no server-side recovery.
  6. Theft or copying of the paper recovery phrase.
  7. A weak master or backup password.
  8. Lying endpoints as far as displayed state is concerned: QYVORA is not a light client and verifies no block or state proof.
  9. Network-level privacy: endpoints see the queried addresses and the client IP address.
  10. Malicious or defective smart contracts and tokens; phishing sites; social engineering; a recipient address the user did not verify.
  11. Coercion, and observation of the screen while secrets are displayed.
  12. Compromise of the build toolchain, of Apple's signing and distribution, or of the developer's signing identity.
  13. Blockchain-level events: reorganisations, consensus failures, protocol changes, fee market behaviour.
  14. Errors in the unaudited from-scratch engine that the test suite did not reveal. This is the reason for section 7.

# 7. Audit before mainnet

The engine implements more than twenty primitives from their specifications. Passing the published test vectors is necessary and is not sufficient: vectors do not exercise rare arithmetic paths, do not measure side channels and do not review design.

Policy. MainnetPolicy.auditCompleted is false; mainnetEnabled derives from it; while it is false the application offers only Bitcoin Testnet, Bitcoin Signet and Ethereum Sepolia. The flag may be set only by a release that documents a completed independent audit.

Scope expected of that audit.

  1. Correctness of every primitive against its specification, including the paths that vectors rarely reach (carries and reductions in the 256-bit and lattice arithmetic, rejection branches, boundary lengths, counter wrap in the stream ciphers and modes).
  2. Validation of every untrusted input: public keys, signatures, ciphertexts, addresses, RLP, transactions, PSBT, QR payloads, backup files, endpoint responses.
  3. Constant-time behaviour at the level of the compiled binary for the supported compiler versions and devices, and the question of data-independent timing on Apple silicon.
  4. Zeroization and the lifetime of secrets in memory.
  5. The vault: file format, key hierarchy, the password combiner and its parameters, slot semantics, nonce management, rollback behaviour, the start-up cross-check.
  6. Transaction construction and signature hashing for every supported script and transaction type, including cold-mode flows.
  7. The hybrid KEM, the transfer protocol and the use of the Quantum Identity.
  8. Use of platform security: Keychain attributes, access control flags, Secure Enclave usage, file protection, pasteboard and screen handling.
  9. The networking layer as an untrusted-input surface.

After the audit. Findings and their resolution are published; the audited commit is identified; the flag changes in a tagged release. An audit reduces risk and is not a certification: QYVORA holds no FIPS 140 validation and claims none, and the use of algorithms standardised in FIPS 203, 204 and 205 does not make the implementation a validated module.

# 8. Audit status and residual risks

State on 2026-12-05, after the multi-chain upgrade. The last committed full run (below) was made on commit 36bfa4c, before the upgrade. The audit engine was then extended to the new code (Ed25519, Solana, TRON, Litecoin / Dogecoin / Bitcoin Cash, the EVM networks, the multi-chain service): vectors, differential tests against independent libraries, property tests, 43 more fuzz targets, timing and machine-code checks for Ed25519, framework items with evidence. That work found and fixed defects (among them a cross-network replay on Solana and on TRON, dollar ceilings lifted by a price near zero, a timing difference in the Ed25519 base-point multiplication, an expanded key left in a hash state) and first left two high findings open — QYV-SVC-087 (token ceilings rested on one price) and QYV-APP-080 (unauthenticated watch-only package). Both were corrected in the code on the same day, and the application screens of the new chains, which no area of the audit had read, were reviewed: that review found and corrected two more defects (QYV-APP-101, payment requests; QYV-APP-102, critical warnings not acknowledged on the cold device) and turned the acknowledgement of critical warnings and the comparison of the watch-only package into rules of the service, with static checks that run at every audit. Two low findings of the service stay open (QYV-SVC-025, QYV-SVC-044). None of this is an audit result yet: the reports below are regenerated by the next full run on the merged application; until then they describe 36bfa4c.

Section added on 2026-12-04 with the permanent audit engine. It records what kind of audit exists, where its results are, and which risks remain whatever its results. It contains no test count and no result: those are generated by a run and belong to the reports.

# 8.1 What exists

An internal, automated technical audit lives in security/ and re-runs with one command, ./Scripts/security-audit.sh (security/README.md describes it). It combines static analysis (Semgrep with project rules, mobsfscan, Gitleaks on the tree and on the history, Dontrust), analysis of the compiled application (MobSF run locally, binary checks), a cryptographic audit (official vectors, Wycheproof, differential tests against independent implementations, property tests, fuzzing, statistical timing tests) and three assessments against public references (Coinspect Wallet Security Framework, OWASP MASVS v2 with the MASTG iOS tests, and the wallet audit of the owner's brief).

It is not the independent audit that section 7 requires:

  • it was written and run by the same project that wrote the code;
  • it is not a certification, and no certification is claimed;
  • no independent cryptographic review has taken place yet.

MainnetPolicy.auditCompleted therefore stays false. Section 7 is unchanged, with one amendment decided by the owner on 2026-12-04: an internal TestFlight build may declare QYInternalMainnet, and the user of that build may then switch mainnet on, to test with small amounts under per-transaction limits (MainnetPolicy.limits). A public build does not offer mainnet.

Last committed audit run. 2026-12-05T14:31:23Z · QYVORA 1.0.0 (build 3) · commit b60686dbecb2 · full run on MacBookPro-de-simon-pierre-2.local · release gate: passed (0 blocking condition(s), 6 warning(s)) · findings: 16 open (0 critical, 0 high), 76 fixed, 13 accepted risk. Internal automated technical audit — not an independent certification; no independent cryptographic review yet. Details: security/reports/SECURITY_AUDIT_REPORT.md.

# 8.2 Where the results are

Document Content
security/reports/SECURITY_AUDIT_RESULTS.json Machine-readable results of the last committed run: version, commit, date, tool versions and status (RUN / NOT RUN / FAILED), test counts, findings.
security/reports/SECURITY_AUDIT_REPORT.md · .html · .pdf The audit report: methodology, scope and real coverage, results, findings by severity, fixes, residual risks, limits, recommendations.
security/reports/CRYPTOGRAPHIC_VALIDATION_REPORT.pdf Vector, differential, property, fuzzing and timing results per algorithm and parameter set.
security/audit/findings/ The findings register, one file per finding (root cause, impact, severity, CVSS where applicable, status, fix commit, regression test).
security/policies/ Severity policy, release gate, framework assessments with their evidence.
SECURITY.md How to report a vulnerability; supported versions; the status in plain words.

Every figure in those reports comes from the JSON written by the run. A tool that could not run is reported as NOT RUN with the reason.

# 8.3 Residual risks that no result of this audit removes

These follow from the threats of section 5 and from the assessments in security/policies/. Open findings and their current status are in the register; this list is the standing part.

  1. Unreviewed cryptography on the signing path (5.5). Vectors, differential tests and fuzzing find many defects and prove the absence of none. Until an independent review, a defect in secp256k1 arithmetic, nonce derivation, BIP-32 or address encoding could cost funds. The vault is better placed (system AEAD by default, two independent key-derivation implementations combined).
  2. Side channels (5.7). Swift gives no constant-time guarantee. The processor's data-independent-timing flag is set around operations on secrets and the compiled code is checked for new branches at every audit; the audit's timing tests remain statistical evidence on particular machines and compiler versions, not proof, and a difference they report may come from the measurement rather than from the engine (QYV-AUD-005 was such a case: the harness was corrected and a control now watches for it); there is no power or electromagnetic analysis.
  3. Secrets in memory (5.6). On the signing path the phrase, the seed and the derived keys are bytes erased in place after each signature. Passwords, PINs, the recovery words where they are displayed or typed, the scalars of secp256k1 on the stack and the scratch of the hash functions still pass through values that the language may copy and that cannot be wiped (QYV-CRY-003, open).
  4. Compromised device (5.2). The application warns when it sees the files of a jailbreak or an attached debugger, before a recovery phrase is shown or typed; it has no tamper resistance and the checks can be hidden from it. On such a device the unlocked master key and the Keychain items are exposed, and the PIN then protects only as much as an offline search over its digits.
  5. Local authentication policy (5.1). The password is the root of the vault and of a backup file: its strength decides what an attacker holding the file can do; the service refuses the weakest ones (ten characters, a "fair" estimate) and cannot measure real guessing entropy. Sensitive actions are tied to a credential verified in the last two minutes, and the auto-lock (fifteen minutes at most, no "never") is applied by the application; in the background iOS suspends the process, so an expired delay is applied when the application returns.
  6. Endpoints (5.3). No certificate pinning, by design: there is no QYVORA server and the endpoints are public services or the user's own nodes. A lying endpoint cannot change what is signed; it can lie about balances, history, fee levels within the hard caps and prices, and it learns the wallet's addresses and the device's IP address.
  7. Quantum attackers (5.4). Post-quantum algorithms protect the transfer of the vault between devices and authenticate backups and identities; the vault and backup files rest on 256-bit symmetric cryptography. None of this makes Bitcoin or Ethereum transactions quantum-resistant: they are authorised by secp256k1 signatures, and an output whose public key is known is exposed to an adversary able to break that curve, whatever the wallet does. Bitcoin transactions also carry no chain identifier (no replay protection across a fork sharing its rules); Ethereum transactions carry the chain id (EIP-155 semantics inside type-2 payloads).
  8. Coverage of the audit itself. Static rules for Swift are limited; no dynamic analysis on a device was performed (no runtime instrumentation, no traffic interception); fuzzing is mutation-based where the toolchain offers no coverage guidance; the framework assessments are self-assessments. The reports state these limits next to each result.

# 8.4 Before any recommendation to use real funds

A working application; conclusive cryptographic tests; a complete automated audit on the final commit; no unresolved critical or high finding; reproducible reports; and an independent cryptographic review. Until the last item exists, QYVORA is experimental software and must not hold funds its user cannot afford to lose.

Files main
Menu

Theme