Documentation
KoreShield is an LLM security gateway that sits between your app and model providers. It scans prompts and RAG context, applies policy decisions, and blocks unsafe requests before they reach providers.
What It Protects
- direct prompt injection attempts
- indirect/RAG injection hidden in retrieved documents
- policy and compliance violations based on configured rules
Current Provider Support
- DeepSeek
- OpenAI
- Anthropic
- Gemini
- Azure OpenAI
Core Runtime Endpoints
POST /v1/chat/completions(protected)POST /v1/rag/scan(protected)POST /v1/scanandPOST /v1/scan/batch(protected)GET /v1/scans(protected)GET /health,GET /status,GET /metrics
Authentication
Protected endpoints accept:
Authorization: Bearer <jwt>X-API-Key: ks_...ks_access_tokenhttpOnly cookie
JWT validation enforces iss, aud, signature, and expiration checks.