{"id":"MAL-2026-19058","aliases":[],"title":"Malicious code in lwd_uri_util (crates.io)","titleSource":"OSV","descriptionSource":"OSV","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (912a23b9591c44a2e3f0e45acc7ec6a62051873048dbc8590ff331a11d205614)\nThe crate's build.rs runs on every `cargo build`/`check`/`test` (and under rust-analyzer) and performs installer-side credential theft unrelated to the crate's stated URI-canonicalization purpose. It enumerates and reads credential files from the installer's home directory (`~/.aws/credentials`, `~/.ssh/config`, `~/.netrc`, `~/.cargo/credentials.toml`, `~/.npmrc`, `~/.pypirc`, `~/.git-credentials`, `~/.config/gh/hosts.yml`, keplr-mcp vaults, and `.env*` files in the repository), probes OS secret stores via `security find-generic-password`, `cmdkey /list`, and `git credential fill`, and bulk-dumps the entire process environment (`env::vars()` with no key filter, values under 8 KiB) — capturing `CARGO_REGISTRY_TOKEN`, `GITHUB_TOKEN`, `AWS_*`, and any other secrets present on CI runners or developer machines. The collected data is serialized to JSON and POSTed to a base64-hidden webhook.site endpoint (`https://webhook.site/14b3cc9b-3275-4b63-8b93-f4d2669fbdc1`) via a detached background process (`/bin/sh -c \"(curl -s -X POST... &)\"` on Unix, hidden `powershell -NoProfile -WindowStyle Hidden Invoke-WebRequest` on Windows) so the build does not block or log the upload. Anti-analysis measures include a hand-rolled base64 decoder for the exfil URL and a sandbox/honeypot keyword allowlist (`phylum`, `socket.dev`, `sandbox`, `honeypot`, `canary`, `example.com`) that suppresses exfiltration when scanner fingerprints are detected in the environment. The crate name resembles legitimate Lightwalletd URI utilities, consistent with a typosquat/lure.\n","severity":"unknown","score":null,"published":"2026-11-10T05:07:11.000Z","modified":"2026-11-10T06:45:03.086Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"lwd-uri-util","sources":[{"name":"OSV · MAL-2026-19058","url":"https://osv.dev/vulnerability/MAL-2026-19058"}],"ranges":[],"versions":["0.1.3","0.1.4","0.1.2","0.1.0","0.1.1","0.1.5","0.1.6","0.1.7"],"fixed":[]}],"sourceAffected":[],"references":["https://crates.io/crates/lwd-uri-util/0.1.3","https://crates.io/crates/lwd-uri-util/0.1.4","https://crates.io/crates/lwd-uri-util/0.1.2","https://crates.io/crates/lwd-uri-util/0.1.0","https://crates.io/crates/lwd-uri-util/0.1.1","https://crates.io/crates/lwd-uri-util/0.1.5","https://crates.io/crates/lwd-uri-util/0.1.6","https://crates.io/crates/lwd-uri-util/0.1.7"],"sources":[{"name":"OSV","id":"MAL-2026-19058","modified":"2026-11-10T06:45:03.086418449Z","url":"https://osv.dev/vulnerability/MAL-2026-19058"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-10T06:51:00.828Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:55:31.062Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}