Malicious code in @mep-exp/api-tools (npm)
Description
The npm package @mep-exp/api-tools contains malicious code that exfiltrates system information such as hostname, username, platform, current working directory, and a timestamp to an external URL during installation and runtime. The package impersonates an internal Westpac toolchain, indicating a dependency confusion attack targeting that organization's namespace. It provides no legitimate functionality and silently swallows errors. Systems with this package installed should be considered fully compromised, and all secrets and keys should be rotated immediately.
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 @mep-exp/api-tools npm package includes a preinstall script and runtime code that collects sensitive system information (os.hostname(), os.userInfo().username, os.platform(), process.cwd(), and a timestamp) and sends it as JSON to a remote webhook URL. The package scope and binary names mimic an internal Westpac 'MEP Experience Platform' toolchain, consistent with a dependency confusion attack. The exfiltrated data includes a marker referencing 'Westpac CT'. The package has no legitimate functionality beyond this beaconing behavior. Installation or use of this package results in silent data exfiltration and potential full system compromise.
Potential Impact
Any system with this package installed or running is considered fully compromised. The attacker may have gained extensive access, potentially including secrets and keys stored on the system. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors. Immediate rotation of all secrets and keys from a separate, trusted system is required.
Mitigation Recommendations
Remove the @mep-exp/api-tools package immediately. Rotate all secrets and keys stored on the affected system from a different, secure machine. Because the package may have granted full control to an attacker, assume the system is compromised and consider rebuilding or isolating it. No official patch or fix is available; remediation relies on removal and secret rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6183
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-q2pc-rvw2-7v5m","GHSA-g5jc-gx32-75x7"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f31bacd9273b49e49999
Added to database: 09/01/2026, 15:45:31 UTC
Last enriched: 09/08/2026, 06:08:11 UTC
Last updated: 10/01/2026, 22:46:11 UTC
Views: 26
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.
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.