目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

@apiwizards/auth-middleware

MAL-2026-6211
2026-06-23 16:56:03
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

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

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
37
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@apiwizards/auth-middleware4.7.0
npm@apiwizards/auth-middleware5.1.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-23T16:56:03Z","published":"2026-06-19T15:03:53Z","schema_version":"1.7.4","id":"MAL-2026-6211","summary":"Malicious code in @apiwizards/auth-middleware (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (718ca10ce0670edf6756b4ff0bd05e43526ebd516396a34074acf844116e7254)\n@apiwizards/auth-middleware@5.1.2 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.\n","affected":[{"package":{"ecosystem":"npm","name":"@apiwizards/auth-middleware"},"versions":["4.7.0","5.1.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"a8cf7aea481751cd84e6671ed5be2de5360ee1e316c7733b34735084996618fb","tlsh":"709296c83bc1f0a05333f0b7ba1bb0a6e1695c8cb2499445f797b498fd68714e4967a8"},{"path":"package.json","sha256":"e18a36b14a42b6261f197d59024f4be723bd868b05ff187a160d57aa0910a632","tlsh":"a0e072242a72043304c822250c2da423b6a2cf6f042c3c0823cf692c83ce03328fe34c"}],"package_integrity":[{"filename":"auth-middleware-4.7.0.tgz","hashes":{"sha1":"adfbacc90cccbe74061157b5ea2be460a270e980","sha512_sri":"sha512-3YZSLSmZ9/pe1fL1whkculi+4CTM9gyzJNkJGlwndjkgDlVMHxvfjhg8dKfiqTsu91GSVsPJIKfD6Ud51laTng=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@apiwizards/auth-middleware/v/4.7.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@apiwizards/auth-middleware/v/5.1.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"ba0f33946c3dd0624d21c0e99beb12f22b880bc126a3474753b38a9799fc5293","import_time":"2026-06-19T15:41:55.448208979Z","id":"IN-MAL-2026-007075","modified_time":"2026-06-19T15:03:53Z","versions":["4.7.0"]},{"source":"amazon-inspector","sha256":"718ca10ce0670edf6756b4ff0bd05e43526ebd516396a34074acf844116e7254","import_time":"2026-06-23T16:54:12.529391824Z","id":"IN-MAL-2026-007260","modified_time":"2026-06-23T16:08:10Z","versions":["5.1.2"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0