Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@apiwizards/auth-middlewarenpm

@apiwizards/auth-middleware is a confirmed malicious npm package (MAL-2026-6211) that executes malicious code on install (malicious versions 4.7.0, 5.1.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @apiwizards/auth-middleware (npm)

MAL-2026-6211
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @apiwizards/auth-middleware

What this malware does

@apiwizards/[email protected] ships a single heavily obfuscated index.js (obfuscator.io string-array with 317 entries, RC4+base64 decoder, array-rotation self-defending wrapper) that is the package's declared main. On require(), a top-level IIFE loads os/fs/child_process/crypto/path and an HTTP client, performs an HTTPS GET against a hardcoded URL constructed from a base concatenated with the package version, splits the response on ':' into key/iv/ciphertext, AES-decrypts the body via crypto.createDecipheriv, writes the cleartext to a file under os.tmpdir() with flag 'w+', and executes it via child_process (execSync with windowsHide and a cwd derived from process.cwd()). No hash or signature verification is performed and errors are silenced via process.on('uncaughtException'). The package advertises itself as an auth middleware but ships no module.exports, no auth/login/verify/sign symbols, and empty description/author/keywords — the entire payload is the dropper. Any consumer that installs the package and require()s it (directly or transitively) will execute attacker-controlled bytes fetched from a non-publisher endpoint.

Malicious versions

2 flagged
4.7.05.1.2

Indicators of compromise (SHA-256)

ba0f33946c3dd0624d21c0e99beb12f22b880bc126a3474753b38a9799fc5293
718ca10ce0670edf6756b4ff0bd05e43526ebd516396a34074acf844116e7254

Detection & response playbook

Malicious package
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @apiwizards/auth-middleware (2 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @apiwizards/auth-middleware across your stack and pipelines.

  2. If you installed it — respond

    Remove @apiwizards/auth-middleware from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If @apiwizards/auth-middleware was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @apiwizards/auth-middleware before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @apiwizards/auth-middleware on npm has been identified as a malicious package (versions 4.7.0, 5.1.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007075IN-MAL-2026-007260

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @apiwizards/auth-middleware-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore