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

@apiwizards/auth-middlewarenpm

Malicious code in @apiwizards/auth-middleware (npm) Remove it immediately and rotate any exposed credentials.

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

The package advertises itself as auth middleware but its main entry (index.js) is a 21KB obfuscator.io-packed file that, on require, performs a hidden download-and-execute pipeline. The single-file main uses an RC4-decoded 273-entry string array and control-flow flattening to conceal its require targets and network destination. On load it requires fs/os/path/child_process plus an HTTP client, installs no-op handlers for uncaughtException/unhandledRejection to suppress errors, constructs a host string via chained replaceAll calls on an obfuscated literal, performs an HTTP GET, writes the response body to disk with flag 'w+', and then invokes child_process.exec on the fetched bytes with windowsHide:true and cwd=process.cwd(). Any service that imports this package executes attacker-controlled remote code in its process context. The package.json has empty description and author and uses a generic name (@apiwizards/auth-middleware) consistent with namespace abuse targeting developers searching for an auth library.

Malicious versions

1 flagged
4.7.0

Indicators of compromise (SHA-256)

ba0f33946c3dd0624d21c0e99beb12f22b880bc126a3474753b38a9799fc5293

Frequently asked questions

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

Campaign

IN-MAL-2026-007075

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

O3 Security blocks malicious packages like this at install time and in CI.

Supply-chain protection
@apiwizards/auth-middleware (npm) malicious package — MAL-2026-6211 | O3 Security