llm-security

Organize LLM application security guidelines for building, reviewing, and deploying AI systems.

260|28|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/semgrep/skills --skill llm-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-security
Source: https://github.com/semgrep/skills/tree/main/skills/llm-security
Command: npx skills add https://github.com/semgrep/skills --skill llm-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive framework of security guidelines for building, reviewing, and deploying LLM-powered applications, reducing risk across the development lifecycle.

Core Features & Use Cases

  • Defines guardrails for prompt injection, data leakage prevention, supply chain integrity, data poisoning detection, and robust output handling.
  • Presents actionable patterns, secure implementations, and guardrails for production workflows such as RAG, access control, auditing, and monitoring.
  • Supports teams with a structured playbook to standardize security reviews and enforcement across projects.

Quick Start

Review and apply the OWASP Top 10 for LLM Applications 2025 guidelines to your next AI project.

Frequently Asked Questions about llm-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure LLM applications against prompt injection and data leakage?

To secure LLM applications against prompt injection and data leakage, apply defense-in-depth guardrails that define concrete patterns for sensitive data handling, input validation, and robust output handling across your model pipelines.

What security guidelines should I follow when building RAG and AI model pipelines?

Security guidelines for RAG and AI model pipelines should enforce access control, rate limiting, and data poisoning prevention to ensure supply chain integrity and standardized risk monitoring across different environments.

How do I prevent data poisoning in LLM supply chains?

Prevent data poisoning in LLM supply chains by implementing supply chain integrity guardrails that standardize security reviews, enforce auditing, and continuously monitor risks during the deployment of AI systems.

Can I use these LLM security guidelines to standardize reviews across multiple teams?

Yes, you can use this framework to standardize LLM security reviews across multiple teams by applying a structured playbook that enforces consistent access control, output validation, and risk monitoring for all projects.

What is the best way to implement defense-in-depth for LLM apps?

The best way to implement defense-in-depth for LLM apps is to establish concrete guardrails across the development lifecycle, covering prompt injection, supply chain integrity, and output validation for production workflows.

Does the OWASP Top 10 for LLM Applications 2025 cover access control and auditing?

Yes, the OWASP Top 10 for LLM Applications 2025 guidelines cover access control and auditing, providing actionable patterns and secure implementations to mitigate risks in production AI workflows.