SPB Git

Repository Public

README.md 5.1 KB 85 lines markdown

1# security/policies23Rules, tool configuration and framework assessments of the QYVORA security audit. Everything4here is input to `Scripts/security-audit.sh`; nothing here is a result. Results are produced by a5run and written to `security/reports/`.67## Severity and release gate89| File | Purpose |10|---|---|11| `severity-policy.md` | How a finding is rated (CVSS v3.1 and wallet impact), the statuses, the rules that override the table. |12| `release-gate.json` | Machine-readable gate: an unresolved critical or high finding, a failed cryptographic test, a fuzzing crash, a secret or a failed required tool blocks publication. |1314## Framework assessments1516Four files share one format (`"schema": "qyvora-audit/framework/1"`) and are evaluated by17`security/audit/runners/frameworks.py`.1819| File | Framework | Source (pinned) | Items |20|---|---|---|---|21| `coinspect-wsf.json` | Coinspect Wallet Security Framework: Wallet Security Controls (WSC) and Wallet Security Benchmark (WSB) | `coinspect/wallet-security-framework`, commit `9b707066` | 50 controls + 34 tests |22| `masvs-v2.json` | OWASP MASVS v2 (STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, RESILIENCE, PRIVACY) | `OWASP/masvs`, commit `bbe226fd` | 24 controls |23| `mastg-tests.json` | OWASP MASTG, every iOS test | `OWASP/mastg`, commit `6ebc1aa2` | 129 tests |24| `wallet-audit.json` | Wallet audit of the owner's brief (key storage, authentication, phrase, backup, data protection, network, fraud protection, fees / nonces / UTXOs, replay protection, mainnet gate, post-quantum scope) | `CLAUDE.md` | 35 items |2526Each item has:2728- `verdict`: `pass`, `partial`, `fail`, `not-applicable` or `not-assessed`. An item without29  verified evidence is never `pass`.30- `rationale` and, when relevant, `gap`, `severity`, `residual_risk` and `finding` (identifiers31  of files in `security/audit/findings/`).32- `evidence`: references to the code. `{"ref": "path:line", "contains": "text"}` means *this33  text, at this place*. A string beginning with `runner:` points to another tool's result in the34  same run.35- `checks`: automated checks evaluated at every run — a regular expression that must be present36  or absent in a set of files (`grep`), or a property-list key (`plist`).3738What the runner does with them, at every run:39401. **Evidence is verified.** If the text moved inside its file, the reference follows it. If the41   text is gone, the evidence is stale and a `pass` or `partial` item becomes `not-assessed`.422. **Checks are evaluated.** A check that is not met changes the verdict (`on_unmet`, `fail` by43   default) and, when it has a `severity`, produces a finding. A check that carries a `finding`44   identifier tracks a known gap: it reports whether the gap is still there and tells the45   reviewer when it has disappeared.463. **Verdicts are counted.** A failing item of severity medium or above that points to no47   recorded finding makes the tool result `FAILED`.4849The assessments were written on 2026-12-04 against a tree in which the application screens for50sending, reviewing, unlocking and showing the recovery phrase did not exist yet. Items that depend51on them say so; they must be revisited on the final commit (the checks will already have moved52for the items they cover).5354To change an assessment, edit the JSON file: update the verdict, the rationale and the evidence55together, and run `python3 security/audit/runners/frameworks.py` to see the effect.5657These are self-assessments against public checklists. They are not a Coinspect review, not an58OWASP certification (OWASP certifies nothing) and not an independent audit.5960## Dontrust6162`dontrust.json` records the search for the tool the owner named, what was found, and how it is63used.6465- A tool by that name exists: `HodleHub/dontrust` 0.1.0 (MIT), a local regular-expression source66  auditor for cryptocurrency wallets with 21 rules written from hardware-wallet incidents. It is67  not on npm, PyPI, crates.io or Homebrew. It is young (one commit, 2026-08-01) and is handled as68  an untrusted download: pinned commit, SHA-256 of every file in `dontrust.json`, dependencies69  installed from its lock file with `--ignore-scripts`, source read before first use.70- Install: `python3 security/audit/runners/frameworks.py --install-dontrust` (needs node ≥ 2071  and pnpm; installs into `security/.tools/dontrust`, git-ignored).72- It runs on a copy of `Package.swift`, `Sources/`, `App/` and `Scripts/`; it reads files and73  writes two reports under `security/reports/raw/`. Nothing leaves the machine.74- Real coverage for QYVORA is narrow: two rules declare Swift; most others target C, Python or75  firmware constructs and cannot match Swift code, so their silence proves little. Its hits are76  review locations; each is triaged in the `triage` list of `dontrust.json`. An untriaged hit77  stays `open` with the rule's severity and can block the release gate.78- When the tool is not installed the result is `NOT RUN` with the reason — never a pass.7980## Other files in this directory8182Tool pins (`tools.json`), triage of tool findings (`triage.json`), Semgrep rules (`semgrep/`),83Gitleaks configuration (`gitleaks.toml`) and MobSF settings (`mobsf.json`) are documented in84`security/README.md`.85
Files main
Menu

Theme