Malicious code in loadashjs (npm)
The loadashjs package on npm is a typosquatting malicious package impersonating lodash. It exports an empty object but runs a postinstall script that sends system platform data to a hardcoded IP and downloads a malicious Windows executable from an unrelated GitHub account. The executable is saved to the temp directory and launched hidden. On WSL or virtualized Linux hosts, additional obfuscated scripts invoke the same payload via a Windows bridge. This package version 1.0.0 contains no legitimate lodash functionality and is designed to deliver and execute malware.
AI Analysis
Technical Summary
loadashjs is a typosquatting npm package mimicking lodash but containing malicious code. Its index.js exports an empty object, while its postinstall.js script executes automatically on npm install. This script sends a JSON payload with platform information (including detection of WSL) to a hardcoded bare IP endpoint. It then XOR-decodes an obfuscated URL to download a Windows PE binary from a personal GitHub repository under an unpinned 'null' release tag. The binary is saved to the %TEMP% directory as main.exe and executed in a hidden, detached process. On WSL or virtualized Linux environments, additional XOR-obfuscated byte arrays are decoded and concatenated into a shell command to invoke the same Windows payload via a bridging mechanism. The package version 1.0.0 is affected and contains no legitimate lodash functionality, serving solely to deliver and execute malware.
Potential Impact
This malicious package can lead to arbitrary code execution on Windows systems where it is installed, as it downloads and runs a hidden executable from an untrusted source. The postinstall script also leaks system platform information to a remote attacker-controlled server. On WSL or virtualized Linux hosts, it uses additional obfuscated scripts to bridge and execute the Windows payload, potentially expanding the attack surface. The package does not provide any legitimate functionality and is designed to compromise the host system.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing loadashjs and similar typosquatting packages. Use verified lodash packages from trusted sources. Monitor npm dependencies for suspicious or unexpected packages. Remove any installations of loadashjs=1.0.0 and scan affected systems for the downloaded malware (main.exe) and related artifacts. Since this is a malicious package, remediation involves removal and incident response rather than patching.
Malicious code in loadashjs (npm)
Description
The loadashjs package on npm is a typosquatting malicious package impersonating lodash. It exports an empty object but runs a postinstall script that sends system platform data to a hardcoded IP and downloads a malicious Windows executable from an unrelated GitHub account. The executable is saved to the temp directory and launched hidden. On WSL or virtualized Linux hosts, additional obfuscated scripts invoke the same payload via a Windows bridge. This package version 1.0.0 contains no legitimate lodash functionality and is designed to deliver and execute malware.
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
loadashjs is a typosquatting npm package mimicking lodash but containing malicious code. Its index.js exports an empty object, while its postinstall.js script executes automatically on npm install. This script sends a JSON payload with platform information (including detection of WSL) to a hardcoded bare IP endpoint. It then XOR-decodes an obfuscated URL to download a Windows PE binary from a personal GitHub repository under an unpinned 'null' release tag. The binary is saved to the %TEMP% directory as main.exe and executed in a hidden, detached process. On WSL or virtualized Linux environments, additional XOR-obfuscated byte arrays are decoded and concatenated into a shell command to invoke the same Windows payload via a bridging mechanism. The package version 1.0.0 is affected and contains no legitimate lodash functionality, serving solely to deliver and execute malware.
Potential Impact
This malicious package can lead to arbitrary code execution on Windows systems where it is installed, as it downloads and runs a hidden executable from an untrusted source. The postinstall script also leaks system platform information to a remote attacker-controlled server. On WSL or virtualized Linux hosts, it uses additional obfuscated scripts to bridge and execute the Windows payload, potentially expanding the attack surface. The package does not provide any legitimate functionality and is designed to compromise the host system.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing loadashjs and similar typosquatting packages. Use verified lodash packages from trusted sources. Monitor npm dependencies for suspicious or unexpected packages. Remove any installations of loadashjs=1.0.0 and scan affected systems for the downloaded malware (main.exe) and related artifacts. Since this is a malicious package, remediation involves removal and incident response rather than patching.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14179
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4caacd9273b49252e70
Added to database: 08/19/2026, 13:51:06 UTC
Last enriched: 08/19/2026, 14:51:08 UTC
Last updated: 08/19/2026, 14:51:08 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.