AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The owasp-llm skill provides a machine-readable implementation of the OWASP Top 10 for LLM Applications (2025). It serves as a comprehensive reference for developers and security professionals to understand, detect, and mitigate vulnerabilities inherent in large language model systems. Each of the ten identified risks is documented with detailed descriptions, risk assessments, vulnerability checklists, and actionable prevention and remediation strategies.
What it does
- Provides a structured index of the 2025 OWASP LLM Top 10 vulnerabilities.
- Offers detailed breakdowns for each vulnerability, including risk impact and attack scenarios.
- Includes specific vulnerability checklists to help identify system exposure.
- Supplies defensive measures and remediation guidance for each security risk.
- Categorizes risks into logical groups like Input Integrity, Data Protection, and Access Control.
When to use it
- During the design phase of an LLM-integrated application to implement security by design.
- When performing a security audit or risk assessment of an existing LLM system.
- To train development teams on common LLM-specific security threats.
- When developing remediation plans for identified security vulnerabilities in AI workflows.
Advantages
- Standardized, industry-recognized framework for LLM security.
- Machine-readable format suitable for integration into automated security agents.
- Covers both direct and indirect attack vectors, including multimodal risks.
- Provides clear, actionable steps for both detection and long-term remediation.
Usage examples
- “What are the primary risks associated with Prompt Injection according to the OWASP LLM Top 10?”
- The agent retrieves the LLM01:2025 documentation, detailing direct and indirect injection risks, potential consequences like data exfiltration, and a checklist for identifying exposure.
- “How can I prevent Excessive Agency in my LLM agent?”
- The agent references LLM06:2025, providing guidance on enforcing least privilege, implementing human-in-the-loop requirements for high-risk actions, and defining strict capability boundaries.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/microsoft/owasp-llm/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip owasp-llm.zip -d .agents/skills
Documentation by Microsoft
OWASP® LLM Top 10 — Skill Entry
This SKILL.md is the entrypoint for the OWASP LLM Top 10 skill.
The skill encodes the OWASP Top 10 for LLM Applications (2025) as structured, machine-readable references that an agent can query to identify, assess, and remediate security risks in large language model systems.
Normative references (LLM Top 10)
Skill layout
SKILL.md— this file (skill entrypoint).references/— the LLM Top 10 normative documents.00-vulnerability-index.md— index of all vulnerability identifiers, categories, and cross-references.01through10— one document per vulnerability aligned with OWASP LLM Applications numbering.
Third-Party Attribution
Copyright © OWASP Foundation. OWASP® Top 10 for LLM Applications (2025) content is derived from works by the OWASP Foundation, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). Source: https://genai.owasp.org/resource/owasp-top-10-for-llm-applications-2025/ Modifications: Vulnerability descriptions restructured into agent-consumable reference documents with added detection and remediation guidance. OWASP® is a registered trademark of the OWASP Foundation. Use does not imply endorsement.
Files
- ATTRIBUTION.mdAdded by AutoGineer973 B
- LICENSEAdded by AutoGineer17.9 KiB
- SKILL.md2.5 KiB
- references/00-vulnerability-index.md3.0 KiB
- references/01-prompt-injection.md8.4 KiB
- references/02-sensitive-information-disclosure.md6.8 KiB
- references/03-supply-chain.md6.9 KiB
- references/04-data-and-model-poisoning.md8.0 KiB
- references/05-improper-output-handling.md7.6 KiB
- references/06-excessive-agency.md6.4 KiB
- references/07-system-prompt-leakage.md5.8 KiB
- references/08-vector-and-embedding-weaknesses.md6.2 KiB
- references/09-misinformation.md6.9 KiB
- references/10-unbounded-consumption.md7.4 KiB
references/02-sensitive-information-disclosure.md
title: 'LLM02: Sensitive Information Disclosure' description: OWASP LLM Top 10 reference for sensitive information disclosure vulnerabilities including PII leakage and data exfiltration patterns
02 Sensitive Information Disclosure
Identifier: LLM02:2025 Category: Data Protection
Description
Sensitive information can affect both the LLM and its application context. This includes personal identifiable information (PII), financial details, health records, confidential business data, security credentials, and legal documents. Proprietary models may also have unique training methods and source code that are considered sensitive, particularly in closed-source or foundation models.
LLMs risk exposing sensitive data, proprietary algorithms, and confidential details through their output. This can result in unauthorized access to sensitive data, intellectual property theft, privacy violations, and security breaches.
The interaction between the consumer and LLM application forms a two-way trust boundary, where neither the client-to-LLM input nor the LLM-to-client output can be inherently trusted. Adding restrictions within the system prompt regarding data types the LLM should return provides some mitigation, but the unpredictable nature of LLMs means such restrictions may not always be honored and could be circumvented via prompt injection or other vectors.
Risk
Unauthorized access to sensitive data through model output exposure.
Intellectual property theft through proprietary algorithm or source code disclosure.
Privacy violations from PII leakage in model responses.
Security breaches from exposed credentials, connection strings, or security tokens.
Competitive advantage loss from disclosed business strategies or pricing structures.
Legal liability from unauthorized disclosure of confidential client or partner details.
Vulnerability checklist
PII is present in training data and could surface in the LLM's responses.
Proprietary algorithms, source code, or confidential business strategies are accessible through model output due to their presence in training data.
Sensitive business data such as internally-generated content, partner information, or client details can appear in the LLM's responses.
User data is incorporated into training model data without adequate sanitization.
The LLM has access to external data sources without strict access controls or least privilege enforcement.
No Terms of Use policies inform users about data processing risks or opt-out options.
The LLM's infrastructure lacks network segmentation, encryption, or other security measures to prevent unauthorized access to sensitive data.
Prevention controls
Implement robust data sanitization techniques to prevent user data from being inadvertently incorporated into training model data, including data cleaning and scrubbing before training.
Apply thorough input validation and sanitization methods to prevent potentially malicious or unexpected inputs from impacting the model's behavior, including filtration and data masking.
Implement strict access controls and the principle of least privilege for LLM access to external data sources. Provide the LLM application with only the data necessary for its intended function. Establish strong authentication and authorization mechanisms such as OAuth and role-based access controls, and use encryption for sensitive data at rest and in transit.
Maintain detailed logs of data sources and transformations used during LLM training and operation, enabling auditing of data access and identification of potential information leakage.
Employ federated learning techniques that allow the model to learn from distributed data sources without centralizing sensitive data.
Educate users about the risks of providing sensitive information when interacting with LLMs. Provide guidelines for best practices such as avoiding inputting confidential data, and implement clear Terms of Use policies.
Ensure the LLM's infrastructure is securely configured with network segmentation, encryption, and other security measures to prevent unauthorized access to sensitive data.
For sensitive applications, consider differential privacy, homomorphic encryption, or secure multi-party computation techniques to add additional layers of protection.
Example attack scenarios
Scenario A — PII leakage from training data
A user interacts with an LLM application that has been trained on a dataset containing personal health records. The user asks the model about common side effects of a particular medication. The model inadvertently includes PII from its training data in its response, revealing names and medical conditions of other patients.
Scenario B — Proprietary code exposure
A user asks an LLM for a code snippet to implement a specific algorithm, and the LLM unintentionally reveals proprietary source code from its training data. An attacker then uses this disclosed proprietary code to reverse-engineer a company's product, gaining a competitive advantage.
Scenario C — Confidential business data in responses
An LLM-based customer support chatbot exposes confidential business data such as internal pricing strategies, discount structures, or customer segmentation details in its responses. A competitor or malicious user exploits this information to undercut the company's pricing or target high-value clients.
Detection guidance
Audit data sources and transformations used during LLM training and operation for potential sensitive data inclusion.
Monitor model outputs for PII, proprietary code, or confidential business data in responses.
Review access control logs for unauthorized data access patterns through the LLM.
Test model responses with targeted queries designed to elicit sensitive information such as training data extraction or membership inference attacks.
Inspect the LLM's infrastructure configuration for adequate network segmentation and encryption.
Remediation
Implement robust data sanitization to remove sensitive data from training and fine-tuning datasets.
Apply strict access controls and encryption for all external data sources accessible by the LLM.
Deploy input validation and sanitization methods for all user interactions.
Externalize sensitive data from system prompts and operational contexts.
Update Terms of Use policies to clearly communicate data processing risks and provide opt-out options for users.
Reconfigure infrastructure with proper network segmentation and encryption where security gaps exist.
Content derived from works by the OWASP Foundation, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). Modifications: Restructured into agent-consumable reference format with added detection and remediation guidance.
Requirements and compatibility
Written for: GitHub Copilot, Claude Code
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Claude Code frontmatter
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/hve-core · .github/skills/security/owasp-llm · commit f425e94
- Licence
- Creative Commons Attribution-ShareAlike 4.0 International (redistribution allowed)
- LICENSE (written by AutoGineer)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download owasp-llm.zip