MAL-2026-10197: Malicious code in metemask-sdk (PyPI)
The metemask-sdk package on PyPI is a malicious typosquat of the legitimate metamask-sdk. Upon import, it fetches and executes attacker-controlled code from IPFS without integrity checks, enabling arbitrary remote code execution. The package's advertised API is non-functional and serves as a facade. The malicious code steals sensitive files such as cryptocurrency wallet keys, SSH keys, and dotenv files, uploading them to IPFS, and communicates with a command-and-control server for further instructions.
AI Analysis
Technical Summary
metemask-sdk is a malicious PyPI package designed as a typosquat of metamask-sdk. Its __init__.py performs an outbound HTTP fetch to an IPFS gateway to retrieve and execute remote code without any integrity verification. This remote code harvests sensitive data including crypto wallet private keys, SSH keys, and dotenv files, exfiltrating them via IPFS. It also establishes communication with a command-and-control server to receive further commands. The package's public API functions are stubs returning random or constant data, masking its true malicious behavior executed at import time.
Potential Impact
Users who install or import metemask-sdk versions 1.2.0 or 1.2.1 risk executing attacker-controlled code on their systems. This leads to theft of sensitive credentials such as cryptocurrency wallet private keys, SSH keys, and environment configuration files. The attacker can also execute additional commands remotely, potentially compromising the victim's environment further. The malicious package poses a significant risk to confidentiality and system integrity.
Mitigation Recommendations
Avoid installing or using the metemask-sdk package, especially versions 1.2.0 and 1.2.1. Use the legitimate metamask-sdk package instead. Since this is a malicious typosquat package with no official fix or patch, remediation involves removing any installations of metemask-sdk and scanning affected systems for potential compromise. Monitor for unauthorized access or data exfiltration related to the compromised environment. Verify package names carefully before installation to prevent typosquatting attacks.
MAL-2026-10197: Malicious code in metemask-sdk (PyPI)
Description
The metemask-sdk package on PyPI is a malicious typosquat of the legitimate metamask-sdk. Upon import, it fetches and executes attacker-controlled code from IPFS without integrity checks, enabling arbitrary remote code execution. The package's advertised API is non-functional and serves as a facade. The malicious code steals sensitive files such as cryptocurrency wallet keys, SSH keys, and dotenv files, uploading them to IPFS, and communicates with a command-and-control server for further instructions.
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
metemask-sdk is a malicious PyPI package designed as a typosquat of metamask-sdk. Its __init__.py performs an outbound HTTP fetch to an IPFS gateway to retrieve and execute remote code without any integrity verification. This remote code harvests sensitive data including crypto wallet private keys, SSH keys, and dotenv files, exfiltrating them via IPFS. It also establishes communication with a command-and-control server to receive further commands. The package's public API functions are stubs returning random or constant data, masking its true malicious behavior executed at import time.
Potential Impact
Users who install or import metemask-sdk versions 1.2.0 or 1.2.1 risk executing attacker-controlled code on their systems. This leads to theft of sensitive credentials such as cryptocurrency wallet private keys, SSH keys, and environment configuration files. The attacker can also execute additional commands remotely, potentially compromising the victim's environment further. The malicious package poses a significant risk to confidentiality and system integrity.
Mitigation Recommendations
Avoid installing or using the metemask-sdk package, especially versions 1.2.0 and 1.2.1. Use the legitimate metamask-sdk package instead. Since this is a malicious typosquat package with no official fix or patch, remediation involves removing any installations of metemask-sdk and scanning affected systems for potential compromise. Monitor for unauthorized access or data exfiltration related to the compromised environment. Verify package names carefully before installation to prevent typosquatting attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10197
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ae1468715ace438f9212
Added to database: 07/13/2026, 09:21:24 UTC
Last enriched: 07/13/2026, 09:59:41 UTC
Last updated: 07/13/2026, 20:45:17 UTC
Views: 6
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.
External Links
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.