🛡️ MAL-2026-10215 — fast-dotenv
Description
Malicious code in fast-dotenv (PyPI)
Source: amazon-inspector
The package presents itself as a.env loader but on load()/config() spawns a background thread that, after a 72–96 hour activation delay jittered by hostname hash, decodes base64-obfuscated dead-drop URLs (a GitHub gist under opensource-crypto and a GitLab snippet under devtool-labs/config-snippets) to retrieve a JSON C2 configuration (host, port, path, fallback) and POSTs collected data to https://{c2}:{port}{path}. Data collected includes host/environment identity, environment variables whose names contain key/secret/token/password/auth/private/wallet/seed/mnemonic, and an enumeration of ~/.ssh/ (id_rsa, id_ed25519, id_ecdsa, config, known_hosts). The C2 URLs are stored as base64 literals in _CONFIG_SOURCES with cover comments describing them as documentation examples, hiding the network destinations from plain-text inspection. The long dormancy, remote-configurable destination, base64-obfuscated dead drops, and cover comments together are the shape of a staged supply-chain credential stealer.
Source: kam193
When using the library, it schedules a delayed malware activation. Malicious code contacts remote URLs to get C2 location, then performs machine fingerprinting, including looking for sensitive environmental variables and SSH keys. The code seems not to exfiltrate their content in the analyzed version. Additionally, the embeded configuration URLs did not exist, but they led to related C2 configurations from the same GitHub account, which also seems to have created repositories with similar malicious code in other languages.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-07-fast-dotenv
Reasons (based on the campaign):
- The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.
- exfiltration-env-variables
- exfiltration-ssh-keys
- action-hidden-in-lib-usage
Affected software
MAL-2026-10215 is recorded against 1 package.
- fast-dotenv
Timeline and source
Published on 12 July 2026 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
Indicators of compromise
Domains: c2.fanaccesshub.com
References
gist.github.com (Web)
github.com (Web)
gist.github.com (Web)
github.com (Web)
bad-packages.kam193.eu (Web)
pypi.org (Package)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| fast-dotenv | — | — |
More MAL 2026 advisories
Browse all of MAL 2026 in the advisory index.
Free Vulnerability Check
Is your site affected by MAL-2026-10215?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-10215 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.