{"id":"MAL-2026-15692","summary":"Malicious code in unifi-credential-server (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6c9d5fc3394d6f2565267e1b19573ca0c58dbbe9149f7204ea39ccae5c53645f)\npackage.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 \u003c=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.\n","modified":"2026-09-09T01:45:05.151409052Z","published":"2026-08-24T17:15:26Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-24T17:15:26Z","sha256":"bc68e1524fd4839280cd5e9e509a6ed3a8693189e9f912930cb5b957dea45360","source":"reversing-labs","versions":["99.0.0"],"id":"RLMA-2026-06532","import_time":"2026-09-01T11:17:35.10071818Z"},{"import_time":"2026-09-09T01:28:58.548898313Z","modified_time":"2026-09-09T01:19:53Z","sha256":"6c9d5fc3394d6f2565267e1b19573ca0c58dbbe9149f7204ea39ccae5c53645f","source":"amazon-inspector","versions":["99.0.0"],"id":"IN-MAL-2026-019734"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/unifi-credential-server/v/99.0.0"}],"affected":[{"package":{"name":"unifi-credential-server","ecosystem":"npm","purl":"pkg:npm/unifi-credential-server"},"versions":["99.0.0"],"database_specific":{"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=="}}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/unifi-credential-server/MAL-2026-15692.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}