Malicious code in alimama-minisite (npm)
Description
The npm package 'alimama-minisite' version 45.0.0 contains malicious code delivered via a dependency confusion attack. The package.json declares a self-named dependency pointing to an off-registry URL, allowing arbitrary code execution during installation. The installed package is an inert stub, but the installation process itself executes potentially harmful lifecycle scripts. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system should be rotated immediately. Removal of the package alone may not eliminate all malicious software.
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 'alimama-minisite' npm package version 45.0.0 is malicious. It declares a dependency with the same name as itself, but instead of a normal semver range from the npm registry, it points to an off-registry URL (https://repo.securityctrl.com/alimama-minisite). This causes npm install to fetch and execute arbitrary code from that URL without integrity verification. The high version number ensures this dependency wins resolution over any internal package of the same name. The package's index.js is inert, but the installation lifecycle scripts execute the malicious payload. This is a dependency confusion attack enabling arbitrary code execution on any system installing this package.
Potential Impact
Systems that install this package version are fully compromised. The malicious lifecycle scripts executed during installation can lead to complete system takeover. All secrets and keys stored on the compromised system should be considered exposed and must be rotated from a separate, trusted system. Removing the package does not guarantee removal of all malicious artifacts or backdoors installed by the package.
Defensive Guidance
No official patch or fix is available. The package should be removed immediately if installed. All secrets and keys on the affected system must be rotated from a different, uncompromised system. Due to the nature of the compromise, full system reimaging or restoration from a known good backup is recommended to ensure complete remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15495
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7e3acd9273b49e75d0a
Added to database: 08/29/2026, 15:16:51 UTC
Last enriched: 09/09/2026, 20:37:58 UTC
Last updated: 10/01/2026, 22:27:32 UTC
Views: 25
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.