Security owasp llm

From ashermahonin/agentic-skills · View interactive version

Security owasp llm is an AI agent skill from the GitHub repository ashermahonin/agentic-skills. Review an LLM, RAG, embedding, fine-tuning, or model-routed feature against the current OWASP LLM risks. Use when untrusted content enters prompts or retrieval, model output affects another system, sensitive data is exposed to a provider, or cost and agency can grow. Produce a data-flow threat model

How to use this skill

Skill file

Security: OWASP LLM Top 10

Purpose

Map the LLM data flow and review each applicable OWASP LLM category with concrete abuse cases. The release verdict must rely on tests and controls, not expected model behaviour.

Scope and evidence

  1. Read references/owasp-llm-top10.md.
  2. Map the LLM data flow: user input → preprocessing → prompt assembly → retrieval/embedding → model call → output handling → downstream effect. Note where untrusted data crosses into prompt context.
  3. Identify the model(s), provider(s), tool(s), and the agent's permitted actions.
  4. Use Context7 MCP for the current OWASP LLM Top 10 wording and the current model-provider security guidance (Anthropic, OpenAI, Google, Mistral, Meta, etc.).

Assessment

  1. For each LLM Top 10 category, mark status: Pass / Concern / Fail / Out-of-scope.
  2. Build an abuse-case list per category: e.g., direct prompt injection, indirect via retrieved doc, system-prompt leakage probe, jailbreak via tool description, exfil via embedding inversion, denial via context blow-up.
  3. Verify each abuse case with an eval: at least 10 representative prompts per category, multiple seeds, varied phrasing, plus at least one obfuscated/encoded variant.
  4. Cross-check with security-owasp-agentic for autonomy/agency risk and with security-secrets for prompt content secrets handling.
  5. Produce remediation plan, owner per finding, and a release-gate verdict with conditions.

Safety rules

Security record

Release criteria

Handoff

Hand off to service-implementation per finding and to qa-eval to add the abuse-case evals into the regression suite.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.