Use when reviewing a project's security posture, setting up CI pipelines, or responding to a reported vulnerability in a dependency.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-dependency-audit-a1d1f406ee14 ,按照其中的说明把「dependency-audit」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Third-party packages are the most common attack surface in modern web applications. The 2021 Log4Shell incident, the 2022 node-ipc supply-chain attack, and countless npm package hijackings demonstrate that a single vulnerable transitive dependency can compromise every application that depends on it. Automated, continuous scanning drastically reduces the window between a CVE being published and your team being aware of it.
Check the project's dependencies for known security vulnerabilities using the package manager audit command.
Upgrade, patch, or replace vulnerable dependencies and configure automated scanning in the CI pipeline.
Explain how supply-chain attacks work and why dependency auditing is a critical part of modern application security.
Review the lock file and package.json for unpinned version ranges, abandoned packages, and any packages flagged in recent CVE databases.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/security/dependency-audit