ClaudeSec

DevSecOps toolkit for AI-assisted secure development

View the Project on GitHub Twodragon0/claudesec

LLM Security Checklist

Based on the OWASP Top 10 for LLM Applications.

Pre-Deployment Checklist

LLM01: Prompt Injection

LLM02: Insecure Output Handling

LLM03: Training Data Poisoning

LLM04: Model Denial of Service

LLM05: Supply Chain Vulnerabilities

LLM06: Sensitive Information Disclosure

LLM07: Insecure Plugin Design

LLM08: Excessive Agency

LLM09: Overreliance

LLM10: Model Theft

Architecture Security

┌─────────────────────────────────────────────────┐
│                 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       │
└─────────────────────────────────────────────────┘

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

References