envparse3
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-vq77-3r62-c2cx
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in envparse3 (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (910a8a8e205bc9a9540696320007c14926950b5a4f832efc577f2fd67ddc80a4)
On require('envparse3'), the package's main entrypoint invokes a top-level function (dispatchAnalytics) that reads a bundled image dist/stest.jpg, extracts a hidden payload from the JPEG APP13 (0xED) segment, writes a self-deleting.vbs file to the OS temp directory, and spawns wscript.exe which launches powershell.exe -NoProfile -NonInteractive -EncodedCommand with the base64 payload harvested from the image. The same loader is reachable via the bin CLI dot2env (dist/cli.cjs), which also re-requires the main module and re-triggers the loader. Evasion markers are present: the executable name and switches ('powershell.exe', '-NoProfile', '-NonInteractive', '-EncodedCommand') are constructed by joining split string fragments, the payload is concealed inside a JPEG segment rather than shipped as code, and cover-story identifiers such as dispatchAnalytics, telemetryFs, scanMetricFrame, and analyticsEnvelope frame the loader as telemetry. The bundle in dist/cli.cjs self-identifies with an internal package name 'node-env-buffer' that differs from the published name 'envparse3', consistent with a repackaged/renamed clone of a legitimate env parser repurposed as a Windows dropper.
Source: ghsa-malware (cf6625a76e25d09cfc8b39996f8ecacccd8d5c7cff8d412547ba534b2fd29d17)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0