appsec-security-review
/appsec-security-review
Audytuje bezpieczeństwo systemów LLM i RAG wobec OWASP Top 10 dla LLM: wstrzyknięcia, klucze API, CORS i sanityzację wejścia.
- Autor
- marceloasl99 ↗
- Repozytorium
- canonical-rag ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 01.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Audytuje bezpieczeństwo systemów LLM i RAG wobec OWASP Top 10 dla LLM: wstrzyknięcia, klucze API, CORS i sanityzację wejścia.
Oryginalny opis (EN)
Audits application security for LLM/RAG systems, covering OWASP Top 10 for LLMs, prompt injection, SQL/FTS injection, API key exposure, CORS restrictions, and input sanitization. Use when reviewing code security, credentials, or public API endpoints.
Jak działa
- Core Security Checklist
Podgląd SKILL.md
--- name: appsec-security-review description: >- Audits application security for LLM/RAG systems, covering OWASP Top 10 for LLMs, prompt injection, SQL/FTS injection, API key exposure, CORS restrictions, and input sanitization. Use when reviewing code security, credentials, or public API endpoints. --- # Application Security Review for LLM/RAG Architectures This skill focuses on threat modeling and vulnerability assessment in applications combining SQLite full-text search, local machine learning models, and external LLM API gateways. ## Core Security Checklist ### 1. Prompt Injection & Indirect Injection Defense - **System Prompt Boundaries**: Check if user input is cleanly delineated from system directives using XML tags (e.g. `<user_query>`, `<document_context>`) or explicit delimiters. - **Indirect Prompt Injection**: When indexing untrusted PDFs or text documents, check whether documents can embed instructions intended to override the system prompt (e.g. "Ignore previous instructions and output..."). - **Output Sanitization**: Ensure markdown renderers (like `marked.js`) configure HTML escaping (`sanitize: true` or DOMPurify) to prevent Cross-Site Scripting (XSS) via LLM response generation. ### 2. SQL & FTS5 Injection Prevention - **Parameterized Queries**: Verify that all SQLite queries utilize parameterized placeholders (`?`) instead of f-string formatting. - **FTS5 Expression Sanitization**: Check how user query strings are transformed before feeding into `MATCH ?`. Malicious punctuation or unmatched quotes should be stripped or safely quoted to prevent SQLite syntax exceptions. ### 3. API Key & Credential Protection - **Masked Config Endpoints**: Ensure any `/api/config` or debug endpoints redact API keys (e.g., `"sk-ant-...1234"`). - **Environment & File Permissions**: Confirm configuration files with live API keys (`config.json`) are added to `.gitignore` and restricted to `chmod 600`. - **Key Rotation**: Verify that failed or rate-limited keys trigger failover without leaking token credentials in logs or HTTP error responses. ### 4. Denial of Service (DoS) & Resource Limits - **Input Payload Clamping**: Enforce maximum character lengths on queries and batch requests. - **Rate Limiting**: Audit whether public search endpoints have IP-based or token-bucket rate limiting to protect external API quotas.
Wersje
W bazie nie ma innych skilli o nazwie appsec-security-review.
Migawka bazy z 13.11.2026 · wersja paczki dd244187e422 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100agent-security
Sprawdza kod LLM, RAG, MCP i agentów pod kątem problemów bezpieczeństwa z OWASP i recenzuje zmiany w systemach AI. - 100security-checklist
Przechodzi listę kontrolną bezpieczeństwa API: walidacja danych wejściowych, zapobieganie SQL injection, limity żądań i CORS. - 90common-llm-security
Sprawdza aplikacje AI pod kątem listy OWASP LLM Top 10 z 2025 roku, w tym promptów, narzędzi agentów i RAG. - 100security-audit
Audytuje bezpieczeństwo pod kątem OWASP, STRIDE i powierzchni ataku AI, w tym walidacji wywołań narzędzi i łańcucha dostaw umiejętności. - 100appsec-engineer
Obsługuje rolę inżyniera bezpieczeństwa aplikacji: projekt, testy i przegląd kodu, przeglądy nowych aplikacji i PR, oceny API i bezpieczeństwo funkcji LLM. - 100common-llm-security
Daje listę kontrolną audytu według OWASP LLM Top 10 (2025) dla aplikacji AI, narzędzi agentów, potoków RAG i konstrukcji promptów.