LLM Injection Response
Prompt-Injection-Vorfälle ohne strukturiertes Response können zu Data Leaks führen. Vier Kontrollen: Automated Response, Incident Triage, Recovery Playbooks und Post-Incident Analysis.
Was ist LLM Injection Response? Einfach erklärt
LLM Injection Response ist wie ein Notfallplan für Prompt-Injection-Angriffe: Automated Response blockt oder flaggt Angriffe basierend auf Schweregrad automatisch. Incident Triage bewertet Vorfälle nach Daten-Sensitivität und User-Intent für Priorisierung. Recovery Playbooks definieren automatisierte Schritte zur Wiederherstellung nach Jailbreaks oder Data-Extraction-Versuchen. Post-Incident Analysis identifiziert Root Causes und generiert Compliance-Reports für SOC2/GDPR. Ohne Response-Struktur können Angreifer Data Leaks verursachen, Systeme kompromittieren oder Compliance-Verletzungen durchführen.
↓ Springe zu Injection-Response-Kontrollen
4 Injection-Response-Kontrollen
Automatically respond to detected prompt injection attempts. Block, flag, or redirect based on severity and context.
# Moltbot automated injection response:
automated_response:
enabled: true
# Response actions by severity:
severity_based:
critical:
action: block_and_alert
# Block request, alert security team, log incident
block_duration_hours: 24
# Block user for 24 hours
high:
action: block
# Block request, log incident
block_duration_hours: 1
medium:
action: flag
# Flag for review, allow request with disclaimer
add_disclaimer: true
low:
action: log
# Log for monitoring, allow request
# Context-based response:
context_aware:
enabled: true
# Consider: user history, use case, data sensitivity
# Escalate response for high-value targets or sensitive dataTriage injection incidents to determine severity and impact. Prioritise response based on data sensitivity and user intent.
# Moltbot incident triage:
incident_triage:
enabled: true
# Triage criteria:
criteria:
# Data sensitivity:
data_sensitivity:
public: priority low
internal: priority medium
confidential: priority high
restricted: priority critical
# User intent:
user_intent:
accidental: priority low
curious: priority medium
malicious: priority critical
# Success of injection:
injection_success:
failed: priority low
partial: priority medium
full: priority critical
# Triage workflow:
workflow:
# 1. Auto-triage based on criteria
# 2. Assign priority and severity
# 3. Route to appropriate response team
# 4. Track resolution time
auto_triage: true
# SLA by priority:
sla:
critical: response_within_minutes: 15
high: response_within_minutes: 60
medium: response_within_hours: 4
low: response_within_hours: 24Implement recovery playbooks for common injection scenarios. Automated steps to restore service and prevent recurrence.
# Moltbot recovery playbooks:
recovery_playbooks:
enabled: true
# Playbook: Jailbreak detected
jailbreak_detected:
steps:
- name: "Block user session"
action: revoke_session
- name: "Block user IP"
action: block_ip
duration_hours: 24
- name: "Review recent activity"
action: review_user_activity
lookback_hours: 24
- name: "Escalate to security team"
action: alert_security
severity: high
# Playbook: Data extraction attempt
data_extraction_attempt:
steps:
- name: "Block request"
action: block_request
- name: "Audit data access"
action: audit_data_access
- name: "Notify data owner"
action: notify_data_owner
- name: "Escalate to compliance"
action: alert_compliance
# Playbook: System prompt extraction
system_prompt_extraction:
steps:
- name: "Block request"
action: block_request
- name: "Rotate system prompt"
action: rotate_system_prompt
- name: "Review model configuration"
action: review_model_config
- name: "Escalate to security team"
action: alert_security
severity: criticalAnalyse injection incidents after resolution to identify root causes and prevent recurrence. Generate reports for compliance.
# Moltbot post-incident analysis:
post_incident_analysis:
enabled: true
# Analysis steps:
analysis_steps:
# 1. Root cause analysis
root_cause:
# Identify: how injection succeeded
# What vulnerability was exploited
# What detection missed
enabled: true
# 2. Impact assessment
impact_assessment:
# Assess: data exposure, system compromise, user impact
# Quantify: number of affected users, data volume
enabled: true
# 3. Lessons learned
lessons_learned:
# Document: what went wrong, what worked well
# Identify: process gaps, tool gaps, training needs
enabled: true
# Remediation actions:
remediation:
# Actions to prevent recurrence:
# - Patch vulnerabilities
# - Update detection rules
# - Improve training
# - Update documentation
enabled: true
# Compliance reporting:
compliance:
enabled: true
# Generate reports for:
# - SOC 2 (incident response logs)
# - GDPR (data breach notification)
# - ISO 27001 (incident management)
reports:
- soc2_incident_response
- gdpr_breach_notification
- iso27001_incident_managementHäufige Fragen
What is the difference between automated response and incident triage?
Automated response is the immediate action taken when an injection is detected. It is predefined and executed automatically without human intervention. Examples: block the request, flag the user, alert the security team. Incident triage is the process of evaluating the incident to determine severity, impact, and appropriate response. It involves analyzing the context (data sensitivity, user intent, injection success) to prioritise the response. Automated response is the 'what to do immediately', triage is the 'how to prioritise and route'. Both are necessary: automated response contains the threat, triage ensures appropriate follow-up.
How do I create effective recovery playbooks?
Effective recovery playbooks should be: 1) Specific to the incident type — different playbooks for jailbreaks, data extraction attempts, system prompt extraction. 2) Step-by-step — clear, actionable steps that can be executed by security analysts or automated systems. 3) Automated where possible — steps that can be automated (blocking, session revocation, alerting) should be automated for speed. 4) Include escalation criteria — when to escalate to higher-level teams or management. 5) Include communication steps — who to notify (security team, compliance, data owners, users). 6) Include verification steps — how to verify the incident is resolved and the system is secure.
What should be included in post-incident analysis?
Post-incident analysis should include: 1) Root cause analysis — how did the injection succeed? What vulnerability was exploited? What detection missed? 2) Impact assessment — what data was exposed? How many users were affected? What systems were compromised? 3) Timeline — when did the incident start, when was it detected, when was it resolved? 4) Lessons learned — what went wrong in detection and response? What worked well? 5) Remediation actions — what changes are needed to prevent recurrence? (patch vulnerabilities, update detection rules, improve training). 6) Compliance reporting — generate reports for SOC 2, GDPR, ISO 27001 as required.
How do I measure the effectiveness of injection response?
Metrics to measure injection response effectiveness: 1) Mean Time to Detect (MTTD) — average time from injection attempt to detection. 2) Mean Time to Respond (MTTR) — average time from detection to resolution. 3) Detection rate — percentage of injection attempts detected. 4) False positive rate — percentage of legitimate requests incorrectly flagged as injection. 5) Containment success rate — percentage of incidents successfully contained before impact. 6) Recurrence rate — percentage of similar incidents recurring after remediation. 7) SLA compliance — percentage of incidents resolved within SLA. Track these metrics over time to identify trends and improve response processes.