MAL-2026-12506

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@latlongid/location/MAL-2026-12506.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12506
Published
2026-08-05T13:13:42Z
Modified
2026-08-05T14:35:01.754392495Z
Summary
Malicious code in @latlongid/location (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (134cf39570bebc6b10043353b9194b41e30da9b0f55147501ccc060bb32c7e8e)

@latlongid/location@1.0.1 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T13:13:42Z",
            "id": "IN-MAL-2026-014933",
            "import_time": "2026-08-05T14:19:44.321242226Z",
            "sha256": "134cf39570bebc6b10043353b9194b41e30da9b0f55147501ccc060bb32c7e8e",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @latlongid/location

Package

Name
@latlongid/location
View open source insights on deps.dev
Purl
pkg:npm/%40latlongid/location

Affected ranges

Affected versions

1.*
1.0.1

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "location-1.0.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-qkQjrfAvF+1Upab7USKg7FpyTYURpXyppj7VhlaAo9C8zndBYL+Npz2IF/VwZp/Gd9t50rX94SfUIOflC4EKrg==",
                "sha1": "c206ab035f72275aab165134ed71747f4f353c47"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "bee02bc81af0f638227011c1f199ef1327c3dba43584c495c94f1ab745d99b24e72cd6",
            "sha256": "6ebd99dd4a91795c58356f63e86a21673d7325afb55c32492e7b499ac8c816cb",
            "path": "index.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@latlongid/location/MAL-2026-12506.json"
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]