Malicious code in eip712-lite (npm)
Description
The eip712-lite npm package versions 1.0.1 and 1.0.2 contain malicious code that executes upon requiring the package. This code collects sensitive credential files and environment variables from the user's system, compresses and encodes the data, and exfiltrates it to a GitHub repository using a hardcoded and obfuscated bearer token. After exfiltration, the malicious payload in the package file is overwritten to hide its presence. The package falsely advertises itself as a dependency-free EIP-712 helper. Execution is designed to evade detection by running only once per machine and skipping execution in CI or GitHub Actions environments. Any system with this package installed should be considered fully compromised, and all secrets should be rotated immediately from a different machine.
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 eip712-lite npm package versions 1.0.1 and 1.0.2 include an immediately invoked function expression (IIFE) that activates on require(). This function searches the installer's home and project directories for credential files and environment variables matching patterns related to private keys, tokens, AWS credentials, and other secrets. The collected data is gzip compressed, base64 encoded, and sent via a PUT request to a GitHub repository using a hardcoded bearer token that is XOR-obfuscated. After scheduling the data exfiltration, the malicious code overwrites itself in the package file to remove the payload, leaving only benign helper code, thereby evading detection. The exfiltration runs only once per machine, avoiding repeated detection and sandbox detonation. The package is advertised as a dependency-free EIP-712 helper, but this credential harvesting and exfiltration behavior is undocumented and malicious.
Potential Impact
Systems with eip712-lite versions 1.0.1 or 1.0.2 installed are fully compromised. Sensitive credentials and secrets stored on the affected system, including AWS credentials, tokens, SSH keys, and other environment secrets, may have been exfiltrated to an attacker-controlled GitHub repository. This exposure can lead to unauthorized access to cloud services, source code repositories, and other critical infrastructure. Because the malicious code overwrites itself after execution and runs only once, detection is difficult. Removing the package does not guarantee removal of all malicious artifacts or backdoors, and secret rotation is mandatory to mitigate ongoing risk.
Defensive Guidance
Immediate removal of the eip712-lite package versions 1.0.1 and 1.0.2 from all affected systems is required. All secrets and credentials stored on compromised machines must be rotated immediately using a separate, trusted device. Due to the high likelihood of full system compromise, a thorough investigation and potential system rebuild are recommended. There is no official patch or fixed version available; therefore, avoidance of this package and its versions is critical. Monitor for any suspicious activity related to credential misuse. Note that the malicious code avoids execution in CI and GitHub Actions environments and runs only once per machine, complicating detection.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15491
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-p5jf-vqp6-95h5"]
- Ecosystems
- ["npm"]
Threat ID: 6a92f7e3acd9273b49e75ccb
Added to database: 08/29/2026, 15:16:51 UTC
Last enriched: 09/09/2026, 20:53:38 UTC
Last updated: 10/04/2026, 07:19:44 UTC
Views: 29
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.