unifi-portalnpm
Malicious code in unifi-portal (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
Package name unifi-portal shadows a presumed-private internal namespace and ships a preinstall: node index.js hook. On npm install, index.js (lines 4-5) performs a DNS resolve and HTTPS GET to d8hiivedv3ok8hrng5eghchyw4hwsioaz.oast.online — an interactsh/OAST collector controlled by a third party. The installer's source IP, resolver IP, hostname-derived subdomain label, and install timing are recorded by the collector without consent. The README self-describes as authorized security research against Ubiquiti's bug bounty, but the package is published to the public npm registry and any organization that resolves the name from public npm will be beaconed. The payload itself is a one-way phone-home (no env/credential scraping, no RCE), but the install-time outbound network to an attacker-shaped destination meets the supply-chain-attack threshold for a dependency-confusion squat.
The OpenSSF Package Analysis project identified 'unifi-portal' @ 99.0.0 (npm) as malicious.
It is considered malicious because:
- The package communicates with a domain associated with malicious activity.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
- OpenSSF: Package Analysis · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection