web-advertisingnpm
Advisory published Updated
web-advertising is a confirmed malicious npm package (MAL-2026-14440) that steals credentials and exfiltrates sensitive data (malicious versions 999.9.15, 999.9.16). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in web-advertising (npm)
What this malware does
[email protected] declares scripts.preinstall = 'node index.js', so index.js executes automatically on npm install. The script collects hostname, username, home directory, local/public/resolver IP addresses, CI environment identifiers (GITHUB_REPOSITORY, GITHUB_ACTOR, CI_PROJECT_PATH, AWS_REGION), the parent project's package.json name/author/repo, and authenticated developer identities obtained by shelling out to gh api user --jq.login, npm whoami, and git config user.email. The collected JSON is hex-encoded, split into 60-character chunks, and exfiltrated via DNS subdomain queries to da51rv0hb2uc72tg4gvgdepinjcallbk1.oast.fun and via HTTPS/HTTP POST to the same callback host. The package name plus 999.9.16 versioning and the OAST callback are consistent with a dependency-confusion beacon. The README's self-description as authorised research does not change the observed behavior: installer host, CI, and identity data leave the machine to an author-controlled third-party callback with no installer consent, and DNS tunneling is used to bypass egress filtering.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for web-advertising (2 malicious versions).
If you installed it — respond
web-advertising is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If web-advertising was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks web-advertising-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.