目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%
← 返回恶意软件包
npm active

@ts-apis/ts-utils

MAL-2026-6275
2026-08-14 14:53:27
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @ts-apis/ts-utils (npm)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
634
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@ts-apis/ts-utils*
npm@ts-apis/ts-utils1.0.0
npm@ts-apis/ts-utils1.0.1
npm@ts-apis/ts-utils1.0.2
npm@ts-apis/ts-utils1.0.3
npm@ts-apis/ts-utils1.0.4
npm@ts-apis/ts-utils1.0.5
npm@ts-apis/ts-utils1.0.6
npm@ts-apis/ts-utils1.0.7
npm@ts-apis/ts-utils1.0.8
npm@ts-apis/ts-utils1.0.9
npm@ts-apis/ts-utils1.1.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6275","published":"2026-06-23T03:01:33Z","modified":"2026-08-14T14:53:27.260736613Z","aliases":["GHSA-3xmx-2xxv-rpfq"],"summary":"Malicious code in @ts-apis/ts-utils (npm)","details":"\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","affected":[{"package":{"name":"@ts-apis/ts-utils","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"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"],"database_specific":{"cwes":[{"cweId":"CWE-506","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","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","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","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","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","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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"3d1c30d7f6e4d92d812e725a4ceae4dbb8d68c9310ca34690abc430dfc453a60","tlsh":"f052a73a33fa6521b11be04fe7474001b9b2f5033665d8a4b68c73985fdd464d6a2ef4"}],"package_integrity":[{"filename":"ts-utils-1.0.0.tgz","hashes":{"sha1":"421b1b01c4126fbb6adb65220364fc20bcdd332f","sha512_sri":"sha512-nbt9WY751IorGzY2RVXgtTrpthH0KAu01/sGptV5qETWROJk2vUfcPWYdt/55P8J6mN4/wgKsQzYO3qd364v6A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.6"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3xmx-2xxv-rpfq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ts-apis/ts-utils/v/1.0.1"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007194","import_time":"2026-06-23T03:13:43.941738174Z","modified_time":"2026-06-23T03:01:39Z","sha256":"12056b67bfeda9328838ff8458d4f38ffc1b65ccd71164498ffeb1d4e307afa5","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-007195","import_time":"2026-06-23T03:13:44.045490647Z","modified_time":"2026-06-23T03:01:40Z","sha256":"af14b02cb4671aa93acc751aceafb4d2f80330e23ad1220d3b9ad08097d23baf","source":"amazon-inspector","versions":["1.0.7"]},{"id":"IN-MAL-2026-007191","import_time":"2026-06-23T03:13:43.640654297Z","modified_time":"2026-06-23T03:01:37Z","sha256":"d0642d2d0f9a777b980c086bfa15770de968767705ec917ac362bad75e903ade","source":"amazon-inspector","versions":["1.0.9"]},{"id":"IN-MAL-2026-007192","import_time":"2026-06-23T03:13:43.751097354Z","modified_time":"2026-06-23T03:01:38Z","sha256":"eccf08a9ba188be941f42f0b088d51fc5b1e84802fe9bd1d1218a6b71a6e2c11","source":"amazon-inspector","versions":["1.0.8"]},{"id":"IN-MAL-2026-007193","import_time":"2026-06-23T03:13:43.861513053Z","modified_time":"2026-06-23T03:01:38Z","sha256":"f6adbe3a98ab8ddfafb044c7faa99be609d037118b8c4302e2f726355b01a1e4","source":"amazon-inspector","versions":["1.0.5"]},{"id":"IN-MAL-2026-007190","import_time":"2026-06-23T03:13:43.492925334Z","modified_time":"2026-06-23T03:01:33Z","sha256":"320b872273b2bc090f1633daf383736245010762235236e7be71bf30d2f7a673","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-007196","import_time":"2026-06-23T03:13:44.150712134Z","modified_time":"2026-06-23T03:01:41Z","sha256":"8c4213763da3ab47fc9efd6df9dded22239064decceac5ad6381c27537901fec","source":"amazon-inspector","versions":["1.0.6"]},{"id":"GHSA-3xmx-2xxv-rpfq","import_time":"2026-08-13T22:11:44.589438755Z","modified_time":"2026-08-13T17:02:59Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"9feb37f631500d1145664f0e853d8ede7baae9c9cf11e922c6042bfc7321c297","source":"ghsa-malware"},{"id":"IN-MAL-2026-017857","import_time":"2026-08-14T14:51:43.374041706Z","modified_time":"2026-08-14T14:46:38Z","sha256":"13b97466f1eeff97200356927bb86c3890143143a0791f4d50d372181650ecb6","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-017817","import_time":"2026-08-14T14:51:40.589892295Z","modified_time":"2026-08-14T14:40:49Z","sha256":"180f49622a4c20b5021519f9887017f5143e87f7dd0806b8fe5b777a6f7e6a1b","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-017861","import_time":"2026-08-14T14:51:43.615999029Z","modified_time":"2026-08-14T14:47:12Z","sha256":"b641d0043fbf8ac703e6e5737b3ea7360047fe8ef322d29e59ec31c55a39ce06","source":"amazon-inspector","versions":["1.0.2"]},{"id":"IN-MAL-2026-017881","import_time":"2026-08-14T14:51:45.267117652Z","modified_time":"2026-08-14T14:50:14Z","sha256":"c5675eed57b33d2e796b838324d63e97fce14952518f7b2ed0d6c25569840db4","source":"amazon-inspector","versions":["1.0.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0