What changed, and why it matters
This commit adds a new Rust supply-chain auditing tool called cargo-vet to the project's build and CI environment. It does not change any wallet, cryptography, or device code. It only adds configuration files that mark all current dependencies as temporarily exempt from review, plus a CI check to run the tool. There is no direct security vulnerability introduced by this change.
No immediate action required. Treat this as a process/infrastructure change. Monitor future commits that replace exemptions with actual cargo-vet audits, since the current state means dependencies are not yet independently reviewed.
Security signals we found
New CI step added: vet_rust runs cargo vet --locked
All Rust dependencies are currently exempted rather than reviewed
Vendored crates are treated as imported crates for audit purposes
No changelog entry requested by commit message
Evidence from the diff
The patch introduces cargo-vet tooling: a new vet_rust Makefile target, a corresponding GitHub Actions step, a shell.nix dependency on cargo-vet, and initial supply-chain config files (audits.toml, config.toml, imports.lock). The config.toml lists every Rust dependency with an exemption criteria (mostly safe-to-deploy, a few safe-to-run) and sets three vendored crates (pareen, qrcodegen, trezor-tjpgdec) to be audited as crates.io packages. No source code, firmware logic, or dependency versions are modified.
Changed components
GitHub Actions workflow: .github/workflows/core.ymlBuild tooling: core/MakefileSupply-chain configuration: core/embed/supply-chain/audits.tomlSupply-chain configuration: core/embed/supply-chain/config.tomlSupply-chain configuration: core/embed/supply-chain/imports.lockDevelopment environment: shell.nixInspect captured patch +405 / −0
diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml
index bbf4b22e..16882c6a 100644
--- a/.github/workflows/core.yml
+++ b/.github/workflows/core.yml
@@ -261,6 +261,7 @@ jobs:
- run: nix-shell --run "uv run make -C core -f Makefile.scons test_rust"
- run: nix-shell --run "uv run make -C core clippy"
- run: nix-shell --run "uv run make -C core audit_rust"
+ - run: nix-shell --run "uv run make -C core vet_rust"
core_rust_client_test:
name: Rust trezor-client tests
diff --git a/core/Makefile b/core/Makefile
index 281e20d6..d1d837ca 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -181,6 +181,9 @@ clippy:
audit_rust: ## run cargo audit on rust dependencies
cd embed ; cargo audit
+vet_rust: ## run cargo vet on rust dependencies
+ cd embed ; cargo vet --locked
+
## code generation:
templates: translations ## render Mako templates (for lists of coins, tokens, etc.)
diff --git a/core/embed/supply-chain/audits.toml b/core/embed/supply-chain/audits.toml
new file mode 100644
index 00000000..2772ccb2
--- /dev/null
+++ b/core/embed/supply-chain/audits.toml
@@ -0,0 +1,4 @@
+
+# cargo-vet audits file
+
+[audits]
diff --git a/core/embed/supply-chain/config.toml b/core/embed/supply-chain/config.toml
new file mode 100644
index 00000000..39e1d1ad
--- /dev/null
+++ b/core/embed/supply-chain/config.toml
@@ -0,0 +1,394 @@
+
+# cargo-vet config file
+
+[cargo-vet]
+version = "0.10"
+
+[policy.pareen]
+audit-as-crates-io = true
+
+[policy.qrcodegen]
+audit-as-crates-io = true
+
+[policy.trezor-tjpgdec]
+audit-as-crates-io = true
+
+[[exemptions.addr2line]]
+version = "0.25.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.adler2]]
+version = "2.0.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.aho-corasick]]
+version = "1.1.4"
+criteria = "safe-to-deploy"
+
+[[exemptions.alloc-traits]]
+version = "0.1.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.anstyle]]
+version = "1.0.13"
+criteria = "safe-to-deploy"
+
+[[exemptions.anyhow]]
+version = "1.0.102"
+criteria = "safe-to-deploy"
+
+[[exemptions.autocfg]]
+version = "1.5.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.backtrace]]
+version = "0.3.76"
+criteria = "safe-to-deploy"
+
+[[exemptions.bindgen]]
+version = "0.72.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.bitflags]]
+version = "2.11.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.bstr]]
+version = "1.12.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.byteorder]]
+version = "1.5.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.camino]]
+version = "1.2.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.cargo-platform]]
+version = "0.3.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.cargo_metadata]]
+version = "0.23.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.cc]]
+version = "1.2.56"
+criteria = "safe-to-deploy"
+
+[[exemptions.cexpr]]
+version = "0.6.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.cfg-if]]
+version = "1.0.4"
+criteria = "safe-to-deploy"
+
+[[exemptions.clang-sys]]
+version = "1.8.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.clap]]
+version = "4.6.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.clap_builder]]
+version = "4.6.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.clap_derive]]
+version = "4.6.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.clap_lex]]
+version = "1.1.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.color-eyre]]
+version = "0.6.5"
+criteria = "safe-to-deploy"
+
+[[exemptions.cty]]
+version = "0.2.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.easer]]
+version = "0.3.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.either]]
+version = "1.15.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.errno]]
+version = "0.3.14"
+criteria = "safe-to-run"
+
+[[exemptions.eyre]]
+version = "0.6.12"
+criteria = "safe-to-deploy"
+
+[[exemptions.fastrand]]
+version = "2.4.1"
+criteria = "safe-to-run"
+
+[[exemptions.find-msvc-tools]]
+version = "0.1.9"
+criteria = "safe-to-deploy"
+
+[[exemptions.gimli]]
+version = "0.32.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.glob]]
+version = "0.3.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.globset]]
+version = "0.4.18"
+criteria = "safe-to-deploy"
+
+[[exemptions.hash32]]
+version = "0.3.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.heapless]]
+version = "0.9.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.heck]]
+version = "0.5.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.hex]]
+version = "0.4.3"
+criteria = "safe-to-run"
+
+[[exemptions.indenter]]
+version = "0.3.4"
+criteria = "safe-to-deploy"
+
+[[exemptions.itertools]]
+version = "0.13.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.itoa]]
+version = "1.0.17"
+criteria = "safe-to-deploy"
+
+[[exemptions.libc]]
+version = "0.2.177"
+criteria = "safe-to-deploy"
+
+[[exemptions.libloading]]
+version = "0.8.9"
+criteria = "safe-to-deploy"
+
+[[exemptions.libm]]
+version = "0.2.16"
+criteria = "safe-to-deploy"
+
+[[exemptions.linux-raw-sys]]
+version = "0.11.0"
+criteria = "safe-to-run"
+
+[[exemptions.log]]
+version = "0.4.29"
+criteria = "safe-to-deploy"
+
+[[exemptions.memchr]]
+version = "2.8.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.minicbor]]
+version = "1.1.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.minimal-lexical]]
+version = "0.2.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.miniz_oxide]]
+version = "0.8.9"
+criteria = "safe-to-deploy"
+
+[[exemptions.nom]]
+version = "7.1.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.num-derive]]
+version = "0.4.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.num-traits]]
+version = "0.2.19"
+criteria = "safe-to-deploy"
+
+[[exemptions.object]]
+version = "0.37.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.once_cell]]
+version = "1.21.4"
+criteria = "safe-to-deploy"
+
+[[exemptions.owo-colors]]
+version = "4.3.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.pareen]]
+version = "0.3.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.pathdiff]]
+version = "0.2.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.pkg-config]]
+version = "0.3.32"
+criteria = "safe-to-deploy"
+
+[[exemptions.proc-macro2]]
+version = "1.0.106"
+criteria = "safe-to-deploy"
+
+[[exemptions.qrcodegen]]
+version = "1.8.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.quote]]
+version = "1.0.45"
+criteria = "safe-to-deploy"
+
+[[exemptions.regex]]
+version = "1.12.3"
+criteria = "safe-to-deploy"
+
+[[exemptions.regex-automata]]
+version = "0.4.14"
+criteria = "safe-to-deploy"
+
+[[exemptions.regex-syntax]]
+version = "0.8.10"
+criteria = "safe-to-deploy"
+
+[[exemptions.rustc-demangle]]
+version = "0.1.27"
+criteria = "safe-to-deploy"
+
+[[exemptions.rustc-hash]]
+version = "2.1.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.rustix]]
+version = "1.1.3"
+criteria = "safe-to-run"
+
+[[exemptions.ryu]]
+version = "1.0.23"
+criteria = "safe-to-deploy"
+
+[[exemptions.semver]]
+version = "1.0.27"
+criteria = "safe-to-deploy"
+
+[[exemptions.serde]]
+version = "1.0.228"
+criteria = "safe-to-deploy"
+
+[[exemptions.serde_core]]
+version = "1.0.228"
+criteria = "safe-to-deploy"
+
+[[exemptions.serde_derive]]
+version = "1.0.228"
+criteria = "safe-to-deploy"
+
+[[exemptions.serde_json]]
+version = "1.0.145"
+criteria = "safe-to-deploy"
+
+[[exemptions.shlex]]
+version = "1.3.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.spin]]
+version = "0.9.8"
+criteria = "safe-to-deploy"
+
+[[exemptions.stable_deref_trait]]
+version = "1.2.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.static-alloc]]
+version = "0.2.6"
+criteria = "safe-to-deploy"
+
+[[exemptions.strsim]]
+version = "0.11.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.syn]]
+version = "1.0.109"
+criteria = "safe-to-deploy"
+
+[[exemptions.syn]]
+version = "2.0.117"
+criteria = "safe-to-deploy"
+
+[[exemptions.tempfile]]
+version = "3.25.0"
+criteria = "safe-to-run"
+
+[[exemptions.thiserror]]
+version = "2.0.18"
+criteria = "safe-to-deploy"
+
+[[exemptions.thiserror-impl]]
+version = "2.0.18"
+criteria = "safe-to-deploy"
+
+[[exemptions.trezor-tjpgdec]]
+version = "0.1.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.ufmt]]
+version = "0.2.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.ufmt-macros]]
+version = "0.3.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.ufmt-write]]
+version = "0.1.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.unicode-ident]]
+version = "1.0.24"
+criteria = "safe-to-deploy"
+
+[[exemptions.unsize]]
+version = "1.1.0"
+criteria = "safe-to-deploy"
+
+[[exemptions.windows-link]]
+version = "0.2.1"
+criteria = "safe-to-deploy"
+
+[[exemptions.windows-sys]]
+version = "0.61.2"
+criteria = "safe-to-run"
+
+[[exemptions.without-alloc]]
+version = "0.2.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.zeroize]]
+version = "1.8.2"
+criteria = "safe-to-deploy"
+
+[[exemptions.zlib-rs]]
+version = "0.6.3"
+criteria = "safe-to-deploy"
diff --git a/core/embed/supply-chain/imports.lock b/core/embed/supply-chain/imports.lock
new file mode 100644
index 00000000..0c397a40
--- /dev/null
+++ b/core/embed/supply-chain/imports.lock
@@ -0,0 +1,2 @@
+
+# cargo-vet imports lock
diff --git a/shell.nix b/shell.nix
index dbc28cc5..b0cf3e68 100644
--- a/shell.nix
+++ b/shell.nix
@@ -84,6 +84,7 @@ stdenvNoCC.mkDerivation ({
bash
bloaty # for binsize
cargo-audit
+ cargo-vet
check
crowdin-cli # for translations
curl # for connect tests
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.