This skill provides security rules for building secure large language model (LLM) applications based on the OWASP Top 10 for LLM Applications 2025. It is designed for developers and security professionals who want to ensure their LLM applications are secure.
$ npx skills add https://github.com/semgrep/skills --skill llm-securityThe llm-security skill provides developers with actionable security guidelines for building and securing large language model applications. It covers the OWASP Top 10 for LLM Applications 2025, addressing critical vulnerabilities including prompt injection, sensitive information disclosure, supply chain risks, data poisoning, and improper output handling. The skill is ideal when implementing RAG systems, securing AI/ML pipelines, or reviewing code that interacts with language models. It helps teams identify and mitigate high-impact risks like excessive agency, system prompt leakage, vector embedding weaknesses, and unbounded consumption attacks.
Add the skill using the command: `$ npx skills add https://github.com/semgrep/skills --skill llm-security`
Automatically check for security risks in LLM applications.
Guide users in identifying security rules relevant to their LLM project.
Provide examples of secure code patterns and known vulnerabilities.
$ npx skills add https://github.com/semgrep/skills --skill llm-securitygit clone https://github.com/semgrep/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Check the GitHub repository or documentation for usage examples.
Real-time API threat detection and prevention
Automated compliance monitoring for 50+ regulations
Security patch notifications for servers
AI-powered security engineer for vulnerability management
AI-powered offensive security automation
AI-driven email security with automated threat detection and fraud prevention.
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan