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 layer2-sdk (npm)

0
High
Published: 08/19/2026 (08/19/2026, 08:14:26 UTC)
Source: GCVE Database
Product: layer2-sdk

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

npmghsa
layer2-sdk
Affected versions
=1.0.0=1.0.1

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: 08/19/2026, 14:15:19 UTC

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.

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-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 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