Skip to main content

Malicious code in log-min (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:35:07 UTC)
Source: GCVE Database
Product: log-min

Description

The npm package 'log-min' version 1.0.13 contains malicious code that impersonates the Theta chain-sdk-js SDK. It executes a postinstall script that decrypts and runs code from a separate dependency 'thedata' using a hardcoded password, enabling arbitrary code execution during installation and when the package is imported.

Affected software

npmghsa
log-min
Affected versions
=1.0.13

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/05/2026, 17:36:14 UTC

Technical Analysis

The 'log-min' npm package (version 1.0.13) masquerades as a JavaScript library for the Theta Blockchain but is actually an impersonation of the Theta chain-sdk-js SDK. Its postinstall script executes a Node.js process that decrypts code from the 'thedata' dependency using a hardcoded password 'hydra' and runs it, allowing arbitrary code execution on any machine that installs or imports the package. This malicious behavior occurs both during 'npm install' via the postinstall hook and at runtime when the package is required. The executed code is not present in the 'log-min' tarball itself but originates from the separate 'thedata' dependency, giving the attacker full control over code execution on affected systems.

Potential Impact

Any system that installs or imports 'log-min' version 1.0.13 is vulnerable to arbitrary code execution by the attacker controlling the 'thedata' dependency. This can lead to full compromise of the affected environment during installation or runtime, as the malicious code runs with the privileges of the user executing the npm commands or running the Node.js process.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or importing 'log-min' version 1.0.13. Verify package authenticity before use and consider removing this package from projects. Monitor vendor advisories for updates or fixes. Since the malicious code executes both at install time and runtime, uninstalling the package and auditing affected systems 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-12396
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735747bf8831d53915a08e

Added to database: 08/05/2026, 15:31:19 UTC

Last enriched: 08/05/2026, 17:36:14 UTC

Last updated: 09/07/2026, 22:12:29 UTC

Views: 19

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