Feb 13, 2026·4 min read·31 visits
Malicious Rust crate 'sha-rst' (and its parent 'finch_cli_rust') caught stealing SSH keys and AWS credentials. It used dependency nesting to hide the payload. If you installed it, rotate everything.
A deep dive into the 'sha-rst' malicious crate, a textbook example of modern supply chain warfare targeting the Rust ecosystem. This package masqueraded as a utility library but served as a nested payload carrier for a typo-squatting campaign, exfiltrating developer credentials immediately upon installation.
In the world of open-source development, names matter. We trust names like openssl, requests, and tokio. When you see a crate named sha-rst in your dependency tree, your brain likely autocorrects it to 'SHA (Secure Hash Algorithm) for Rust'. It sounds boring. It sounds foundational. It sounds safe.
That psychological blind spot is exactly what the threat actor behind sha-rst was banking on. Released on December 8, 2025, this crate wasn't a hashing library at all. It was a digital syringe loaded with credential-stealing malware, designed to slip past your mental firewall and into your build pipeline.
Unlike a typical vulnerability where a developer makes a mistake (a buffer overflow or a logic error), this was a deliberate, weaponized component. It didn't have a bug; it was the bug. It serves as a grim reminder that in the supply chain, you aren't just importing code; you're importing the author's intentions.
The brilliance of this attack wasn't the code itself—it was the delivery mechanism. The attacker didn't just upload sha-rst and hope people would download it. They used a technique known as Dependency Nesting combined with Typosquatting.
The primary lure was a crate named finch_cli_rust. This was designed to mimic the legitimate finch_cli tool. If a developer mistyped the name or was misled by a search result, they pulled in the malicious finch_cli_rust.
Here is where it gets clever. finch_cli_rust didn't contain the malicious logic directly. If a security researcher or an automated scanner glanced at the top-level crate, it might look relatively benign—perhaps just a wrapper. But inside its Cargo.toml, it defined a dependency on sha-rst. The moment cargo build resolved the tree, sha-rst was pulled in, and the trap was sprung. It's a Matryoshka doll of malice: a fake CLI hiding a fake library hiding a real exploit.
So, what did sha-rst actually do? It didn't mine crypto, and it didn't ransom files. It went for the highest-value targets on a developer's machine: identity.
Analysis by the RustSec team and researcher Matthias Zepper revealed that the crate contained code specifically designed to hunt for standard credential paths. It targeted:
~/.ssh/id_rsa, ~/.ssh/id_ed25519~/.aws/credentials, ~/.aws/configKEY, TOKEN, SECRETThe implementation likely utilized Rust's std::fs to recursively walk these directories and std::net (or a bundled HTTP client) to exfiltrate the data. This wasn't a complex ROP chain; it was a smash-and-grab robbery implemented in safe, stable Rust code.
The most dangerous aspect of Rust malware is the build.rs script. In Rust, a crate can define a build script that compiles and executes before the main application is built. This is intended for compiling C dependencies or generating code, but for an attacker, it's a blank check for Remote Code Execution (RCE).
While the specific execution method for sha-rst (whether it used build.rs or a runtime initializer) ensures that the malware runs automatically, the effect is immediate. You don't need to import the library in your code. You don't need to call a function. You just need to type:
cargo buildOr even just let your IDE auto-index dependencies. In the background, sha-rst compiles, executes, reads your ~/.ssh directory, and sends your private keys to an attacker-controlled endpoint. By the time the compiler finishes, your digital identity is already being sold or used to pivot into your company's infrastructure.
This crate was live for roughly 24 hours before being nuked from crates.io on December 9, 2025. It had 22 downloads. That's a small number in the grand scheme of things, but in security, we don't count downloads; we count potential impact.
If you were one of those 22 unfortunates, or if you are reading this because you found sha-rst in a legacy Cargo.lock file, there is no 'patching'. You cannot fix this. Your machine is compromised. The only remediation is a Scorched Earth policy.
Every credential on that machine is burned. Your SSH keys? Revoke them. Your AWS keys? Rotate them. Your GitHub PATs? Delete them. The persistence of the attacker is unknown, so the safest path is to wipe the machine and start over. This is the cost of a single typo in a modern development environment.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
sha-rst crates.io | >= 0.1.0 | Removed |
finch_cli_rust crates.io | >= 0.0.0 | Removed |
| Attribute | Detail |
|---|---|
| Attack Vector | Supply Chain / Typosquatting |
| Impact | Credential Exfiltration |
| CWE ID | CWE-506 |
| Severity | Critical |
| Exploit Status | Active / Weaponized |
| Platform | Rust / crates.io |
| Payload | Info Stealer |
The product contains code that appears to be malicious in nature.
CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.
CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.
CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).
CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.