Comprehensive security rules for building secure LLM applications. Based on the OWASP Top 10 for Large Language Model Applications 2025 - the authoritative guide to LLM security risks.
| Prompt Injection | Input validation, output filtering, privilege separation | | Sensitive Disclosure | Data sanitization, access controls, encryption | | Supply Chain | Verify models, SBOM, trusted sources only | | Data Poisoning | Data validation, anomaly detection, sandboxing |
| Output Handling | Treat LLM as untrusted, encode outputs, parameterize queries | | Excessive Agency | Least privilege, human-in-the-loop, minimize extensions | | System Prompt Leakage | No secrets in prompts, external guardrails | | Vector/Embedding | Access controls, data validation, monitoring |
إرشادات الأمان لتطبيقات LLM استنادًا إلى OWASP Top 10 لـ LLM 2025. استخدمها عند إنشاء تطبيقات LLM، أو مراجعة أمان الذكاء الاصطناعي، أو تنفيذ أنظمة RAG، أو السؤال عن ثغرات LLM مثل "الحقن الفوري" أو "التحقق من أمان LLM". المصدر: semgrep/skills.