Audits

Faraday invites audits from experts and AIs. Each one is published here with Faraday's response to every finding, and the full prompt and output.

What an audit includes Submitting What Faraday does The release's cross-check Own constructions Published audits

What an audit includes

By an expert or an AI. This list is not a prompt by itself: write your own prompt for the audit, then add this list at its end.

Faraday's request for this audit. Follow it in the output:

1. Record what was audited: the repository (https://github.com/bitcoinpasada/faraday), the commit (git rev-parse HEAD), the date, any tools run, and for an AI, the model and its version.
2. State the scope: the areas covered, the parts of the code read, and the parts not read. docs/AUDIT.md lists where the cryptography is.
3. For each finding, give: a severity, the file and line, what goes wrong, how to trigger it, and whether it was confirmed by running code or only found by reading.
4. Write the output as Markdown in two files: audit.md for everything except critical and high findings, and private.md for critical and high findings only. Leave out private.md if there are none.
5. End audit.md with a summary of at most 150 words: what was examined, what was found, and an assessment of whether the code can be trusted with keys. If private.md exists, the summary gives its number of findings without describing them.
6. Redact personal information from both files: names, email addresses, usernames, and anything about the computer the audit ran on, including home directory paths, hostnames, IP addresses, the operating system and its version, hardware, and environment variables. Replace each with a placeholder such as <home>, <user> or <host>. Leave unchanged the names and addresses in Faraday's own code.
7. If private.md exists, hash it last, after step 6: run sha256sum private.md > private.md.sha256. If you cannot run commands, do not write a hash; say that it still needs to be made.

Severities:
- Critical: a key, seed or passphrase can be extracted; the device signs, or shows as approved, something the user did not approve; Faraday's output is wrong in a way that loses funds (an address it cannot spend from, a backup or shares that do not restore); or crafted input runs code on Faraday.
- High: the same, but only under specific conditions (physical access, a non-default setting, a rare input); a vault opens without its passphrase; the air gap fails; secrets outlive the session; a tampered image or upgrade is accepted; Faraday Starter writes to the wrong disk; the design makes a mistake that loses funds or exposes a key likely, through a missing warning or confirmation or a misleading label.
- Medium: a protection is weaker than intended but holds (a lower key-stretching cost); a crash from crafted input with no code run; public wallet data leaked.
- Low: a defect with no direct security effect, including a wrong result that Faraday detects and refuses.
- Note: an observation, not a defect.

Areas to cover

A starting point for the audit's scope. Add them to the prompt as they are, change them, or write your own.

Areas to cover:
- Key material: whether a key, seed or passphrase can leave the device; the randomness and entropy behind key generation; nonces in ECDSA, Schnorr and MuSig2 signing.
- Signing: whether what the screen shows (amounts, fee, destinations, change) is what gets signed.
- Correct results: derivations, addresses, mnemonics, SLIP-39 and codex32 shares, KDBX backup files and MuSig2, against published vectors and other implementations.
- The vault: only its passphrase opens it, the key-stretching cost is the one stated, and a damaged file is detected.
- The air gap and what remains: no network interface comes up, secrets are written only where the user chooses, and none outlive the session.
- Untrusted input: PSBTs, QR codes, images and file systems from the online computer.
- The image and its tools: release verification, the Secure Boot keys, the upgrade, and Faraday Starter's disk writing and checks.
- Access: the keyboard code and the passphrase prompts.
- Mistakes a person can make: where Faraday or Faraday Starter make an easy mistake possible that loses funds, exposes a key or locks a person out of their computer: a misleading label, steps in a confusing order, a risky action with no confirmation, a risky setup with no warning (a TV, a capture card or KVM, a wireless keyboard), a backup that can be skipped or left unchecked, and whether the warnings that exist come at the moment they are needed.

Submitting

Through GitHub, not by email. A pseudonymous account is enough.

  1. Save the promptFor an AI audit, the exact prompt, with the list at its end, as prompt.md.
  2. Check for personal informationIn every file. A hashed file cannot be corrected afterwards without a new hash.
  3. Check the hashIf there is a private.md. The first command prints private.md: OK. If the AI could not make private.md.sha256, or private.md changed afterwards, the second makes it.
    sha256sum -c private.md.sha256
    sha256sum private.md > private.md.sha256
  4. Open an audit issueWith the audit form. Attach prompt.md and audit.md as files, not pasted text, and give the hash from private.md.sha256 if there is one.

    Ordinary bug reports go to the repository's issues, through the Bug report form.

  5. Send private.md privatelyIf there is one: in a private vulnerability report on the same repository, with the issue's number. The report takes no files: paste the whole of private.md into its Details field, between a line ~~~~~ above it and the same line below it. Only Faraday and you see it until it is published.
  6. Timestamp the hashOptional. OpenTimestamps anchors it in a Bitcoin block, so its date does not depend on GitHub keeping the issue.

Where each file goes

prompt.mdThe public issueEveryone
audit.mdThe public issueEveryone
private.mdA private report, pastedFaraday and the submitter, until published
The hash of private.mdThe public issue's formEveryone, from the day it is sent
  • The hash goes in the issue only, never in audit.md. The issue is what dates it.
  • When the prompt itself points at a vulnerability, it goes in the private report too, and the issue carries its hash in its place.
  • When private.md changes after it was sent, the new file goes in the private report and its new hash on the issue. Both hashes stay there.

What Faraday does

The same timeline is in the repository's SECURITY.md.

Within 15 days

A reply on the issue

The hash quoted back, and a verdict on each finding: confirmed and fixed, with the fixing commit; confirmed and open; could not reproduce; or not a bug.

Within 15 days

A private report with no issue

A reply on it within 15 days of its arrival.

Then

The entry, published

The submitter's summary, unedited, Faraday's short response, and the full prompt and output, below.

Once fixed

private.md, published

No later than 90 days after the private report, fixed or not. Anyone can check it against the hash posted on the issue.

The release's cross-check

Faraday's rule for what goes into the app (STANDARDS §0) is that what makes or reads a key, a secret, an address, a signature or a transaction is checked against an implementation Faraday did not write. Each release carries the record of a full cross-check run on its tree.

Faraday 0.2.0

crosscheck-0.2.0.txt

Each cross-check area with its cases, answers and result; every outside reference with its commit and SHA-256; the seed, to run it again; and the git tree checked, which git rev-parse v0.2.0^{tree} gives for the release's tag.

Not shown in the record

Areas against Faraday's own models

Some areas still compare Faraday's Rust with a model written by Faraday's own authors. The Cryptography page names each action's reference and whose code it is.

Outside review of Faraday's own constructions

Some of Faraday's cryptography follows no published standard. Each such action carries the label "own construction, not yet independently reviewed" until someone outside Faraday reviews it. Anyone who is not one of Faraday's authors, or an agent working for them, may answer this call. No reviewer is chosen.

The cross-check compares Faraday's Rust there with a model written by Faraday's own authors. That catches a slip between two transcriptions of one text. It does not catch a misreading both share, or a flaw in the text itself. The label is shown in the app's and the Cryptography page's blocks and in STANDARDS §7.

The constructions, in order

The vault first: it holds a person's keys. Write from the spec, reproduce the vectors, and do not read Faraday's code for it until the model is written.

The vault

Its KDBX file, key schedule, sealing and records.

Actions
vault-create, vault-unlock, vault-seal, vault-edit
Spec
docs/VAULT.md §1 to §9 and §11; F97, F158, F159; docs/SECURITY-MODEL.md, "Vault cryptography"; KDBX 4 (tools/reference/kdbx4/), RFC 9106, RFC 8439, UAX #15
Vectors and known answers
tools/vectors/vault/ (its README lists each file and passphrase), tools/vectors/vault-primitives/, tools/vectors/kdf/
Faraday's code, not read first
faraday/faraday-vault/, faraday/faraday-keys/src/vault.rs, tools/vault/, tools/crosscheck/area_vault.py
Cross-check area
vault

Own randomness

The accumulator, the seed, the pool, a seed draw, the lock, and the pointer-and-keys commitment.

Actions
fresh, pointer-keys
Spec
docs/OWN-RANDOMNESS.md §2.1, §2.3; F86, F154
Vectors and known answers
tools/vectors/own-randomness/
Faraday's code, not read first
faraday/faraday-core/src/fresh.rs, core/faraday-entropy/src/pointer_keys.rs, tools/crosscheck/area_own.py
Cross-check area
own

Faraday Demo's dice rollers

The one die and the five dice.

Actions
roller
Vectors and known answers
tools/vectors/roller/ for the five dice; the one die has none beyond the cross-check's cases
Faraday's code, not read first
faraday/faraday-core/src/fresh/roller/, tools/crosscheck/area_roller.py
Cross-check area
roller

The vectors of own randomness, the cards, the camera, a mix and the rollers are a JSON file each, beside a README that says what each vector covers and how it was made, and gives the construction in words and a few lines of Python, standard library only, that reproduce its answers. Faraday's tests read the same files.

What is asked

One or more of these, for one construction or several.

1

An outside model

A second implementation, written from the spec alone, without reading Faraday's code for it. It reproduces the vectors and known answers, and offers the operations below, so that it can take the place of Faraday's model in the cross-check. Each place where the spec leaves the answer open, and each disagreement between the model and the vectors, is a finding.

2

A reproduction of the vectors

Your own code, in any language, opening or computing each vector, with the answer it gives for each.

3

A review of the construction

Whether it does what its spec says: for the vault, the promises of VAULT §9; for own randomness, that what a person adds cannot lower the system's randomness; for cards, the camera and a mix, that the bits counted are there; for the Secure Boot generator, that the keys are drawn as F134 and F158 state. Findings take the severities above.

For the Secure Boot keys and a key held in memory, the review is what is asked: a model would have to reproduce the rsa crate's own search for primes to match the known answers, and the in-memory seal is reached by no shipped code.

What a model offers

A model the cross-check can call is:

  • Python 3, over the standard library and the packages the cross-check already takes from the distribution (argon2-cffi, PyNaCl, PyCA cryptography), fetching nothing at run time, with no file over 2 MiB;
  • under a licence that allows copying it unchanged into Faraday's repository: MIT, BSD, Apache-2.0, CC0 or public domain.
  • A model in another language counts as a reproduction. Running it in the cross-check needs its toolchain allowed by a decision, as Go was for LND's aezeed.

The operations each area compares

  • The vault. Open a file with a passphrase, giving its seal count and its records, or the refusal that applies; make a vault from its passphrase, cost, size and records with every random byte given (the salt, the IVs and the inner key), so the file is compared byte for byte; seal an open vault at a given time; write and read the records, with each refusal.
  • Own randomness. Its operations over given system answers: a batch added, the seed, a fresh answer for a purpose, a seed draw, This device's answer, a lock; and its commitments.
  • Cards, camera and a mix. Each source's commitment and its entropy at each strength, with the refusals the procedures state.
  • The rollers. The values made from given answers; the one die's clicks and the five dice's worksheet, as CODEX32 §5.5 and §5.6 state them.

Faraday's side, to compare with

Once the model is written. The prerequisites are in docs/DEVELOPING.md.

A vault and its items, over pykeepass:

python3 tools/vault/open.py tools/vectors/vault/vault-all.kdbx

One area of the cross-check: Faraday's Rust against the reference the area names, over a corpus drawn from a seed, which it prints. The second command runs case N of it again.

just crosscheck --area vault
just crosscheck --area vault --seed S --case corpus:N

The known answers, over the files in tools/vectors/. Each of those folders' README also checks its file with Python alone.

cargo test -p faraday-core --test all own_randomness
cargo test -p faraday-core --lib five_tests
cargo test -p faraday-entropy
cargo test -p faraday-sb

Submitting a review

As any audit, with the audit form. Its model field is "expert", or the model and its version where an AI wrote the model or the review under the reviewer's direction.

audit.md says:

  • which construction, and which of the three was done;
  • for a model, that it was written from the spec without reading Faraday's code for it, where it is (a public repository at a commit, or an archive attached to the issue), its licence, and how to run it;
  • the answer for each vector and known answer, and where it differs from the file;
  • the findings, by the severities above. Critical and high findings go in private.md.

How a result is recorded

The entry here

As any audit's, and it also names the construction, the kind of review, and for a model its repository, commit and each file's SHA-256.

Faraday's reply

A verdict on each finding, on the issue. A disagreement between the model and Faraday is settled by a fix to Faraday, or by a change to the spec where it left the answer open or was misread.

The decision

Whether a submission counts as the outside review of a construction is the owner's call. A decision records the reviewer as credited, the construction, the commit reviewed and the kind of review, and says whether the construction stays on the list for outside review. With it the action's label goes.

A model, in the cross-check

Copied unchanged into tools/reference/ with its source, commit, licence and each file's SHA-256. The area compares Faraday with it in place of Faraday's own model, which is retired. Where the comparison is wholly against it, the Cryptography page names the reviewer as the reference's author. A reproduction or a review alone takes the label away with the decision; the area's reference stays Faraday's own model.

Published audits

Newest first. The current release is Faraday 0.2.0.

DeepSeek V4.1, Kimi K3 and GLM 5.3AI

2026-10-27 · Faraday 0.1.7, 11da09a · 4 releases behind

Submitted by MrHodlX

Summary, by Faraday: none came with the audit

Three AI models (DeepSeek V4.1, Kimi K3, GLM 5.3) read the 629 Rust and shell files of v0.1.7 (11da09a2) in chunks, each finding checked by the two models that did not report it; nothing was built or run. The public file holds 35 medium and low findings, mostly backup-flow correctness (codex32 shares in vaults, a plan that could not be written), memory hygiene, and parsers on crafted input. One new high finding, a finalized PSBT input that skipped the SegWit amount check, was sent privately, beside three high findings already reported from the earlier audit and still present in v0.1.7.

  • 0Critical
  • 1High
  • 13Medium
  • 22Low
  • 0Note

Faraday's response

Thank you again, MrHodlX. The new high finding, a finalized input that skipped the SegWit amount check, is fixed in 0.1.8, and so are the earlier findings still present in 0.1.7. Every public finding is fixed or answered; the verdict on each is in the reply on the issue.

SHA-256 of private.mdf9f85f56d189292ed2d8e7fef10ef7a37e5eb7072c4765153cfd0429d7e52300

DeepSeek V4.1, Kimi K3 and GLM 5.3AI

2026-10-27 · Faraday 0.1.6, baf4c9f · 5 releases behind

Submitted by MrHodlX

Summary, by the submitter

What was examined: Faraday's Rust and shell sources at baf4c9f3, by three AI models, each finding cross-checked by the other two.

What was found: 47 findings in this file (21 medium, 26 low), mostly robustness and validation gaps. Each is a lead to verify, not a reproduced bug. A further 6 findings at critical or high are in private.md, sent as private reports.

Assessment: the codebase is carefully written and documents its own limits. But the private findings mean the code should not yet be trusted with significant funds in the affected features until they are fixed.

  • 2Critical
  • 4High
  • 21Medium
  • 26Low
  • 0Note

Faraday's response

Thank you, MrHodlX, for Faraday's first outside audit. All six private findings, two critical and four high, are fixed in 0.1.8 or their code removed: FROST is gone from Faraday, and so is Upgrade a Faraday stick on the device. Every public finding that held up on reading is fixed, except six lows left by decision, each with its reason; two findings rated low turned out to be high and were fixed with the private ones. The verdict on each finding is in the reply on the issue.

SHA-256 of private.md9e62b29fcd489da3de8c0f8a32e5a30484a7f3a998ff0804bc07cd6589bb2412

SHA-256 of private-2.mdd3302a02d984ebcc42865d493cb86c9bd03160b27f65b00d22a1b349ab91e215posted 2026-11-01, after the report was published

An entry records what was submitted and Faraday's short response; the verdict on each finding is in Faraday's reply on the issue. It is not an endorsement, and it does not prove which model wrote the output. The hash shows that private.md, once published, is the file that was sent on the day of the issue.

Buy me a coffee

Donations to Faraday's development, in bitcoin.

QR code to come
Lightning
QR code to come
Bitcoin