RULES — THE LLM-AUDIT LIBRARY
Rules are free and open source. The index mirrors the library and links every rule to the notices it covers. Full documentation lives on the llm-audit site. 1 rule is PENDING: reviewed, with no ASI class yet.
| RULE | CLASS | CHECKS FOR | NOTICES | SOURCE |
|---|---|---|---|---|
| hardcoded-llm-api-key | ASI03 | An LLM provider API key appears to be hardcoded in source. | 0417 | GITHUB |
| llm-output-insecure-handling | ASI05 | Model output flows into a dangerous sink (eval, new Function, child_process, innerHTML). | 0416 | GITHUB |
| model-output-parsed-without-schema | ASI02 | Model output is parsed with JSON.parse and used without schema validation. | NONE | GITHUB |
| model-output-rendered-as-markdown-without-sanitization | ASI05 | Model output is rendered as markdown with raw HTML enabled and no sanitizer. | 0416 | GITHUB |
| request-body-to-llm-without-schema | ASI01 | A request body is forwarded to a model with no schema validation at the boundary. | NONE | GITHUB |
| secrets-in-prompt-context | ASI03 | An environment variable is being interpolated into prompt text sent to a model. | 0417 | GITHUB |
| streaming-response-without-abort-handling | ASI08 | A streaming model call in a request handler does not forward the request's abort signal. | NONE | GITHUB |
| system-prompt-leakage-in-client-bundle | PENDING | System prompt text is defined in a client component, which ships it to the browser. | NONE | GITHUB |
| tool-call-dispatch-without-allowlist | ASI02 | A tool call from the model is dispatched by dynamic lookup on the model-supplied tool name, with no allowlist. | NONE | GITHUB |
| untrusted-input-concatenated-into-prompt-template | ASI01 | User input is concatenated into a prompt template with no structural separator and no role boundary. | NONE | GITHUB |
| untrusted-input-in-system-prompt | ASI01 | Untrusted user input flows into the LLM system role. | NONE | GITHUB |
| untrusted-retrieval-context-in-system-role | ASI06 | Retrieved document text is concatenated into the system role. | NONE | GITHUB |
One system, two surfaces: llm-audit finds the pattern in your code. ASI Index tells you when the pattern becomes a filed notice in the wild.