{"id":"MAL-2026-4789","revision":null,"records":[{"revision":"e16aeaa4e8d649de9b2dd95a9555bd4a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4789","aliases":[],"title":"Malicious code in ggk-happy (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d747cc7acd8bbc1defbf475aa3202fd332fd43135a6fedddfcc37356ce02eb54)\nPackage presents itself as the legitimate slopus/happy CLI (README instructs `npm install -g happy`; homepage, repository, bugs, and author fields all point at happy.engineering / github.com/slopus/happy), but the published name is ggk-happy and the shipped code has been modified in ways that harm installers:\n\n1. Backend redirection: DEFAULT_SERVER_URL is hardcoded to https://happy-api.ask-ggk.com and DEFAULT_WEBAPP_URL to https://happy.ask-ggk.com — third-party hosts not disclosed in the README, which still references api.cluster-fluster.com. All coding-agent sessions (Claude Code / Codex prompts, source code, auth tokens, machine metadata) flow to ask-ggk.com instead of the publisher advertised in package metadata.\n\n2. Remote-control surface pointed at attacker infrastructure: ApiSessionClient / ApiMachineClient open a socket.io connection to the redirected server and register RPC handlers named `bash`, `readFile`, `writeFile`, `listDirectory`, `getDirectoryTree`, `ripgrep`, `difftastic`. The `bash` handler runs `execAsync(data.command, options)` on parameters supplied by the remote server. Whoever operates happy-api.ask-ggk.com can execute arbitrary shell commands and read/write files on the installer's machine.\n\n3. Install-time auto-takeover: scripts/postinstall.cjs, on global or root install, unconditionally spawns `node bin/happy.mjs install`, running the full auth/registration flow (browser opened to happy.ask-ggk.com, machine registered to happy-api.ask-ggk.com, daemon started) at `npm install -g` time. Auto-takeover is opt-out via env var, not opt-in, so `sudo npm install -g ggk-happy` immediately binds the machine to the third-party backend, with elevated privileges on Linux/macOS root installs.\n\n4. Unpinned binary dropper: RTK_DOWNLOAD_URLS fetches platform-specific `rtk` binaries from https://minio.ask-ggk.com/happy/rtk-*.{zip,tar.gz} (win32/darwin/linux, x64/arm64) with no hash or signature verification, stages them to ~/.local/share/ggkhappy/rtk/bin/rtk (or %LOCALAPPDATA%\\ggkhappy\\rtk\\bin\\rtk.exe), and later invokes them via execFile. Purpose of the binary is not documented.\n\n5. Covert identity reporting: readRtkIdentity() reads the installer's machineId from ~/.happy settings and the auth token from ~/.happy/access.key and POSTs them, together with platform/version fields, to https://guguke.ask-ggk.com/api/v1/agent/rtk/gain/report — a side channel to a host not referenced in README documentation.\n\nThis is not a legitimate fork: the surface identity (name, homepage, repo, README install command) still claims to be slopus/happy, while all backends, the remote-shell RPC destination, the runtime binary source, and the identity reporter have been repointed to ask-ggk.com infrastructure. Installers who follow the README believe they are installing the upstream project and instead grant an undisclosed operator remote code execution over their machine and full visibility into their AI coding sessions.\n","state":2,"publishedAt":"2026-05-26T09:03:51+00:00","modifiedAt":"2026-08-28T04:01:37.0166198+00:00","affected":[{"ecosystem":"npm","name":"ggk-happy","ranges":[],"versions":["1.0.9","1.2.12","1.2.0","1.2.20","1.2.32","1.2.22","1.2.34","1.2.33","1.2.28","1.2.24","1.2.30","1.2.43"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/ggk-happy/v/1.0.9","https://www.npmjs.com/package/ggk-happy/v/1.2.12","https://www.npmjs.com/package/ggk-happy/v/1.2.0","https://www.npmjs.com/package/ggk-happy/v/1.2.20","https://www.npmjs.com/package/ggk-happy/v/1.2.32","https://www.npmjs.com/package/ggk-happy/v/1.2.22","https://www.npmjs.com/package/ggk-happy/v/1.2.34","https://www.npmjs.com/package/ggk-happy/v/1.2.33","https://www.npmjs.com/package/ggk-happy/v/1.2.28","https://www.npmjs.com/package/ggk-happy/v/1.2.24","https://www.npmjs.com/package/ggk-happy/v/1.2.30","https://www.npmjs.com/package/ggk-happy/v/1.2.43"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4789","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4789","identifiers":["MAL-2026-4789"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-20T13:10:51.2750835+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-20T13:10:51.2750835+00:00","lastSuccessAt":"2026-11-20T13:10:51.4764388+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:10:51.4764395+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-c0a36c23f05674831015f401dd19337f406686e862ebd600072cf8a662abe671","complete":true,"records":429754,"lastAttemptAt":"2026-11-20T13:09:05.965844+00:00","lastSuccessAt":"2026-11-20T13:09:05.8959763+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:09:05.965844+00:00","snapshotPublishedAt":"2026-11-20T12:26:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-923f526b21ff465aaa070dd787190e04","complete":false,"records":13903,"lastAttemptAt":"2026-11-20T13:11:50.6337268+00:00","lastSuccessAt":"2026-11-20T13:11:50.63+00:00","error":"184 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T13:11:50.63+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13767,"expectedIdentifiers":13951,"failedIdentifiers":184},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-20T13:10:51.2750835+00:00","complete":true,"records":1130,"lastAttemptAt":"2026-11-20T13:10:51.2750835+00:00","lastSuccessAt":"2026-11-20T13:10:51.4775507+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:10:51.4775512+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6aee936bb43d4104bab8a28b2d46b27f","complete":true,"records":13915,"lastAttemptAt":"2026-11-20T13:11:16.6274134+00:00","lastSuccessAt":"2026-11-20T13:11:16.624+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:11:16.624+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13951,"expectedIdentifiers":13951,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-8c782c8bda9dbab8135c62bfbc9a19fa3557f15c26fbd641daea6b40b297253e","complete":true,"records":9981,"lastAttemptAt":"2026-11-20T13:10:47.4234331+00:00","lastSuccessAt":"2026-11-20T01:30:46.6941716+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:10:47.4234331+00:00","snapshotPublishedAt":"2026-11-20T00:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-94b3a229089d62296b97f627a772880f88ab7164d62486372661c0a39e321234","complete":true,"records":2019,"lastAttemptAt":"2026-11-20T13:09:06.1435475+00:00","lastSuccessAt":"2026-11-20T01:29:01.8774014+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:09:06.1435475+00:00","snapshotPublishedAt":"2026-11-20T00:17:59+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-572e75f063a5ab6a83f02dc3504c907916f3da35624be24ce3d8746b7f154566","complete":true,"records":3205,"lastAttemptAt":"2026-11-20T13:10:51.2390148+00:00","lastSuccessAt":"2026-11-20T13:10:51.1021934+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:10:51.2390148+00:00","snapshotPublishedAt":"2026-11-20T13:03:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c086577a95ef1fdf13a94061e36d7df0a0cb99c191084e23f95ad86ff1a5ab28","complete":true,"records":232826,"lastAttemptAt":"2026-11-20T13:10:47.2949523+00:00","lastSuccessAt":"2026-11-20T13:10:46.3389974+00:00","error":null,"lastVerifiedAt":"2026-11-20T13:10:47.2949523+00:00","snapshotPublishedAt":"2026-11-20T12:33:35+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}