logo

Database

Use of software with malware In kvarzo-8f3a2-testmetest

Description

kvarzo-8f3a2-testmetest@1.0.1 ships as a 'test package' whose index.js has no exported API: on require() it platform-dispatches to one of three bundled native N-API addons (native.napi.node, native_mac.node, native_win.node) inside a try/catch and prints 'hello'. The native addons read a shipped 1.3MB opaque.napi_cache blob, decrypt it, write the decrypted payload to /tmp/. on POSIX (via fork + setsid + execlp) or %TEMP%...nc.js on Windows (via CreateProcessA with SetFileAttributesA to hide the file), and execute it detached. The payload content is non-auditable from source and runs on every import of the package. The native code additionally enumerates CI environment variables (GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NOW_GITHUB_DEPLOYMENT, CF_BUILD_ID, SCREWDRIVER), inspects /proc/1/cgroup, /proc/self/status TracerPid, /proc/self/maps and /proc/1/cmdline, and on Windows calls IsDebuggerPresent, CheckRemoteDebuggerPresent, and Process32First/Next scanning for 'wireshark' and 'httpdebug' to suppress behavior in analysis environments. The combination of an encrypted dropper, hidden-file execution, environment evasion, and a placeholder library surface gives the author arbitrary code execution on any machine that installs and loads the package.

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.

Mitigation

Update Impact

Minimal update. May introduce new vulnerabilities or breaking changes.

Ecosystem
Component
Affected version