Skip to content

llm-web-guard v0.2.0

Latest

Choose a tag to compare

@htsecurity htsecurity released this 02 Dec 23:25

Safer adoption in CI

  • Baseline: record current findings and fail only on new ones.
  • Config file: llm-web-guard.toml or [tool.llm-web-guard] in pyproject.toml for fail_on, disable, exclude, AI provider/model and budget.
  • Inline suppressions: llm-web-guard-disable-line and disable-next-line with rule IDs or ALL.
  • Markdown output for pull request comments.
  • AI token budget with --ai-budget and 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.json

15 tests pass locally and in CI on Python 3.11 and 3.13. The GitHub Action smoke test covers SARIF, baseline and Markdown output.