Repository navigation
Safer adoption in CI
- Baseline: record current findings and fail only on new ones.
- Config file:
llm-web-guard.tomlor[tool.llm-web-guard]inpyproject.tomlforfail_on,disable,exclude, AI provider/model and budget. - Inline suppressions:
llm-web-guard-disable-lineanddisable-next-linewith rule IDs orALL. - Markdown output for pull request comments.
- AI token budget with
--ai-budgetand token totals in JSON/text output.
New checks
- LWG010: AI route reads a request body with no obvious size/schema limit.
- LWG011: model output passed to
eval,exec,Function, a shell or subprocess. - LWG012: model output used as an HTTP request target.
- LWG013: AI tool definitions exposing shell commands or database queries.
The sink checks inspect the actual call argument, not nearby words, to keep false positives down.
Verify
uv tool install git+https://github.com/htsecurity/llm-web-guard.git
llm-web-guard baseline .
llm-web-guard scan --baseline .llm-web-guard-baseline.json15 tests pass locally and in CI on Python 3.11 and 3.13. The GitHub Action smoke test covers SARIF, baseline and Markdown output.