# MAL-2026-3322: Malicious code in microsoft-agents-auth-service (npm)


- **Type:** Malicious package
- **Package:** `microsoft-agents-auth-service` (npm)
- **Published:** 4 May 2026

## What is MAL-2026-3322?

MAL-2026-3322 is a malicious package in microsoft-agents-auth-service, published on 4 May 2026. 

### Official description

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.

This 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`.

The package microsoft-agents-auth-service was found to contain malicious code.

## What should I do about MAL-2026-3322?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-3322 is a malicious package: microsoft-agents-auth-service (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-3322/ (Markdown: https://insights.sbomify.com/MAL-2026-3322/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-3322

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-3322/
Summaries are generated and may contain mistakes; the official description above is the record.
