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/04-data-and-model-poisoning.md
title: 'LLM04: Data and Model Poisoning' description: OWASP LLM Top 10 reference for data and model poisoning attacks targeting training data integrity and model behavior
04 Data and Model Poisoning
Identifier: LLM04:2025 Category: Data Integrity
Description
Data poisoning occurs when pre-training, fine-tuning, or embedding data is manipulated to introduce vulnerabilities, backdoors, or biases. This can compromise model security, performance, and ethical behavior, leading to harmful outputs or impaired capabilities. Common risks include degraded model performance, biased or toxic content, and exploitation of downstream systems.
Data poisoning can target different stages of the LLM lifecycle: pre-training (learning from general data), fine-tuning (adapting the model to specific tasks), embedding (converting text to numerical vectors), and Retrieval Augmented Generation (fetching relevant data to supplement responses). Data poisoning is considered an integrity attack because tampering with training data impacts the model's ability to make accurate predictions. The risks are especially high with external data sources that may contain unverified or malicious content.
Models distributed through shared repositories or open-source platforms can carry risks beyond data poisoning, such as malware embedded through techniques like malicious pickling, where the model's serialized format is used to distribute and execute harmful code on loading.
Risk
Degraded model performance leading to factually incorrect outputs in critical domains such as healthcare, legal decisions, or financial recommendations.
Biased or toxic content generation from poisoned training data.
Exploitation of downstream systems through manipulated model outputs.
Backdoor activation through triggered keywords or patterns embedded during fine-tuning.
Integrity compromise of RAG knowledge bases leading to misinformation or harmful recommendations.
Malware distribution through compromised model serialization formats.
Covert attacker control of model behavior through hidden triggers.
Vulnerability checklist
Training data is sourced from unverified or potentially malicious third parties without integrity checks.
Adversarial content is inserted into web-crawled data, user-generated feedback, or curated datasets used for model learning.
Data pipeline components such as collection tools, preprocessing workflows, or storage systems lack integrity controls.
Fine-tuning datasets are not verified for backdoor triggers or malicious patterns.
RAG knowledge base documents are not validated for hidden or manipulated content.
External models are used without signed artifacts or validated checksums.
Version control and cryptographic hashing are not applied to data files and model artifacts.
User-generated content and real-time data feeds are incorporated into retraining without quality checks.
Prevention controls
Track data provenance using tools like OWASP CycloneDX or ML BOM to verify data has not been tampered with at each stage of pre-training, fine-tuning, and embedding.
Perform integrity checks on all datasets used in pre-training, fine-tuning, and embedding. Validate data with checksums, audits, or similar methods to detect tampering early.
Employ adversarial training methods including federated learning and constraints to minimize sensitivity to outliers and defend against extreme data perturbations.
Use statistical methods and anomaly detection tools to identify unusual patterns or outliers in training data. Monitor for signs of poisoning through analysis of model behavior on test datasets.
Apply input validation, curated datasets, and sandboxing to filter out potentially harmful data during pre-training, fine-tuning, and RAG retrieval.
Regularly evaluate model outputs through red teaming exercises and adversarial testing to identify signs of poisoning. Use automated monitoring to detect unusual or harmful outputs in real-time.
Conduct regular bias and fairness audits on model outputs to ensure poisoned data has not introduced or reinforced undesirable biases.
Use models from reputable, security-verified sources with signed model artifacts and validated checksums. Apply strict access controls for model repositories.
Monitor changes in data files and model artifacts using version control with cryptographic hashing to verify integrity and detect unauthorized modifications.
Implement quality checks on user-generated content and real-time data feeds to prevent poisoned data from being incorporated during retraining or fine-tuning.
Example attack scenarios
Scenario A — Corrupted training data
An attacker corrupts the training data of an LLM by inserting records that contain biased, false, or misleading content. This leads the model to generate outputs that are factually wrong and biased, which can have significant consequences in areas such as healthcare, legal decisions, or financial recommendations.
Scenario B — RAG knowledge base poisoning
An attacker poisons a retrieval data source in a RAG-based system by injecting harmful or misleading information into the documents used for augmenting model responses. When the model retrieves these poisoned documents, the outputs could spread misinformation or make harmful recommendations.
Scenario C — Backdoor via fine-tuning
An attacker fine-tunes a model with poisoned data that includes backdoor triggers. The model may behave normally unless a specific keyword or pattern is included in the prompt, at which point it generates malicious or harmful content. This creates a covert mechanism for the attacker to control when the malicious behavior is activated.
Scenario D — Pipeline compromise
An attacker compromises the data pipeline by injecting malicious content into a web-crawled dataset used for pre-training or fine-tuning. The malicious data introduces subtle biases or vulnerabilities in the model, which might go unnoticed until they cause real-world damage.
Scenario E — RAG poisoning via prompt injection
An attacker uses prompt injection techniques to insert malicious content into a document that is subsequently indexed in a RAG system. When a user queries the system, the poisoned data is retrieved and used to generate a harmful or misleading response.
Detection guidance
Use statistical methods and anomaly detection tools to identify unusual patterns or outliers in training data that may indicate poisoning.
Evaluate model outputs through red teaming exercises for signs of poisoning such as biased, factually incorrect, or unexpected responses.
Conduct regular bias and fairness audits on model outputs to detect changes introduced by poisoned data.
Monitor changes in data files and model artifacts using version control with cryptographic hashing for unauthorized modifications.
Analyze model behavior on test datasets for outputs indicating bias or unexpected patterns that were not present before data updates.
Inspect RAG knowledge base documents for hidden codes, injected content, or contradictory information.
Remediation
Perform integrity checks on all datasets with checksums, audits, or similar methods and remove identified poisoned data.
Apply input validation, curated datasets, and sandboxing to filter out harmful data from all pipeline stages.
Replace compromised models with versions from reputable, security-verified sources using signed artifacts and validated checksums.
Retrain or fine-tune affected models on verified clean datasets after removing poisoned content.
Implement quality checks on user-generated content and real-time data feeds before incorporation into retraining.
Deploy adversarial training methods to minimize sensitivity to identified poisoning patterns.
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