Malicious code in layer2-sdk (npm)
The layer2-sdk npm package versions 1.0.0 and 1.0.1 contain malicious code that decodes and executes an obfuscated base64-encoded payload upon loading. This hidden execution occurs as a side effect of requiring the package, consistent with supply-chain dropper behavior. The package masquerades as a blockchain/Layer-2 SDK but primarily performs concealed code execution.
AI Analysis
Technical Summary
The layer2-sdk npm package (versions 1.0.0 and 1.0.1) includes a malicious payload embedded in its index.js file at line 75. This payload is base64-encoded and decoded at runtime using Buffer.from(..., 'base64').toString('utf8'), then executed via an evaluator function. This obfuscation hides the true behavior from casual inspection, enabling the package to act as a supply-chain dropper that executes hidden code when the module is imported. The package's apparent purpose as a blockchain SDK is a facade for this malicious activity.
Potential Impact
When the affected versions of the layer2-sdk package are imported, the hidden malicious code executes automatically, potentially allowing arbitrary code execution on the host environment. This behavior can lead to compromise of the development or deployment environment where the package is used. No specific exploit in the wild is currently known.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid using layer2-sdk versions 1.0.0 and 1.0.1. Remove these versions from projects and replace them with trusted alternatives. Monitor for updates or advisories from the package maintainers or npm regarding this issue. Since this is a supply-chain threat, verifying package integrity and source authenticity before installation is recommended.
Malicious code in layer2-sdk (npm)
Description
The layer2-sdk npm package versions 1.0.0 and 1.0.1 contain malicious code that decodes and executes an obfuscated base64-encoded payload upon loading. This hidden execution occurs as a side effect of requiring the package, consistent with supply-chain dropper behavior. The package masquerades as a blockchain/Layer-2 SDK but primarily performs concealed code execution.
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 layer2-sdk npm package (versions 1.0.0 and 1.0.1) includes a malicious payload embedded in its index.js file at line 75. This payload is base64-encoded and decoded at runtime using Buffer.from(..., 'base64').toString('utf8'), then executed via an evaluator function. This obfuscation hides the true behavior from casual inspection, enabling the package to act as a supply-chain dropper that executes hidden code when the module is imported. The package's apparent purpose as a blockchain SDK is a facade for this malicious activity.
Potential Impact
When the affected versions of the layer2-sdk package are imported, the hidden malicious code executes automatically, potentially allowing arbitrary code execution on the host environment. This behavior can lead to compromise of the development or deployment environment where the package is used. No specific exploit in the wild is currently known.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid using layer2-sdk versions 1.0.0 and 1.0.1. Remove these versions from projects and replace them with trusted alternatives. Monitor for updates or advisories from the package maintainers or npm regarding this issue. Since this is a supply-chain threat, verifying package integrity and source authenticity before installation is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14278
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4b4acd9273b4925153d
Added to database: 08/19/2026, 13:50:44 UTC
Last enriched: 08/19/2026, 14:15:19 UTC
Last updated: 08/19/2026, 14:15:19 UTC
Views: 2
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.