{"id":"MAL-2026-20304","summary":"Malicious code in qzi2v-tttf1-testmetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b99ca6a65bd9e71ec0333a05a272ad0b11773ca20630f9d02ad79345a64b8fdc)\nThe package presents itself as a utility library but exports nothing (index.js is 188 bytes and only require()s a platform-specific native addon). Three precompiled native binaries are shipped (native_win.node, native_mac.node, native.napi.node) alongside a 1,192,296-byte opaque `.napi_cache` blob with zero printable strings and no native source. Strings in the binaries show the addon reads `.napi_cache`, writes a staged JS file matching `%s.nc%lu.js` (Linux/mac also `/tmp/.%u`), and executes it via `node \"%s\"` using `CreateProcessA` on Windows and `fork`/`execlp` on Linux/mac. The loader is gated on CI environment variables (GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD) and includes anti-analysis checks (CheckRemoteDebuggerPresent, process enumeration via Process32First, strings referencing `wireshark` and `httpdebug`, container/daemon detection via `/proc/1/cgroup` and `dockerinit`, `setsid` + `__IS_DAEMON`). Any `require()` of this package on a matching CI host decrypts and executes attacker-controlled code from the shipped blob under the installer's build identity. The package metadata is a thin stub (random-looking name, no author, no repository, description `utility library`) consistent with a disposable build-system targeting dropper rather than a real library.\n","modified":"2026-11-20T19:15:08.844024991Z","published":"2026-11-20T18:59:13Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022954","import_time":"2026-11-20T19:10:12.235144262Z","modified_time":"2026-11-20T18:59:13Z","sha256":"b99ca6a65bd9e71ec0333a05a272ad0b11773ca20630f9d02ad79345a64b8fdc","source":"amazon-inspector","versions":["1.0.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/qzi2v-tttf1-testmetest/v/1.0.1"}],"affected":[{"package":{"name":"qzi2v-tttf1-testmetest","ecosystem":"npm","purl":"pkg:npm/qzi2v-tttf1-testmetest"},"versions":["1.0.1"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"f884b0e36f4c914c3d91f7d2280d2ac2242ddcfb6ee39a776f03da976553d845","tlsh":"a0c080c437a8544d7b6413d431f98b4165c3d05044cc575d4dc996b51e848815f44cb7"},{"path":".napi_cache","sha256":"798d15f91dd883eb39abe2f212fb768a2ae30cf4e76344a87294ba378e3bc7e0","tlsh":"22456c0fca18931d3c2419ed2c8b18d530ccbd996468df52f9ac8967e2649f9314f6eb"},{"tlsh":"b9c02b300f12d03300d407b50e624a0a07120c1f0404b4047317300c00e97f764f530d","path":"package.json","sha256":"612547a3016aa2f70613323586d85e5266f8a1a4876bf8461888ab4673b05d58"}],"package_integrity":[{"filename":"qzi2v-tttf1-testmetest-1.0.1.tgz","hashes":{"sha512_sri":"sha512-8YlwW3GIUBH/g0k6/STxPhzot8iC81SHNEttOIP6GtTqdazkm+slnIRMxzLrw4eW3+TeS6fK8lwh7OsKTfZhpw==","sha1":"426ace341befac946a1a2e173ba8a81408218467"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/qzi2v-tttf1-testmetest/MAL-2026-20304.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}