High-Level Architecture
Visitor (Browser)
↓ HTTPS + Browser Security
GitHub Pages (Static Frontend)
↓ Sanitized API Calls
FastAPI Backend (Render)
↓ Rate Limiting + Input Validation + Prompt Injection Filter
RAG Engine (FAISS + Resume/Projects Data)
↓ Safe Context Retrieval
LLM Response (Grok / OpenAI)
Each layer enforces security: static frontend minimizes attack surface, backend validates inputs, prompt filter blocks jailbreaks, RAG uses trusted data only.
OWASP Top 10 & AI-Specific Protections
Implemented Security Practices
- ✔ HTTPS enforced (GitHub Pages default)
- ✔ Secrets in environment variables (Render)
- ✔ Input validation & sanitization on backend
- ✔ Prompt injection detection layer
- ✔ CORS policy restrictions
- ✔ Dependency monitoring (Dependabot)
- ✔ No persistent user data stored
- ✔ Principle of least privilege