ASI INDEX

THE SECURITY INTELLIGENCE INDEX FOR THE AI STACK

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.

llm-audit rules
RULECLASSCHECKS FORNOTICESSOURCE
hardcoded-llm-api-keyASI03An LLM provider API key appears to be hardcoded in source.0417GITHUB
llm-output-insecure-handlingASI05Model output flows into a dangerous sink (eval, new Function, child_process, innerHTML).0416GITHUB
model-output-parsed-without-schemaASI02Model output is parsed with JSON.parse and used without schema validation.NONEGITHUB
model-output-rendered-as-markdown-without-sanitizationASI05Model output is rendered as markdown with raw HTML enabled and no sanitizer.0416GITHUB
request-body-to-llm-without-schemaASI01A request body is forwarded to a model with no schema validation at the boundary.NONEGITHUB
secrets-in-prompt-contextASI03An environment variable is being interpolated into prompt text sent to a model.0417GITHUB
streaming-response-without-abort-handlingASI08A streaming model call in a request handler does not forward the request's abort signal.NONEGITHUB
system-prompt-leakage-in-client-bundlePENDINGSystem prompt text is defined in a client component, which ships it to the browser.NONEGITHUB
tool-call-dispatch-without-allowlistASI02A tool call from the model is dispatched by dynamic lookup on the model-supplied tool name, with no allowlist.NONEGITHUB
untrusted-input-concatenated-into-prompt-templateASI01User input is concatenated into a prompt template with no structural separator and no role boundary.NONEGITHUB
untrusted-input-in-system-promptASI01Untrusted user input flows into the LLM system role.NONEGITHUB
untrusted-retrieval-context-in-system-roleASI06Retrieved document text is concatenated into the system role.NONEGITHUB

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.