MAL-2026-10215: Malicious code in fast-dotenv (PyPI)
The fast-dotenv package version 1.0.0 on PyPI contains malicious code that activates after a 72–96 hour delay. Once activated, it retrieves a remote command-and-control (C2) configuration from obfuscated URLs and exfiltrates system information, including environment variables with sensitive keywords and SSH key files. The malicious code hides its network destinations using base64 encoding and cover comments, indicating a staged supply-chain credential stealer. The embedded C2 URLs did not exist at the time of analysis but are linked to related malicious repositories. No official patch or remediation is currently available.
AI Analysis
Technical Summary
The fast-dotenv PyPI package version 1.0.0 includes a delayed-activation malicious payload that, after a randomized 72–96 hour dormancy, fetches a JSON C2 configuration from base64-obfuscated dead-drop URLs. It collects host identity, environment variables containing sensitive keywords (e.g., key, secret, token, password, auth, private, wallet, seed, mnemonic), and enumerates SSH key files in the user's ~/.ssh/ directory. The C2 URLs are concealed within the code as base64 literals with misleading comments to evade detection. Although the analyzed version did not exfiltrate SSH key contents, the overall behavior is consistent with a staged supply-chain credential stealer. The malicious infrastructure is linked to GitHub and GitLab accounts hosting similar code in other languages. The package is classified as malicious with clear intent to steal credentials.
Potential Impact
The malicious code can exfiltrate sensitive environment variables and enumerate SSH key files, potentially exposing credentials and secrets stored on the affected system. This can lead to credential theft and unauthorized access to systems or services. The delayed activation and obfuscation techniques increase the difficulty of early detection. No known exploits in the wild have been reported yet.
Mitigation Recommendations
No official patch or remediation is currently available for fast-dotenv version 1.0.0. Users should immediately remove this package from their environments and avoid using it. Since this is a supply-chain threat, verify dependencies carefully and consider using trusted package sources or internal mirrors. Monitor for any suspicious network activity related to the described C2 patterns. Patch status is not yet confirmed — check the vendor advisory or PyPI security advisories for current remediation guidance.
MAL-2026-10215: Malicious code in fast-dotenv (PyPI)
Description
The fast-dotenv package version 1.0.0 on PyPI contains malicious code that activates after a 72–96 hour delay. Once activated, it retrieves a remote command-and-control (C2) configuration from obfuscated URLs and exfiltrates system information, including environment variables with sensitive keywords and SSH key files. The malicious code hides its network destinations using base64 encoding and cover comments, indicating a staged supply-chain credential stealer. The embedded C2 URLs did not exist at the time of analysis but are linked to related malicious repositories. No official patch or remediation is currently available.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The fast-dotenv PyPI package version 1.0.0 includes a delayed-activation malicious payload that, after a randomized 72–96 hour dormancy, fetches a JSON C2 configuration from base64-obfuscated dead-drop URLs. It collects host identity, environment variables containing sensitive keywords (e.g., key, secret, token, password, auth, private, wallet, seed, mnemonic), and enumerates SSH key files in the user's ~/.ssh/ directory. The C2 URLs are concealed within the code as base64 literals with misleading comments to evade detection. Although the analyzed version did not exfiltrate SSH key contents, the overall behavior is consistent with a staged supply-chain credential stealer. The malicious infrastructure is linked to GitHub and GitLab accounts hosting similar code in other languages. The package is classified as malicious with clear intent to steal credentials.
Potential Impact
The malicious code can exfiltrate sensitive environment variables and enumerate SSH key files, potentially exposing credentials and secrets stored on the affected system. This can lead to credential theft and unauthorized access to systems or services. The delayed activation and obfuscation techniques increase the difficulty of early detection. No known exploits in the wild have been reported yet.
Mitigation Recommendations
No official patch or remediation is currently available for fast-dotenv version 1.0.0. Users should immediately remove this package from their environments and avoid using it. Since this is a supply-chain threat, verify dependencies carefully and consider using trusted package sources or internal mirrors. Monitor for any suspicious network activity related to the described C2 patterns. Patch status is not yet confirmed — check the vendor advisory or PyPI security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10215
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54adf568715ace438f7434
Added to database: 07/13/2026, 09:20:53 UTC
Last enriched: 07/13/2026, 09:52:25 UTC
Last updated: 07/14/2026, 03:37:33 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.