{"id":"GHSA-3xmx-2xxv-rpfq","revision":null,"records":[{"revision":"16471c8582144b24ae3234979405324f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6275","aliases":["GHSA-3xmx-2xxv-rpfq"],"title":"Malicious code in @ts-apis/ts-utils (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (eccf08a9ba188be941f42f0b088d51fc5b1e84802fe9bd1d1218a6b71a6e2c11)\nThe published tarball's dist/index.js contains an obfuscated payload that runs at require() time inside a setTimeout-wrapped IIFE, completely unrelated to the package's advertised TypeScript utility API (logger/middleware/getDb/createRedisClient). After a 500-2500ms jitter, it harvests installer-side credentials from ~/.ssh/ (id_rsa, id_ed25519, id_ecdsa, config, authorized_keys), ~/.aws/credentials and ~/.aws/config, ~/.kube/config, ~/.npmrc, ~/.netrc, ~/.docker/config.json, ~/.git-credentials, gcloud application_default_credentials.json, ~/.config/gh/hosts.yml, terraform/Azure/Vault/Railway/Solana credential files,.env files in cwd and parent directories, and on Linux /run/secrets/* plus the Kubernetes service-account token. It also queries cloud-instance metadata services to steal short-lived credentials: AWS EC2 IMDSv2 at 169.254.169.254 (PUT token then GET iam/security-credentials/), GCP metadata.google.internal with Metadata-Flavor: Google, and the ECS container credentials endpoint via $AWS_CONTAINER_CREDENTIALS_RELATIVE_URI. Collected secrets, environment variables, hostname, userInfo, cwd, git config/remotes, /etc/hosts, process listings, and /proc/1/environ are JSON-stringified, base64-encoded, chunked to 30KB, and POSTed over HTTPS to https://safdadfasf.com/cb/loopscale/exfil. A second component opens a persistent C2 channel: every 10 seconds it GETs https://safdadfasf.com/cb/loopscale/h?id=<hostname-timestamp>; responses of the form {c:'SLIVER...'} download a binary, chmod it to 755, and exec it (Sliver-style implant staging), while any other command is passed to execSync with output returned to the C2. All sensitive strings (hostnames, paths, shell commands such as 'powershell Get-ChildItem env:', 'cmdkey /list', 'find / -name.env') are encoded as String.fromCharCode arrays and reconstructed at runtime to evade static analysis. The src/ directory contains only legitimate TypeScript helpers; the payload is present solely in the published dist/index.js, indicating a deliberately backdoored build.\n\n## Source: ghsa-malware (9feb37f631500d1145664f0e853d8ede7baae9c9cf11e922c6042bfc7321c297)\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","state":0,"publishedAt":"2026-06-23T03:01:33+00:00","modifiedAt":"2026-08-14T15:00:55.3296223+00:00","affected":[{"ecosystem":"npm","name":"@ts-apis/ts-utils","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.0","1.0.7","1.0.9","1.0.8","1.0.5","1.0.4","1.0.6","1.0.3","1.1.0","1.0.2","1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.0","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.7","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.9","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.8","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.5","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.4","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.6","https://github.com/advisories/GHSA-3xmx-2xxv-rpfq","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.3","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.1.0","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.2","https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6275","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6275","identifiers":["MAL-2026-6275","GHSA-3xmx-2xxv-rpfq"]},"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-22T02:35:14.4530558+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T02:35:14.4530558+00:00","lastSuccessAt":"2026-11-22T02:35:14.6146729+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.6146746+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-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-6fbb544332252ce7f6ab5219558f5fc70ebc81aa87ab539e2ae3685083dfe86f","complete":true,"records":430368,"lastAttemptAt":"2026-11-22T02:35:13.7783233+00:00","lastSuccessAt":"2026-11-22T02:35:13.7495544+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:13.7783233+00:00","snapshotPublishedAt":"2026-11-22T01:28:54+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-14c3bfd2ee924a668165d82361872c7d","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T02:41:10.1585768+00:00","lastSuccessAt":"2026-11-22T02:41:10.2138266+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:41:10.2138266+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"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-22T02:35:14.4530558+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T02:35:14.4530558+00:00","lastSuccessAt":"2026-11-22T02:35:14.6158261+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.6158264+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-5676e481221a4eb3bb45efe15be10127","complete":false,"records":13939,"lastAttemptAt":"2026-11-22T02:35:39.8108386+00:00","lastSuccessAt":"2026-11-22T02:35:39.807+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:39.807+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13475,"expectedIdentifiers":13975,"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-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T02:35:14.4054693+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.4054693+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+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-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T02:35:13.9197439+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:13.9197439+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+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-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T02:35:14.4180995+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.4180995+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+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-51ee6316df1f127212a04a5d14e44bd5b8320ce3e4eef0c5252608edb6cd3602","complete":true,"records":232850,"lastAttemptAt":"2026-11-22T02:35:14.2967832+00:00","lastSuccessAt":"2026-11-21T23:27:19.9062791+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.2967832+00:00","snapshotPublishedAt":"2026-11-21T23:18:21+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}