Back to Blog
OWASP LLM Top 10 2025: Compliance and Security Controls for LLM Applications
Security Guide·12 min read·

OWASP LLM Top 10 2025: Compliance and Security Controls for LLM Applications

C

Claw GRC Team

Claw GRC Team

A comprehensive guide to implementing security controls for each OWASP LLM Top 10 vulnerability. Covers prompt injection, excessive agency, sensitive information disclosure, and how to map LLM security to compliance frameworks.

OWASP LLM Top 10 2025: Compliance Controls

The OWASP LLM Top 10 lists the most critical security risks in large language model applications. For compliance purposes, these risks must be documented, assessed, and controlled — especially for organizations pursuing SOC 2, ISO 27001, or EU AI Act compliance.

LLM01: Prompt Injection

What it is: Attackers manipulate LLM behavior by injecting malicious instructions in inputs.

Direct injection: User directly sends adversarial prompts ("Ignore previous instructions...") Indirect injection: Malicious content in data sources the LLM processes (documents, emails, web pages)

Controls:

  • Input validation and sanitization before LLM processing
  • Separate system instructions from user content (use system/user message roles, not string concatenation)
  • Constrained output formats (JSON schema validation on LLM outputs)
  • Prompt injection detection layer before LLM inference
  • Principle of least privilege for agent capabilities
  • Human review for high-risk LLM-generated actions

Compliance mapping:

  • SOC 2 CC6.1: Access controls prevent unauthorized actions via injection
  • NIST 800-53 SI-10: Information input validation
  • ISO 27001 A.14.2.5: Secure system engineering principles

Evidence for compliance: Prompt injection test results (quarterly minimum), input validation code review results, detection system alert logs.


LLM02: Insecure Output Handling

What it is: LLM output is used in downstream components without proper sanitization, enabling XSS, SQL injection, or command injection via the LLM.

Examples:

  • LLM generates HTML that's rendered without sanitization → XSS
  • LLM generates SQL that's executed directly → SQL injection
  • LLM generates shell commands that are executed → command injection

Controls:

  • Treat all LLM output as untrusted input
  • Apply context-appropriate encoding (HTML encoding for web, parameterized queries for SQL)
  • Never execute LLM-generated code without sandboxing and review
  • Output schema validation (if the LLM should return JSON, validate the schema)

Compliance mapping:

  • SOC 2 CC7.1: System monitoring catches injection via LLM
  • NIST 800-53 SA-11: Developer security testing

LLM03: Training Data Poisoning

What it is: Adversarial manipulation of training data to introduce backdoors, biases, or vulnerabilities into the model.

For RAG systems: Malicious documents injected into the knowledge base affect retrieval-augmented outputs.

Controls:

  • Provenance tracking for all training data sources
  • Data validation and anomaly detection in training pipelines
  • Access control on training data repositories
  • Monitor for unexpected model behavior that might indicate poisoning
  • For RAG: Access control and validation for document ingestion pipeline

Compliance mapping:

  • NIST AI RMF MS.2.1: Test set integrity
  • ISO 42001 8.6: Data for AI system

LLM04: Model Denial of Service

What it is: Attackers craft inputs that consume excessive computational resources, degrading service for legitimate users.

Examples:

  • Extremely long contexts that exhaust context window
  • Requests for repeated recursive operations
  • Adversarial inputs that cause exponential compute

Controls:

  • Input length limits (max token count per request)
  • Rate limiting per user/organization
  • Request queuing and fair scheduling
  • Cost monitoring and alerting (sudden cost spikes indicate attacks)
  • Timeout enforcement for LLM inference

Compliance mapping:

  • SOC 2 CC9.1: Risk mitigation activities (availability risk)
  • NIST 800-53 SC-5: Denial of service protection

LLM05: Supply Chain Vulnerabilities

What it is: Vulnerabilities in the model supply chain: pre-trained models, fine-tuning datasets, plugins, dependencies.

Examples:

  • Compromised model weights from untrusted source
  • Malicious fine-tuning dataset
  • Vulnerable LLM framework dependency
  • Compromised LLM plugin

Controls:

  • Use models only from verified, reputable sources
  • Verify model checksums/signatures before deployment
  • Software composition analysis (SCA) on all LLM framework dependencies
  • Plugin security review before enabling
  • SBOM (Software Bill of Materials) for all AI components

Compliance mapping:

  • NIST 800-53 SR-6: Supplier assessments and reviews
  • ISO 27001 A.5.22: Monitoring and review of supplier services

LLM06: Sensitive Information Disclosure

What it is: LLMs inadvertently reveal confidential training data, system prompts, or other sensitive information in responses.

Examples:

  • LLM reveals its system prompt when asked
  • LLM recalls PII from training data
  • LLM reveals other users' information (data leakage between sessions)

Controls:

  • Don't include sensitive information in system prompts that shouldn't be revealed
  • PII scrubbing before including user data in LLM context
  • Output scanning for PII/PHI before returning to users
  • Session isolation (each user session has clean context)
  • Data minimization in prompts

Compliance mapping:

  • SOC 2 CC6.7: Data transmission controls
  • GDPR Article 25: Data protection by design
  • HIPAA §164.312(e): Transmission security

LLM07: Insecure Plugin Design

What it is: LLM plugins or function calling tools have inadequate access controls, allowing attackers to use the LLM as a proxy to attack backend systems.

Examples:

  • Plugin with database access doesn't validate what query the LLM requested
  • Plugin with file system access allows path traversal via LLM-generated paths
  • Plugin with HTTP access enables SSRF via LLM-generated URLs

Controls:

  • Validate all plugin inputs even when they come from the LLM
  • Treat LLM-generated plugin inputs as untrusted
  • Apply least privilege to plugin permissions
  • Parameterized queries even in LLM-to-database tools
  • Allowlists for URLs, file paths, and API endpoints in plugins

Compliance mapping:

  • SOC 2 CC6.1: Logical access controls
  • NIST 800-53 AC-6: Least privilege

LLM08: Excessive Agency

What it is: LLM agents are given more authority than necessary, enabling large-scale damage when compromised or manipulated.

This is the most critical risk for autonomous AI agents.

Examples:

  • Agent with write access to production database when only read was needed
  • Agent that can send emails without human approval
  • Agent that can make financial transactions without limit
  • Agent that can modify cloud infrastructure without change management

Controls (the "Minimal Footprint" principle):

  • Grant only minimum permissions needed for declared tasks
  • Human-in-the-loop for consequential actions
  • Hard limits on transaction values, data volumes, access scope
  • Irreversibility gates: confirm before irreversible actions
  • Separate credentials per agent with scoped IAM roles
  • Time-bound access: agents should not have persistent broad access

Compliance mapping:

  • EU AI Act Article 14: Human oversight for high-risk AI
  • SOC 2 CC6.3: Role assignment based on need
  • NIST AI RMF GV.6.2: Policies for risk acceptable to organization

Evidence for compliance:

  • Agent permission inventory (what can each agent do?)
  • Human override mechanism documentation and testing
  • Agent interaction audit logs showing authorization decisions

LLM09: Overreliance

What it is: Uncritical acceptance of LLM outputs leads to security or compliance issues when the LLM is wrong.

Examples:

  • Security team accepts LLM-generated vulnerability assessment without review
  • Compliance team marks controls as compliant based on LLM's assessment without evidence
  • Legal team uses LLM-drafted contract without attorney review

Controls:

  • Clear disclosure that outputs are AI-generated and require review
  • Human review processes for high-stakes decisions
  • Cross-reference LLM outputs with authoritative sources
  • Training to recognize LLM hallucinations

Compliance mapping:

  • EU AI Act Article 13: Transparency
  • NIST AI RMF MG.2.2: Mechanisms to sustain value of AI systems

LLM10: Model Theft

What it is: Attackers extract model weights, training data, or fine-tuning data through API interactions or direct access.

Controls:

  • Rate limiting on API calls (excessive queries may indicate extraction)
  • Monitor for systematic probing (similar inputs with small variations)
  • Protect model weights with access control and encryption
  • Avoid exposing training data through model responses
  • Watermarking for fine-tuned models

Compliance Matrix: OWASP LLM Top 10

LLM Risk SOC 2 NIST 800-53 ISO 27001 EU AI Act
LLM01: Prompt Injection CC6.1 SI-10 A.14.2.5 Art. 15
LLM02: Insecure Output CC7.1 SA-11 A.14.2.2 Art. 15
LLM03: Data Poisoning CC7.1 SI-7 A.8.11 Art. 10
LLM04: Model DoS CC9.1 SC-5 A.12.1.3 Art. 15
LLM05: Supply Chain CC9.2 SR-6 A.5.22 Art. 10
LLM06: Info Disclosure CC6.7 AC-4 A.8.12 Art. 13
LLM07: Insecure Plugin CC6.1 AC-6 A.9.4.1 Art. 14
LLM08: Excessive Agency CC6.3 AC-6 A.9.4.1 Art. 14
LLM09: Overreliance CC4.1 PM-2 A.6.3 Art. 13
LLM10: Model Theft CC6.1 SC-28 A.8.2.3 Art. 15

Security Testing Requirements

For each LLM risk, include these tests in your security assessment program:

Test Frequency Who
Prompt injection attempts Quarterly Security team
Output handling review Per release Dev + security
RAG pipeline integrity check Monthly DevOps
Rate limit testing Quarterly Security team
Dependency scan Daily (automated) CI/CD
PII in outputs scan Continuous Automated
Plugin penetration test Semi-annual Security team
Agent permission audit Quarterly Compliance + security
Model access review Quarterly DevOps + security

Using Claw GRC for OWASP LLM Compliance

Claw GRC ships with the OWASP LLM Top 10 as a pre-seeded framework with all 10 risk categories mapped to controls and evidence requirements. The security engine includes:

  • Prompt injection test automation
  • Dependency vulnerability scanning
  • API security testing
  • Agent permission audit automation

Start your LLM security assessment →

CG

Get started with Claw GRC

AI-native compliance automation. 1,026+ controls. MCP-native. Free workspace, no credit card.

Start Free →