MAL-2026-12289Malicious code in twork-data-services-counterfree (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | twork-data-services-counterfree | 20.1.3 |
{"schema_version":"1.7.4","id":"MAL-2026-12289","published":"2026-08-05T09:15:13Z","modified":"2026-08-25T17:27:31.701018258Z","aliases":["GHSA-5g8h-2mx8-cxhm"],"summary":"Malicious code in twork-data-services-counterfree (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d2736d9321d2c88c7c2ba7202eefb1c7d0f24106f97480043483ee47ca7d19f9)\nindex.js unconditionally requires./_init on load. _init.js selects a platform-specific binary path, fetches an opaque payload over HTTPS from attacker-controlled Cloudflare Workers hosts whose hostnames are assembled at runtime by joining short string fragments (e.g. 'oob-worker.cf102' + '-baf.work' + 'ers.' + 'dev' → oob-worker.cf102-baf.workers.dev; sibling hosts oob-worker.cf103-070.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev). If HTTPS mirrors are unreachable, the loader falls back to a DNS-TXT covert channel: it resolves TXT on c.<domain> under *.dl.well1.site (tin.dl.well1.site, tina.dl.well1.site, ldr.dl.well1.site, win.dl.well1.site) to obtain a chunk count, resolves numbered subdomains to collect base64 chunks, and reassembles the payload. The bytes are written to /tmp or %TEMP% under deceptive names masquerading as system tooling (dotnet_diag_<rnd>.exe on Windows,.cache_<rnd> /.analytics_state on POSIX), chmod 0o755 is applied on POSIX, and the binary is spawned detached via cp.spawn('/bin/sh', ['-c', fp+' &'], {detached:true}).unref() or the Windows cmd equivalent. Fires on require() of the package, so any consumer that installs and loads twork-data-services-counterfree executes attacker-controlled code with the installer's privileges.\n\n## Source: ghsa-malware (49fa97e8b4aabf0feff8df0102a3ef0cdf74cd492286830435a4d2bbdfef86de)\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":"twork-data-services-counterfree","ecosystem":"npm"},"versions":["20.1.3"],"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"}],"indicators":{"evidence_files":[{"path":"_init.js","sha256":"f6dfcb35519ccbe0723eb7363b2361bf88ed745cb274ee99655ac1af4a790b16","tlsh":"33a1a69a156a711847b0a7e4c7174415f65bf6633380c294f79ca5980fb312482b2ffc"}],"package_integrity":[{"filename":"twork-data-services-counterfree-20.1.3.tgz","hashes":{"sha1":"7e20fdef9fb6c2c99b313961d7432d828b5f8ca0","sha512_sri":"sha512-hgl2DYi+OPkX0VSlKnKet9iK7K7DLOdmnPXKHwsm08IfdhPSOReoJomf56dASvNd+RPbn7ccueS1lpG6XpSStg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/twork-data-services-counterfree/v/20.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5g8h-2mx8-cxhm"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014609","import_time":"2026-08-05T09:28:30.238253944Z","modified_time":"2026-08-05T09:15:13Z","sha256":"d2736d9321d2c88c7c2ba7202eefb1c7d0f24106f97480043483ee47ca7d19f9","source":"amazon-inspector","versions":["20.1.3"]},{"id":"GHSA-5g8h-2mx8-cxhm","import_time":"2026-08-25T17:25:28.087818797Z","modified_time":"2026-08-25T16:31:31Z","sha256":"49fa97e8b4aabf0feff8df0102a3ef0cdf74cd492286830435a4d2bbdfef86de","source":"ghsa-malware","versions":["20.1.3"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0