Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention37

PraisonAI prompt injection defense default threshold too high, single-vector attacks can bypass blocking

PraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threats

AI summary

PraisonAI's InjectionDefense prompt injection defense layer has a flawed default configuration: block_threshold defaults to ThreatLevel.CRITICAL, so only 3 or more simultaneous detections trigger blocking. A single detection hit, including categories explicitly marked as dangerous like instruction override and financial manipulation, only produces a HIGH-level alert and is written to logs, without blocking; the request is forwarded to the LLM unchanged. The researchers' verification prompt, triggering only one instruction override detection, completely bypasses the defense, and financial manipulation prompts are also allowed through. Impacts include system prompt extraction, unauthorized tool calls, session context leakage, and financial manipulation when the agent has payment tools. Recommendations: change the default threshold to ThreatLevel.HIGH so any dangerous category hit triggers blocking; operators needing permissive behavior can explicitly pass CRITICAL; and update the threshold comments to explain the mapping between severity levels and blocking.

Why it was selected

It disclosed that PraisonAI's prompt injection defense is ineffective due to an excessively high default threshold, and provided a one-line fix. Teams deploying this library can use it for self-check.

Read originalgithub.com