{"id":"MAL-2026-20604","summary":"Malicious code in git-crt-creator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (33542ef7bb719b629d51202ceddc0f0c6aee23f4342cb19b851d4a6613f45610)\ngit-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.\n\nHow 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.\n\nPayload 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 `\"\u003cname\u003e\":{\"value\":\"\u003cvalue\u003e\",\"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.\n\nVersion 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.\n\nIndicators: `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`.\n\nAny 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.\n","modified":"2026-11-25T16:30:05.759523508Z","published":"2026-11-25T15:43:40Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-11-25T15:44:03Z","sha256":"33542ef7bb719b629d51202ceddc0f0c6aee23f4342cb19b851d4a6613f45610","source":"amazon-inspector","versions":["1.0.2"],"id":"IN-MAL-2026-023120","import_time":"2026-11-25T16:15:54.402910863Z"},{"versions":["1.0.3"],"id":"IN-MAL-2026-023118","import_time":"2026-11-25T16:15:54.172503937Z","modified_time":"2026-11-25T15:43:50Z","sha256":"9036ef40bc64985a4722b7a92bf614213e592c9745c5fe347279e889c3f34510","source":"amazon-inspector"},{"modified_time":"2026-11-25T15:43:40Z","sha256":"e5f0264858c322939dd7dbf7cef9be8bb9b4d5063ed079207deaff6851f981da","source":"amazon-inspector","versions":["10.13.0"],"id":"IN-MAL-2026-023117","import_time":"2026-11-25T16:15:54.032012572Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/git-crt-creator/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/git-crt-creator/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/git-crt-creator/v/10.13.0"}],"affected":[{"package":{"name":"git-crt-creator","ecosystem":"npm","purl":"pkg:npm/git-crt-creator"},"versions":["1.0.2","1.0.3","10.13.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/git-crt-creator/MAL-2026-20604.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"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.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"4fd02e209aa1292301c501220d3aa40ab2b18f3f00447c0857cb683cc1deab758fe32d","path":"package.json","sha256":"f8e7782fb4583e2ac971ee00a9a3ea681e8063f9f72ba93e1b226167f993889b"}],"package_integrity":[{"filename":"git-crt-creator-1.0.2.tgz","hashes":{"sha512_sri":"sha512-u4LGd8/dslnK5ti+9cHbf1u5ygQ+vBHKwy6VCp+LIdZ4qK8nb8ZOy+qu1YvcnhPJNjC06/J4IVGz0kVZei0vjw==","sha1":"cf83379ec592afd560736efde5ab525616ccbe1e"}}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}