cfgaudit

Rules / CFG123

CFG123 a committed file stands in for a tool the agent runs

Severity: error (a tool binary at the repository root) · warn (a committed virtual environment, a yarnPath that is not a Yarn release) OWASP: LLM04:2026 – Supply Chain Agents: claude-code, cline, codex, continue, copilot, cursor, devin, devin-desktop, gemini-cli, grok, kimi-code, opencode, qwen-code, roo-code, vscode, zed

What cfgaudit checks

An agent or an editor runs ordinary tools in the checkout: git, node, python, yarn. A committed file can take the tool's place (#997):

Trigger example

yarnPath: scripts/boot.cjs

Safe alternative

Do not commit binaries, virtual environments or custom Yarn launchers. List the dependencies (requirements.txt, pyproject.toml) and let yarn set version write the release file.

References

Documentation for cfgaudit 1.20.0. Source of this page · Rule implementation