MAL-2026-12506 Malicious code in @latlongid/location (npm)
Malicious package
Published
MAL-2026-12506 is a malicious package: @latlongid/location (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-12506/ (Markdown: https://insights.sbomify.com/MAL-2026-12506/index.md)
- Package
- @latlongid/location
- Registry
- npm
What is MAL-2026-12506?
MAL-2026-12506 is a malicious package in @latlongid/location, published on 5 Aug 2026.
Official description
@latlongid/[email protected] declares
postinstall: node index.js in package.json, so index.js runs automatically on every npm install. That script hex-encodes the installer's os.hostname() and embeds it as a subdomain of dns.gl0b.xyz, then invokes dns.lookup on the constructed name (e.g. 2d5bccee-...-h<hex(hostname)>.<rand>.dns.gl0b.xyz). The DNS query name itself carries the host identifier off the machine, so exfiltration succeeds regardless of resolution result. The scoped name and generic 'internal utility' metadata are consistent with a dependency-confusion reconnaissance beacon designed to enumerate reachable internal build environments.What should I do about MAL-2026-12506?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.