unbounded-consumption-auditor

v0.3.2
io.github.GuardBee/unbounded-consumption-auditor Checked 3 hours ago Published 13 days ago

Scans LLM/agent code for Unbounded Consumption / denial-of-wallet risks (OWASP LLM10:2025)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_text

Scan LLM/agent application code for Unbounded Consumption ("denial of wallet") anti-patterns from OWASP LLM Top 10 2025's LLM10 category: LLM calls with no output token limit, hand-rolled HTTP calls to an LLM endpoint with no timeout, agent tool-calling or retry loops with no iteration cap, framework safety limits (LangChain max_iterations, openai-agents max_turns) explicitly disabled, and MCP tool handlers that make billable calls with no visible rate limiting.

ParameterTypeDescription
content *stringThe code content to scan
labelstringOptional label shown in findings (e.g. filename)

scan_file

Scan a single file for Unbounded Consumption / denial-of-wallet anti-patterns

ParameterTypeDescription
path *stringAbsolute or relative path to the file to scan

scan_directory

Recursively scan a directory of LLM/agent application source for Unbounded Consumption / denial-of-wallet anti-patterns

ParameterTypeDescription
path *stringAbsolute or relative path to the directory to scan
excludearraySkip files/dirs whose path contains one of these strings
includearrayOnly scan files whose path contains one of these strings
maxFilesintegerMaximum number of files to scan (default: 5000)

list_patterns

List every Unbounded Consumption / denial-of-wallet pattern this auditor detects, grouped by category