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 lodhash-cli (npm)

0
High
Published: 08/19/2026 (08/19/2026, 00:00:48 UTC)
Source: GCVE Database
Product: lodhash-cli

Description

The npm package lodhash-cli is a typosquatting malicious package mimicking lodash. Its main entry exports an empty object, but its postinstall script downloads and executes a malicious binary from a personal GitHub repository without verification. The script also sends an HTTP beacon to a suspicious IP address indicating successful installation. It attempts to execute the payload on Windows hosts and Windows Subsystem for Linux (WSL) environments. The package version 1.0.0 is affected. No CVSS score is available, but the behavior indicates high risk due to arbitrary code execution and persistence.

Affected software

npmghsa
lodhash-cli
Affected versions
=1.0.0

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:46:34 UTC

Technical Analysis

lodhash-cli is a malicious npm package designed as a lodash typosquat. Its main module exports nothing functional, but the postinstall script decodes and downloads a binary executable from a non-affiliated GitHub account, saving it to the temporary directory and executing it hidden from the user. When running under WSL, it additionally executes a PowerShell command to run the same binary on the Windows host. The package also sends a plaintext HTTP beacon to a suspicious IP address to signal successful installation. The URLs and commands are XOR-encoded to evade detection. No integrity checks are performed on the downloaded binary, increasing risk. The package advertises no legitimate functionality beyond this dropper behavior.

Potential Impact

This malicious package enables arbitrary code execution on the host system by downloading and running an unverified executable. It can run stealthily on both Windows and WSL environments, potentially leading to system compromise. The beaconing behavior may facilitate attacker tracking or command and control. Because the binary is fetched from a personal GitHub repository unrelated to lodash, it is untrusted and could contain any payload. This poses a significant security risk to users who install this package.

Mitigation Recommendations

Users should avoid installing lodhash-cli version 1.0.0 and remove it if already installed. Since no official patch or fix is available, the best mitigation is to rely on trusted package sources and verify package authenticity before installation. Monitoring for suspicious postinstall behaviors and blocking network connections to the indicated IP address may help detect or prevent infection. Consider using package integrity verification tools and typosquatting detection mechanisms to prevent similar threats.

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-14183
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a85b4caacd9273b49252b6c

Added to database: 08/19/2026, 13:51:06 UTC

Last enriched: 08/19/2026, 14:46:34 UTC

Last updated: 08/19/2026, 14:46:34 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