SPB Git

Repository Public

dontrust.json 11.3 KB 147 lines json

1{2  "schema": "qyvora-audit/dontrust/1",3  "verdict": "usable — partial applicability",4  "summary": "A real, installable tool named Dontrust exists: HodleHub/dontrust (\"Don't trust. Verify. — a source auditor for cryptocurrency wallets\"), MIT licence, TypeScript, version 0.1.0, single commit of 2026-08-01. It is not published on npm, PyPI, crates.io or Homebrew; it is installed from its public repository. It is a deterministic line-by-line regular-expression scanner with 21 rules written from hardware-wallet incidents (Coldcard firmware). The `scan <path>` command only reads local files and writes a report: no network access, no upload (source reviewed: the only process and network use is `git clone` inside the `audit` command, which this audit never calls). It applies to QYVORA only in part: two rules declare Swift (secret-written-to-log, hardcoded-key-material); the engine does not filter by language, so the other rules also run over the Swift sources, but their patterns target C, Python or firmware constructs (memcmp, rand(), preprocessor guards, link-time symbol shadowing, firmware update and rollback) and mostly cannot match Swift. Its raw hits are places to review, not findings; each one is triaged below. Wallet-specific checks that Dontrust does not cover are assessed with the Coinspect Wallet Security Framework and the wallet audit.",5  "research": {6    "date": "2026-12-04",7    "queries": [8      {9        "where": "web search",10        "query": "\"Dontrust\" crypto wallet security analysis tool",11        "result": "no tool of that name in the results (WalletProbe, WalletRadar, Web3 Antivirus and unrelated items)"12      },13      {14        "where": "web search",15        "query": "\"dontrust\" OR \"don-trust\" OR \"DonTrust\" github wallet scanner tool",16        "result": "no match by name"17      },18      {19        "where": "PyPI JSON API",20        "query": "dontrust, don-trust, dont-trust",21        "result": "404 (no such package)"22      },23      {24        "where": "PyPI JSON API",25        "query": "donttrust",26        "result": "exists but unrelated: \"Form validation library for python\" 0.1.5 (arnu515/donttrust)"27      },28      {29        "where": "npm registry",30        "query": "dontrust, don-trust, donttrust, dont-trust",31        "result": "404 (no such package)"32      },33      {34        "where": "crates.io API",35        "query": "dontrust, don-trust, donttrust, dont-trust",36        "result": "404 (no such crate)"37      },38      {39        "where": "Homebrew (brew search)",40        "query": "dontrust",41        "result": "no formula or cask"42      },43      {44        "where": "GitHub repository search API",45        "query": "dontrust",46        "result": "5 repositories; one relevant: HodleHub/dontrust (source auditor for cryptocurrency wallets). Others unrelated (greenhats-crew/dontrustai, BobPoundmax/DonTrust, two personal pages)"47      },48      {49        "where": "GitHub repository search API",50        "query": "donttrust",51        "result": "43 repositories, none a wallet tool (form validation library, games, personal pages; abhi-byte62/dontTrust is a generic application scanner)"52      },53      {54        "where": "GitHub repository search API",55        "query": "dont trust wallet security",56        "result": "HodleHub/dontrust only"57      }58    ],59    "close_spellings_ruled_out": [60      "donttrust (PyPI): Python form validation, unrelated",61      "abhi-byte62/dontTrust: generic zero-trust application scanner, not a wallet tool, not evaluated",62      "Coinspect has no tool of that name: its public wallet material is the Wallet Security Framework (assessed separately)"63    ]64  },65  "tool": {66    "name": "dontrust",67    "repository": "https://github.com/HodleHub/dontrust",68    "archive_url": "https://codeload.github.com/HodleHub/dontrust/tar.gz/{commit}",69    "commit": "892a29fc9e5f7716f80c3791d600bc866dcbe1e5",70    "commit_date": "2026-08-01",71    "version": "0.1.0",72    "licence": "MIT",73    "maturity": "young project: created 2026-08-01, one commit, 3 stars at the retrieval date; treated as an untrusted download (pinned commit, per-file SHA-256, lock-file install with --ignore-scripts, source read before use)",74    "requirements": "node >= 20, pnpm (build: typescript from the lock file; runtime dependency: yaml)",75    "install": "python3 security/audit/runners/frameworks.py --install-dontrust",76    "installed_to": "security/.tools/dontrust (git-ignored)",77    "files_sha256": {78      "LICENSE": "546b11f1c1856603ba91bea2817209592e97c82af23a769494236b932820a5db",79      "package.json": "f55e0d31bf37f4c15a006885a4e30febf9e77e21de2c03ff2562906a73f46e79",80      "pnpm-lock.yaml": "942380104d32bdd3e7ab10583839b246db2894727f31c83bb7cd2678296f4d47",81      "rules/build/reproducible-build-absent.yaml": "5a2de591b2337f2175643030261c7d2f954aa2f4131cecb40660862b8df02daa",82      "rules/crypto/custom-crypto-primitive.yaml": "114d96836d04458eb9f11365c4ba65e970f5d38877499e4ae0082a4a9aac092a",83      "rules/crypto/non-constant-time-comparison.yaml": "f5f588abaf9f5039154d26c9fe45b493ae8a724d5720192d83c20cc0b26b6f80",84      "rules/entropy/entropy-from-clock-or-pid.yaml": "247ca8a9423534e5e5f9e91c80130c13a0950be6379ac88dc80cb7b81f8eaef4",85      "rules/entropy/extern-rng-symbol-contract.yaml": "b35df8f92c23337d3fadfd485c9e9fe62ad65c1a339841951487ffa516976ea2",86      "rules/entropy/rng-disabled-by-macro-only.yaml": "934f2f8675e7d7e8772971afa0d5277834128f2d3d68c6acd777f87275d87b25",87      "rules/entropy/rng-fallback-path.yaml": "3121bdc35b54219d3e7a2787930e1cc603854e14e6489463e2c35d4228bb0687",88      "rules/entropy/rng-link-shadowing-unguarded.yaml": "5a7205508951654d180492be9d6b7ed8d8d50f57891d4ca292146e781fce8132",89      "rules/entropy/rng-return-value-unchecked.yaml": "7f1f20d30becd579697a9704cb455e6f7c9b23aa699832dadb8a3857fefee94b",90      "rules/entropy/software-prng-in-crypto-path.yaml": "8238f3e10d686ba625a3cd6dc4bc3a95cc7812aa6c6b7550eba479d3bb93890a",91      "rules/entropy/weak-seed-bit-length.yaml": "4d799c911b524f022a07543952f17ff436f725d11b75c9777de780c50ae8dd7b",92      "rules/firmware/rollback-protection-absent.yaml": "dfd337e1d47e09de4ff878336f059f19385056811670013340f2ec076d49c08b",93      "rules/firmware/update-signature-verification-absent.yaml": "875eb411ef200cd40711d7a9b31fd74fe22b1895984f58ed3596113da1469861",94      "rules/keys/deterministic-nonce-absent.yaml": "ff0e087988ee8a84d032e7b04645487230d8a330ddca24f50a3323d625717b8f",95      "rules/keys/hardcoded-key-material.yaml": "11ed1aee2d0e105a14458b937f9c872536cfa001f67448f337b336c372e2fb44",96      "rules/keys/secret-written-to-log.yaml": "60e6cab77e14d02e631c2a6de21c8b4224fb5d8231ec30793a62b82b7c5f2917",97      "rules/memory/secret-memset-may-be-optimized-away.yaml": "fbdfa3f485e0a24938dfe84dd955fbf40393f75a342824e2e235e4f34d30fd15",98      "rules/memory/secret-zeroization-absent.yaml": "e96662b7a2f39d93c323d1e7cff053fada032d714fc64354409e40794da3d983",99      "rules/supply-chain/curl-pipe-to-shell.yaml": "b5c4f23fda509640f5e81830c3832d5092f058e35e290ad6dc6e8e03b6f0397d",100      "rules/supply-chain/floating-submodule-branch.yaml": "69366cb57206b11677689f9cddb3494f12ee6eb526905b06efaf515d686a1cc6",101      "rules/supply-chain/unpinned-python-dependency.yaml": "47b0ed7271a26901fadba5c96913fcdafaec7ede999c9a3f9e65ec5733400674",102      "src/cli/parseArgs.ts": "942c62d59957d5583fcb8954e266ffe60679cae8f4d15297b24342e01b3c0c2e",103      "src/cli.ts": "f07850943a61f8cd4e8bfd5eaa7a88fafddfdd53cb1519c05ad043ea6557b777",104      "src/commands/auditWallet.ts": "0db2759738a89534087b00aba3e4235a430edc09cc9f51484660bf34de5fb3b5",105      "src/commands/listRules.ts": "71cf6d219d069fd7dab1652594f6b81de521f74d4fecac7634aab59b20e16e10",106      "src/commands/listWallets.ts": "c4fd5271cf87f4f063815b59ce8dd67f39774ac0e5cfd2715c306ec77f025fb2",107      "src/commands/scanPath.ts": "e582c5c010db45ef1ec43367f04ba64c2d06328824efbe874df49e58c734475f",108      "src/config/resolvePackageRoot.ts": "4b9afd94d7a6333eabc9427cbf9e21e59ad1c084f5740c0e6a1eb0f39ac99871",109      "src/engine/collectRuleFindings.ts": "acf4859659803561bfccb4f167854b0d58e86636b962392ffe619e2829951344",110      "src/engine/compilePattern.ts": "67f3732d5e0ec106d1d97545370bab37ac0c7ee09062fa2184d6b7ae351bfa1d",111      "src/engine/createFileReader.ts": "7a98c18380f7d0bc628d533f25d691d754f9ba4f8304d64a68622f473285739e",112      "src/engine/findRepoSuppressor.ts": "2070f1f783bdc462af58e08c368a93eaf695c01e3975f8895a417402a0ca093a",113      "src/engine/globToRegExp.ts": "be5d4de7205b60318d0d0cad21947d5ac6d7936d9d0de2afc0b083963e15acec",114      "src/engine/isSuppressed.ts": "380c59f79f93089273de2aa241a5d1c0a528b38ef5417d26a19b2dc92637459b",115      "src/engine/loadRules.ts": "38c5b1e3040a01d35aa7992d2b3d0e651513ab3f6bbeda5e2ce538520506b9ff",116      "src/engine/matchesAnyGlob.ts": "8b9cdef11877bd9197d8f4e1dac2d828055aefecd6f10c142ef49d3e26e705fd",117      "src/engine/readTextFile.ts": "1769ee5afa681d52f82341effc785e86bfeb4648fe7dde39f61bcce927b075d3",118      "src/engine/scanRepository.ts": "403e0ccf928f8edba28b94e9db6cd9b74ae298a8fcca73ad7e1c64aa8b426657",119      "src/engine/scopeFilesForRule.ts": "7f2f6c5c476f8140bd140481365eea943dbd4f1385ee3c9f8b4fdc7514cf9a5f",120      "src/engine/walkFiles.ts": "59de7b6016cfd5ce72fa6d9605432475a8acd4b8d38caf37feb8a5b32e4a9f11",121      "src/registry/wallets.ts": "0cec1268888ae1ba52ad0e68849c4618a33b6a191239874dacdd71837bd04ed4",122      "src/repo/prepareRepo.ts": "4c4d46e2ea3d4bfcf2651c98ba524342f964f5ae3cf376e7d24b36c3376b6f6c",123      "src/report/groupFindingsByRule.ts": "db0f32d2e8cfe137cc3353153235166c8f8701ba4ab7da01980dc9cc0350739f",124      "src/report/renderMarkdown.ts": "6f04e07ff71cd6b91998e5d0239e70f15e9e7e8057281c908efef1ad1997aab4",125      "src/report/writeReport.ts": "a953f038ad7a959bda7919ff28eb9ccf460b8192542baf0b514851b2086bf290",126      "src/types/finding.ts": "ce57f82c3e8275864ef489ae66862be0b6343795bcbe201b63c359bfb3da22d9",127      "src/types/rule.ts": "300ea8297fa29bf1a574957aeac231956eeed736b4f1634b890edb7b7c1019a2",128      "tsconfig.json": "824c7bda00a8335c19e6a1f6022b3441f247cd4a8028c18ea6079f95085077cd"129    }130  },131  "coverage": "Dontrust 0.1.0: 21 line-regex rules (entropy 8, keys 3, crypto 2, memory 2, firmware 2, supply-chain 3, build 1) run on a copy of Package.swift, Sources/, App/ and Scripts/. Only 2 rules declare Swift (secret in a logging call, hard-coded key material); the others are written for C/Python/firmware code and are structurally unable to match most Swift constructs, so a clean result on them proves little. `require` rules report the absence of a safeguard text anywhere in scope. No data flow, no build, no binary inspection. Raw hits are review locations, each triaged in security/policies/dontrust.json.",132  "swift_scoped_rules": [133    "secret-written-to-log",134    "hardcoded-key-material"135  ],136  "privacy": "Local execution only. `scan` reads the staged copy and writes two report files under security/reports/raw/. No source leaves the machine.",137  "triage": [138    {139      "rule": "non-constant-time-comparison",140      "file": "Sources/QyvoraWallet/WalletService+Ethereum.swift",141      "snippet_contains": "token == nil",142      "status": "false-positive",143      "justification": "The rule matched the word \"token\" in `if token == nil`. Here `token` is an optional ERC-20 token description (TokenInfo?) looked up from public contract metadata; the comparison is an optional-presence test, not a comparison of authentication material, and no secret is involved. Reviewed 2026-12-04 at the three locations reported (lines 318, 704, 707 at the time of review)."144    }145  ]146}147
Files main
Menu

Theme