owasp-llm-top10

owasp-llm-top10 is a cursor rule for Cursor from adonai-labs/agent-runway. It costs 0 tokens per session (868 once invoked), scanned A, original, MIT.

A set of code-review checks for applications that use large language models (LLMs), such as chatbots and AI agents. It applies OWASP security guidance to prompts, model output, data, limits, and tool use.

In plain words
What is it for?
Use it to review AI features and agent tools for unsafe input handling, output validation, data provenance, rate limits, timeouts, retries, and security controls.
Why use it?
It helps catch risks such as prompt injection, unsafe commands from model output, poisoned training data, excessive usage, and weak limits.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to review AI features and agent tools for unsafe input handling, output validation, data provenance, rate limits, timeouts, retries, and security controls.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/adonai-labs/agent-runway/owasp-llm-top10
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/adonai-labs/agent-runway

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for owasp-llm-top10

README.md
[![agentmods](https://agentmods.dev/badge/rules/adonai-labs/agent-runway/owasp-llm-top10/github.svg)](https://agentmods.dev/rules/adonai-labs/agent-runway/owasp-llm-top10)
Your own site
<a href="https://agentmods.dev/rules/adonai-labs/agent-runway/owasp-llm-top10"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/owasp-llm-top10/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for owasp-llm-top10

Your own site · 80×15
<a href="https://agentmods.dev/rules/adonai-labs/agent-runway/owasp-llm-top10"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/owasp-llm-top10.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 868 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00868
Opus 5.5 $0.00000 $0.00347
Sonnet 5.5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

Measured 25d ago against content hash e4a9d3642cfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

owasp-llm-top10 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/core/rules/owasp-llm-top10.mdc · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OWASP Top 10 for LLM Applications (2025)

Treat the model as an untrusted, steerable component. Governance, privacy, and operations for AI systems are covered in the owasp-ai-security-privacy rule.

LLM01 Prompt Injection

  • Anything the model reads (user input, web pages, files, emails, tool results, retrieved docs) can carry instructions
  • Keep system/developer instructions separate from untrusted content; mark untrusted content clearly; never let it change policy
  • Enforce security in code, not in the prompt: authorisation and allowlists must hold even if the model is fully hijacked

LLM02 Sensitive Information Disclosure

  • Send the minimum data needed; redact secrets and PII before prompts, logs, and traces
  • Scope retrieval and memory to the caller's permissions and tenant
  • Check provider data-retention/training settings; disable training on user data by default

LLM03 Supply Chain

  • Pin model versions, SDKs, MCP servers, and plugins; review before upgrading
  • Load models/weights only from trusted sources with verified hashes/signatures; prefer safe formats (e.g. safetensors over pickle)
  • No dynamic loading of unreviewed tools or MCP servers

LLM04 Data and Model Poisoning

  • Track provenance for training, fine-tuning, and RAG data; validate before ingestion
  • Do not auto-learn or auto-index from user content without review gates

LLM05 Improper Output Handling

  • Never pass model output directly to shell, SQL, eval, file paths, HTTP calls, or HTML
  • Require structured output; validate against a strict schema; reject on violation (fail closed)
  • Encode output for its destination context (HTML, Markdown links/images, URLs)

LLM06 Excessive Agency

  • Give agents the fewest tools, narrowest scopes, and read-only access by default
  • Tools act with the end user's permissions, not a broad service identity
  • Require human approval for destructive, financial, external-communication, or privileged actions
  • Sandbox code execution; restrict filesystem and network egress with allowlists

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed · -10 lines · -818 tokens per session e4a9d3642cfe
  2. 3mo ago First seen · 74 lines · 818 tokens per session scan A 15c39a66ec9e

Subscribe to this mod's changes

owasp-llm-top10 is a cursor rule published in the GitHub repository adonai-labs/agent-runway (2 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 868 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

owasp-llm-top10 compared with cursor rules from other repositories

owasp-llm-top10 next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
owasp-llm-top10adonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
linux-nvidia-cuda-python-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A460Cursor
optimize-dry-solid-principles-cursorrules-prompt-fPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A150Cursor
kandev-pr-fixupkdlbs/kandevCursor rule1.2ktodayAGPL-3.0A0Cursor
55-data-model-versioningaiagentwithdhruv/ai-dev-stackCursor rule115mo agoMITA0Cursor
prompt-routingzoxknez/agentic-ai-prompts-EN-SRBCursor rule25mo agoMITA9Cursor
ai-dev-os-reviewyunbow/ai-dev-os-plugin-cursorCursor rule28mo agoMITA56Cursor