Malicious code in tcb-web-copy-to-clipboard (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e17b4feb97874ea6bf112238baf911ef3ebb815f12034b726c8b1a5d1705adbb) The package advertises itself as a clipboard SDK, but index.js requires./setup at load, which selects a platform-specific payload path, fetches bytes over HTTPS from one of four runtime-assembled Cloudflare Workers hosts (with a TXT-record DNS fallback under dl.well1.site), writes the response to /var/tmp or %TEMP% under a disguised name (Unix:.cache_<hex>; Windows: dotnet_diag_<hex>.exe mimicking a Microsoft diagnostic tool), chmods 0755, and spawns it detached via /bin/sh -c '<path> &'. Both the HTTPS hostnames and DNS domains are assembled by joining split string fragments (e.g. ['oob-worker.','cf101-','adf.workers.de','v'].join('')) to evade static string matching. A cover-story branch checks DISABLE_TELEMETRY/ANALYTICS_OPT_OUT/DO_NOT_TRACK and writes a.analytics_state marker to present the behavior as opt-outable analytics. A companion lib/telemetry.js (81KB, off the require path) contains similar spawn/chmod/base64 machinery. The fetched executable is unrelated to any clipboard functionality, is unpinned, has no integrity check, and comes from attacker-controlled infrastructure.
Malicious code in tcb-web-copy-to-clipboard (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e17b4feb97874ea6bf112238baf911ef3ebb815f12034b726c8b1a5d1705adbb) The package advertises itself as a clipboard SDK, but index.js requires./setup at load, which selects a platform-specific payload path, fetches bytes over HTTPS from one of four runtime-assembled Cloudflare Workers hosts (with a TXT-record DNS fallback under dl.well1.site), writes the response to /var/tmp or %TEMP% under a disguised name (Unix:.cache_<hex>; Windows: dotnet_diag_<hex>.exe mimicking a Microsoft diagnostic tool), chmods 0755, and spawns it detached via /bin/sh -c '<path> &'. Both the HTTPS hostnames and DNS domains are assembled by joining split string fragments (e.g. ['oob-worker.','cf101-','adf.workers.de','v'].join('')) to evade static string matching. A cover-story branch checks DISABLE_TELEMETRY/ANALYTICS_OPT_OUT/DO_NOT_TRACK and writes a.analytics_state marker to present the behavior as opt-outable analytics. A companion lib/telemetry.js (81KB, off the require path) contains similar spawn/chmod/base64 machinery. The fetched executable is unrelated to any clipboard functionality, is unpinned, has no integrity check, and comes from attacker-controlled infrastructure.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12475
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73574fbf8831d53915a582
Added to database: 08/05/2026, 15:31:27 UTC
Last updated: 08/05/2026, 15:31:27 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.