DevSecOps toolkit for AI-assisted secure development
Based on the OWASP Top 10 for LLM Applications.
eval() or raw SQL)┌─────────────────────────────────────────────────┐
│ Application Layer │
│ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
│ │ Input │ │ Output │ │ Action │ │
│ │ Guard │→ │ Guard │→ │ Guard │ │
│ └──────────┘ └──────────┘ └──────────────┘ │
│ ↓ ↓ ↓ │
│ Sanitize Validate Approve/Deny │
│ Rate-limit Filter PII Audit log │
│ Schema-check Schema-check Human-in-loop │
├─────────────────────────────────────────────────┤
│ LLM Layer │
│ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
│ │ System │ │ Model │ │ Tool │ │
│ │ Prompt │ │ Config │ │ Registry │ │
│ └──────────┘ └──────────┘ └──────────────┘ │
├─────────────────────────────────────────────────┤
│ Infrastructure │
│ Encryption │ Auth │ Logging │ Monitoring │
└─────────────────────────────────────────────────┘
| Signal | Tool | Alert Threshold |
|---|---|---|
| API cost spike | Cloud billing | >2x daily average |
| Error rate | APM | >5% of requests |
| Latency | APM | >10s p99 |
| Token usage | LLM dashboard | >90% of budget |
| Prompt injection attempts | WAF/custom | Any detection |
| PII in outputs | DLP | Any detection |