{"id":"MAL-2026-12237","summary":"Malicious code in tinkoff-codeceptjs-storyshots-alpha (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3112d2ca5a8472fa34cd7ca06332803889f72a195a05b3f98592e43decd66631)\nThe package's index.js unconditionally requires _bootstrap.js on load. _bootstrap.js selects a platform-specific path (linux_x64, linux_arm64, darwin, win32), fetches an opaque binary from Cloudflare Workers hosts under oob-worker.cf10*.workers.dev whose names are reassembled at runtime via array-join to evade static inspection, and includes a DNS TXT chunked fallback channel using tin.dl.well1.site, tina.dl.well1.site, ldr.dl.well1.site, and win.dl.well1.site. The downloaded bytes are written to /tmp or %TEMP% under disguised names such as dotnet_diag_\u003chex\u003e.exe and.cache_\u003chex\u003e, chmod 0755 on unix, and spawned detached via spawn(\"/bin/sh\", [\"-c\", path + \" &\"]).unref() (spawn(\"cmd\",...) on Windows). A marker file named.analytics_state gates repeat execution on a ~22374 second cooldown, and opt-out environment variables are honored in a way that mimics legitimate telemetry. A secondary module lib/telemetry.js contains the same dropper primitives with property-name obfuscation (fs[\"chmod\"+\"Sync\"], require(\"child_\"+\"process\"), Buffer.from(chunks,\"base64\")) alongside spawn(\"/bin/sh\", [\"-c\", filePath + \" &\"]). The name tinkoff-codeceptjs-storyshots-alpha impersonates a well-known corporate scope; there is no legitimate reason for a storyshots testing helper to fetch and execute an opaque native binary from an anonymous Cloudflare Workers host at import time.\n\n## Source: ghsa-malware (c25bd468b106925447d7d095a57622be4735d24517f3c3fcd86704b4e83f2afa)\nAny 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.\n","aliases":["GHSA-fhqv-jjj8-w6wh"],"modified":"2026-08-07T00:04:55.280410724Z","published":"2026-08-05T08:57:26Z","database_specific":{"malicious-packages-origins":[{"versions":["20.8.9"],"id":"IN-MAL-2026-014486","import_time":"2026-08-05T09:28:17.704232318Z","modified_time":"2026-08-05T08:57:26Z","sha256":"3112d2ca5a8472fa34cd7ca06332803889f72a195a05b3f98592e43decd66631","source":"amazon-inspector"},{"source":"ghsa-malware","id":"GHSA-fhqv-jjj8-w6wh","import_time":"2026-08-06T23:53:00.679956796Z","modified_time":"2026-08-06T16:49:24Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"c25bd468b106925447d7d095a57622be4735d24517f3c3fcd86704b4e83f2afa"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tinkoff-codeceptjs-storyshots-alpha/v/20.8.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fhqv-jjj8-w6wh"}],"affected":[{"package":{"name":"tinkoff-codeceptjs-storyshots-alpha","ecosystem":"npm","purl":"pkg:npm/tinkoff-codeceptjs-storyshots-alpha"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["20.8.9"],"database_specific":{"indicators":{"evidence_files":[{"path":"_bootstrap.js","sha256":"a9588171f6b39064b8d20015572ad650f9331015f3e98eb809d4e362a8ac5f21","tlsh":"9ea1969a15a5701c4bb0a7e4861b881af65bf6633781c2d4f75ca8885f735288372efc"},{"sha256":"d63e8e653cd151fdaa7028f538a46c3e084417ace90f616f7aa61168c9d84bf0","tlsh":"42835055566a242186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js"}],"package_integrity":[{"filename":"tinkoff-codeceptjs-storyshots-alpha-20.8.9.tgz","hashes":{"sha1":"b5b66462128c3bc4674bc5ce4442567e96383819","sha512_sri":"sha512-O71k+8Z3y6oQqCjs9a+TbKy7JRF9S6tvFAKwTIrn0QK0FYJrJwV15oNGuDEMcnuH7mcE6AIT4Rm7XsgXmimSxA=="}}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tinkoff-codeceptjs-storyshots-alpha/MAL-2026-12237.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}