basek (crates.io) · Malicious Code
Affects basekSource GCVE Database
Malicious package : remove basek and rotate any secrets on hosts that installed it.
Data as of 13 Nov 2026, 03:22 UTC
Malicious package
Published to crates.io · OSV MAL-2026-19200
What to do
Remove basek from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| crates.iobasek | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The basek 0.1.0 crate on crates.io is a malicious Rust library functioning as a Windows keylogger. It captures keystrokes including alphanumeric, function, and special keys, and exfiltrates the data to a Telegram Bot API endpoint and a secondary web server. The malware establishes persistence by copying itself to a local appdata directory, creating a Run registry key, spawning a watchdog process to ensure continuous operation, and deleting its original binary. It employs timing delays and randomized polling to evade sandbox and behavioral detection. Although described as an educational cybersecurity project, its obfuscation and persistence mechanisms indicate malicious intent.