CRITICAL npm Malware

Malicious code in git-crt-creator (npm)

MAL-2026-20604

Published · Modified

Dependency scanning

Check whether git-crt-creator is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (33542ef7bb719b629d51202ceddc0f0c6aee23f4342cb19b851d4a6613f45610)

git-crt-creator is part of the Ghost Compiler campaign, a cluster of npm packages published by the account jikaya497 (jikaya497@gmail.com) between October and November 2026. The weaponized packages in this campaign register themselves as tsc, the TypeScript compiler command, and hide their payload in a file that reads as a JavaScript comment but runs as a shell script.

How it executes: from version 1.0.2, package.json maps bin.tsc to ./index.js, so installing the package links node_modules/.bin/tsc to that file. Whichever package is installed last owns that link, so installing git-crt-creator after typescript replaces the real compiler. index.js has no shebang line and is marked executable (mode 0755). When a build script or CI step runs tsc, the kernel cannot execute the file directly and the shell falls back to interpreting it as a shell script. The command substitution inside what a reviewer reads as a JavaScript comment then runs.

Payload in 1.0.3 and 10.13.0 (GitHub Actions secret theft): the script downloads memdump.py from GitHub gist madder-g/d3f2f180c7ed4925de58e5f32d2a00a8 (sha256 3f43650218b53a0391925a612b2d1c3a897ca5e0a3ada2b15d807e4528830102) and runs it with sudo python3. The script finds the GitHub Actions Runner.Worker process and dumps its readable memory. The chain extracts every masked secret held there (entries matching "<name>":{"value":"<value>","isSecret":true}), base64-encodes them and posts them as the body of a new issue titled "Claude bot" in the repository hiko97851/podzal through https://api.github.com/repos/hiko97851/podzal/issues, authenticating with the job's own GITHUB_TOKEN. Every secret exposed to the job leaves the runner. The base64 encoding keeps the stolen values from being recognized by secret scanning, and the traffic goes only to api.github.com and gist.githubusercontent.com, so it blends in with normal CI egress. The sink repository already contains secrets captured from GitHub Actions runs. Version 10.13.0 is byte-identical to 1.0.3 apart from its version number, republished so it wins semver ranges.

Version 1.0.2: uses the same tsc hijack to send one POST to the same GitHub issues endpoint, authenticating with the runner's GITHUB_TOKEN and carrying a static body. It does not collect data from the host, but it executes undisclosed network code whenever tsc runs and was the test release for the theft chain above.

Indicators: node_modules/.bin/tsc resolving to any package other than typescript; a bin-exposed .js file with no shebang and mode 0755; CI requests to gist.githubusercontent.com/madder-g/ or to api.github.com/repos/hiko97851/podzal/issues; issues titled "Claude bot" in hiko97851/podzal.

Any CI pipeline that installed these versions and then ran tsc should rotate every secret available to that workflow, including cloud, registry-publishing and API credentials.

Ready to move

Start Securing

Free, no credit card | First findings in minutes