Malicious code in claims-auth-domain (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12608
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (689620689df62b0e31d3caeb29327b88da40bae2bb66da3075dde6ee311ea6c3) On require('claims-auth-domain'), index.js loads _vendor.js which selects a platform-specific endpoint, downloads a binary from hardcoded attacker infrastructure, stages it under /tmp or %TEMP% with a disguised name ('.cache_<hex>' on Unix, 'dotnet_diag_<hex>.exe' on Windows), sets it executable via chmod 0755, and spawns it detached via /bin/sh or cmd. Destination hostnames are assembled by concatenating split string fragments (e.g. ['oob-worker.cf101-ad','f.work','ers','.d','ev'].join('')) to hide the C2 domains from static inspection. If HTTPS delivery from *.workers.dev fails, _vendor.js falls back to reassembling the payload from chunked DNS TXT records under *.dl.wel1.ru: a count is fetched from c.<domain>, then N.<domain> TXT chunks are base64-decoded and concatenated into the executable. Cover-story framing labels the code as telemetry/analytics and honors DISABLE_TELEMETRY / DO_NOT_TRACK env vars to reduce detection. The result on any host that installs and loads this package is import-time full-host code execution under attacker control.
- Source published
- 5 Aug 2026 14:06:34 UTC
- Source modified
- 5 Aug 2026 14:35:46 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.