MAL-2026-12237

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tinkoff-codeceptjs-storyshots-alpha/MAL-2026-12237.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12237
Aliases
  • GHSA-fhqv-jjj8-w6wh
Published
2026-08-05T08:57:26Z
Modified
2026-08-07T00:04:55.280410724Z
Summary
Malicious code in tinkoff-codeceptjs-storyshots-alpha (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (3112d2ca5a8472fa34cd7ca06332803889f72a195a05b3f98592e43decd66631)

The package's index.js unconditionally requires bootstrap.js on load. bootstrap.js selects a platform-specific path (linuxx64, linuxarm64, 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 dotnetdiag<hex>.exe and.cache<hex>, chmod 0755 on unix, and spawned detached via spawn("/bin/sh", ["-c", path + " &"]).unref() (spawn("cmd",...) on Windows). A marker file named.analyticsstate 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.

Source: ghsa-malware (c25bd468b106925447d7d095a57622be4735d24517f3c3fcd86704b4e83f2afa)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "20.8.9"
            ],
            "id": "IN-MAL-2026-014486",
            "sha256": "3112d2ca5a8472fa34cd7ca06332803889f72a195a05b3f98592e43decd66631",
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T08:57:26Z",
            "import_time": "2026-08-05T09:28:17.704232318Z"
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "c25bd468b106925447d7d095a57622be4735d24517f3c3fcd86704b4e83f2afa",
            "source": "ghsa-malware",
            "id": "GHSA-fhqv-jjj8-w6wh",
            "modified_time": "2026-08-06T16:49:24Z",
            "import_time": "2026-08-06T23:53:00.679956796Z"
        }
    ]
}
References
Credits

Affected packages

npm / tinkoff-codeceptjs-storyshots-alpha

Package

Name
tinkoff-codeceptjs-storyshots-alpha
View open source insights on deps.dev
Purl
pkg:npm/tinkoff-codeceptjs-storyshots-alpha

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.8.9

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tinkoff-codeceptjs-storyshots-alpha/MAL-2026-12237.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "tinkoff-codeceptjs-storyshots-alpha-20.8.9.tgz",
            "hashes": {
                "sha1": "b5b66462128c3bc4674bc5ce4442567e96383819",
                "sha512_sri": "sha512-O71k+8Z3y6oQqCjs9a+TbKy7JRF9S6tvFAKwTIrn0QK0FYJrJwV15oNGuDEMcnuH7mcE6AIT4Rm7XsgXmimSxA=="
            }
        }
    ],
    "evidence_files": [
        {
            "path": "_bootstrap.js",
            "sha256": "a9588171f6b39064b8d20015572ad650f9331015f3e98eb809d4e362a8ac5f21",
            "tlsh": "9ea1969a15a5701c4bb0a7e4861b881af65bf6633781c2d4f75ca8885f735288372efc"
        },
        {
            "path": "lib/telemetry.js",
            "sha256": "d63e8e653cd151fdaa7028f538a46c3e084417ace90f616f7aa61168c9d84bf0",
            "tlsh": "42835055566a242186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"
        }
    ]
}