Repository Public
1{2 "schema": "qyvora-audit/framework/1",3 "framework": "Coinspect Wallet Security Framework (WSF): Wallet Security Controls (WSC) and Wallet Security Benchmark (WSB)",4 "source": {5 "repository": "https://github.com/coinspect/wallet-security-framework",6 "homepage": "https://www.coinspect.com/wallets/testing/",7 "version": "commit 9b707066ffb37182683bd4e36f19cfd891694a54 (2026-09-28)",8 "files": {9 "WSC/README.md": "sha256:166eb3cbb3210b1e6e0895f08f3d68eb573c11e57196d44717dfafd51865cc46",10 "WSB/README.md": "sha256:f10be49c3b2f3341ce97d1b0268b12ff1abafa698ac32694f219f697332aaaca"11 },12 "licence": "MIT",13 "retrieved": "2026-12-04",14 "note": "The repository publishes no numbered release; the commit is the version. Titles are abridged from the source; identifiers WSC-x.y are the control numbers of WSC/README.md and WSB-… the test identifiers of WSB/README.md."15 },16 "coverage": "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.",17 "verdicts": {18 "pass": "control met, with verified evidence",19 "partial": "met in part, or met in the service layer only",20 "fail": "not met",21 "not-applicable": "the control targets a component QYVORA does not have",22 "not-assessed": "cannot be judged at the audited commit"23 },24 "items": [25 {26 "id": "WSC-1.1",27 "title": "Extension requires only essential permissions",28 "group": "WSC 1",29 "verdict": "not-applicable",30 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."31 },32 {33 "id": "WSC-1.2",34 "title": "web_accessible_resources does not expose wallet HTML",35 "group": "WSC 1",36 "verdict": "not-applicable",37 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."38 },39 {40 "id": "WSC-1.3",41 "title": "No leak of private information to trackers, metrics packages or custom APIs",42 "group": "WSC 1",43 "verdict": "pass",44 "rationale": "No analytics, crash-reporting or tracking component exists: the Swift package declares no external dependency, the HTTP transport is an ephemeral URLSession without cookies, cache or credential storage that sends a fixed User-Agent and no identifier, and the wallet has no server of its own. Residual: a light wallet necessarily sends its addresses to the indexers and RPC nodes configured by the user (public defaults or the user's own node), which can link addresses to an IP address; cold mode stops all traffic.",45 "evidence": [46 {47 "ref": "Package.swift:44",48 "contains": "zero external dependency"49 },50 {51 "ref": "Sources/QyvoraNetworking/HTTP.swift:58",52 "contains": "URLSession transport without cookies"53 },54 {55 "ref": "Sources/QyvoraNetworking/HTTP.swift:92",56 "contains": "\"User-Agent\": \"QYVORA\""57 },58 {59 "ref": "Sources/QyvoraWallet/WalletService.swift:53",60 "contains": "No account, no server of its own, no telemetry"61 }62 ],63 "checks": [64 {65 "id": "no-tracking-sdk",66 "type": "grep",67 "description": "No analytics / tracking / crash-reporting SDK imported",68 "globs": [69 "Sources/**/*.swift",70 "App/Sources/**/*.swift",71 "Package.swift",72 "App/project.yml"73 ],74 "pattern": "\\bimport\\s+(Firebase\\w*|Sentry|Amplitude|Mixpanel|AppsFlyerLib|Segment|Bugsnag|GoogleAnalytics|FBSDK\\w*|AdSupport|AppTrackingTransparency)\\b|ASIdentifierManager|Crashlytics|package\\(url:",75 "expect": "absent",76 "severity": "medium",77 "area": "app",78 "recommendation": "Remove the tracking component."79 }80 ],81 "residual_risk": "low"82 },83 {84 "id": "WSC-1.4",85 "title": "Content script injected at document_start",86 "group": "WSC 1",87 "verdict": "not-applicable",88 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."89 },90 {91 "id": "WSC-2.1",92 "title": "dApps cannot reach sensitive endpoints before the user approves the connection",93 "group": "WSC 2",94 "verdict": "not-applicable",95 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",96 "checks": [97 {98 "id": "no-dapp-surface",99 "type": "grep",100 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",101 "globs": [102 "Sources/**/*.swift",103 "App/Sources/**/*.swift"104 ],105 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",106 "expect": "absent",107 "on_unmet": "not-assessed"108 }109 ]110 },111 {112 "id": "WSC-2.2",113 "title": "User approval required for signing requests originating from a dApp",114 "group": "WSC 2",115 "verdict": "not-applicable",116 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",117 "checks": [118 {119 "id": "no-dapp-surface",120 "type": "grep",121 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",122 "globs": [123 "Sources/**/*.swift",124 "App/Sources/**/*.swift"125 ],126 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",127 "expect": "absent",128 "on_unmet": "not-assessed"129 }130 ]131 },132 {133 "id": "WSC-2.3",134 "title": "Locked wallet prompts for unlock before handling a dApp request",135 "group": "WSC 2",136 "verdict": "not-applicable",137 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",138 "checks": [139 {140 "id": "no-dapp-surface",141 "type": "grep",142 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",143 "globs": [144 "Sources/**/*.swift",145 "App/Sources/**/*.swift"146 ],147 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",148 "expect": "absent",149 "on_unmet": "not-assessed"150 }151 ]152 },153 {154 "id": "WSC-2.4",155 "title": "No method signs arbitrary data without a warning (eth_sign)",156 "group": "WSC 2",157 "verdict": "pass",158 "rationale": "The chain keys never sign arbitrary data: the only signing paths for Bitcoin and Ethereum keys take a transaction that the wallet decoded and checked (`checkSignable`, PSBT review). Call data that cannot be decoded is refused unless the caller passes `allowBlindSigning` explicitly, and is refused outright on mainnet by the unaudited-build limits. `signMessage` signs with the separate post-quantum identity key under a purpose label, never with a Bitcoin or Ethereum key. The Ethereum module contains an EIP-191 `PersonalMessage` primitive (prefixed hash, not raw eth_sign); the automated check confirms that neither the wallet service nor the application calls it.",159 "evidence": [160 {161 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:775",162 "contains": "Blind signing must be allowed explicitly"163 },164 {165 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:620",166 "contains": "On mainnet this build does not sign call data it cannot decode"167 },168 {169 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:574",170 "contains": "func checkSignable"171 },172 {173 "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:216",174 "contains": "purpose: .message"175 }176 ],177 "checks": [178 {179 "id": "no-typed-data-signing",180 "type": "grep",181 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",182 "globs": [183 "Sources/QyvoraWallet/**/*.swift",184 "App/Sources/**/*.swift"185 ],186 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",187 "expect": "absent",188 "on_unmet": "not-assessed"189 }190 ]191 },192 {193 "id": "WSC-2.5",194 "title": "User consent before loading remote URLs (e.g. NFT metadata)",195 "group": "WSC 2",196 "verdict": "not-applicable",197 "rationale": "The wallet loads no remote content chosen by a third party: no NFT support, no remote image, no web view. Network requests go only to the endpoints of the profile.",198 "checks": [199 {200 "id": "no-remote-content",201 "type": "grep",202 "description": "No remote image / web content loading",203 "globs": [204 "Sources/**/*.swift",205 "App/Sources/**/*.swift"206 ],207 "pattern": "AsyncImage|WKWebView|UIWebView|SFSafariViewController",208 "expect": "absent",209 "on_unmet": "not-assessed"210 }211 ]212 },213 {214 "id": "WSC-2.6",215 "title": "Mechanism to filter spam NFTs",216 "group": "WSC 2",217 "verdict": "pass",218 "scope": "service",219 "rationale": "No NFT support. For ERC-20 tokens the equivalent exists: tokens discovered by the indexer are reported as `detectedTokens` and only enter the wallet after `acceptDetectedToken`; a token can be hidden with `setTokenHidden`.",220 "evidence": [221 {222 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:358",223 "contains": "public func acceptDetectedToken"224 },225 {226 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:384",227 "contains": "public func setTokenHidden"228 }229 ]230 },231 {232 "id": "WSC-3.1",233 "title": "Users can manually lock the wallet",234 "group": "WSC 3",235 "verdict": "pass",236 "scope": "app",237 "severity": "low",238 "rationale": "The Quantum Vault screen (Settings) has a \"Lock now\" control that calls `WalletService.lock()`; the master key is dropped and the lock screen is shown.",239 "evidence": [240 {241 "ref": "App/Sources/Security/VaultView.swift:179",242 "contains": "Button(\"Lock now\") { Task { await store.lock() } }"243 }244 ],245 "checks": [246 {247 "id": "lock-control-wired",248 "type": "grep",249 "description": "A screen calls the lock action",250 "globs": [251 "App/Sources/**/*.swift"252 ],253 "pattern": "\\.lock\\(\\)",254 "expect": "present",255 "exclude": [256 "App/Sources/WalletStore.swift"257 ],258 "on_unmet": "partial"259 }260 ],261 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"262 },263 {264 "id": "WSC-3.2",265 "title": "Strongest authentication mechanism of the device (biometrics preferred)",266 "group": "WSC 3",267 "verdict": "pass",268 "scope": "service",269 "rationale": "Biometric unlock is a Keychain item protected by `SecAccessControl` `.biometryCurrentSet` in class WhenPasscodeSetThisDeviceOnly: the system enforces Face ID / Touch ID on every read and invalidates the item when the enrolled biometrics change. The wrapped master key can be wrapped a second time by a Secure Enclave key. The password remains the root credential.",270 "evidence": [271 {272 "ref": "Sources/QyvoraStorage/KeychainStore.swift:106",273 "contains": "kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, .biometryCurrentSet"274 },275 {276 "ref": "Sources/QyvoraVault/Vault.swift:436",277 "contains": "access: .biometryCurrentSet"278 },279 {280 "ref": "Sources/QyvoraStorage/SecureEnclaveKey.swift:134",281 "contains": "SecureEnclave.P256.KeyAgreement.PrivateKey(accessControl: control)"282 },283 {284 "ref": "Tests/QyvoraVaultTests/VaultTests.swift:236",285 "contains": "deviceUnlockWithAndWithoutSecureEnclave"286 }287 ]288 },289 {290 "id": "WSC-3.3",291 "title": "Password policy that emphasises length over complexity",292 "group": "WSC 3",293 "verdict": "pass",294 "scope": "service",295 "severity": "medium",296 "rationale": "The wallet service refuses a vault or backup password below ten characters or below a \"fair\" strength estimate (QYV-APP-001, fixed): length weighs most in the estimate, common words, repetitions, sequences and keyboard walks are penalised. Every entry point is covered by a test.",297 "evidence": [298 {299 "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:484",300 "contains": "public nonisolated static func passwordRejection(_ candidate: String) -> String?"301 },302 {303 "ref": "Sources/QyvoraWallet/WalletService.swift:85",304 "contains": "public static let minimumPasswordLength = 10"305 },306 {307 "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:297",308 "contains": "try Self.requireAcceptablePassword(password)"309 },310 {311 "ref": "Tests/QyvoraWalletTests/FindingsCredentialTests.swift:70",312 "contains": "func everyEntryPointOfTheServiceRefusesAWeakPassword()"313 }314 ],315 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"316 },317 {318 "id": "WSC-3.4",319 "title": "Auto-lock on inactivity, default not above 15 minutes",320 "group": "WSC 3",321 "verdict": "pass",322 "scope": "app",323 "severity": "medium",324 "rationale": "Default five minutes; the service refuses \"never\" and any delay above fifteen minutes and bounds an older profile when it is loaded (QYV-APP-004, fixed). The application applies the policy on a 15 s timer, when it leaves for the background and before any content is shown when it comes back; the decisions are in `AutoLockRule` and tested with the service (QYV-APP-003, fixed). Residual: iOS suspends the process in the background, so an expired delay is applied at the return.",325 "evidence": [326 {327 "ref": "Sources/QyvoraWallet/WalletTypes.swift:259",328 "contains": "public var autoLock: AutoLockPolicy = .after(seconds: 300)"329 },330 {331 "ref": "Sources/QyvoraWallet/WalletService.swift:83",332 "contains": "public static let maximumAutoLockDelay: TimeInterval = 900"333 },334 {335 "ref": "Sources/QyvoraWallet/WalletService.swift:579",336 "contains": "The auto-lock cannot be switched off"337 },338 {339 "ref": "Sources/QyvoraWallet/AutoLockRule.swift:79",340 "contains": "public static func action(for event: Event, policy: AutoLockPolicy, isUnlocked: Bool) -> Action"341 },342 {343 "ref": "App/Sources/RootView.swift:132",344 "contains": "switch AutoLockRule.action(for: event, policy: snapshot.profile.autoLock, isUnlocked: snapshot.vault.isUnlocked)"345 },346 {347 "ref": "App/Sources/RootView.swift:89",348 "contains": ".task(id: autoLockTimerKey) { await autoLockTimer() }"349 },350 {351 "ref": "Tests/QyvoraWalletTests/FindingsFreshAuthenticationTests.swift:233",352 "contains": "func theLifeCycleLocksTheVaultImmediatelyAfterTheDelayAndInTheBackground()"353 }354 ],355 "checks": [356 {357 "id": "auto-lock-wired",358 "type": "grep",359 "description": "The application applies the auto-lock policy (timer or scene phase)",360 "globs": [361 "App/Sources/**/*.swift"362 ],363 "pattern": "autoLockIfNeeded\\(\\)",364 "expect": "present",365 "exclude": [366 "App/Sources/WalletStore.swift"367 ],368 "on_unmet": "partial",369 "finding": "QYV-APP-003"370 }371 ],372 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"373 },374 {375 "id": "WSC-4.1",376 "title": "Warning in the Connect dialog on first interaction with a dApp",377 "group": "WSC 4",378 "verdict": "not-applicable",379 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",380 "checks": [381 {382 "id": "no-dapp-surface",383 "type": "grep",384 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",385 "globs": [386 "Sources/**/*.swift",387 "App/Sources/**/*.swift"388 ],389 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",390 "expect": "absent",391 "on_unmet": "not-assessed"392 }393 ]394 },395 {396 "id": "WSC-4.2",397 "title": "Connect dialog states the access granted to the dApp",398 "group": "WSC 4",399 "verdict": "not-applicable",400 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",401 "checks": [402 {403 "id": "no-dapp-surface",404 "type": "grep",405 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",406 "globs": [407 "Sources/**/*.swift",408 "App/Sources/**/*.swift"409 ],410 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",411 "expect": "absent",412 "on_unmet": "not-assessed"413 }414 ]415 },416 {417 "id": "WSC-4.3",418 "title": "Unknown / official dApp indication",419 "group": "WSC 4",420 "verdict": "not-applicable",421 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",422 "checks": [423 {424 "id": "no-dapp-surface",425 "type": "grep",426 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",427 "globs": [428 "Sources/**/*.swift",429 "App/Sources/**/*.swift"430 ],431 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",432 "expect": "absent",433 "on_unmet": "not-assessed"434 }435 ]436 },437 {438 "id": "WSC-4.4",439 "title": "Connection to known phishing dApps prevented",440 "group": "WSC 4",441 "verdict": "not-applicable",442 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",443 "checks": [444 {445 "id": "no-dapp-surface",446 "type": "grep",447 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",448 "globs": [449 "Sources/**/*.swift",450 "App/Sources/**/*.swift"451 ],452 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",453 "expect": "absent",454 "on_unmet": "not-assessed"455 }456 ]457 },458 {459 "id": "WSC-4.5",460 "title": "User informed when interacting with an unknown address",461 "group": "WSC 4",462 "verdict": "pass",463 "scope": "service",464 "severity": "low",465 "rationale": "Both reviews carry a warning for a destination the wallet has no record of paying (first-payment warning, the fixed half of QYV-APP-010), next to the existing ones (own address, address already paid, contract, missing checksum). There is no address book.",466 "evidence": [467 {468 "ref": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:726",469 "contains": "warnings.append(.firstPaymentToAddress)"470 },471 {472 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:524",473 "contains": "warnings.append(.firstPaymentToRecipient)"474 },475 {476 "ref": "Tests/QyvoraWalletTests/FindingsFeeLimitTests.swift:179",477 "contains": "func bitcoinWarnsOnceThenRemembersThePayment()"478 }479 ],480 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"481 },482 {483 "id": "WSC-4.6",484 "title": "Interaction with known phishing or scam addresses prevented",485 "group": "WSC 4",486 "verdict": "fail",487 "scope": "service",488 "severity": "low",489 "rationale": "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.",490 "gap": "No scam-address screening (the open half of QYV-APP-010; owner decision).",491 "finding": "QYV-APP-010",492 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"493 },494 {495 "id": "WSC-4.7",496 "title": "Warning when interacting with an address for the first time",497 "group": "WSC 4",498 "verdict": "pass",499 "scope": "service",500 "severity": "low",501 "rationale": "`firstPaymentToAddress` (Bitcoin) and `firstPaymentToRecipient` (Ethereum and tokens) are added to the review when the history read and the current session show no earlier payment to the destination.",502 "evidence": [503 {504 "ref": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:726",505 "contains": "warnings.append(.firstPaymentToAddress)"506 },507 {508 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:524",509 "contains": "warnings.append(.firstPaymentToRecipient)"510 },511 {512 "ref": "Tests/QyvoraWalletTests/FindingsFeeLimitTests.swift:179",513 "contains": "func bitcoinWarnsOnceThenRemembersThePayment()"514 }515 ],516 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"517 },518 {519 "id": "WSC-4.8",520 "title": "List of connected dApps with revocation",521 "group": "WSC 4",522 "verdict": "not-applicable",523 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",524 "checks": [525 {526 "id": "no-dapp-surface",527 "type": "grep",528 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",529 "globs": [530 "Sources/**/*.swift",531 "App/Sources/**/*.swift"532 ],533 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",534 "expect": "absent",535 "on_unmet": "not-assessed"536 }537 ]538 },539 {540 "id": "WSC-4.9",541 "title": "ENS name of the destination displayed",542 "group": "WSC 4",543 "verdict": "not-applicable",544 "rationale": "ENS is not supported: destinations are entered as addresses only, so no name can be shown or spoofed. Recorded as a missing convenience, not a weakness."545 },546 {547 "id": "WSC-4.10",548 "title": "Transaction dialogs show contract, function, spender, amount and gas in a readable way",549 "group": "WSC 4",550 "verdict": "pass",551 "scope": "app",552 "severity": "low",553 "rationale": "The Ethereum review shows the asset and amount, the recipient, the token contract called, the decoded function (transfer / approve with its spender and amount, an unlimited approval flagged as critical, undecodable call data as blind signing), the nonce, the gas limit, the maximum fee per gas and the maximum fee; the Bitcoin review shows every input and output, the fee and its rate. Multi-chain upgrade (2026-12-05): The uniform review of an EVM payment on any network shows contract, call, amount with the token's decimals, gas limit, maximum fee and, on OP-Stack networks, the L1 data fee line; a cold review is decoded from the bytes to be signed.",554 "evidence": [555 {556 "ref": "App/Sources/Wallet/SendReviewView.swift:310",557 "contains": "ReviewRow(\"Token contract called\", value: contract.checksummed, emphasis: .address)"558 },559 {560 "ref": "App/Sources/Wallet/SendReviewView.swift:322",561 "contains": "ReviewRow(\"Gas limit\", value: inner.gasLimit.formatted())"562 },563 {564 "ref": "App/Sources/Wallet/SendReviewView.swift:313",565 "contains": "case .tokenApproval(let token, let contract, let spender, let amount):"566 },567 {568 "ref": "App/Sources/Wallet/SendReviewView.swift:323",569 "contains": "ReviewRow(\"Maximum fee per gas\", value: gwei(inner.transaction.maxFeePerGas), secondary: \"Base fee of the block read: \\(gwei(inner.baseFee))\")"570 },571 {572 "ref": "App/Sources/Wallet/SendReviewView.swift:326",573 "contains": "ReviewRow(\"L1 data fee\", value: WalletChainFormat.native(inner.l1DataFee, chain), secondary: \"Quoted by the network, with a margin; included in the maximum fee\")"574 },575 {576 "ref": "App/Sources/Security/SecColdSignView.swift:385",577 "contains": "ReviewRow(\"Maximum total cost\", value: native(r.maximumTotalCost, r.network), emphasis: .strong)"578 },579 {580 "ref": "Sources/QyvoraWallet/WalletService+Send.swift:606",581 "contains": "public func review(for inner: EthereumSendReview) -> SendReview {"582 },583 {584 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:926",585 "contains": "var summary = [\"Network: \\(network.displayName) (chain \\(tx.chainID))\", \"Nonce: \\(tx.nonce)\"]"586 }587 ],588 "reassessed": "2026-12-05: evidence repointed to the rebuilt screens (the uniform send review SendReviewView.swift replaced EthereumReviewView.swift); each claim was read again in the current code"589 },590 {591 "id": "WSC-4.11",592 "title": "EIP-712 data shown clearly (domain and struct)",593 "group": "WSC 4",594 "verdict": "not-applicable",595 "rationale": "Typed-data signing is not implemented.",596 "checks": [597 {598 "id": "no-typed-data-signing",599 "type": "grep",600 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",601 "globs": [602 "Sources/QyvoraWallet/**/*.swift",603 "App/Sources/**/*.swift"604 ],605 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",606 "expect": "absent",607 "on_unmet": "not-assessed"608 }609 ]610 },611 {612 "id": "WSC-4.12",613 "title": "dApp-sourced information distinguished from wallet information",614 "group": "WSC 4",615 "verdict": "not-applicable",616 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",617 "checks": [618 {619 "id": "no-dapp-surface",620 "type": "grep",621 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",622 "globs": [623 "Sources/**/*.swift",624 "App/Sources/**/*.swift"625 ],626 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",627 "expect": "absent",628 "on_unmet": "not-assessed"629 }630 ]631 },632 {633 "id": "WSC-4.13",634 "title": "EIP-712 objects of well-known protocols parsed",635 "group": "WSC 4",636 "verdict": "not-applicable",637 "rationale": "Typed-data signing is not implemented.",638 "checks": [639 {640 "id": "no-typed-data-signing",641 "type": "grep",642 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",643 "globs": [644 "Sources/QyvoraWallet/**/*.swift",645 "App/Sources/**/*.swift"646 ],647 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",648 "expect": "absent",649 "on_unmet": "not-assessed"650 }651 ]652 },653 {654 "id": "WSC-4.14",655 "title": "dApp domain not truncated",656 "group": "WSC 4",657 "verdict": "not-applicable",658 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",659 "checks": [660 {661 "id": "no-dapp-surface",662 "type": "grep",663 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",664 "globs": [665 "Sources/**/*.swift",666 "App/Sources/**/*.swift"667 ],668 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",669 "expect": "absent",670 "on_unmet": "not-assessed"671 }672 ]673 },674 {675 "id": "WSC-4.15",676 "title": "User must review all data before the sign button is enabled",677 "group": "WSC 4",678 "verdict": "partial",679 "scope": "app",680 "severity": "low",681 "rationale": "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.",682 "gap": "The send reviews do not force the user to scroll through the whole review before the sign button is enabled: on a long review the button can be reached by scrolling past the content.",683 "evidence": [684 {685 "ref": "App/Sources/Security/MainnetWarningView.swift:135",686 "contains": ".disabled(!(reachedEnd && acknowledged))"687 },688 {689 "ref": "Sources/QyvoraWallet/WalletService.swift:332",690 "contains": "been verified recently: no signature is made on the strength of an unlocked vault alone."691 }692 ],693 "checks": [694 {695 "id": "plan-init-not-public",696 "type": "grep",697 "description": "BitcoinSendPlan / EthereumSendReview / BitcoinTransactionPlan declare no public initializer",698 "globs": [699 "Sources/QyvoraWallet/WalletTypes.swift"700 ],701 "pattern": "^\\s*public init\\(id: UUID",702 "expect": "absent",703 "severity": "high",704 "area": "wallet",705 "recommendation": "Keep the memberwise initializers of plan and review types internal."706 }707 ],708 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"709 },710 {711 "id": "WSC-4.16",712 "title": "Clickable links to a block explorer for addresses and transactions",713 "group": "WSC 4",714 "verdict": "partial",715 "scope": "app",716 "rationale": "A transaction (its detail, and the result of a payment) and the wallet's own account on each network offer a link to the explorer of the network'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.",717 "gap": "No link for an address that is not the wallet's own: the counterparty of a transaction and the recipient on a review are shown in full but not linked. (Until 2026-12-05 the gap read \"links for transactions only\": the account link was added with the multi-chain screens.)",718 "evidence": [719 {720 "ref": "App/Sources/Activity/TransactionDetailView.swift:73",721 "contains": "if let url = item.entry.explorerURL { WalletExplorerLink(title: \"View on a block explorer\", url: url) }"722 },723 {724 "ref": "App/Sources/Wallet/SendResultView.swift:81",725 "contains": "if let url = result.explorerURL { WalletExplorerLink(title: \"View on a block explorer\", url: url) }"726 },727 {728 "ref": "App/Sources/Wallet/ChainDetailScreen.swift:105",729 "contains": "WalletExplorerLink(title: \"View the account on a block explorer\", url: url)"730 },731 {732 "ref": "Sources/QyvoraWallet/Chains.swift:215",733 "contains": "public func explorerAddressURL(_ address: String) -> URL? {"734 },735 {736 "ref": "Sources/QyvoraCore/Networks.swift:806",737 "contains": "public func explorerTransactionURL(hash: String) -> URL? {"738 }739 ],740 "reassessed": "2026-12-05: evidence repointed to the rebuilt screens (the uniform send review SendReviewView.swift replaced EthereumReviewView.swift); each claim was read again in the current code"741 },742 {743 "id": "WSC-4.17",744 "title": "Warning before copying the mnemonic to the clipboard",745 "group": "WSC 4",746 "verdict": "pass",747 "scope": "service",748 "rationale": "The recovery-phrase component is not selectable and offers no copy action by default (`protected`). The clipboard helper marks sensitive values local-only with a 60-second expiry.",749 "evidence": [750 {751 "ref": "Sources/QyvoraUI/SeedPhrase.swift:54",752 "contains": "protected: Bool = true"753 },754 {755 "ref": "Sources/QyvoraUI/Feedback.swift:61",756 "contains": "options: [.localOnly: true, .expirationDate"757 }758 ],759 "checks": [760 {761 "id": "pasteboard-only-in-helper",762 "type": "grep",763 "description": "UIPasteboard is used only by the sanctioned clipboard helper",764 "globs": [765 "Sources/**/*.swift",766 "App/Sources/**/*.swift"767 ],768 "pattern": "UIPasteboard",769 "expect": "absent",770 "exclude": [771 "Sources/QyvoraUI/Feedback.swift"772 ],773 "severity": "medium",774 "area": "app",775 "cwe": "CWE-200",776 "recommendation": "Route every copy through QClipboard.copy(_:sensitive:)."777 }778 ]779 },780 {781 "id": "WSC-4.18",782 "title": "Mobile wallet prevents screenshots of the mnemonic phrase",783 "group": "WSC 4",784 "verdict": "partial",785 "scope": "app",786 "severity": "medium",787 "rationale": "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).",788 "gap": "A screenshot of the revealed phrase cannot be prevented by the application, only reported afterwards.",789 "evidence": [790 {791 "ref": "Sources/QyvoraUI/SeedPhrase.swift:150",792 "contains": "public static func isHidden(masked: Bool, revealed: Bool, redacted: Bool, captured: Bool) -> Bool"793 },794 {795 "ref": "Sources/QyvoraUI/SeedPhrase.swift:169",796 "contains": "UIApplication.userDidTakeScreenshotNotification"797 },798 {799 "ref": "App/Sources/Security/RevealPhraseView.swift:104",800 "contains": ".warnsAboutScreenshots(of: !words.isEmpty, taken: $screenshotTaken)"801 },802 {803 "ref": "Tests/QyvoraUITests/QyvoraUITests.swift:376",804 "contains": "func theRecoveryWordsAreHiddenWheneverTheSceneIsCaptured()"805 }806 ],807 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"808 },809 {810 "id": "WSC-4.19",811 "title": "Mnemonic obfuscated by default",812 "group": "WSC 4",813 "verdict": "partial",814 "scope": "app",815 "severity": "medium",816 "rationale": "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.",817 "gap": "At creation the 24 words are displayed directly on their step (they must be copied by hand), and once revealed the words are not masked behind a press-and-hold.",818 "evidence": [819 {820 "ref": "Sources/QyvoraUI/SeedPhrase.swift:150",821 "contains": "public static func isHidden(masked: Bool, revealed: Bool, redacted: Bool, captured: Bool) -> Bool"822 },823 {824 "ref": "Sources/QyvoraUI/SeedPhrase.swift:169",825 "contains": "UIApplication.userDidTakeScreenshotNotification"826 },827 {828 "ref": "App/Sources/Security/RevealPhraseView.swift:104",829 "contains": ".warnsAboutScreenshots(of: !words.isEmpty, taken: $screenshotTaken)"830 },831 {832 "ref": "Tests/QyvoraUITests/QyvoraUITests.swift:376",833 "contains": "func theRecoveryWordsAreHiddenWheneverTheSceneIsCaptured()"834 },835 {836 "ref": "App/Sources/Security/RevealPhraseView.swift:96",837 "contains": ".requiresReauthentication(isPresented: $reauthenticate, reason: \"Reveal the recovery phrase\") { reveal() }"838 }839 ],840 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"841 },842 {843 "id": "WSC-4.20",844 "title": "Truncated data can be displayed in full",845 "group": "WSC 4",846 "verdict": "partial",847 "scope": "app",848 "rationale": "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.",849 "gap": "The addresses of the coins spent and the change address of a UTXO review are middle-truncated without a control to expand them.",850 "evidence": [851 {852 "ref": "App/Sources/Wallet/SendReviewView.swift:165",853 "contains": "ReviewRow(\"To\", value: review.recipient, emphasis: .address, copyValue: review.recipient)"854 },855 {856 "ref": "App/Sources/Wallet/SendReviewView.swift:290",857 "contains": "ReviewRow(input.address.map { MiddleTruncation.truncate($0, head: 10, tail: 6) } ?? \"Coin without address form\", value: coins(input.value),"858 },859 {860 "ref": "Sources/QyvoraUI/Transfer.swift:175",861 "contains": "ChunkedAddressText(value, font: QFont.mono.weight(.medium))"862 },863 {864 "ref": "App/Sources/Security/SecuritySupport.swift:233",865 "contains": "struct FullAddress: View {"866 }867 ],868 "reassessed": "2026-12-05: evidence repointed to the rebuilt screens (the uniform send review SendReviewView.swift replaced EthereumReviewView.swift); each claim was read again in the current code"869 },870 {871 "id": "WSC-4.21",872 "title": "Alert on dApp URLs with lookalike characters",873 "group": "WSC 4",874 "verdict": "not-applicable",875 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",876 "checks": [877 {878 "id": "no-dapp-surface",879 "type": "grep",880 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",881 "globs": [882 "Sources/**/*.swift",883 "App/Sources/**/*.swift"884 ],885 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",886 "expect": "absent",887 "on_unmet": "not-assessed"888 }889 ]890 },891 {892 "id": "WSC-5.1",893 "title": "Cross-chain replay protection (EIP-1559 type 2)",894 "group": "WSC 5",895 "verdict": "pass",896 "scope": "service",897 "rationale": "Only type-2 transactions are built and signed; the chain id is the first field of the signed payload and `checkSignable` refuses a chain id that is not the active network's. Chain identity of the endpoints is verified before use. (Bitcoin has no replay protection across forks of its chain; this control is about Ethereum.) Multi-chain upgrade (2026-12-05): Cross-chain replay protection on thirteen more EVM networks: type-2 transactions only, chain identifier from the table inside the signed payload, relabelled signatures recover another account (differential test on every pair of networks).",898 "evidence": [899 {900 "ref": "Sources/QyvoraEthereum/Transaction.swift:96",901 "contains": "0x02 ‖ rlp([chainId"902 },903 {904 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:575",905 "contains": "guard tx.chainID == network.chainID"906 },907 {908 "ref": "Sources/QyvoraNetworking/EthereumRPC.swift:125",909 "contains": "public func verifyChain()"910 },911 {912 "ref": "Sources/QyvoraEthereum/Transaction.swift:97",913 "contains": "public var unsignedPayload: Bytes { [0x02] + RLP.list(fields).encoded }"914 },915 {916 "ref": "security/tests/Tests/DifferentialAuditTests/EVMChainsDiffTests.swift:147",917 "contains": "@Test func aSignatureDoesNotCarryOverToAnotherChain() throws {"918 }919 ]920 },921 {922 "id": "WSC-5.2",923 "title": "EIP-712 chainId must match the active chain",924 "group": "WSC 5",925 "verdict": "not-applicable",926 "rationale": "Typed-data signing is not implemented.",927 "checks": [928 {929 "id": "no-typed-data-signing",930 "type": "grep",931 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",932 "globs": [933 "Sources/QyvoraWallet/**/*.swift",934 "App/Sources/**/*.swift"935 ],936 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",937 "expect": "absent",938 "on_unmet": "not-assessed"939 }940 ]941 },942 {943 "id": "WSC-5.3",944 "title": "Warning on addresses with an invalid EIP-55 checksum",945 "group": "WSC 5",946 "verdict": "pass",947 "scope": "service",948 "rationale": "Stricter than a warning: a mixed-case address whose EIP-55 checksum does not verify is rejected (`EthereumAddress.init?` returns nil → `invalidAddress`). Multi-chain upgrade (2026-12-05): An EVM address with a wrong EIP-55 checksum is refused on every EVM network with the reason invalidChecksum.",949 "evidence": [950 {951 "ref": "Sources/QyvoraEthereum/Address.swift:67",952 "contains": "candidate.checksummed.dropFirst(2) != h"953 },954 {955 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:409",956 "contains": "throw EthereumRefusal.invalidAddress"957 },958 {959 "ref": "Sources/QyvoraWallet/WalletService+Send.swift:235",960 "contains": "if t.hasPrefix(\"0x\") || t.hasPrefix(\"0X\"), t.utf8.count == 42, Hex.decode(String(t.dropFirst(2))) != nil { return .invalidChecksum(chain: chainName) }"961 },962 {963 "ref": "security/tests/Tests/PropertyAuditTests/MultichainWalletProperties.swift:188",964 "contains": "prop.check(refusal == .address(.invalidChecksum(chain: \"Ethereum Sepolia\")), \"a wrong EIP-55 checksum gave \\(String(describing: refusal))\")"965 }966 ]967 },968 {969 "id": "WSC-5.4",970 "title": "Warning on addresses without an EIP-55 checksum",971 "group": "WSC 5",972 "verdict": "pass",973 "scope": "service",974 "rationale": "An all-lower-case or all-upper-case address is accepted with the warning `.recipientWithoutChecksum` attached to the review. Multi-chain upgrade (2026-12-05): An EVM address without checksum (all lower or all upper case) is accepted with a note on every EVM network, through the uniform address check and in the review.",975 "gap": "Display of the warning depends on the review screen (not present at the audited commit).",976 "evidence": [977 {978 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:413",979 "contains": "warnings.append(.recipientWithoutChecksum)"980 },981 {982 "ref": "Sources/QyvoraWallet/WalletService+Send.swift:310",983 "contains": "if !(hasLower && hasUpper) { notes.append(EthereumSendWarning.recipientWithoutChecksum.message) }"984 }985 ]986 },987 {988 "id": "WSC-6.1",989 "title": "Injection into secure contexts only",990 "group": "WSC 6",991 "verdict": "not-applicable",992 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."993 },994 {995 "id": "WSC-6.2",996 "title": "Content-script listener validates message origin",997 "group": "WSC 6",998 "verdict": "not-applicable",999 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."1000 },1001 {1002 "id": "WSC-6.3",1003 "title": "Content-script messages treated as untrusted",1004 "group": "WSC 6",1005 "verdict": "not-applicable",1006 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."1007 },1008 {1009 "id": "WSC-6.4",1010 "title": "No sanitisation or authorisation in the MAIN world",1011 "group": "WSC 6",1012 "verdict": "not-applicable",1013 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."1014 },1015 {1016 "id": "WSC-6.5",1017 "title": "No communication with other extensions or websites",1018 "group": "WSC 6",1019 "verdict": "not-applicable",1020 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."1021 },1022 {1023 "id": "WSC-6.6",1024 "title": "Scheme, host and port of the dApp URL validated",1025 "group": "WSC 6",1026 "verdict": "not-applicable",1027 "rationale": "Browser-extension control (manifest, content script, provider injection). QYVORA is a native iOS application without any extension component."1028 },1029 {1030 "id": "WSC-7.1",1031 "title": "Seed encrypted with a robust algorithm and a secure passphrase",1032 "group": "WSC 7",1033 "verdict": "pass",1034 "scope": "service",1035 "rationale": "The recovery phrase is a vault record sealed with AES-256-GCM under a subkey of a random 256-bit master key; the master key is wrapped under a key stretched from the password. The file is authenticated by HMAC-SHA256 and stored with NSFileProtectionComplete, excluded from backups. (Symmetric 256-bit protection; this says nothing about the security of Bitcoin or Ethereum signatures.)",1036 "evidence": [1037 {1038 "ref": "Sources/QyvoraVault/Vault.swift:572",1039 "contains": "recordEncryption: \"AES-256-GCM\""1040 },1041 {1042 "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:100",1043 "contains": "try await vault.addRecord(type: .recoveryPhrase, payload: payload)"1044 },1045 {1046 "ref": "Sources/QyvoraStorage/FileStore.swift:227",1047 "contains": "values.isExcludedFromBackup = true"1048 },1049 {1050 "ref": "Tests/QyvoraVaultTests/VaultTests.swift:484",1051 "contains": "everySingleByteCorruptionIsDetected"1052 }1053 ]1054 },1055 {1056 "id": "WSC-7.2",1057 "title": "Reputable cryptographic libraries, no custom cryptographic code",1058 "group": "WSC 7",1059 "verdict": "fail",1060 "scope": "service",1061 "severity": "medium",1062 "rationale": "QYVORA'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's Argon2id and CommonCrypto's PBKDF2, so a defect in one implementation alone does not open the vault; the engine is checked against NIST ACVP vectors and by differential tests against independent implementations; mainnet is gated and capped.",1063 "gap": "Transaction signatures (secp256k1 ECDSA / Schnorr), BIP-32 derivation and address hashing rely on the custom engine alone, without an independent review.",1064 "finding": "QYV-APP-007",1065 "evidence": [1066 {1067 "ref": "Sources/QyvoraVault/Vault.swift:154",1068 "contains": "aead: AEADKind = .system"1069 },1070 {1071 "ref": "Sources/QyvoraVault/VaultCrypto.swift:255",1072 "contains": "PBKDF2-HMAC-SHA512(secret, pbkdf2Salt, iterations, 32 bytes)"1073 },1074 {1075 "ref": "Sources/QyvoraCore/Networks.swift:90",1076 "contains": "public static let auditCompleted = false"1077 }1078 ]1079 },1080 {1081 "id": "WSC-7.3",1082 "title": "Encryption key derived from the password with a computationally intensive algorithm",1083 "group": "WSC 7",1084 "verdict": "pass",1085 "scope": "service",1086 "rationale": "HKDF-SHA256 over Argon2id (64 MiB, t = 3, p = 4) ‖ PBKDF2-HMAC-SHA512 (600 000 iterations), with independent random salts per slot.",1087 "evidence": [1088 {1089 "ref": "Sources/QyvoraVault/VaultCrypto.swift:222",1090 "contains": "public static let standard = KDFParameters(argon2MemoryKiB: 65_536, argon2Iterations: 3, argon2Parallelism: 4, pbkdf2Iterations: 600_000)"1091 },1092 {1093 "ref": "Tests/QyvoraVaultTests/VaultTests.swift:723",1094 "contains": "keyStretchingIsTheDocumentedCombiner"1095 }1096 ]1097 },1098 {1099 "id": "WSC-7.4",1100 "title": "Cloud backup encrypted with a strong passphrase; user informed of the risk",1101 "group": "WSC 7",1102 "verdict": "pass",1103 "scope": "service",1104 "severity": "medium",1105 "rationale": "A backup is encrypted under its own password, held by the service to the same floor as the vault password (QYV-APP-001, fixed), and may be signed by the identity; the screen says what the file contains, that its password cannot be recovered and what storing it on a cloud drive means.",1106 "evidence": [1107 {1108 "ref": "App/Sources/Security/BackupCreateView.swift:146",1109 "contains": "A cloud drive keeps copies you do not control"1110 },1111 {1112 "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:297",1113 "contains": "try Self.requireAcceptablePassword(password)"1114 }1115 ],1116 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1117 },1118 {1119 "id": "WSC-7.5",1120 "title": "Key material leaves the system only through a specific export flow",1121 "group": "WSC 7",1122 "verdict": "pass",1123 "scope": "service",1124 "rationale": "Secrets leave the vault only through named flows: `revealRecoveryPhrase`, `recoverySheet(includePrivateMaterial: true)`, `createBackup` and `createTransferPackage` (both encrypted). No network call carries key material; the engine has no logging.",1125 "gap": "These flows only require an unlocked vault (see QYV-APP-002).",1126 "evidence": [1127 {1128 "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:257",1129 "contains": "public func revealRecoveryPhrase()"1130 },1131 {1132 "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:287",1133 "contains": "public func createBackup(to url: URL, password: String"1134 },1135 {1136 "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:371",1137 "contains": "public func createTransferPackage"1138 }1139 ],1140 "checks": [1141 {1142 "id": "no-logging-in-sources",1143 "type": "grep",1144 "description": "No print / NSLog / os_log / Logger call in the engine, services or application",1145 "globs": [1146 "Sources/**/*.swift",1147 "App/Sources/**/*.swift"1148 ],1149 "pattern": "^\\s*(print|debugPrint|NSLog|os_log|dump)\\(|\\bLogger\\(",1150 "expect": "absent",1151 "exclude": [1152 "Sources/qyvora-bench/*",1153 "App/Sources/Debug*.swift"1154 ],1155 "severity": "medium",1156 "area": "app",1157 "cwe": "CWE-532",1158 "recommendation": "Remove the logging call or prove that it carries no secret."1159 }1160 ]1161 },1162 {1163 "id": "WSB-PERM-001",1164 "title": "Mismatching SIWE domain detection",1165 "group": "PERM",1166 "verdict": "not-applicable",1167 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1168 "checks": [1169 {1170 "id": "no-dapp-surface",1171 "type": "grep",1172 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1173 "globs": [1174 "Sources/**/*.swift",1175 "App/Sources/**/*.swift"1176 ],1177 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1178 "expect": "absent",1179 "on_unmet": "not-assessed"1180 }1181 ]1182 },1183 {1184 "id": "WSB-PERM-002~Mobile",1185 "title": "Wallet unlock before requests",1186 "group": "PERM",1187 "verdict": "not-applicable",1188 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1189 "checks": [1190 {1191 "id": "no-dapp-surface",1192 "type": "grep",1193 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1194 "globs": [1195 "Sources/**/*.swift",1196 "App/Sources/**/*.swift"1197 ],1198 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1199 "expect": "absent",1200 "on_unmet": "not-assessed"1201 }1202 ]1203 },1204 {1205 "id": "WSB-PERM-002~Browser",1206 "title": "Wallet unlock before requests",1207 "group": "PERM",1208 "verdict": "not-applicable",1209 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1210 "checks": [1211 {1212 "id": "no-dapp-surface",1213 "type": "grep",1214 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1215 "globs": [1216 "Sources/**/*.swift",1217 "App/Sources/**/*.swift"1218 ],1219 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1220 "expect": "absent",1221 "on_unmet": "not-assessed"1222 }1223 ]1224 },1225 {1226 "id": "WSB-PERM-003",1227 "title": "Mismatching EIP-712 chainId detection",1228 "group": "PERM",1229 "verdict": "not-applicable",1230 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1231 "checks": [1232 {1233 "id": "no-dapp-surface",1234 "type": "grep",1235 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1236 "globs": [1237 "Sources/**/*.swift",1238 "App/Sources/**/*.swift"1239 ],1240 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1241 "expect": "absent",1242 "on_unmet": "not-assessed"1243 }1244 ]1245 },1246 {1247 "id": "WSB-PERM-004",1248 "title": "Connected dApp management",1249 "group": "PERM",1250 "verdict": "not-applicable",1251 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1252 "checks": [1253 {1254 "id": "no-dapp-surface",1255 "type": "grep",1256 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1257 "globs": [1258 "Sources/**/*.swift",1259 "App/Sources/**/*.swift"1260 ],1261 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1262 "expect": "absent",1263 "on_unmet": "not-assessed"1264 }1265 ]1266 },1267 {1268 "id": "WSB-PERM-005",1269 "title": "Token approval management",1270 "group": "PERM",1271 "verdict": "partial",1272 "scope": "service",1273 "severity": "low",1274 "rationale": "The wallet never grants an allowance (mainnet policy: approvals only with amount zero) and can revoke one with `revokeApproval`.",1275 "gap": "Existing allowances granted elsewhere with the same key are not listed.",1276 "evidence": [1277 {1278 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:427",1279 "contains": "public func revokeApproval"1280 },1281 {1282 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:606",1283 "contains": "only signs approvals that revoke an allowance"1284 }1285 ]1286 },1287 {1288 "id": "WSB-PERM-006",1289 "title": "eth_sign method disabled",1290 "group": "PERM",1291 "verdict": "not-applicable",1292 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources. No RPC provider is exposed, so no dApp can call eth_sign or request a chain switch.",1293 "checks": [1294 {1295 "id": "no-dapp-surface",1296 "type": "grep",1297 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1298 "globs": [1299 "Sources/**/*.swift",1300 "App/Sources/**/*.swift"1301 ],1302 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1303 "expect": "absent",1304 "on_unmet": "not-assessed"1305 },1306 {1307 "id": "no-typed-data-signing",1308 "type": "grep",1309 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1310 "globs": [1311 "Sources/QyvoraWallet/**/*.swift",1312 "App/Sources/**/*.swift"1313 ],1314 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1315 "expect": "absent",1316 "on_unmet": "not-assessed"1317 }1318 ]1319 },1320 {1321 "id": "WSB-PERM-007~Mobile",1322 "title": "Confirmation for requests from WalletConnect",1323 "group": "PERM",1324 "verdict": "not-applicable",1325 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources. No RPC provider is exposed, so no dApp can call eth_sign or request a chain switch.",1326 "checks": [1327 {1328 "id": "no-dapp-surface",1329 "type": "grep",1330 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1331 "globs": [1332 "Sources/**/*.swift",1333 "App/Sources/**/*.swift"1334 ],1335 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1336 "expect": "absent",1337 "on_unmet": "not-assessed"1338 },1339 {1340 "id": "no-typed-data-signing",1341 "type": "grep",1342 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1343 "globs": [1344 "Sources/QyvoraWallet/**/*.swift",1345 "App/Sources/**/*.swift"1346 ],1347 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1348 "expect": "absent",1349 "on_unmet": "not-assessed"1350 }1351 ]1352 },1353 {1354 "id": "WSB-PERM-008~Browser",1355 "title": "User consent for dApp access",1356 "group": "PERM",1357 "verdict": "not-applicable",1358 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources. No RPC provider is exposed, so no dApp can call eth_sign or request a chain switch.",1359 "checks": [1360 {1361 "id": "no-dapp-surface",1362 "type": "grep",1363 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1364 "globs": [1365 "Sources/**/*.swift",1366 "App/Sources/**/*.swift"1367 ],1368 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1369 "expect": "absent",1370 "on_unmet": "not-assessed"1371 },1372 {1373 "id": "no-typed-data-signing",1374 "type": "grep",1375 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1376 "globs": [1377 "Sources/QyvoraWallet/**/*.swift",1378 "App/Sources/**/*.swift"1379 ],1380 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1381 "expect": "absent",1382 "on_unmet": "not-assessed"1383 }1384 ]1385 },1386 {1387 "id": "WSB-PERM-009",1388 "title": "User confirmation before switching chains",1389 "group": "PERM",1390 "verdict": "not-applicable",1391 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources. No RPC provider is exposed, so no dApp can call eth_sign or request a chain switch.",1392 "checks": [1393 {1394 "id": "no-dapp-surface",1395 "type": "grep",1396 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1397 "globs": [1398 "Sources/**/*.swift",1399 "App/Sources/**/*.swift"1400 ],1401 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1402 "expect": "absent",1403 "on_unmet": "not-assessed"1404 },1405 {1406 "id": "no-typed-data-signing",1407 "type": "grep",1408 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1409 "globs": [1410 "Sources/QyvoraWallet/**/*.swift",1411 "App/Sources/**/*.swift"1412 ],1413 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1414 "expect": "absent",1415 "on_unmet": "not-assessed"1416 }1417 ]1418 },1419 {1420 "id": "WSB-PERM-010~Mobile",1421 "title": "User confirmation for requests from embedded browser",1422 "group": "PERM",1423 "verdict": "not-applicable",1424 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources. No RPC provider is exposed, so no dApp can call eth_sign or request a chain switch.",1425 "checks": [1426 {1427 "id": "no-dapp-surface",1428 "type": "grep",1429 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1430 "globs": [1431 "Sources/**/*.swift",1432 "App/Sources/**/*.swift"1433 ],1434 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1435 "expect": "absent",1436 "on_unmet": "not-assessed"1437 },1438 {1439 "id": "no-typed-data-signing",1440 "type": "grep",1441 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1442 "globs": [1443 "Sources/QyvoraWallet/**/*.swift",1444 "App/Sources/**/*.swift"1445 ],1446 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1447 "expect": "absent",1448 "on_unmet": "not-assessed"1449 }1450 ]1451 },1452 {1453 "id": "WSB-PERM-010~Browser",1454 "title": "User confirmation before processing requests",1455 "group": "PERM",1456 "verdict": "not-applicable",1457 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources. No RPC provider is exposed, so no dApp can call eth_sign or request a chain switch.",1458 "checks": [1459 {1460 "id": "no-dapp-surface",1461 "type": "grep",1462 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1463 "globs": [1464 "Sources/**/*.swift",1465 "App/Sources/**/*.swift"1466 ],1467 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1468 "expect": "absent",1469 "on_unmet": "not-assessed"1470 },1471 {1472 "id": "no-typed-data-signing",1473 "type": "grep",1474 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1475 "globs": [1476 "Sources/QyvoraWallet/**/*.swift",1477 "App/Sources/**/*.swift"1478 ],1479 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1480 "expect": "absent",1481 "on_unmet": "not-assessed"1482 }1483 ]1484 },1485 {1486 "id": "WSB-VERI-001",1487 "title": "Invalid address checksum detection",1488 "group": "VERI",1489 "verdict": "pass",1490 "scope": "service",1491 "rationale": "Invalid EIP-55 checksums are rejected; Bitcoin addresses with a wrong Base58Check or Bech32/Bech32m checksum, or of another network, are rejected with a specific message. Multi-chain upgrade (2026-12-05): Invalid checksums are detected per family (EIP-55, Base58Check of TRON and of the UTXO coins, Bech32, CashAddr); an address of another family is refused by name.",1492 "evidence": [1493 {1494 "ref": "Sources/QyvoraEthereum/Address.swift:67",1495 "contains": "candidate.checksummed.dropFirst(2) != h"1496 },1497 {1498 "ref": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:486",1499 "contains": "The checksum of the address does not verify"1500 },1501 {1502 "ref": "Sources/QyvoraBitcoin/Address.swift:110",1503 "contains": "throw Error.wrongNetwork"1504 },1505 {1506 "ref": "Sources/QyvoraWallet/WalletService+Send.swift:232",1507 "contains": "if let found = foreignFamily(t), found.family != expected { return .wrongFamily(chain: chainName, found: found.name) }"1508 },1509 {1510 "ref": "security/tests/Tests/PropertyAuditTests/MultichainWalletProperties.swift:118",1511 "contains": "@Test func noAddressIsValidForAnotherFamily() async throws {"1512 }1513 ]1514 },1515 {1516 "id": "WSB-VERI-002",1517 "title": "Links to blockchain explorers",1518 "group": "VERI",1519 "verdict": "partial",1520 "scope": "app",1521 "rationale": "See WSC-4.16: explorer links for transactions and for the wallet's own account, from the network's explorer table; none for other addresses.",1522 "evidence": [1523 {1524 "ref": "App/Sources/Activity/TransactionDetailView.swift:73",1525 "contains": "if let url = item.entry.explorerURL { WalletExplorerLink(title: \"View on a block explorer\", url: url) }"1526 },1527 {1528 "ref": "App/Sources/Wallet/SendResultView.swift:81",1529 "contains": "if let url = result.explorerURL { WalletExplorerLink(title: \"View on a block explorer\", url: url) }"1530 },1531 {1532 "ref": "App/Sources/Wallet/ChainDetailScreen.swift:105",1533 "contains": "WalletExplorerLink(title: \"View the account on a block explorer\", url: url)"1534 },1535 {1536 "ref": "Sources/QyvoraWallet/Chains.swift:215",1537 "contains": "public func explorerAddressURL(_ address: String) -> URL? {"1538 },1539 {1540 "ref": "Sources/QyvoraCore/Networks.swift:806",1541 "contains": "public func explorerTransactionURL(hash: String) -> URL? {"1542 }1543 ],1544 "reassessed": "2026-12-05: evidence repointed to the rebuilt screens (the uniform send review SendReviewView.swift replaced EthereumReviewView.swift); each claim was read again in the current code"1545 },1546 {1547 "id": "WSB-VERI-003",1548 "title": "Transaction simulation",1549 "group": "VERI",1550 "verdict": "partial",1551 "scope": "service",1552 "severity": "info",1553 "rationale": "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.",1554 "gap": "The simulation is a refusal test on the user's own endpoint, not a preview of balance changes.",1555 "evidence": [1556 {1557 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:542",1558 "contains": "// simulate: a compliant token returns nothing (old tokens) or true"1559 },1560 {1561 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:549",1562 "contains": "throw EthereumRefusal.unexpectedTokenReturn"1563 }1564 ]1565 },1566 {1567 "id": "WSB-VERI-004",1568 "title": "EIP-712 message parsing",1569 "group": "VERI",1570 "verdict": "not-applicable",1571 "rationale": "Typed-data signing is not implemented.",1572 "checks": [1573 {1574 "id": "no-typed-data-signing",1575 "type": "grep",1576 "description": "No EIP-712 / personal_sign / eth_sign entry point in the wallet service or the application",1577 "globs": [1578 "Sources/QyvoraWallet/**/*.swift",1579 "App/Sources/**/*.swift"1580 ],1581 "pattern": "PersonalMessage|eth_signTypedData|EIP712|personal_sign|eth_sign\\b",1582 "expect": "absent",1583 "on_unmet": "not-assessed"1584 }1585 ]1586 },1587 {1588 "id": "WSB-VERI-005",1589 "title": "Clear token approval dialog",1590 "group": "VERI",1591 "verdict": "pass",1592 "scope": "app",1593 "rationale": "An approval is shown with its token, contract, spender and amount; an unlimited amount is flagged as critical and a revocation is named as such. On mainnet with an unaudited engine only revocations are signed.",1594 "evidence": [1595 {1596 "ref": "App/Sources/Wallet/SendReviewView.swift:313",1597 "contains": "case .tokenApproval(let token, let contract, let spender, let amount):"1598 },1599 {1600 "ref": "App/Sources/Wallet/SendReviewView.swift:316",1601 "contains": "ReviewRow(\"Spender\", value: spender.checksummed, emphasis: .address)"1602 },1603 {1604 "ref": "App/Sources/Security/SecColdSignView.swift:366",1605 "contains": "ReviewRow(\"Allowance\", value: ERC20.isUnlimited(amount) ? \"Unlimited\" : Self.tokenAmount(amount, token), emphasis: .strong)"1606 },1607 {1608 "ref": "Sources/QyvoraWallet/WalletTypes.swift:794",1609 "contains": "case .unlimitedApproval: return \"This approval lets the spender move an unlimited amount of the token.\""1610 }1611 ],1612 "reassessed": "2026-12-05: evidence repointed to the rebuilt screens (the uniform send review SendReviewView.swift replaced EthereumReviewView.swift); each claim was read again in the current code"1613 },1614 {1615 "id": "WSB-VERI-006",1616 "title": "Clear message signing dialog",1617 "group": "VERI",1618 "verdict": "not-applicable",1619 "scope": "app",1620 "rationale": "The wallet signs no message with a blockchain key (no personal_sign, no EIP-712, no dApp connection). The only message signature is the one of the separate post-quantum identity, whose screen shows the exact text signed and says that it is not a blockchain signature.",1621 "evidence": [1622 {1623 "ref": "App/Sources/Security/IdentitySignView.swift:60",1624 "contains": "It is not a blockchain signature and moves no funds."1625 }1626 ],1627 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1628 },1629 {1630 "id": "WSB-VERI-007",1631 "title": "Mandatory message review",1632 "group": "VERI",1633 "verdict": "not-applicable",1634 "scope": "app",1635 "rationale": "See WSB-VERI-006: no blockchain message signing. The identity signature needs a re-authentication enforced by the service.",1636 "evidence": [1637 {1638 "ref": "Sources/QyvoraWallet/WalletService+Shield.swift:234",1639 "contains": "try await requireFreshAuthentication()"1640 }1641 ],1642 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1643 },1644 {1645 "id": "WSB-THRE-001",1646 "title": "Trusted dApp detection",1647 "group": "THRE",1648 "verdict": "not-applicable",1649 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1650 "checks": [1651 {1652 "id": "no-dapp-surface",1653 "type": "grep",1654 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1655 "globs": [1656 "Sources/**/*.swift",1657 "App/Sources/**/*.swift"1658 ],1659 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1660 "expect": "absent",1661 "on_unmet": "not-assessed"1662 }1663 ]1664 },1665 {1666 "id": "WSB-THRE-002",1667 "title": "Malicious address detection",1668 "group": "THRE",1669 "verdict": "fail",1670 "scope": "service",1671 "severity": "low",1672 "rationale": "See WSC-4.6.",1673 "gap": "No scam-address screening (the open half of QYV-APP-010).",1674 "finding": "QYV-APP-010",1675 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1676 },1677 {1678 "id": "WSB-THRE-003",1679 "title": "Phishing dApp detection",1680 "group": "THRE",1681 "verdict": "not-applicable",1682 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1683 "checks": [1684 {1685 "id": "no-dapp-surface",1686 "type": "grep",1687 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1688 "globs": [1689 "Sources/**/*.swift",1690 "App/Sources/**/*.swift"1691 ],1692 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1693 "expect": "absent",1694 "on_unmet": "not-assessed"1695 }1696 ]1697 },1698 {1699 "id": "WSB-THRE-004",1700 "title": "dApp access disclosure dialog",1701 "group": "THRE",1702 "verdict": "not-applicable",1703 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1704 "checks": [1705 {1706 "id": "no-dapp-surface",1707 "type": "grep",1708 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1709 "globs": [1710 "Sources/**/*.swift",1711 "App/Sources/**/*.swift"1712 ],1713 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1714 "expect": "absent",1715 "on_unmet": "not-assessed"1716 }1717 ]1718 },1719 {1720 "id": "WSB-THRE-005",1721 "title": "Unknown address detection",1722 "group": "THRE",1723 "verdict": "pass",1724 "scope": "service",1725 "severity": "low",1726 "rationale": "See WSC-4.5 and 4.7: first-payment warning on both chains.",1727 "evidence": [1728 {1729 "ref": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:726",1730 "contains": "warnings.append(.firstPaymentToAddress)"1731 },1732 {1733 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:524",1734 "contains": "warnings.append(.firstPaymentToRecipient)"1735 },1736 {1737 "ref": "Tests/QyvoraWalletTests/FindingsFeeLimitTests.swift:179",1738 "contains": "func bitcoinWarnsOnceThenRemembersThePayment()"1739 }1740 ],1741 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1742 },1743 {1744 "id": "WSB-THRE-006",1745 "title": "Full dApp URL display",1746 "group": "THRE",1747 "verdict": "not-applicable",1748 "rationale": "QYVORA has no dApp connection of any kind (no WalletConnect, no injected provider, no embedded browser): there is no dApp request to authorise. The automated check confirms that no such surface exists in the sources.",1749 "checks": [1750 {1751 "id": "no-dapp-surface",1752 "type": "grep",1753 "description": "No dApp connection surface (WalletConnect, injected provider, embedded browser)",1754 "globs": [1755 "Sources/**/*.swift",1756 "App/Sources/**/*.swift"1757 ],1758 "pattern": "WalletConnect|WKWebView|SFSafariViewController|eth_requestAccounts|window\\.ethereum|wallet_switchEthereumChain",1759 "expect": "absent",1760 "on_unmet": "not-assessed"1761 }1762 ]1763 },1764 {1765 "id": "WSB-THRE-007",1766 "title": "Malicious or spam token filtering",1767 "group": "THRE",1768 "verdict": "pass",1769 "scope": "service",1770 "rationale": "Tokens found by the indexer are not shown as holdings until the user accepts them; metadata is read on chain and bounded (decimals ≤ 36). Multi-chain upgrade (2026-12-05): Tokens reported by an indexer on any EVM network are quarantined in detectedTokens, described by the chain, never valued, and not usable for a payment from a restored file.",1771 "evidence": [1772 {1773 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:358",1774 "contains": "public func acceptDetectedToken"1775 },1776 {1777 "ref": "Sources/QyvoraWallet/WalletService.swift:74",1778 "contains": "public static let maximumTokenDecimals = 36"1779 },1780 {1781 "ref": "Sources/QyvoraWallet/WalletService+Ethereum.swift:266",1782 "contains": "/// Tokens the indexer attributes to the account, each one read on chain. The indexer's symbol and decimals are ignored."1783 },1784 {1785 "ref": "Sources/QyvoraWallet/WalletService+Send.swift:375",1786 "contains": "if let snapshot = evmSnapshots[network], !snapshot.isFromPreviousSession,"1787 }1788 ]1789 },1790 {1791 "id": "WSB-PHYS-001",1792 "title": "Clipboard seed phrase leak prevention",1793 "group": "PHYS",1794 "verdict": "pass",1795 "scope": "app",1796 "severity": "medium",1797 "rationale": "The application never puts the recovery phrase on the clipboard: the views that show it offer no copy action and no text selection, and every other copied value stays on the device and expires. The words are hidden while the screen is captured and a screenshot is reported (QYV-APP-006, fixed). A phrase can be pasted into the import fields from the clipboard by the user.",1798 "evidence": [1799 {1800 "ref": "Sources/QyvoraUI/SeedPhrase.swift:97",1801 "contains": ".privacySensitive(protected)"1802 },1803 {1804 "ref": "Sources/QyvoraUI/Feedback.swift:68",1805 "contains": "options: [.localOnly: true, .expirationDate: Date().addingTimeInterval(lifetime(sensitive: sensitive))])"1806 },1807 {1808 "ref": "Sources/QyvoraUI/SeedPhrase.swift:150",1809 "contains": "public static func isHidden(masked: Bool, revealed: Bool, redacted: Bool, captured: Bool) -> Bool"1810 }1811 ],1812 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1813 },1814 {1815 "id": "WSB-PHYS-002~Mobile",1816 "title": "Robust authentication (biometrics, rate limiting, resistance to trivial credentials)",1817 "group": "PHYS",1818 "verdict": "pass",1819 "scope": "service",1820 "severity": "medium",1821 "rationale": "Password held to a floor by the service (QYV-APP-001, fixed); PIN of six digits with trivial ones refused (QYV-APP-011, fixed), bound to a device secret, with escalating delays measured on the monotonic clock (QYV-SVC-010, fixed) and a counter kept in the Keychain; biometrics through a device slot. Password attempts are slowed by Argon2id and PBKDF2 only.",1822 "evidence": [1823 {1824 "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:484",1825 "contains": "public nonisolated static func passwordRejection(_ candidate: String) -> String?"1826 },1827 {1828 "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:530",1829 "contains": "static func trivialPINReason(_ pin: String) -> String?"1830 },1831 {1832 "ref": "Sources/QyvoraVault/Vault.swift:358",1833 "contains": "guard state.hasMonotonic, state.bootSession == instant.bootSession, instant.seconds >= state.lastFailureUptime else { throw try restart() }"1834 },1835 {1836 "ref": "Tests/QyvoraVaultTests/PINClockTests.swift:64",1837 "contains": "func settingTheDateForwardDoesNotShortenTheDelay()"1838 },1839 {1840 "ref": "Tests/QyvoraWalletTests/FindingsCredentialTests.swift:148",1841 "contains": "func theServiceRefusesToEnableATrivialPIN()"1842 }1843 ],1844 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1845 },1846 {1847 "id": "WSB-PHYS-002~Browser",1848 "title": "Robust authentication",1849 "group": "PHYS",1850 "verdict": "not-applicable",1851 "rationale": "Browser-extension variant."1852 },1853 {1854 "id": "WSB-PHYS-003",1855 "title": "Seed phrase access warning",1856 "group": "PHYS",1857 "verdict": "pass",1858 "scope": "app",1859 "rationale": "The reveal screen warns, before the words are shown, that whoever reads them controls the funds, lists what not to do (screenshot, notes, e-mail) and adds a critical notice on a device that looks compromised.",1860 "evidence": [1861 {1862 "ref": "App/Sources/Security/RevealPhraseView.swift:64",1863 "contains": "WarningBanner(.critical, title: \"Anyone who reads these words controls the funds\","1864 },1865 {1866 "ref": "App/Sources/Security/RevealPhraseView.swift:96",1867 "contains": ".requiresReauthentication(isPresented: $reauthenticate, reason: \"Reveal the recovery phrase\") { reveal() }"1868 },1869 {1870 "ref": "App/Sources/Security/RevealPhraseView.swift:63",1871 "contains": "CompromisedDeviceNotice()"1872 }1873 ],1874 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1875 },1876 {1877 "id": "WSB-PHYS-004",1878 "title": "Manual wallet lock",1879 "group": "PHYS",1880 "verdict": "pass",1881 "scope": "app",1882 "severity": "low",1883 "rationale": "See WSC-3.1.",1884 "evidence": [1885 {1886 "ref": "App/Sources/Security/VaultView.swift:179",1887 "contains": "Button(\"Lock now\") { Task { await store.lock() } }"1888 }1889 ],1890 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1891 },1892 {1893 "id": "WSB-PHYS-005",1894 "title": "Seed phrase access control (authentication required)",1895 "group": "PHYS",1896 "verdict": "pass",1897 "scope": "service",1898 "severity": "medium",1899 "rationale": "Revealing the phrase, producing the recovery sheet with private material and exporting a backup need a credential verified within two minutes, enforced by the service (QYV-APP-002, fixed).",1900 "evidence": [1901 {1902 "ref": "Sources/QyvoraWallet/WalletService.swift:316",1903 "contains": "func requireFreshAuthentication(within window: TimeInterval = WalletService.authenticationWindow) async throws"1904 },1905 {1906 "ref": "Sources/QyvoraWallet/WalletService.swift:78",1907 "contains": "public static let authenticationWindow: TimeInterval = 120"1908 },1909 {1910 "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:361",1911 "contains": "try await requireFreshAuthentication()"1912 },1913 {1914 "ref": "Sources/QyvoraWallet/WalletService.swift:332",1915 "contains": "been verified recently: no signature is made on the strength of an unlocked vault alone."1916 },1917 {1918 "ref": "App/Sources/Security/ReauthenticationSheet.swift:322",1919 "contains": "func requiresReauthentication(isPresented: Binding<Bool>, reason: String, onSuccess: @escaping () -> Void) -> some View"1920 },1921 {1922 "ref": "Tests/QyvoraWalletTests/FindingsFreshAuthenticationTests.swift:71",1923 "contains": "func everySensitiveCallNeedsAFreshAuthentication()"1924 }1925 ],1926 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1927 },1928 {1929 "id": "WSB-PHYS-006~Mobile",1930 "title": "Automatic wallet lock (inactivity, device lock, background)",1931 "group": "PHYS",1932 "verdict": "pass",1933 "scope": "app",1934 "severity": "medium",1935 "rationale": "See WSC-3.4: the policy is applied on a timer, on leaving for the background and on return (QYV-APP-003 and QYV-APP-004, fixed).",1936 "evidence": [1937 {1938 "ref": "Sources/QyvoraWallet/WalletTypes.swift:259",1939 "contains": "public var autoLock: AutoLockPolicy = .after(seconds: 300)"1940 },1941 {1942 "ref": "Sources/QyvoraWallet/WalletService.swift:83",1943 "contains": "public static let maximumAutoLockDelay: TimeInterval = 900"1944 },1945 {1946 "ref": "Sources/QyvoraWallet/WalletService.swift:579",1947 "contains": "The auto-lock cannot be switched off"1948 },1949 {1950 "ref": "Sources/QyvoraWallet/AutoLockRule.swift:79",1951 "contains": "public static func action(for event: Event, policy: AutoLockPolicy, isUnlocked: Bool) -> Action"1952 },1953 {1954 "ref": "App/Sources/RootView.swift:132",1955 "contains": "switch AutoLockRule.action(for: event, policy: snapshot.profile.autoLock, isUnlocked: snapshot.vault.isUnlocked)"1956 },1957 {1958 "ref": "App/Sources/RootView.swift:89",1959 "contains": ".task(id: autoLockTimerKey) { await autoLockTimer() }"1960 },1961 {1962 "ref": "Tests/QyvoraWalletTests/FindingsFreshAuthenticationTests.swift:233",1963 "contains": "func theLifeCycleLocksTheVaultImmediatelyAfterTheDelayAndInTheBackground()"1964 }1965 ],1966 "checks": [1967 {1968 "id": "auto-lock-wired",1969 "type": "grep",1970 "description": "The application applies the auto-lock policy (timer or scene phase)",1971 "globs": [1972 "App/Sources/**/*.swift"1973 ],1974 "pattern": "autoLockIfNeeded\\(\\)",1975 "expect": "present",1976 "exclude": [1977 "App/Sources/WalletStore.swift"1978 ],1979 "on_unmet": "fail",1980 "finding": "QYV-APP-003"1981 }1982 ],1983 "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1984 },1985 {1986 "id": "WSB-PHYS-006~Browser",1987 "title": "Automatic wallet lock",1988 "group": "PHYS",1989 "verdict": "not-applicable",1990 "rationale": "Browser-extension variant."1991 }1992 ]1993}1994