Malicious code in remove-bg-serverless-azure (npm)
Description
The npm package remove-bg-serverless-azure version 1.0.1 contains malicious code that executes automatically during installation. This code collects sensitive system information including hostname, user info, home directory contents, DNS configuration, and contents of /etc/passwd and /etc/hosts, then sends this data to an attacker-controlled external server. Installation of this package can lead to full system compromise, and removal of the package does not guarantee elimination of all malicious artifacts.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The remove-bg-serverless-azure npm package version 1.0.1 declares a preinstall script that runs index.js during npm install. This script collects system identifiers and sensitive files such as /etc/passwd and /etc/hosts, then exfiltrates them via HTTPS POST to a hardcoded attacker-controlled domain (7iqn7pls4ly6w8valba0xcxygpmha7yw.oastify.com). The presence of this malicious code means that any system installing this package is at risk of full compromise, with attacker access to secrets and keys stored on the system.
Potential Impact
Installing this package results in the exfiltration of sensitive system information to an external attacker. The system is considered fully compromised, potentially exposing all stored secrets and keys. Even after removal of the package, there is no guarantee that all malicious software or backdoors have been eradicated, posing ongoing risk to the affected system.
Defensive Guidance
Immediately remove the remove-bg-serverless-azure package version 1.0.1 from affected systems. Rotate all secrets and keys stored on the compromised system from a separate, trusted machine. Conduct a thorough security assessment and remediation to detect and remove any persistent malicious software or backdoors that may have been installed. Avoid installing this package or any untrusted npm packages without verification.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14438
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-65rf-pp5h-8fw9"]
- Ecosystems
- ["npm"]
Threat ID: 6a9f9110acd9273b49ff2abf
Added to database: 09/08/2026, 04:37:36 UTC
Last enriched: 09/08/2026, 05:38:09 UTC
Last updated: 10/04/2026, 03:26:37 UTC
Views: 22
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
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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.