Malicious code in @galicia-toolkit/error-master (npm)
Description
The npm package @galicia-toolkit/error-master version 999.0.3 contains malicious code that exfiltrates sensitive host and user information via DNS queries during installation. This occurs automatically on npm install without further user interaction. The package appears to be a dependency confusion attack payload designed to override an internal package. Systems with this package installed should be considered fully compromised.
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 malicious npm package @galicia-toolkit/error-master version 999.0.3 executes a postinstall script that hex-encodes the installer's hostname, current working directory, platform/architecture/Node version, and environment variables related to user identity (USER/USERNAME/LOGNAME). It then sends this data via DNS queries to an attacker-controlled authoritative nameserver under the domain oob.s4yhii.com, effectively creating an out-of-band data exfiltration channel. The package name and version suggest it is crafted for dependency confusion attacks to supersede an internal package of the same name. The DNS beacon triggers automatically upon installation, leaking sensitive identifiers without any additional user action.
Potential Impact
Any system that installs this package is considered fully compromised due to the exfiltration of sensitive environment and host information. The attacker gains knowledge of hostnames, user identities, and environment details, which can facilitate further attacks. Because the package may grant full control to an attacker, all secrets and keys stored on the compromised system should be rotated immediately from a separate, trusted system. Removing the package alone does not guarantee removal of all malicious components.
Mitigation Recommendations
Remove the malicious package immediately. Rotate all secrets and keys that were stored or accessible on the compromised system from a different, secure computer. Because the package grants potential full control to an attacker, assume the system is fully compromised and consider rebuilding or isolating the affected host. Monitor for any signs of persistent malicious activity. There is no official patch or fix; remediation requires removal and secret rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17689
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-42vv-c8c8-q765"]
- Ecosystems
- ["npm"]
Threat ID: 6ac80fc22cdf04f65639c3b4
Added to database: 10/08/2026, 21:48:50 UTC
Last enriched: 10/08/2026, 22:13:17 UTC
Last updated: 10/08/2026, 22:13:17 UTC
Views: 9
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.