Skip to main content

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

  1. Go to Scopes
  2. Select a scope
  3. Expand Security Settings
  4. 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:
HTTP Status: 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:
Webhook Payload:

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

By default, only requests are scanned. You can enable response scanning in scope settings, but this adds latency.
Use medium sensitivity and whitelist legitimate patterns. Monitor the “alert” mode before switching to “block”.
No security is 100%. Bloom’s patterns are regularly updated. For defense in depth, combine with scopes, rate limiting, and anomaly detection.