Security guidelines for LLM applications based on OWASP Top 10 for LLM 2025. Use when building LLM apps, reviewing AI security, implementing RAG systems, or asking about LLM vulnerabilities like "prompt injection" or "check LLM security".
Security guidelines for LLM applications based on the OWASP Top 10 for Large Language Model Applications 2025.
llm-security/
├── SKILL.md # Skill definition (loaded by agents)
├── rules/ # Security rule files
│ ├── _sections.md # Index of all categories
│ ├── prompt-injection.md
│ ├── sensitive-disclosure.md
│ └── ... # 10 rule files total
└── README.md # This file
Install the skill:
npx skills add semgrep/skills
The agent will automatically reference these guidelines when building or reviewing LLM applications.
From the repo root:
make validate # Validate all skills
make build # Build all skills
make zip # Create distribution packages
make # All of the above
Or for this skill only:
cd packages/skill-build
pnpm install
pnpm validate llm-security # Validate rule files
pnpm build-agents llm-security # Build AGENTS.md
rules/{category}.md---
title: Category Title
impact: HIGH
impactDescription: Brief description of the impact
tags: security, llm, category-name, owasp-llmXX
---
## Category Title
Brief explanation of the vulnerability.
**Vulnerable (description):**
```python
# Vulnerable code
```
**Secure (description):**
```python
# Secure code
```
rules/_sections.mdmake validate to check formattingmake to rebuild everything| Level | Description | |-------|-------------| | CRITICAL | Data exfiltration, model compromise, unauthorized actions | | HIGH | Information disclosure, service degradation, significant risk |
Created by @DrewDennison at Semgrep.
Rules derived from the OWASP Top 10 for LLM Applications 2025.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer