SPB Git

Repository Public

masvs-v2.json 54.9 KB 1,201 lines json

1{2  "schema": "qyvora-audit/framework/1",3  "framework": "OWASP Mobile Application Security Verification Standard (MASVS) v2",4  "source": {5    "repository": "https://github.com/OWASP/masvs",6    "homepage": "https://mas.owasp.org/MASVS/",7    "version": "MASVS v2 control set incl. MASVS-PRIVACY, repository commit bbe226fd17e6dab51927f392936deef31c816423 (2026-09-21)",8    "licence": "CC-BY-SA-4.0",9    "retrieved": "2026-12-04",10    "note": "Control statements are quoted from controls/MASVS-*.md at that commit (24 controls in 8 groups)."11  },12  "coverage": "All 24 MASVS v2 controls are assessed by source review, with automated checks over the sources, Info.plist and entitlements that are re-evaluated at every run. MASVS is not a certification scheme and this is an internal self-assessment: no dynamic analysis on a device (no runtime instrumentation, no traffic interception, no jailbroken-device test) was performed. Controls that depend on unfinished screens are `partial`; evidence named `runner:<tool>` is supplied by that tool's result in the same audit run.",13  "verdicts": {14    "pass": "control met, with verified evidence",15    "partial": "met in part",16    "fail": "not met",17    "not-applicable": "no such component",18    "not-assessed": "cannot be judged at the audited commit"19  },20  "items": [21    {22      "id": "MASVS-STORAGE-1",23      "title": "The app securely stores sensitive data.",24      "group": "STORAGE",25      "verdict": "pass",26      "rationale": "Every secret (recovery phrase, BIP-39 passphrase, identity keys) is a record of the vault file, sealed with AES-256-GCM under a subkey of a random 256-bit master key; the file is authenticated (HMAC-SHA256 and a checksum), written atomically with NSFileProtectionComplete and excluded from backups. The master key is wrapped per unlock slot; Keychain items are generic passwords in class WhenPasscodeSetThisDeviceOnly, never synchronizable, the biometric one behind `.biometryCurrentSet`. UserDefaults holds settings only (appearance, endpoint URLs). The public profile (extended public keys, labels) is a JSON file under the same file protection: not secret, but privacy-relevant. This protection is symmetric, 256-bit; it concerns local storage and says nothing about Bitcoin or Ethereum signatures. Multi-chain upgrade (2026-12-05): Version 2 of the account binding extends the vault's vouching to the Solana and TRON addresses and to the accounts of the other UTXO coins; persisted snapshots of the new chains hold public chain data only and are validated on reading.",27      "gap": "Vault and backup passwords are not held to a minimum strength (QYV-APP-001).",28      "evidence": [29        {30          "ref": "Sources/QyvoraVault/VaultFile.swift:98",31          "contains": "file     = magic ‖ version ‖ headerLength ‖ header ‖ bodyLength ‖ body ‖ mac ‖ checksum"32        },33        {34          "ref": "Sources/QyvoraVault/Vault.swift:572",35          "contains": "recordEncryption: \"AES-256-GCM\""36        },37        {38          "ref": "Sources/QyvoraStorage/FileStore.swift:223",39          "contains": ".protectionKey: key"40        },41        {42          "ref": "Sources/QyvoraStorage/KeychainStore.swift:102",43          "contains": "kSecAttrAccessible as String] = kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly"44        },45        {46          "ref": "Sources/QyvoraStorage/KeychainStore.swift:82",47          "contains": "kSecAttrSynchronizable as String: false"48        },49        {50          "ref": "Tests/QyvoraVaultTests/VaultTests.swift:484",51          "contains": "everySingleByteCorruptionIsDetected"52        },53        {54          "ref": "Tests/QyvoraVaultTests/VaultTests.swift:646",55          "contains": "recordsCannotBeSwappedOrRelabelledEvenWithTheKey"56        },57        {58          "ref": "App/Sources/AppModel.swift:120",59          "contains": "they are settings, not secrets"60        },61        {62          "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:168",63          "contains": "struct AccountBinding: Codable, Equatable {"64        },65        {66          "ref": "Sources/QyvoraWallet/ChainPersistence.swift:89",67          "contains": "struct SolanaChainRecord: Codable, Equatable, Sendable {"68        }69      ],70      "checks": [71        {72          "id": "defaults-non-secret-only",73          "type": "grep",74          "description": "UserDefaults / @AppStorage used only by the settings files (appearance, endpoints), the declarations of the two interface preferences of the wallet screens (hide amounts, dashboard listing: WalletCommon.swift) and the DEBUG-only launch-argument readers",75          "globs": [76            "Sources/**/*.swift",77            "App/Sources/**/*.swift"78          ],79          "pattern": "UserDefaults|@AppStorage",80          "expect": "absent",81          "exclude": [82            "App/Sources/AppModel.swift",83            "App/Sources/AppearanceSettingsView.swift",84            "App/Sources/SettingsView.swift",85            "App/Sources/QyvoraApp.swift",86            "App/Sources/DebugLaunch.swift",87            "App/Sources/Wallet/WalletCommon.swift",88            "App/Sources/Security/SecurityDebug.swift",89            "App/Sources/Wallet/DebugWalletLaunch.swift"90          ],91          "severity": "medium",92          "area": "app",93          "cwe": "CWE-312",94          "on_unmet": "partial",95          "recommendation": "Check that the new use stores no secret and no address; add the file to the allow-list of this check or move the data to the vault.",96          "allow_list_note": "2026-12-04: WalletCommon.swift declares the one Boolean preference of the wallet screens (hide amounts); 2026-12-05: and the dashboard listing choice (the text \"Networks\" or \"Assets\"), moved there from DashboardView.swift so that the allow-list did not have to grow (the read of a launch argument in DebugGallery.swift now goes through DebugLaunch.defaults); SecurityDebug.swift and DebugWalletLaunch.swift are compiled in DEBUG only and read launch arguments. None stores a secret, an address or an amount."97        },98        {99          "id": "keychain-classes",100          "type": "grep",101          "description": "No Keychain accessibility class weaker than WhenPasscodeSetThisDeviceOnly / WhenUnlockedThisDeviceOnly",102          "globs": [103            "Sources/**/*.swift",104            "App/Sources/**/*.swift"105          ],106          "pattern": "kSecAttrAccessibleAfterFirstUnlock|kSecAttrAccessibleAlways|kSecAttrAccessibleWhenUnlocked\\b|kSecAttrSynchronizable as String: true",107          "expect": "absent",108          "severity": "high",109          "area": "wallet",110          "cwe": "CWE-522",111          "recommendation": "Use a ThisDeviceOnly class that requires the device to be unlocked."112        },113        {114          "id": "file-protection-complete",115          "type": "grep",116          "description": "Files are written with NSFileProtectionComplete by default",117          "globs": [118            "Sources/QyvoraStorage/FileStore.swift"119          ],120          "pattern": "protection: Protection = \\.complete",121          "expect": "present",122          "severity": "high",123          "area": "wallet",124          "cwe": "CWE-311",125          "recommendation": "Keep `.complete` as the default protection of FileStore."126        },127        {128          "id": "default-data-protection",129          "type": "plist",130          "description": "The entitlements declare NSFileProtectionComplete as the default data protection",131          "path": "App/Resources/Qyvora.entitlements",132          "key": "com.apple.developer.default-data-protection",133          "expect": {134            "equals": "NSFileProtectionComplete"135          },136          "severity": "medium",137          "area": "app",138          "cwe": "CWE-311",139          "recommendation": "Restore the default-data-protection entitlement."140        },141        {142          "id": "no-file-sharing",143          "type": "plist",144          "description": "iTunes / Files sharing of the container is off",145          "path": "App/Resources/Info.plist",146          "key": "UIFileSharingEnabled",147          "expect": "absent-or-false",148          "severity": "high",149          "area": "app",150          "cwe": "CWE-552",151          "recommendation": "Keep UIFileSharingEnabled false."152        }153      ],154      "residual_risk": "medium (offline search of a weak password after device or backup compromise)"155    },156    {157      "id": "MASVS-STORAGE-2",158      "title": "The app prevents leakage of sensitive data.",159      "group": "STORAGE",160      "verdict": "partial",161      "severity": "medium",162      "rationale": "Keyboard extensions are refused application-wide (QYV-APP-005, fixed); the recovery words are hidden while the screen is captured and a screenshot is reported (QYV-APP-006, fixed); the phrase is never copied and every copied value is local and expires; the privacy cover hides the content in the app switcher; nothing secret is logged.",163      "gap": "Key material that Swift cannot erase (scalars of the signing path on the stack, hash scratch, the String forms of the phrase where it is displayed or typed): QYV-CRY-003, reduced and still open. A screenshot cannot be prevented by an application.",164      "finding": "QYV-CRY-003",165      "evidence": [166        {167          "ref": "App/Sources/AppDelegate.swift:51",168          "contains": "shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool"169        },170        {171          "ref": "App/Sources/QyvoraApp.swift:47",172          "contains": "@UIApplicationDelegateAdaptor(QyvoraAppDelegate.self) private var delegate"173        },174        {175          "ref": "Sources/QyvoraUI/SeedPhrase.swift:150",176          "contains": "public static func isHidden(masked: Bool, revealed: Bool, redacted: Bool, captured: Bool) -> Bool"177        },178        {179          "ref": "Sources/QyvoraUI/SeedPhrase.swift:169",180          "contains": "UIApplication.userDidTakeScreenshotNotification"181        },182        {183          "ref": "Sources/QyvoraUI/Feedback.swift:68",184          "contains": "options: [.localOnly: true, .expirationDate: Date().addingTimeInterval(lifetime(sensitive: sensitive))])"185        },186        {187          "ref": "Sources/QyvoraWallet/WalletService.swift:353",188          "contains": "seed = BIP39.seed(normalizedMnemonic: phrase, normalizedPassphrase: passphrase)"189        }190      ],191      "checks": [192        {193          "id": "no-logging-in-sources",194          "type": "grep",195          "description": "No print / NSLog / os_log / Logger call in the engine, services or application",196          "globs": [197            "Sources/**/*.swift",198            "App/Sources/**/*.swift"199          ],200          "pattern": "^\\s*(print|debugPrint|NSLog|os_log|dump)\\(|\\bLogger\\(",201          "expect": "absent",202          "exclude": [203            "Sources/qyvora-bench/*",204            "App/Sources/Debug*.swift"205          ],206          "severity": "medium",207          "area": "app",208          "cwe": "CWE-532",209          "recommendation": "Remove the logging call or prove that it carries no secret."210        },211        {212          "id": "backup-exclusion",213          "type": "grep",214          "description": "The storage layer excludes its files from backups",215          "globs": [216            "Sources/QyvoraStorage/FileStore.swift"217          ],218          "pattern": "isExcludedFromBackup = true",219          "expect": "present",220          "severity": "high",221          "area": "wallet",222          "cwe": "CWE-530",223          "recommendation": "Restore the backup exclusion in FileStore.applyAttributes."224        },225        {226          "id": "pasteboard-only-in-helper",227          "type": "grep",228          "description": "UIPasteboard is used only by the sanctioned clipboard helper",229          "globs": [230            "Sources/**/*.swift",231            "App/Sources/**/*.swift"232          ],233          "pattern": "UIPasteboard",234          "expect": "absent",235          "exclude": [236            "Sources/QyvoraUI/Feedback.swift"237          ],238          "severity": "medium",239          "area": "app",240          "cwe": "CWE-200",241          "recommendation": "Route every copy through QClipboard.copy(_:sensitive:)."242        },243        {244          "id": "privacy-cover-present",245          "type": "grep",246          "description": "The root view installs the privacy cover when the scene is not active",247          "globs": [248            "App/Sources/RootView.swift"249          ],250          "pattern": "qPrivacyCover\\(isActive:",251          "expect": "present",252          "severity": "medium",253          "area": "app",254          "cwe": "CWE-200",255          "recommendation": "Restore `.qPrivacyCover(isActive:)` on the root view."256        },257        {258          "id": "custom-keyboards-refused",259          "type": "grep",260          "description": "Keyboard extensions are refused application-wide",261          "globs": [262            "App/Sources/**/*.swift"263          ],264          "pattern": "shouldAllowExtensionPointIdentifier",265          "expect": "present",266          "on_unmet": "fail",267          "finding": "QYV-APP-005"268        },269        {270          "id": "screen-capture-handled",271          "type": "grep",272          "description": "The application reacts to screen capture or screenshots of secrets",273          "globs": [274            "Sources/**/*.swift",275            "App/Sources/**/*.swift"276          ],277          "pattern": "isCaptured|userDidTakeScreenshotNotification|sceneCaptureState",278          "expect": "present",279          "on_unmet": "fail",280          "finding": "QYV-APP-006"281        }282      ],283      "residual_risk": "low to medium",284      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"285    },286    {287      "id": "MASVS-CRYPTO-1",288      "title": "The app employs current strong cryptography and uses it according to industry best practices.",289      "group": "CRYPTO",290      "verdict": "partial",291      "severity": "medium",292      "rationale": "Algorithms and parameters are current and standard: AES-256-GCM (96-bit random nonces, 128-bit tags), ChaCha20-Poly1305, SHA-2, SHA-3 / Keccak, HMAC, HKDF, Argon2id (RFC 9106 second recommended set) combined with PBKDF2-HMAC-SHA512, ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205), secp256k1 ECDSA with RFC 6979 and low-s. No broken primitive or mode is used through the system libraries. Conformance is established by the official vectors and differential tests of this audit (runner:swift-audit, areas conformance / wycheproof / differential).",293      "gap": "The implementations are written from scratch and have had no independent review; Swift offers no constant-time guarantee (statistical timing tests only).",294      "finding": "QYV-APP-007",295      "evidence": [296        {297          "ref": "Sources/QyvoraVault/VaultCrypto.swift:221",298          "contains": "Default: Argon2id 64 MiB, t = 3, p = 4 (RFC 9106 second recommendation) and PBKDF2 with 600 000 iterations."299        },300        {301          "ref": "Sources/QyvoraSecp256k1/Secp256k1.swift:338",302          "contains": "deterministic nonce (RFC 6979) and low s"303        },304        {305          "ref": "Sources/QyvoraIdentity/HybridEnvelope.swift:48",306          "contains": "X25519 (CryptoKit) and ML-KEM-1024 (QYVORA engine) together"307        },308        "runner:swift-audit conformance",309        "runner:swift-audit differential"310      ],311      "checks": [312        {313          "id": "no-broken-primitives",314          "type": "grep",315          "description": "No DES / 3DES / RC4 / MD5 / SHA-1 and no ECB or CBC mode through the system libraries",316          "globs": [317            "Sources/**/*.swift",318            "App/Sources/**/*.swift"319          ],320          "pattern": "kCCAlgorithmDES|kCCAlgorithm3DES|kCCAlgorithmRC4|Insecure\\.(MD5|SHA1)|CC_MD5\\(|CC_SHA1\\(|kCCOptionECBMode|kCCModeECB|kCCModeCBC",321          "expect": "absent",322          "severity": "high",323          "area": "crypto",324          "cwe": "CWE-327",325          "recommendation": "Use the approved primitives only."326        }327      ],328      "residual_risk": "medium until an independent cryptographic review"329    },330    {331      "id": "MASVS-CRYPTO-2",332      "title": "The app performs key management according to industry best practices.",333      "group": "CRYPTO",334      "verdict": "pass",335      "rationale": "All keys, salts, nonces and seeds come from `SystemRandom` (SecRandomCopyBytes), the only entropy source. The 256-bit master key never touches the disk unwrapped; purpose-separated subkeys are derived with HKDF-SHA256 and labels; each slot has its own salts; the key epoch and `rotateMasterKey` re-encrypt every record and scrub the previous file copy; the device slot key sits behind biometrics in the Keychain and can be wrapped by a Secure Enclave key that never leaves the hardware; the master key in memory is zeroed on lock. ECDSA nonces are deterministic (RFC 6979).",336      "gap": "Random 96-bit GCM nonces bound the number of seals per key by the birthday limit (documented in the cryptographic report); the Secure Enclave key requires no user presence (it binds to the device, the biometric gate is the Keychain item).",337      "evidence": [338        {339          "ref": "Sources/QyvoraMath/SystemRandom.swift:44",340          "contains": "The only entropy source of the engine"341        },342        {343          "ref": "Sources/QyvoraVault/VaultCrypto.swift:291",344          "contains": "public static let records = \"qyvora/v1/records\""345        },346        {347          "ref": "Sources/QyvoraVault/Vault.swift:486",348          "contains": "public func rotateMasterKey"349        },350        {351          "ref": "Sources/QyvoraStorage/SecureEnclaveKey.swift:56",352          "contains": "the private key never leaves it"353        },354        {355          "ref": "Sources/QyvoraVault/SecretBytes.swift:71",356          "contains": "deinit {"357        },358        {359          "ref": "Tests/QyvoraVaultTests/VaultTests.swift:807",360          "contains": "rotationKeepsRecordsAndInvalidatesTheOldKey"361        },362        {363          "ref": "Tests/QyvoraVaultTests/VaultTests.swift:780",364          "contains": "noncesAreUniqueAcrossManySeals"365        }366      ],367      "checks": [368        {369          "id": "system-rng-only",370          "type": "grep",371          "description": "No generator other than SystemRandom (SecRandomCopyBytes) in the engine, services or application",372          "globs": [373            "Sources/**/*.swift",374            "App/Sources/**/*.swift"375          ],376          "pattern": "arc4random|drand48|\\bsrand\\(|\\brandom\\(\\)|SystemRandomNumberGenerator|\\.random\\(in:|\\.randomElement\\(|\\.shuffled\\(\\)|GKRandom",377          "expect": "absent",378          "severity": "high",379          "area": "crypto",380          "cwe": "CWE-338",381          "recommendation": "Draw from SystemRandom.bytes only."382        },383        {384          "id": "keychain-classes",385          "type": "grep",386          "description": "No Keychain accessibility class weaker than WhenPasscodeSetThisDeviceOnly / WhenUnlockedThisDeviceOnly",387          "globs": [388            "Sources/**/*.swift",389            "App/Sources/**/*.swift"390          ],391          "pattern": "kSecAttrAccessibleAfterFirstUnlock|kSecAttrAccessibleAlways|kSecAttrAccessibleWhenUnlocked\\b|kSecAttrSynchronizable as String: true",392          "expect": "absent",393          "severity": "high",394          "area": "wallet",395          "cwe": "CWE-522",396          "recommendation": "Use a ThisDeviceOnly class that requires the device to be unlocked."397        }398      ],399      "residual_risk": "low"400    },401    {402      "id": "MASVS-AUTH-1",403      "title": "The app uses secure authentication and authorization protocols and follows the relevant best practices.",404      "group": "AUTH",405      "verdict": "not-applicable",406      "rationale": "No remote account, session or token exists: the wallet has no server and authenticates to nothing. The endpoints it reads are public blockchain interfaces.",407      "evidence": [408        {409          "ref": "Sources/QyvoraWallet/WalletService.swift:53",410          "contains": "No account, no server of its own, no telemetry"411        }412      ]413    },414    {415      "id": "MASVS-AUTH-2",416      "title": "The app performs local authentication securely according to the platform best practices.",417      "group": "AUTH",418      "verdict": "pass",419      "severity": "medium",420      "rationale": "Password floor enforced by the service (QYV-APP-001), trivial PINs refused (QYV-APP-011), PIN delays on the monotonic clock with the counter in the Keychain (QYV-SVC-010), biometrics through the device slot (Keychain, optionally Secure Enclave), auto-lock applied by the application and bounded at fifteen minutes (QYV-APP-003, QYV-APP-004): all fixed and tested.",421      "evidence": [422        {423          "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:484",424          "contains": "public nonisolated static func passwordRejection(_ candidate: String) -> String?"425        },426        {427          "ref": "Sources/QyvoraWallet/WalletService.swift:85",428          "contains": "public static let minimumPasswordLength = 10"429        },430        {431          "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:530",432          "contains": "static func trivialPINReason(_ pin: String) -> String?"433        },434        {435          "ref": "Sources/QyvoraVault/Vault.swift:358",436          "contains": "guard state.hasMonotonic, state.bootSession == instant.bootSession, instant.seconds >= state.lastFailureUptime else { throw try restart() }"437        },438        {439          "ref": "Tests/QyvoraVaultTests/PINClockTests.swift:64",440          "contains": "func settingTheDateForwardDoesNotShortenTheDelay()"441        },442        {443          "ref": "Tests/QyvoraWalletTests/FindingsCredentialTests.swift:148",444          "contains": "func theServiceRefusesToEnableATrivialPIN()"445        },446        {447          "ref": "Sources/QyvoraWallet/WalletService.swift:83",448          "contains": "public static let maximumAutoLockDelay: TimeInterval = 900"449        },450        {451          "ref": "Sources/QyvoraWallet/WalletService.swift:579",452          "contains": "The auto-lock cannot be switched off"453        },454        {455          "ref": "Sources/QyvoraWallet/AutoLockRule.swift:79",456          "contains": "public static func action(for event: Event, policy: AutoLockPolicy, isUnlocked: Bool) -> Action"457        },458        {459          "ref": "App/Sources/RootView.swift:132",460          "contains": "switch AutoLockRule.action(for: event, policy: snapshot.profile.autoLock, isUnlocked: snapshot.vault.isUnlocked)"461        }462      ],463      "checks": [464        {465          "id": "no-boolean-biometrics",466          "type": "grep",467          "description": "Biometrics are never used as a bare yes/no check (LAContext.evaluatePolicy)",468          "globs": [469            "Sources/**/*.swift",470            "App/Sources/**/*.swift"471          ],472          "pattern": "evaluatePolicy\\(",473          "expect": "absent",474          "severity": "medium",475          "area": "app",476          "cwe": "CWE-287",477          "on_unmet": "partial",478          "recommendation": "Keep the secret behind a Keychain item with an access control; never unlock on the boolean result of evaluatePolicy."479        },480        {481          "id": "auto-lock-wired",482          "type": "grep",483          "description": "The application applies the auto-lock policy (timer or scene phase)",484          "globs": [485            "App/Sources/**/*.swift"486          ],487          "pattern": "autoLockIfNeeded\\(\\)",488          "expect": "present",489          "exclude": [490            "App/Sources/WalletStore.swift"491          ],492          "on_unmet": "fail",493          "finding": "QYV-APP-003"494        }495      ],496      "residual_risk": "medium",497      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"498    },499    {500      "id": "MASVS-AUTH-3",501      "title": "The app secures sensitive operations with additional authentication.",502      "group": "AUTH",503      "verdict": "pass",504      "severity": "medium",505      "rationale": "The sensitive calls of the service (phrase reveal, private recovery sheet, backup and transfer export, every signature, identity signature and rotation, disabling an unlock method, switching mainnet on, changing endpoints, lengthening the auto-lock) throw `authenticationRequired` unless a credential was verified within two minutes on the monotonic clock; the screens present the re-authentication sheet, which performs a real unlock (QYV-APP-002, fixed). Multi-chain upgrade (2026-12-05): Moving any chain to its main network, turning the mainnet switch on, changing endpoints of any family and signing on any family need a fresh authentication.",506      "evidence": [507        {508          "ref": "Sources/QyvoraWallet/WalletService.swift:316",509          "contains": "func requireFreshAuthentication(within window: TimeInterval = WalletService.authenticationWindow) async throws"510        },511        {512          "ref": "Sources/QyvoraWallet/WalletService.swift:78",513          "contains": "public static let authenticationWindow: TimeInterval = 120"514        },515        {516          "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:361",517          "contains": "try await requireFreshAuthentication()"518        },519        {520          "ref": "Sources/QyvoraWallet/WalletService.swift:332",521          "contains": "been verified recently: no signature is made on the strength of an unlocked vault alone."522        },523        {524          "ref": "App/Sources/Security/ReauthenticationSheet.swift:322",525          "contains": "func requiresReauthentication(isPresented: Binding<Bool>, reason: String, onSuccess: @escaping () -> Void) -> some View"526        },527        {528          "ref": "Tests/QyvoraWalletTests/FindingsFreshAuthenticationTests.swift:71",529          "contains": "func everySensitiveCallNeedsAFreshAuthentication()"530        },531        {532          "ref": "Sources/QyvoraWallet/WalletService+Chains.swift:215",533          "contains": "if profile.networkMode != .main || profile.bitcoinNetwork.isTest || profile.ethereumNetwork.isTest { try await requireFreshAuthentication() }"534        },535        {536          "ref": "Sources/QyvoraWallet/WalletService+Send.swift:587",537          "contains": "try await requireFreshAuthentication()"538        },539        {540          "ref": "Tests/QyvoraWalletTests/EVMChainsAuditRegressionTests.swift:70",541          "contains": "@Test func leavingTheTestNetworksAlwaysNeedsAFreshAuthentication() async throws {"542        }543      ],544      "residual_risk": "low",545      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"546    },547    {548      "id": "MASVS-NETWORK-1",549      "title": "The app secures all network traffic according to the current best practices.",550      "group": "NETWORK",551      "verdict": "pass",552      "rationale": "All traffic goes through one URLSession transport: ephemeral, no cookies, cache or credentials, redirects refused, system TLS validation untouched. App Transport Security is at its default (no exception in Info.plist). Endpoints must be https; http is accepted by the service only for local or private hosts, and ATS would still block it in the application as no local-networking exception is declared. Answers are validated before use (chain identity by genesis hash or chain id agreed by all endpoints, transaction identifiers recomputed locally). Multi-chain upgrade (2026-12-05): Fourteen EVM networks and the endpoints of three more families go through the same transport (https; http only to local or private hosts; no credentials in URLs; no redirects, cookies or cache) and every chain's endpoints must prove their chain before use. What one lying EVM endpoint can do is bounded and recorded (endpoint_impact).",553      "evidence": [554        {555          "ref": "Sources/QyvoraNetworking/HTTP.swift:58",556          "contains": "URLSession transport without cookies"557        },558        {559          "ref": "Sources/QyvoraNetworking/HTTP.swift:195",560          "contains": "public static func isAcceptable"561        },562        {563          "ref": "Sources/QyvoraNetworking/UTXOIndexer.swift:327",564          "contains": "guard hash == identity.hash else {"565        },566        {567          "ref": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:627",568          "contains": "throw WalletError.broadcastMismatch(local: localID, remote: remote)"569        },570        {571          "ref": "Sources/QyvoraNetworking/HTTP.swift:342",572          "contains": "public static func isAcceptable(_ text: String) -> Bool {"573        },574        {575          "ref": "Sources/QyvoraNetworking/EthereumRPC.swift:128",576          "contains": "public func verifyChain() async throws {"577        },578        {579          "ref": "security/tests/Tests/PropertyAuditTests/EVMChainsProperties.swift:338",580          "contains": "@Test func whatOneEndpointDecidesAlone() async throws {"581        }582      ],583      "checks": [584        {585          "id": "ats-default",586          "type": "plist",587          "description": "Info.plist carries no App Transport Security exception",588          "path": "App/Resources/Info.plist",589          "key": "NSAppTransportSecurity",590          "expect": "absent",591          "severity": "high",592          "area": "app",593          "cwe": "CWE-319",594          "recommendation": "Remove the NSAppTransportSecurity exception (or justify NSAllowsLocalNetworking only)."595        },596        {597          "id": "no-trust-override",598          "type": "grep",599          "description": "No custom server-trust evaluation, TLS downgrade or low-level socket",600          "globs": [601            "Sources/**/*.swift",602            "App/Sources/**/*.swift"603          ],604          "pattern": "URLAuthenticationChallenge|serverTrust|didReceive challenge|tlsMinimumSupportedProtocolVersion|NWConnection|CFStreamCreatePairWithSocket|URLSessionStreamTask",605          "expect": "absent",606          "severity": "high",607          "area": "app",608          "cwe": "CWE-295",609          "recommendation": "Remove the trust override; rely on the system validation."610        },611        {612          "id": "no-http-url-literal",613          "type": "grep",614          "description": "No hard-coded cleartext URL",615          "globs": [616            "Sources/**/*.swift",617            "App/Sources/**/*.swift"618          ],619          "pattern": "\\\"http://[A-Za-z0-9]",620          "expect": "absent",621          "severity": "medium",622          "area": "app",623          "cwe": "CWE-319",624          "recommendation": "Use https."625        },626        {627          "id": "redirects-disabled",628          "type": "grep",629          "description": "The HTTP transport refuses redirects and keeps no cookie, cache or credential",630          "globs": [631            "Sources/QyvoraNetworking/HTTP.swift"632          ],633          "pattern": "willPerformHTTPRedirection",634          "expect": "present",635          "severity": "medium",636          "area": "wallet",637          "cwe": "CWE-601",638          "recommendation": "Keep the NoRedirect delegate."639        }640      ],641      "residual_risk": "low"642    },643    {644      "id": "MASVS-NETWORK-2",645      "title": "The app performs identity pinning for all remote endpoints under the developer's control.",646      "group": "NETWORK",647      "verdict": "not-applicable",648      "rationale": "No remote endpoint is under the developer's control: QYVORA has no server. It reads public blockchain interfaces (Esplora, Ethereum JSON-RPC, a block explorer API, a price API) whose list the user can replace with their own nodes. Pinning certificates of third-party services that rotate them freely, or of arbitrary user-configured hosts, is not practicable, so none is done — by design. What an attacker able to forge TLS for an endpoint could do is bounded by the checks that do not depend on the endpoint: transactions are built, reviewed and signed locally and their identifier is recomputed; the chain identity must match; nonces and the chain id need agreement of every configured endpoint. The attacker could still lie about balances, history, fee levels (within the hard caps) or prices, and withhold a broadcast.",649      "gap": "No certificate or public-key pinning (accepted design position).",650      "evidence": [651        {652          "ref": "Sources/QyvoraNetworking/HTTP.swift:159",653          "contains": "Everything is user-editable (personal nodes, private RPC)"654        },655        {656          "ref": "Sources/QyvoraWallet/WalletService.swift:66",657          "contains": "public static let bitcoinMaximumFee: UInt64 = 1_000_000"658        },659        {660          "ref": "Sources/QyvoraNetworking/EthereumRPC.swift:139",661          "contains": "agreed by all endpoints"662        }663      ],664      "residual_risk": "low (integrity of displayed data, not of keys or signed content)"665    },666    {667      "id": "MASVS-PLATFORM-1",668      "title": "The app uses IPC mechanisms securely.",669      "group": "PLATFORM",670      "verdict": "pass",671      "rationale": "The application exposes no IPC surface: no custom URL scheme, no universal link, no app extension, no app group, no shared keychain group, no document sharing. The only outbound exchanges are the system pasteboard through one helper and files written to a location chosen by the user (encrypted backup).",672      "evidence": [673        {674          "ref": "App/Resources/Qyvora.entitlements:5",675          "contains": "com.apple.developer.default-data-protection"676        },677        {678          "ref": "Sources/QyvoraUI/Feedback.swift:50",679          "contains": "Clipboard access in one place"680        }681      ],682      "checks": [683        {684          "id": "no-url-scheme",685          "type": "plist",686          "description": "No custom URL scheme declared",687          "path": "App/Resources/Info.plist",688          "key": "CFBundleURLTypes",689          "expect": "absent",690          "on_unmet": "not-assessed"691        },692        {693          "id": "no-associated-domains",694          "type": "grep",695          "description": "No associated domains, app groups or keychain sharing entitlement",696          "globs": [697            "App/Resources/Qyvora.entitlements"698          ],699          "pattern": "associated-domains|application-groups|keychain-access-groups",700          "expect": "absent",701          "on_unmet": "not-assessed"702        },703        {704          "id": "no-file-sharing",705          "type": "plist",706          "description": "iTunes / Files sharing of the container is off",707          "path": "App/Resources/Info.plist",708          "key": "UIFileSharingEnabled",709          "expect": "absent-or-false",710          "severity": "high",711          "area": "app",712          "cwe": "CWE-552",713          "recommendation": "Keep UIFileSharingEnabled false."714        },715        {716          "id": "pasteboard-only-in-helper",717          "type": "grep",718          "description": "UIPasteboard is used only by the sanctioned clipboard helper",719          "globs": [720            "Sources/**/*.swift",721            "App/Sources/**/*.swift"722          ],723          "pattern": "UIPasteboard",724          "expect": "absent",725          "exclude": [726            "Sources/QyvoraUI/Feedback.swift"727          ],728          "severity": "medium",729          "area": "app",730          "cwe": "CWE-200",731          "recommendation": "Route every copy through QClipboard.copy(_:sensitive:)."732        }733      ],734      "residual_risk": "low"735    },736    {737      "id": "MASVS-PLATFORM-2",738      "title": "The app uses WebViews securely.",739      "group": "PLATFORM",740      "verdict": "not-applicable",741      "rationale": "The application contains no web view.",742      "checks": [743        {744          "id": "no-webview",745          "type": "grep",746          "description": "No web view",747          "globs": [748            "Sources/**/*.swift",749            "App/Sources/**/*.swift"750          ],751          "pattern": "WKWebView|UIWebView|SFSafariViewController|WKScriptMessageHandler|evaluateJavaScript",752          "expect": "absent",753          "on_unmet": "not-assessed"754        }755      ]756    },757    {758      "id": "MASVS-PLATFORM-3",759      "title": "The app uses the user interface securely.",760      "group": "PLATFORM",761      "verdict": "pass",762      "severity": "medium",763      "rationale": "Custom keyboards refused (QYV-APP-005, fixed); recovery words and revealed passwords hidden while the screen is captured, warning after a screenshot (QYV-APP-006, fixed); privacy cover while the application is not active, kept until the auto-lock check has run on return; phrase views marked privacy-sensitive, not selectable. Residual: iOS cannot prevent a screenshot. Multi-chain upgrade (2026-12-05): The engine gives the interface what it must show on the new chains (L1 data fee line and note, address notes, critical warnings, cold summaries decoded from the bytes, watch-only fingerprint); showing them is the interface's part (QYV-APP-080, QYV-APP-082, open).",764      "evidence": [765        {766          "ref": "App/Sources/AppDelegate.swift:51",767          "contains": "shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool"768        },769        {770          "ref": "App/Sources/QyvoraApp.swift:47",771          "contains": "@UIApplicationDelegateAdaptor(QyvoraAppDelegate.self) private var delegate"772        },773        {774          "ref": "Sources/QyvoraUI/SeedPhrase.swift:150",775          "contains": "public static func isHidden(masked: Bool, revealed: Bool, redacted: Bool, captured: Bool) -> Bool"776        },777        {778          "ref": "Sources/QyvoraUI/SeedPhrase.swift:169",779          "contains": "UIApplication.userDidTakeScreenshotNotification"780        },781        {782          "ref": "App/Sources/Security/RevealPhraseView.swift:104",783          "contains": ".warnsAboutScreenshots(of: !words.isEmpty, taken: $screenshotTaken)"784        },785        {786          "ref": "Tests/QyvoraUITests/QyvoraUITests.swift:376",787          "contains": "func theRecoveryWordsAreHiddenWheneverTheSceneIsCaptured()"788        },789        {790          "ref": "Sources/QyvoraWallet/WalletService+Send.swift:560",791          "contains": "lines.append(SendFeeLine(label: \"L1 data fee (with a margin of one quarter)\", amount: inner.l1DataFee))"792        },793        {794          "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:553",795          "contains": "public nonisolated static func watchOnlyFingerprint(package input: [String]) throws(WalletError) -> String {"796        }797      ],798      "checks": [799        {800          "id": "privacy-cover-present",801          "type": "grep",802          "description": "The root view installs the privacy cover when the scene is not active",803          "globs": [804            "App/Sources/RootView.swift"805          ],806          "pattern": "qPrivacyCover\\(isActive:",807          "expect": "present",808          "severity": "medium",809          "area": "app",810          "cwe": "CWE-200",811          "recommendation": "Restore `.qPrivacyCover(isActive:)` on the root view."812        },813        {814          "id": "custom-keyboards-refused",815          "type": "grep",816          "description": "Keyboard extensions are refused application-wide",817          "globs": [818            "App/Sources/**/*.swift"819          ],820          "pattern": "shouldAllowExtensionPointIdentifier",821          "expect": "present",822          "on_unmet": "fail",823          "finding": "QYV-APP-005"824        },825        {826          "id": "screen-capture-handled",827          "type": "grep",828          "description": "The application reacts to screen capture or screenshots of secrets",829          "globs": [830            "Sources/**/*.swift",831            "App/Sources/**/*.swift"832          ],833          "pattern": "isCaptured|userDidTakeScreenshotNotification|sceneCaptureState",834          "expect": "present",835          "on_unmet": "fail",836          "finding": "QYV-APP-006"837        }838      ],839      "residual_risk": "low to medium",840      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"841    },842    {843      "id": "MASVS-CODE-1",844      "title": "The app requires an up-to-date platform version.",845      "group": "CODE",846      "verdict": "pass",847      "rationale": "The deployment target is iOS 26.0, the current major version.",848      "gap": "The Swift package itself still declares iOS 18 as its minimum; the application target is what ships.",849      "evidence": [850        {851          "ref": "App/project.yml:46",852          "contains": "iOS: \"26.0\""853        },854        {855          "ref": "Package.swift:89",856          "contains": "platforms: [.iOS(.v18), .macOS(.v26)]"857        }858      ]859    },860    {861      "id": "MASVS-CODE-2",862      "title": "The app has a mechanism for enforcing app updates.",863      "group": "CODE",864      "verdict": "fail",865      "severity": "low",866      "rationale": "There is no mechanism to require an update (the wallet has no server to announce one).",867      "gap": "A known-vulnerable build keeps working.",868      "finding": "QYV-APP-012"869    },870    {871      "id": "MASVS-CODE-3",872      "title": "The app only uses software components without known vulnerabilities.",873      "group": "CODE",874      "verdict": "pass",875      "rationale": "The engine, the services and the application have no third-party component: the Swift package declares no dependency and the application links only that package and system frameworks. The reference implementations used by the audit (CryptoKit, CommonCrypto, a Rust library, Python packages) exist in the test environment only.",876      "gap": "The audit tooling itself (Semgrep, mobsfscan, MobSF, Gitleaks, Dontrust, Python oracles) is third-party software pinned in security/policies; it is not shipped.",877      "evidence": [878        {879          "ref": "Package.swift:44",880          "contains": "zero external dependency"881        },882        {883          "ref": "App/project.yml:51",884          "contains": "path: .."885        }886      ],887      "checks": [888        {889          "id": "no-third-party-dependency",890          "type": "grep",891          "description": "The package and the application declare no remote dependency",892          "globs": [893            "Package.swift",894            "App/project.yml"895          ],896          "pattern": "\\.package\\(\\s*url:|^\\s*url:\\s|github\\.com|carthage|cocoapods",897          "expect": "absent",898          "severity": "medium",899          "area": "supply-chain",900          "cwe": "CWE-1104",901          "recommendation": "Review and pin the new dependency; add a vulnerability scan for it."902        }903      ]904    },905    {906      "id": "MASVS-CODE-4",907      "title": "The app validates and sanitizes all untrusted inputs.",908      "group": "CODE",909      "verdict": "partial",910      "severity": "low",911      "rationale": "Untrusted input reaches the code through QR payloads, pasted text, backup and transfer files and network answers. Parsers return typed errors; addresses, PSBTs, transactions, descriptors, envelopes and backup files are validated structurally and cryptographically before use; network answers are range-checked. No web content, no SQL, no unsafe deserialization. The audit's fuzzing campaigns and sanitizer runs exercise every parser (runner:fuzz, runner:sanitizers). Multi-chain upgrade (2026-12-05): Every new untrusted input of the area has a strict reader, a property test and a fuzz target: fee figures, oracle return data, both indexer dialects, endpoint configuration, network lookups, the cold envelope, the watch-only package, persisted snapshots, addresses of every family, the account binding record; the wallet-sync target now synchronises four more families against hostile answers.",912      "gap": "This verdict must be read with the fuzzing results and the findings register of the same run: reachable traps found by the audit are listed there with their fixes.",913      "evidence": [914        {915          "ref": "docs/CONTRIBUTING-AGENTS.md:7",916          "contains": "no `fatalError`"917        },918        {919          "ref": "Sources/QyvoraWallet/WalletService+Bitcoin.swift:193",920          "contains": "u.value > 0, u.value <= BitcoinLimits.maxMoney"921        },922        "runner:fuzz",923        "runner:sanitizers",924        {925          "ref": "security/tests/Sources/FuzzTargets/Targets+EVMChains.swift:107",926          "contains": "let evmChainTargets: [FuzzTarget] = ["927        },928        {929          "ref": "security/tests/Sources/FuzzTargets/Targets+MultichainWallet.swift:256",930          "contains": "let multichainWalletTargets: [FuzzTarget] = ["931        },932        {933          "ref": "security/tests/Sources/FuzzTargets/Targets+Wallet.swift:346",934          "contains": "func multiChainSync(_ service: WalletService, mode: Int) async {"935        }936      ],937      "checks": [938        {939          "id": "no-unsafe-deserialization",940          "type": "grep",941          "description": "No NSKeyedUnarchiver / NSCoding / property-list decoding of external data",942          "globs": [943            "Sources/**/*.swift",944            "App/Sources/**/*.swift"945          ],946          "pattern": "NSKeyedUnarchiver|NSCoding|NSUnarchiver|PropertyListDecoder|PropertyListSerialization",947          "expect": "absent",948          "severity": "medium",949          "area": "wallet",950          "cwe": "CWE-502",951          "recommendation": "Decode with typed Codable JSON or the binary readers of the engine."952        },953        {954          "id": "debug-code-guarded",955          "type": "grep",956          "description": "Debug launch code is compiled out of Release",957          "globs": [958            "App/Sources/DebugLaunch.swift",959            "App/Sources/DebugGallery.swift"960          ],961          "pattern": "^#if DEBUG",962          "expect": "present",963          "severity": "medium",964          "area": "app",965          "cwe": "CWE-489",966          "recommendation": "Keep debug-only files entirely inside #if DEBUG."967        }968      ],969      "residual_risk": "low once the fuzzing gate is clean"970    },971    {972      "id": "MASVS-RESILIENCE-1",973      "title": "The app validates the integrity of the platform.",974      "group": "RESILIENCE",975      "verdict": "partial",976      "severity": "low",977      "rationale": "The application looks for the files of a jailbroken iOS and for an attached debugger and warns before a recovery phrase is shown or typed (QYV-APP-009, partly addressed). It does not refuse to run.",978      "gap": "A warning only; the checks can be hidden by the tools they look for.",979      "finding": "QYV-APP-009",980      "residual_risk": "medium on a compromised device, low otherwise",981      "evidence": [982        {983          "ref": "Sources/QyvoraUI/DeviceIntegrity.swift:61",984          "contains": "public static func jailbreakIndicators(fileExists: (String) -> Bool) -> [String]"985        },986        {987          "ref": "Sources/QyvoraUI/DeviceIntegrity.swift:80",988          "contains": "return info.kp_proc.p_flag & P_TRACED != 0"989        },990        {991          "ref": "App/Sources/Security/RevealPhraseView.swift:63",992          "contains": "CompromisedDeviceNotice()"993        }994      ],995      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"996    },997    {998      "id": "MASVS-RESILIENCE-2",999      "title": "The app implements anti-tampering mechanisms.",1000      "group": "RESILIENCE",1001      "verdict": "fail",1002      "severity": "low",1003      "rationale": "No integrity self-check beyond the system code signature. This is a design position: the wallet's security rests on the vault cryptography and the platform (Data Protection, Keychain, Secure Enclave), not on hiding how it works. The debug launch code is compiled out of Release.",1004      "gap": "On a jailbroken or instrumented device the unlocked master key and Keychain items are exposed and nothing warns the user.",1005      "finding": "QYV-APP-009",1006      "residual_risk": "medium on a compromised device, low otherwise"1007    },1008    {1009      "id": "MASVS-RESILIENCE-3",1010      "title": "The app implements anti-static analysis mechanisms.",1011      "group": "RESILIENCE",1012      "verdict": "fail",1013      "severity": "low",1014      "rationale": "No obfuscation; the source is published. Symbol stripping of the Release binary is reported by runner:binary_checks. This is a design position: the wallet's security rests on the vault cryptography and the platform (Data Protection, Keychain, Secure Enclave), not on hiding how it works. The debug launch code is compiled out of Release.",1015      "gap": "On a jailbroken or instrumented device the unlocked master key and Keychain items are exposed and nothing warns the user.",1016      "finding": "QYV-APP-009",1017      "checks": [1018        {1019          "id": "debug-code-guarded",1020          "type": "grep",1021          "description": "Debug launch code is compiled out of Release",1022          "globs": [1023            "App/Sources/DebugLaunch.swift",1024            "App/Sources/DebugGallery.swift"1025          ],1026          "pattern": "^#if DEBUG",1027          "expect": "present",1028          "severity": "medium",1029          "area": "app",1030          "cwe": "CWE-489",1031          "recommendation": "Keep debug-only files entirely inside #if DEBUG."1032        }1033      ],1034      "residual_risk": "medium on a compromised device, low otherwise"1035    },1036    {1037      "id": "MASVS-RESILIENCE-4",1038      "title": "The app implements anti-dynamic analysis techniques.",1039      "group": "RESILIENCE",1040      "verdict": "fail",1041      "severity": "low",1042      "rationale": "No debugger, hooking or instrumentation detection. This is a design position: the wallet's security rests on the vault cryptography and the platform (Data Protection, Keychain, Secure Enclave), not on hiding how it works. The debug launch code is compiled out of Release.",1043      "gap": "On a jailbroken or instrumented device the unlocked master key and Keychain items are exposed and nothing warns the user.",1044      "finding": "QYV-APP-009",1045      "checks": [1046        {1047          "id": "debug-code-guarded",1048          "type": "grep",1049          "description": "Debug launch code is compiled out of Release",1050          "globs": [1051            "App/Sources/DebugLaunch.swift",1052            "App/Sources/DebugGallery.swift"1053          ],1054          "pattern": "^#if DEBUG",1055          "expect": "present",1056          "severity": "medium",1057          "area": "app",1058          "cwe": "CWE-489",1059          "recommendation": "Keep debug-only files entirely inside #if DEBUG."1060        }1061      ],1062      "residual_risk": "medium on a compromised device, low otherwise"1063    },1064    {1065      "id": "MASVS-PRIVACY-1",1066      "title": "The app minimizes access to sensitive data and resources.",1067      "group": "PRIVACY",1068      "verdict": "pass",1069      "rationale": "Two protected resources only, each with an accurate purpose string: the camera (QR codes) and Face ID. No contacts, location, photos, tracking, advertising identifier or third-party SDK. The single entitlement is the default data protection.",1070      "evidence": [1071        {1072          "ref": "App/Resources/Info.plist:29",1073          "contains": "NSCameraUsageDescription"1074        },1075        {1076          "ref": "App/Resources/Info.plist:27",1077          "contains": "NSFaceIDUsageDescription"1078        },1079        {1080          "ref": "Sources/QyvoraUI/QRScanner.swift:265",1081          "contains": "AVCaptureDevice.requestAccess(for: .video)"1082        }1083      ],1084      "checks": [1085        {1086          "id": "camera-purpose",1087          "type": "plist",1088          "description": "Camera purpose string present",1089          "path": "App/Resources/Info.plist",1090          "key": "NSCameraUsageDescription",1091          "expect": "present",1092          "severity": "low",1093          "area": "app"1094        },1095        {1096          "id": "faceid-purpose",1097          "type": "plist",1098          "description": "Face ID purpose string present",1099          "path": "App/Resources/Info.plist",1100          "key": "NSFaceIDUsageDescription",1101          "expect": "present",1102          "severity": "low",1103          "area": "app"1104        },1105        {1106          "id": "no-third-party-dependency",1107          "type": "grep",1108          "description": "The package and the application declare no remote dependency",1109          "globs": [1110            "Package.swift",1111            "App/project.yml"1112          ],1113          "pattern": "\\.package\\(\\s*url:|^\\s*url:\\s|github\\.com|carthage|cocoapods",1114          "expect": "absent",1115          "severity": "medium",1116          "area": "supply-chain",1117          "cwe": "CWE-1104",1118          "recommendation": "Review and pin the new dependency; add a vulnerability scan for it."1119        }1120      ]1121    },1122    {1123      "id": "MASVS-PRIVACY-2",1124      "title": "The app prevents identification of the user.",1125      "group": "PRIVACY",1126      "verdict": "partial",1127      "severity": "low",1128      "rationale": "No account, no identifier, no analytics; requests carry a fixed User-Agent and no cookie. Cold mode stops all traffic.",1129      "gap": "A light wallet reveals its addresses, and through them its balance and history, to the indexers and RPC nodes it queries, together with the device's IP address. The default endpoints are public third-party services; only the user's own node avoids this.",1130      "evidence": [1131        {1132          "ref": "Sources/QyvoraNetworking/HTTP.swift:92",1133          "contains": "\"User-Agent\": \"QYVORA\""1134        },1135        {1136          "ref": "Sources/QyvoraWallet/WalletService.swift:428",1137          "contains": "public func setColdMode"1138        }1139      ],1140      "residual_risk": "low to medium (inherent to the architecture)"1141    },1142    {1143      "id": "MASVS-PRIVACY-3",1144      "title": "The app is transparent about data collection and usage.",1145      "group": "PRIVACY",1146      "verdict": "pass",1147      "severity": "info",1148      "rationale": "The bundle carries a privacy manifest declaring no tracking, no tracking domain, no collected data and the required-reason APIs used (the manifest half of QYV-APP-012, fixed; QYV-BIN-002 fixed); the About screen links the privacy policy; the endpoint editor says what each server learns.",1149      "evidence": [1150        {1151          "ref": "App/Resources/PrivacyInfo.xcprivacy:5",1152          "contains": "<key>NSPrivacyTracking</key>"1153        },1154        {1155          "ref": "App/Resources/PrivacyInfo.xcprivacy:15",1156          "contains": "<string>NSPrivacyAccessedAPICategoryUserDefaults</string>"1157        }1158      ],1159      "checks": [1160        {1161          "id": "privacy-manifest-present",1162          "type": "grep",1163          "description": "A privacy manifest is part of the application resources",1164          "globs": [1165            "App/**/PrivacyInfo.xcprivacy",1166            "App/project.yml"1167          ],1168          "pattern": "NSPrivacy",1169          "expect": "present",1170          "on_unmet": "partial",1171          "finding": "QYV-APP-012"1172        }1173      ],1174      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1175    },1176    {1177      "id": "MASVS-PRIVACY-4",1178      "title": "The app offers user control over their data.",1179      "group": "PRIVACY",1180      "verdict": "pass",1181      "severity": "info",1182      "rationale": "The user chooses every endpoint the wallet talks to and can reset them, can switch every network request off (cold mode), and can delete the wallet from the device (vault, Keychain material, profile and caches). No data leaves the device otherwise: there is no account and no server of the publisher.",1183      "evidence": [1184        {1185          "ref": "App/Sources/Security/DeleteWalletSheet.swift:65",1186          "contains": "SheetHeader(\"Delete wallet from this device\", subtitle: \"Irreversible on this device.\") { dismiss() }"1187        },1188        {1189          "ref": "Sources/QyvoraWallet/WalletService+Onboarding.swift:391",1190          "contains": "public func deleteWallet() async throws(WalletError) {"1191        },1192        {1193          "ref": "Sources/QyvoraWallet/WalletService.swift:543",1194          "contains": "public func resetEndpoints() async throws(WalletError) {"1195        }1196      ],1197      "reassessed": "2026-12-04, on the application and service code after the fixes of the open findings"1198    }1199  ]1200}1201
Files main
Menu

Theme