Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in evm-typechain (npm)

0
Critical
Published: 07/07/2026 (07/07/2026, 15:46:10 UTC)
Source: GCVE Database
Product: evm-typechain

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0a78b4d04410e295cbe340c95e6800a0777717d46ce136f0c30b5593d1bd9738) On require, index.js issues an HTTPS GET to https://www.jsonkeeper.com/b/PC5CK, passes the returned JSON `cookie` field to `new Function('require',...)`, and invokes it with the real `require` capability. The invocation is concealed at the end of index.js behind a long run of tab whitespace on the same line as `module.exports = leanhooksPlugin;`, and the file carries a false `Mongoose LeanHooks Plugin` header that does not match the package's advertised purpose. The remote content is attacker-mutable (unpinned, no hash/signature) and executes with full module-loading capability, giving arbitrary remote code execution in any Node.js process that imports the package. The package name and description impersonate the widely used TypeChain project (`type-safe bindings for Ethereum smart contracts`), while the shipped code is an unrelated Mongoose plugin stub bolted to the remote loader; the repository URL (`drudge/evm-typeschain`) is a spelling mismatch. This is a typosquat lure fronting an import-time RCE dropper. ## Source: ghsa-malware (7f309e50be1b9923d440673fba72e6c345b370828f8d8a0e313afb6d6d2e96f0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
evm-typechain

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

AILast updated: 07/08/2026, 13:52:38 UTC

Technical Analysis

The 'evm-typechain' package in the npm ecosystem has been identified as containing malicious code. Installation or execution of this package results in a full system compromise, potentially allowing attackers to control the affected computer. Due to the severity of the compromise, simply uninstalling the package may not remove all malicious artifacts. The advisory strongly recommends rotating all secrets and keys from a different, uncompromised machine to mitigate ongoing risks.

Potential Impact

Any system with the 'evm-typechain' package installed or running is considered fully compromised, meaning attackers may have complete control over the system. This includes potential unauthorized access to all stored secrets and keys, which must be rotated immediately. The presence of the package indicates a severe security breach with high risk to confidentiality, integrity, and availability of the affected system.

Mitigation Recommendations

Remove the 'evm-typechain' package immediately from all affected systems. Rotate all secrets and keys stored on the compromised machines from a separate, secure computer. Because full control of the system may have been given to an attacker, further forensic analysis and remediation may be necessary to ensure complete removal of malicious software. No official patch or fix is available as this is a malicious package; prevention involves avoiding installation and removing the package if found.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6932
Osv Schema Version
1.7.4
Aliases
["GHSA-c4gm-jp6q-h9hq"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4e4f0dc9d9e3dbe328e0f5

Added to database: 07/08/2026, 13:22:21 UTC

Last enriched: 07/08/2026, 13:52:38 UTC

Last updated: 07/31/2026, 02:44:13 UTC

Views: 25

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses