Skip to content

Releases

llm-web-guard v0.2.0

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.

llm-web-guard v0.1.0

Choose a tag to compare

@htsecurity htsecurity released this 02 Dec 22:51

Defensive security for LLM-powered web apps

CLI, GitHub Action and MCP server for Claude, Cursor and other assistants.

Checks

  • Exposed/hardcoded provider keys
  • Public NEXT_PUBLIC_/VITE_ provider environment variables
  • Missing output token caps and timeouts
  • User input interpolated into system prompts
  • Model output rendered as HTML
  • AI routes without obvious auth or rate limiting
  • Wildcard CORS on AI endpoints

AI review

Optional, real model calls through local Ollama first or OpenRouter. Structured JSON, token accounting, caching and a configurable per-run limit.

Install

uv tool install git+https://github.com/htsecurity/llm-web-guard.git

MCP

claude mcp add llm-web-guard -- uvx --from git+https://github.com/htsecurity/llm-web-guard llm-web-guard-mcp

No telemetry, no code execution, no AI calls unless explicitly requested.