dp-web-header
Affected
- Versions:
35.3.8
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: None
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in dp-web-header (npm)
---
_-= 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.
Not rated by the source.
35.3.8None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0