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

目标: 1000 元 · 已筹: 1359 元

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

common-tg-service

MAL-2026-3288
2026-07-09 22:58:18
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in common-tg-service (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
421
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcommon-tg-service*
npmcommon-tg-service1.3.221
npmcommon-tg-service1.3.222
npmcommon-tg-service1.3.223
npmcommon-tg-service1.3.224
npmcommon-tg-service1.3.225
npmcommon-tg-service1.3.226
npmcommon-tg-service1.3.227
npmcommon-tg-service1.3.228
npmcommon-tg-service1.3.229
npmcommon-tg-service1.3.230
npmcommon-tg-service1.3.231
npmcommon-tg-service1.3.232
npmcommon-tg-service1.3.233
npmcommon-tg-service1.3.234
npmcommon-tg-service1.3.235
npmcommon-tg-service1.3.236
npmcommon-tg-service1.3.237
npmcommon-tg-service1.3.238
npmcommon-tg-service1.3.239
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T22:58:18Z","published":"2026-05-02T08:00:00Z","schema_version":"1.7.4","id":"MAL-2026-3288","aliases":["GHSA-wvhv-cgwm-v2hv"],"summary":"Malicious code in common-tg-service (npm)","details":"Malicious npm package published by user `shetty123` as part of a Telegram account hijacking framework targeting Indian Telegram users. All 502 published versions (1.0.1 through 1.3.207) are malicious. Pairs with `ams-ssk`, which provides the operator's server-side AMS/CMS infrastructure.\n\n`common-tg-service` performs full Telegram account takeover at runtime when the service is initialized (no install-time hooks, which lets it bypass scanners that gate on preinstall/postinstall lifecycle scripts). Behavior includes: implanting a hardcoded 2FA password (`Ajtdmwajt1@`) and recovery email on hijacked accounts; polling an operator-controlled Gmail inbox over IMAP (`imap.gmail.com`) to auto-submit 2FA confirmation codes; revoking all device authorizations except the attacker's session; harvesting OTP codes by monitoring Telegram chat 777000 and forwarding them to the operator; running SRP ownership checks against managed accounts and flagging rotated 2FA as unrecoverable; and fetching remote JSON configuration from `npoint.io` so operators can change behavior without re-publishing.\n\nBlocked outbound requests are laundered through a relay at `helper-thge.onrender.com`. Stolen accounts and updates are exfiltrated to attacker-controlled Telegram channels (`-1001801844217` and `-1001972065816`). Operator infrastructure includes `paidgirl.site`, `cms.paidgirl.site`, `report-upi.netlify.app`, and `promoteClients2.glitch.me`.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e769b4a4ea131df52366622b66d63dfbc7c1f5642ac8478c37f86d6c25477bb8)\nThe package presents itself as a generic 'Common Telegram service for NestJS applications' but functions as one party's production application published as a library. Multiple installer-harming behaviors are present:\n\n1. Authentication backdoor. AppModule registers AuthGuard as a global APP_GUARD. dist/guards/auth.guard.js line 84 accepts the literal string 'santoor' as a valid x-api-key (or apiKey query parameter) and grants access to any route. Any NestJS service that imports AppModule from this package exposes every endpoint to anyone who sends `x-api-key: santoor`. The same value is baked into the shipped Swagger UI as the default auth value.\n\n2. Silent relay of consumer outbound HTTP. dist/utils/fetchWithTimeout.js (used package-wide) automatically POSTs the original request (URL, method, headers, body, params) to https://helper-thge.onrender.com/execute-request whenever an upstream call returns 403 or 495, unless the consumer overrides process.env.bypassURL. The relay endpoint is author-controlled and authenticated with the same 'santoor' shared secret, so the author can read every mirrored request — including any auth headers or bodies the consumer's service was sending to its own upstreams.\n\n3. Default proxy and IP-management routing through author infrastructure. dist/components/Telegram/utils/generateTGConfig.js line 97 defaults PROXY_API_URL to https://cms.paidgirls.site/ip-management and PROXY_API_KEY to 'santoor'. With proxying enabled, all MTProto traffic for the consumer's Telegram sessions is routed through SOCKS5 proxies chosen by the author, who can intercept, drop, or correlate the consumer's Telegram identities.\n\n4. Remote zip drop into the consumer's working directory. dist/cloudinary.js line 87 fetches https://cms.paidgirls.site/folders/<folderName>/files/download-all, writes the response to process.cwd()/temp.zip, and calls zip.extractAllTo(process.cwd(), true) — overwriting any files in the consumer's working directory with whatever the author's server returns. There is no hash check, signature, or version pinning, and the destination is mutable. If extracted files land where the consumer's process later loads code or config, this is full RCE in the consumer's environment.\n\n5. Hardcoded couplings that are not disclosed. dist/guards/auth.guard.js lines 15-26 hardcode ALLOWED_IPS and ALLOWED_ORIGINS for paidgirls.site, zomcall.netlify.app, and tgchats.netlify.app, and the package wires logging notifications to specific Telegram channels owned by the author.\n\nTaken together, importing AppModule from this package gives the author master authentication on the consumer's API, a persistent traffic-mirroring channel, control of the consumer's Telegram proxy path, and an ability to write arbitrary files into the consumer's process CWD on demand.\n\n## Source: ghsa-malware (3e16628ad8dc1e6a6c98044a97ae5b72aec56f8a5a5bbc5bdff50bdaf51d978e)\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":{"ecosystem":"npm","name":"common-tg-service"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.3.221","1.3.226","1.3.238","1.3.234","1.3.225","1.3.236","1.3.231","1.3.227","1.3.223","1.3.224","1.3.229","1.3.222","1.3.230","1.3.228","1.3.232","1.3.233","1.3.235","1.3.239","1.3.237"],"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"},{"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/utils/logbots.js","sha256":"362c140115aa0192f39e33d94ba39345e144aae3f865d0b5e68ac57a14d8b3d3","tlsh":"b8319d4825fb6476835248955fdfc0b4792275133e8dec34b56cd3c24f41ab652e3e84"},{"path":"dist/utils/fetchWithTimeout.js","sha256":"ab846b4523706a54989794d987a57d82076372ff2ae1363b8b3d849897c1831f","tlsh":"4e32725a2bf3552701e320a8922f64123633a9071a19fd507b5c97117f8859ceef3bd9"},{"path":"dist/cloudinary.js","sha256":"421e14a820d21d8edf7e2f70d33fed4188f2fb2d9d5774b9d4434280703cd676","tlsh":"9ff1a5870af79533907771ae1b2f1402b522c907252ced18bb8ca365afe1590ecd1ee8"},{"path":"dist/guards/auth.guard.js","sha256":"c551806048a3c62f8207520667f12985cf7af79ff896e5d36a5fe4aa63b4e86d","tlsh":"be1242da21f77560c32291ad8f0b6206b124e457380dedb57eac51d5afc9168c3f2aa8"}],"package_integrity":[{"filename":"common-tg-service-1.3.221.tgz","hashes":{"sha1":"5ff1aaa669b821427383b1720a26fb422d5ce193","sha512_sri":"sha512-UkEwv8LgmRkUUhboUOc0QeqR6adrrdODEhlQdMsyISvLSe/KtlFhO6GF301ioTwSGX0rCREl3Q+pqB4L5jRIRg=="}}]}}}],"references":[{"type":"REPORT","url":"https://safedep.io/malicious-common-tg-service-npm-telegram-hijacking-framework/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.221"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.226"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wvhv-cgwm-v2hv"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.238"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.234"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.225"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.236"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.231"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.227"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.223"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.224"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.229"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.222"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.230"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.228"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.232"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.233"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.235"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.239"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-tg-service/v/1.3.237"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com","inspector-research@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"b90ad93b19ce09a090f9837117fe06f9a4b7b15a8268160182e9d671f0f19b65","import_time":"2026-05-12T07:28:57.937817916Z","modified_time":"2026-05-12T06:53:21Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"cabb88eaa75d4e2a841ec661c545d4d4796871fc3da8e39da527bfa0a33b74a7","import_time":"2026-06-12T19:44:12.322610047Z","id":"IN-MAL-2026-006138","modified_time":"2026-06-12T19:09:48Z","versions":["1.3.221"]},{"source":"amazon-inspector","sha256":"7cd3b6dd4751c7296aa980af903101344ab538b1a9ead17da5699ab21bcfdfdb","import_time":"2026-06-15T20:14:27.612881018Z","id":"IN-MAL-2026-006685","modified_time":"2026-06-15T19:49:45Z","versions":["1.3.226"]},{"source":"ghsa-malware","sha256":"3e16628ad8dc1e6a6c98044a97ae5b72aec56f8a5a5bbc5bdff50bdaf51d978e","import_time":"2026-07-08T16:48:24.192884122Z","id":"GHSA-wvhv-cgwm-v2hv","modified_time":"2026-07-08T16:09:53Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"c85f345f7208547f4f43331b339412172ad80caee29352b3ea4aa5c939cdac83","import_time":"2026-07-08T20:32:34.102491874Z","id":"IN-MAL-2026-008479","modified_time":"2026-07-08T20:16:44Z","versions":["1.3.238"]},{"source":"amazon-inspector","sha256":"cb71c95df9d76c248d6e1465348d7d089a9d76c93d47367835a9ec5c80a9b5db","import_time":"2026-07-08T20:32:19.3232289Z","id":"IN-MAL-2026-008365","modified_time":"2026-07-08T19:59:38Z","versions":["1.3.234"]},{"source":"amazon-inspector","sha256":"ff18ab4c9d0c5460093f5754b91e97bc6a0f03fec98dc31f05468c75fefcad4b","import_time":"2026-07-08T20:32:33.871682683Z","id":"IN-MAL-2026-008477","modified_time":"2026-07-08T20:16:25Z","versions":["1.3.225"]},{"source":"amazon-inspector","sha256":"1629ced644e954e39f32243ede3a8285eafc20d0640ef4eb683fc87f056d1d52","import_time":"2026-07-08T20:32:33.995410061Z","id":"IN-MAL-2026-008478","modified_time":"2026-07-08T20:16:35Z","versions":["1.3.236"]},{"source":"amazon-inspector","sha256":"6b34b2ef550f0af9ef9a8a9d26f366fdf362e40323378494c895a6924d0a5d21","import_time":"2026-07-08T20:32:19.486744837Z","id":"IN-MAL-2026-008366","modified_time":"2026-07-08T19:59:48Z","versions":["1.3.231"]},{"source":"amazon-inspector","sha256":"6e56df6810a3410e315495b78d7e102e8983650217eafaeb4f9ab926b5a8c75c","import_time":"2026-07-08T20:32:33.768945115Z","id":"IN-MAL-2026-008476","modified_time":"2026-07-08T20:16:15Z","versions":["1.3.227"]},{"source":"amazon-inspector","sha256":"5a549fbfd512c863cdf93bc602bc01fda9bdf7b730e8cd6253ce6c24a8acb056","import_time":"2026-07-08T21:27:48.813974325Z","id":"IN-MAL-2026-008589","modified_time":"2026-07-08T20:32:50Z","versions":["1.3.223"]},{"source":"amazon-inspector","sha256":"f714d8b7c30052980ce58752b96ce39ba7b42b6839c1ab693c3de41a698f49e9","import_time":"2026-07-08T21:27:48.950561131Z","id":"IN-MAL-2026-008591","modified_time":"2026-07-08T20:33:09Z","versions":["1.3.224"]},{"source":"amazon-inspector","sha256":"ad2533c7e094af2e17e40ef8b7e48ca619de991111618c094340ef67a8b68dc6","import_time":"2026-07-08T23:27:55.86355445Z","id":"IN-MAL-2026-008961","modified_time":"2026-07-08T22:58:37Z","versions":["1.3.229"]},{"source":"amazon-inspector","sha256":"6d4f3d2050ce23d25389449cc57d06e2e090679c70b82ce50179c8c2d71e991e","import_time":"2026-07-08T23:27:58.821162169Z","id":"IN-MAL-2026-009006","modified_time":"2026-07-08T23:05:00Z","versions":["1.3.222"]},{"source":"amazon-inspector","sha256":"2967bb9b9ae0330832ed15a5b7308086467b4667496a59a5dc3aff6a03b3421e","import_time":"2026-07-09T17:19:27.95247843Z","id":"IN-MAL-2026-009352","modified_time":"2026-07-09T16:59:49Z","versions":["1.3.230"]},{"source":"amazon-inspector","sha256":"e769b4a4ea131df52366622b66d63dfbc7c1f5642ac8478c37f86d6c25477bb8","import_time":"2026-07-09T17:19:28.427582586Z","id":"IN-MAL-2026-009356","modified_time":"2026-07-09T17:00:25Z","versions":["1.3.228"]},{"source":"amazon-inspector","sha256":"6c8e0cda37f0b2f45f104a859fd55393122727c036d3da2bef621b00a5987015","import_time":"2026-07-09T22:56:34.037859375Z","id":"IN-MAL-2026-009556","modified_time":"2026-07-09T22:13:04Z","versions":["1.3.232"]},{"source":"amazon-inspector","sha256":"705e7bafbb3e475d34402297e60d65c4977b4d0b093854d6cbb80d5968a30c63","import_time":"2026-07-09T22:56:34.498270371Z","id":"IN-MAL-2026-009561","modified_time":"2026-07-09T22:13:43Z","versions":["1.3.233"]},{"source":"amazon-inspector","sha256":"83f12485ef05070641e6f0cf84b2033a6d69548eae420f07b413bea412007ede","import_time":"2026-07-09T22:56:33.614117488Z","id":"IN-MAL-2026-009551","modified_time":"2026-07-09T22:12:25Z","versions":["1.3.235"]},{"source":"amazon-inspector","sha256":"9089f2a82d1c3a551b9d7a15f48c70f163cf1798e715a98bf19688b15d226dbd","import_time":"2026-07-09T22:56:34.966735169Z","id":"IN-MAL-2026-009566","modified_time":"2026-07-09T22:14:28Z","versions":["1.3.239"]},{"source":"amazon-inspector","sha256":"a26f18f79eac39fa511ea423e7ba11f400bddc3b576627119a256ca0af213221","import_time":"2026-07-09T22:56:34.134714434Z","id":"IN-MAL-2026-009557","modified_time":"2026-07-09T22:13:11Z","versions":["1.3.237"]}]}}

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