hauntview
Affected
- Versions:
0.2.9
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-v244-m2jr-cmc2
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in hauntview (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (36aa7d594b271a7fcc379e96127fca987597c096dadb6c5c89956b35dcf14302)
[email protected] contains an obfuscated IIFE embedded in two execution paths. scripts/postinstall.mjs is prepended with a large obfuscated loader, hidden behind a run of tab characters before the legitimate Playwright-install logic; this runs on every npm install. The same loader is duplicated at the top of dist/cli.js (the file registered as the haunt / hauntview bin entry), so it also fires whenever the installed CLI is invoked, including in environments where the postinstall body is skipped (CI / SKIP_PLAYWRIGHT_INSTALL paths). The loader defines a hand-rolled parameterised shuffle string decoder (b/c/d aliased as spin/splitLane/peel) seeded by two 6-tuple constants (NX, SX) over an opaque string array, resolves a method name from a decoded substring that maps to the Function constructor on a function object, and uses it to dynamically compile and invoke decoded source with the argument 2509. The combination of whitespace-hidden placement before a benign Playwright installer, a custom shuffle decoder, dynamic Function-constructor compilation, and two independent install/invocation triggers is the fingerprint of a supply-chain dropper, not a legitimate build step.
Source: ghsa-malware (1c1beaab001c7335a242aa75f38d4a580710975987ab0b180128f0cea70a54b2)
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.2.9None 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