{"id":"MAL-2026-3322","summary":"Malicious code in microsoft-agents-auth-service (npm)","details":"Malicious npm package published by the `microsop` threat actor as part of a dependency-confusion campaign that impersonates internal tooling at Microsoft, Google Cloud, and PayPal using inflated semver values (e.g. 99.9.x, 100.1.x) to win npm resolution against private internal packages. All packages in the campaign falsely advertise themselves as \"Security Research PoC\" / MSRC research and execute on `preinstall` via `node index.js`, exfiltrating to disposable `webhook.site` endpoints.\n\nThis package targets Microsoft-internal infrastructure. On install it shells out to harvest `/etc/passwd`, probe `/etc/shadow`, locate SSH private keys (`id_rsa`, `*.pem`, `authorized_keys`), enumerate `.netrc` / `.dockercfg`, query the AWS IMDS endpoint `http://169.254.169.254/latest/user-data`, and grep environment variables matching `USER|PASS|TOKEN|CREDENTIAL`. The collected output is POSTed to `https://webhook.site/11b6a711-bdc7-4444-9a0e-ffcb23151e82` tagged `status: ULTRA_USER_CREDENTIAL_SCOUT`, `target: global-microsoft-infra`.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bef9025a8049b8baa13cd6339e3f0eaed86f5ecaf0d21e053fe88ae0f6014480)\nThe package microsoft-agents-auth-service was found to contain malicious code.\n","modified":"2026-05-12T07:57:14.013742Z","published":"2026-05-04T00:00:00Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","import_time":"2026-05-12T07:28:50.120979824Z","modified_time":"2026-05-12T06:53:21Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"bef9025a8049b8baa13cd6339e3f0eaed86f5ecaf0d21e053fe88ae0f6014480"}]},"affected":[{"package":{"name":"microsoft-agents-auth-service","ecosystem":"npm","purl":"pkg:npm/microsoft-agents-auth-service"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/microsoft-agents-auth-service/MAL-2026-3322.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}