MAL-2026-15692

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/unifi-credential-server/MAL-2026-15692.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15692
Published
2026-08-24T17:15:26Z
Modified
2026-09-09T01:45:05Z
Summary
Malicious code in unifi-credential-server (npm)
Details

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

Source: amazon-inspector (6c9d5fc3394d6f2565267e1b19573ca0c58dbbe9149f7204ea39ccae5c53645f)

package.json declares a preinstall hook that runs index.js on npm install. index.js collects hostname, username, working directory, internal IPv4 addresses from os.networkInterfaces(), and CI/build environment variables (GITHUB_REPOSITORY, GITHUB_RUN_ID, GITLAB_CI, npm_config_registry, npm_package_name, AWS_REGION, JENKINS_URL, and others), hex-encodes the payload into <=60-character DNS labels appended to the hardcoded base domain d8hjn6ap4rntta9vj5ve0jkl1seb4k3kci.oast.me, and exfiltrates via dns.resolve() of the constructed FQDN plus an https.get() to the same host. A secondary DNS query using the package name as a subdomain is also emitted. The name unifi-credential-server and version 99.0.0 are consistent with a dependency-confusion lure targeting internal builds that resolve the name against the public registry.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "RLMA-2026-06532",
            "import_time": "2026-09-01T11:17:35.10071818Z",
            "modified_time": "2026-08-24T17:15:26Z",
            "sha256": "bc68e1524fd4839280cd5e9e509a6ed3a8693189e9f912930cb5b957dea45360",
            "source": "reversing-labs",
            "versions": [
                "99.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-019734",
            "import_time": "2026-09-09T01:28:58.548898313Z",
            "modified_time": "2026-09-09T01:19:53Z",
            "sha256": "6c9d5fc3394d6f2565267e1b19573ca0c58dbbe9149f7204ea39ccae5c53645f",
            "source": "amazon-inspector",
            "versions": [
                "99.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / unifi-credential-server

Package

Name
unifi-credential-server
View open source insights on deps.dev
Purl
pkg:npm/unifi-credential-server

Affected ranges

Affected versions

99.*
99.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "608f98f84dd94c3261ec0250d2bc86fff45e2b5bdd574a94b7648d4d996844bb",
            "tlsh": "fe71b5a733d52238068361e679b6006e931ff2603b82c5f0b52e36425f9317546777ee"
        }
    ],
    "package_integrity": [
        {
            "filename": "unifi-credential-server-99.0.0.tgz",
            "hashes": {
                "sha1": "de40abbfdef8967059d9d0f793dcc63cdb33ab3e",
                "sha512_sri": "sha512-IKUa8DxGuDDeZFGARJR9IhpV2x40m1OPG0ZKwFJWsFENQdLUwN3lXmLYcHxX3ZcjUiAg5f2cke2o/sg12V+AWQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/unifi-credential-server/MAL-2026-15692.json"