Malicious code in dp-web-header (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13201
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (ec4c10894526621b93c3dba8f579e76be53db3989ab0ddb32c72bff180266786) The package advertises itself as a web header library but its index.js unconditionally requires _ext.js on load. _ext.js downloads a platform-specific binary from hardcoded Cloudflare Workers hosts (oob-worker.cf100-416.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev), writes it to /var/tmp/.cache_<hex> on Unix or %TEMP%\dotnet_diag_<hex>.exe on Windows, chmods it 0755, and spawns it detached via spawn('/bin/sh',...) or spawn('cmd',...). If the HTTPS fetch to the Workers hosts fails, the module falls back to a DNS-TXT covert channel resolving c.<domain>, 0.<domain>, 1.<domain>,... under sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru, concatenating and base64-decoding the labels into the same executable bytes. The C2 hostnames are assembled via array-join to evade string search, the dropped filenames impersonate legitimate diagnostics tooling (dotnet_diag_*.exe,.cache_*), a marker file.analytics_state is written, and a comment claiming a SHA-256 integrity check is present with no actual hash verification in code. Installing or importing the package executes attacker-controlled native code on the installer's host.
- Source published
- 5 Aug 2026 15:07:07 UTC
- Source modified
- 5 Aug 2026 15:53:10 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.