Overview
Prompt injection is a critical security threat where attackers manipulate AI agents by injecting malicious instructions into prompts. Bloom automatically scans all requests for injection patterns and can block, alert, or log detections.How It Works
Every request passing through Bloom is scanned against a library of injection patterns:Detection Patterns
Critical Severity (Block by default)
High Severity (Block on medium+ sensitivity)
Medium Severity (Alert only)
Configuration
Configure injection detection per scope in the dashboard or via API:Dashboard
- Go to Scopes
- Select a scope
- Expand Security Settings
- Configure injection detection:
- Mode: Block, Alert, or Log
- Sensitivity: Low, Medium, or High
API
Sensitivity Levels
Response When Blocked
When an injection is detected and blocked, the request returns:403 Forbidden
Custom Patterns
Add organization-specific patterns:Whitelist Patterns
Allow specific patterns that might trigger false positives:Monitoring Detections
Dashboard
Go to Activity to see all injection detections:- Filter by “injection_blocked” or “injection_detected”
- View matched pattern and severity
- See the exact text that triggered detection
Webhooks
Configure a webhook for real-time alerts:Best Practices
Start with Medium
Begin with medium sensitivity and adjust based on false positive rate
Monitor Before Blocking
Use “alert” mode first to understand your traffic patterns
Whitelist Carefully
Only whitelist patterns you fully understand and trust
Review Regularly
Check injection logs weekly to spot new attack patterns
Testing
Test your injection detection configuration:FAQ
Does this scan response content too?
Does this scan response content too?
By default, only requests are scanned. You can enable response scanning in scope settings, but this adds latency.
What about false positives?
What about false positives?
Use medium sensitivity and whitelist legitimate patterns. Monitor the “alert” mode before switching to “block”.
Can attackers bypass this?
Can attackers bypass this?
No security is 100%. Bloom’s patterns are regularly updated. For defense in depth, combine with scopes, rate limiting, and anomaly detection.