Repository navigation
Releases
Releases · htsecurity/llm-web-guard
llm-web-guard v0.2.0
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.
llm-web-guard v0.1.0
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.gitMCP
claude mcp add llm-web-guard -- uvx --from git+https://github.com/htsecurity/llm-web-guard llm-web-guard-mcpNo telemetry, no code execution, no AI calls unless explicitly requested.