owasp-llm-top10
Security audit for LLM and GenAI applications using OWASP Top 10 for LLM Apps 2025. Assess prompt injection, data leakage, supply chain, and 7 more critical vulnerabilities.
What this skill does
# OWASP Top 10 for LLM Applications Security Audit This skill enables AI agents to perform a comprehensive **security assessment** of Large Language Model (LLM) and Generative AI applications using the **OWASP Top 10 for LLM Applications 2025**, published by the OWASP GenAI Security Project. The OWASP Top 10 for LLM Applications identifies the most critical security risks in systems that integrate large language models, covering vulnerabilities from prompt injection to unbounded resource consumption. This is the authoritative industry standard for LLM application security. Use this skill to identify security vulnerabilities, assess risk exposure, prioritize remediation, and establish secure development practices for AI-powered applications. Combine with "NIST AI RMF" for comprehensive risk management or "ISO 42001 AI Governance" for governance compliance. ## When to Use This Skill Invoke this skill when: - Auditing security of LLM-powered applications before deployment - Reviewing GenAI integrations for security vulnerabilities - Assessing RAG (Retrieval-Augmented Generation) systems - Evaluating chatbot or AI assistant security - Conducting penetration testing of AI features - Building secure AI application architectures - Reviewing third-party AI API integrations - Preparing for security compliance reviews - Responding to AI-related security incidents ## Inputs Required When executing this audit, gather: - **application_description**: Description of the AI application (purpose, LLM used, architecture, features, user base) [REQUIRED] - **architecture_details**: System architecture (APIs, databases, vector stores, plugins, integrations) [OPTIONAL but recommended] - **llm_provider**: LLM provider and model (OpenAI GPT-4, Anthropic Claude, self-hosted, etc.) [OPTIONAL] - **deployment_context**: Deployment environment (cloud, on-premise, hybrid, edge) [OPTIONAL] - **data_sensitivity**: Types of data processed (PII, financial, health, proprietary) [OPTIONAL] - **existing_controls**: Current security measures (auth, rate limiting, content filtering) [OPTIONAL] - **specific_concerns**: Known vulnerabilities or areas of focus [OPTIONAL] - **testing_authorization**: Explicit authorization, environment, and boundaries for active testing [REQUIRED for live or active tests] - **safe_testing_mode**: documentation-only, staging, production-readonly, or production-approved [OPTIONAL, defaults to documentation-only unless authorization is clear] ## Authorized Testing Boundary Only run active security tests on systems the user owns or is explicitly authorized to test. If authorization is absent or unclear, perform a documentation and architecture review only, using safe hypothetical examples instead of live payload execution. For production systems: - Prefer staging or read-only validation - Avoid denial-of-service, destructive, persistence, or real exfiltration tests unless written scope explicitly permits them - Redact credentials, secrets, PII, and sensitive prompt or model outputs in reports - Stop and report if testing crosses the approved scope --- ## The OWASP Top 10 for LLM Applications (2025) ### LLM01: Prompt Injection **Severity**: Critical **Description**: Attackers manipulate LLM operations through crafted inputs, either directly or indirectly, to bypass intended functionality, access unauthorized data, or trigger unintended actions. **Attack Vectors:** - **Direct injection**: Malicious user prompts containing override commands - **Indirect injection**: Hidden instructions in external content (web pages, documents, emails) processed by the LLM - **Jailbreaks**: Techniques to bypass safety constraints and content policies **Impact:** - Unauthorized data access and exfiltration - Bypass of content safety filters - Manipulation of downstream system actions - Social engineering of users through manipulated outputs **Assessment Checklist:** - [ ] Input sanitization and validation implemented - [ ] System prompts separated from user inputs with clear delimiters - [ ] Least privilege applied to LLM backend access - [ ] Output validation before downstream actions - [ ] Human-in-the-loop for critical operations - [ ] Adversarial testing conducted with known injection techniques - [ ] Content filtering layers applied pre- and post-LLM **Mitigation Strategies:** 1. Enforce privilege controls on LLM backend access 2. Segregate external content from user prompts 3. Maintain human oversight for critical functions 4. Implement input/output validation pipelines 5. Conduct regular adversarial testing --- ### LLM02: Sensitive Information Disclosure **Severity**: Critical **Description**: LLMs inadvertently expose confidential data including PII, proprietary algorithms, credentials, intellectual property, or internal system information through their outputs. **Attack Vectors:** - Crafted prompts designed to extract training data - Legitimate queries that trigger memorized sensitive content - Model outputs revealing internal system architecture - Embedding leakage from vector databases **Impact:** - Privacy violations and regulatory non-compliance (GDPR, CCPA) - Intellectual property theft - Credential exposure enabling further attacks - Reputational damage **Assessment Checklist:** - [ ] PII and sensitive data removed from training/fine-tuning data - [ ] Data masking and tokenization in logs and outputs - [ ] System instructions forbidding sensitive disclosures - [ ] Output filtering for known sensitive patterns (SSN, credit cards, API keys) - [ ] Model access restricted to necessary information via middleware - [ ] User education against pasting confidential content - [ ] Output monitoring for anomalous data exposure **Mitigation Strategies:** 1. Sanitize training data to remove sensitive information 2. Implement data loss prevention (DLP) on outputs 3. Apply access controls limiting model's data reach 4. Monitor outputs for sensitive data patterns 5. Use differential privacy techniques in training --- ### LLM03: Supply Chain Vulnerabilities **Severity**: High **Description**: Compromised third-party components (models, datasets, libraries, plugins) introduce security risks including malware, backdoors, or biased behavior. **Attack Vectors:** - Malicious pre-trained models from public repositories - Poisoned datasets with embedded triggers - Vulnerable ML libraries and dependencies - Compromised plugins with unauthorized access - Trojanized fine-tuning adapters **Impact:** - System compromise and data theft - Backdoor access to production systems - Model corruption affecting all users - Legal liability from unlicensed content **Assessment Checklist:** - [ ] Models sourced from verified, reputable providers - [ ] Digital signatures and checksums verified - [ ] Model files scanned for suspicious code (picklescan, etc.) - [ ] Third-party models deployed in sandboxed environments - [ ] Dependencies regularly updated and audited - [ ] Plugin permissions restricted with allowlists - [ ] Complete inventory of all models and components maintained - [ ] SBOM (Software Bill of Materials) maintained for AI components **Mitigation Strategies:** 1. Source models only from trusted, verified providers 2. Scan model files for malicious code before deployment 3. Sandbox third-party models with restricted permissions 4. Maintain updated dependency inventory 5. Implement model signing and integrity verification --- ### LLM04: Data and Model Poisoning **Severity**: High **Description**: Attackers manipulate training or fine-tuning data to introduce vulnerabilities, backdoors, or biases that compromise model security and reliability. **Attack Vectors:** - Crafted training examples with hidden trigger phrases - Poisoned web-scraped content absorbed during training - Direct tampering with model weights or parameters - Malicious fine-tuning data - Subtle label manipulation or data anomalies **Impact:** - Biased or degraded model outputs - Trigger-ac
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.