GHSA-j83w-xhgf-7m58: Malicious code in @iobandamwer/cache-helper (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (b0a88993bf967d1bbbc61cb5f43b4d9af5d9ef74b920e70d828b4a52bf880979) The package advertises itself as 'Cache utilities' but ships no source, no binding.gyp, and no build configuration — only two prebuilt native addons (addon.node ELF for Linux, addonwin.node PE for Windows) and a 4,164,844-byte opaque, high-entropy file named.napicache with no readable strings and no magic header. The package.json postinstall hook runs node -e "try{require(process.platform==='win32'?'./addonwin.node':'./addon.node').init()}catch(e){}", loading the platform-specific native binary and invoking init() on every install, with the error swallowed to suppress install-time noise. The Linux addon contains the format string '%s/.napicache' alongside fopen64/fread, references a '/tmp/.%u' staging path, and uses fork, setsid, execlp, chmod and exit primitives — the shape of a drop-and-detach loader that reads the bundled.napicache blob, writes it to a hidden /tmp path, chmods it executable and runs it as a detached process. The addon also encodes an extensive evasion suite: environment checks for GITHUBACTIONS, GITLABCI, TRAVIS, CIRCLECI, JENKINSURL, BUILDKITE, CODEBUILDBUILDID, APPVEYOR, SEMAPHORE, TEAMCITYVERSION, BITBUCKETBUILDNUMBER, NETLIFY, VERCEL, CFBUILDID and SANDBOX; container probes against /proc/1/cgroup, docker, containerd, kubepod and podman; a TracerPid: debugger check via /proc/self/status; and host fingerprinting through /proc/meminfo, /proc/cpuinfo and /proc/self/maps. The combination — hollow self-description, source-less native binaries, lifecycle-hook execution of a staged opaque payload, and CI/sandbox/debugger gating — has no overlap with any legitimate cache library and is the fingerprint of an install-time dropper for attacker-controlled code.
Source: ghsa-malware (529f7b16fb0c62ee71033377d3aebf3048f045e18f982b99224a584be9c264f6) 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
npm/@iobandamwer/cache-helperfrom your environment.Remove the @iobandamwer/cache-helper package from any computer where it is installed or running.
- Operational
Rotate all secrets and keys stored on any affected computer immediately, using a different computer.