Security Pipeline
CloudVera's security pipeline runs on every request before it reaches the LLM provider. Each step can be configured to block, flag, or allow based on your policies.
Steps
Authentication
Verify the virtual API key, check permissions, and resolve the tenant and project context.
Rate Limiting
Enforce per-key and per-tenant rate limits. Reject requests that exceed configured thresholds.
Obfuscation Normalization
Detect and decode obfuscation techniques β zero-width characters, homoglyphs, Base64 encoding, HTML entities, and leetspeak β before pattern-based scanning.
Prompt Injection Scan
Detect injection attacks, jailbreak attempts, and adversarial prompts using 200+ patterns across 6 attack categories.
Cross-Lingual Attack Detection
Detect prompt injection delivered in non-English languages β attack keywords in 8 languages (Russian, Chinese, Arabic, Spanish, French, German, Japanese, Korean) and translation-mediated delivery.
Semantic Attack Detection
ML-based embedding analysis using Cloudflare Workers AI to catch rephrased injection attempts that bypass pattern matching.
Payload Splitting Detection
Detect fragmented injection payloads β variable concatenation, quoted fragment reassembly, step-by-step hidden instructions, and character code assembly.
PII Detection
Scan for personally identifiable information (SSN, email, phone, credit card, API keys) and redact or block as configured.
Custom Guardrails
Apply custom content policies β topic restrictions, banned phrases, regex rules, semantic matching, and output format requirements.
Cost Check
Verify the request won't exceed budget limits. Detect denial-of-wallet attacks via excessive token usage or repetition.
Provider Call
Forward the sanitized request to the LLM provider with automatic retry and failover.
Response Scan
Scan the model's response for toxic content, code/IP leaks, alignment degradation, PII leakage, and policy violations.
Logging
Log the full request/response with metadata: tokens, cost, latency, security scan results, and routing decisions.
Audit Trail
Write an immutable audit record for compliance. Tracks who sent what, when, and what security actions were taken.