The System Prompt Is the Attack Surface: How LLM Agent Configuration Shapes Security and Creates Exploitable Vulnerabilities
Organizations: Independent Researcher, Columbia University
Abstract
System prompt configuration can make the difference between near-total phishing blindness and near-perfect detection in LLM email agents. We present PhishNChips, a study of 11 models under 10 prompt strategies, showing that prompt-model interaction is a first-order security variable: a single model's phishing bypass rate ranges from under 1% to 97% depending on how it is configured, while the false-positive cost of the same prompt varies sharply across models. We then show that optimizing prompts around highly predictive signals can improve benchmark performance, reaching up to 93.7% recall at 3.8% false positive rate, but also creates a brittle attack surface. In particular, domain-matching strategies perform well when legitimate emails mostly have matched sender and URL domains, yet degrade sharply when attackers invert that signal by registering matching infrastructure. Response-trace analysis shows that 98% of successful bypasses reason in ways consistent with the inverted signal: the models are following the instruction, but the instruction's core assumption has become false. A counter-intuitive corollary follows: making prompts more specific can degrade already-capable models by replacing broader multi-signal reasoning with exploitable single-signal dependence. We characterize the resulting tension between detection, usability, and adversarial robustness as a navigable tradeoff, introduce Safetility, a deployability-aware metric that penalizes false positives, and argue that closing the adversarial gap likely requires tool augmentation with external ground truth.
Figures & tables
| Model | Failed | Total | Compliance |
|---|---|---|---|
| Qwen 3 235B | 0 | 18,000 | 100.0% |
| Claude Haiku 4.5 | 7 | 18,000 | 100.0% |
| GPT-5.2 | 9 | 18,000 | 100.0% |
| GPT-4o-mini | 24 | 18,000 | 99.9% |
| Grok 4.1 Fast | 45 | 18,000 | 99.8% |
| Gemini 2.5 Flash | 84 | 18,000 | 99.5% |
| Strategy | Avg Bypass Rate | Avg FPR | Net Effectiveness | Safetility |
|---|---|---|---|---|
| security_first | 7% | 57% | +36% | 0.1% |
| balanced | 30% | 30% | +40% | 0.2% |
| baseline | 43% | 23% | +34% | 0.5% |
| trust_context | 37% | 32% | +31% | 0.1% |
| helpful | 40% | 36% | +25% | 0.1% |
| efficiency_first | 55% | 26% | +19% | 0.2% |
| System Prompt | User Prompt | Gemini 3 Flash | Gemini 2.5 Flash |
|---|---|---|---|
| Neutral | Neutral | 52.8% | 45.1% |
| Neutral | Security | 67.4% | 71.1% |
| Security | Neutral | 98.5% | 97.8% |
| Security | Security | 85.7% | 93.1% |
| System main effect | +32.0 pp | +37.4 pp | |
| User main effect | +0.9 pp | +10.6 pp | |
| Model | Recall | FPR | Net Eff | Safetility |
|---|---|---|---|---|
| claude-sonnet-4.5 | 96.9% | 70.2% | +26.8% | 0.1% |
| gpt-5.2 | 94.7% | 51.7% | +43.0% | 0.1% |
| claude-haiku-4.5 | 94.6% | 81.2% | +13.3% | 0.1% |
| grok-4.1-fast | 72.2% | 25.0% | +47.1% | 0.5% |
| gemini-3-flash | 61.5% | 11.1% | +50.4% | 14.1% |
| gemini-2.5-flash | 57.5% | 9.8% | +47.7% | 17.4% |
| Model | Core Recall | Optimized Recall | FPR | Safetility | |
|---|---|---|---|---|---|
| gpt-4o-mini | 32.8% | 93.7% | +60.9 pp | 3.8% | 87.1% |
| deepseek-v3.2 | 43.5% | 91.3% | +47.8 pp | 25.1% | 0.8% |
| mistral-small-3.2 | 46.4% | 84.7% | +38.3 pp | 2.6% | 71.5% |
| llama-4-scout | 54.5% | 85.5% | +31.0 pp | 1.9% | 73.0% |
| qwen3-235b | 56.6% | 96.9% | +40.3 pp | 43.3% | 0.1% |
| gemini-2.5-flash | 57.5% | 81.9% | +24.4 pp | 0.6% | 67.1% |
| Strategy | Commodity Recall | Infra Recall | |
|---|---|---|---|
| sender_url_match | 84.6% | 43.1% | 41.5 pp |
| trap_sender_match | 92.4% | 46.5% | 46.0 pp |
| trap_aggressive | 98.6% | 87.9% | 10.7 pp |
| baseline | 54.9% | 81.2% | +26.3 pp |
| security_first | 93.1% | 96.6% | +3.5 pp |
| Model | Commodity | Infra | Status | |
|---|---|---|---|---|
| Qwen 3 | 97.1% | 94.5% | 2.6 pp | Not significant |
| DeepSeek v3.2 | 92.3% | 78.1% | 14.3 pp | Resistant |
| Claude Haiku 4.5 | 76.4% | 63.0% | 13.4 pp | Resistant |
| Claude Sonnet 4.5 | 92.1% | 65.8% | 26.4 pp | Collapsed |
| GPT-5.2 | 87.9% | 47.9% | 40.0 pp | Collapsed |
| Mistral Small | 78.7% | 35.6% | 43.1 pp | Collapsed |
| Reasoning Pattern | Frequency ( ) |
|---|---|
| Domain consistency cited | 65% |
| Explicit “domain match” language | 64% |
| “Match”/“matches” used explicitly | 43% |
| “No red flags” / “no suspicious indicators” | 38% |
| “No mismatch” cited | 27% |
| Professional tone as supporting evidence | 19% |
| Model | Infra Recall | Infra | FPR | Tier |
|---|---|---|---|---|
| GPT-4o-mini | 76.7% | +46.6 pp | 8.2% | Efficient |
| Gemini 2.5 Flash | 57.5% | +50.7 pp | 2.8% | Efficient |
| Llama 4 Scout | 65.8% | +46.6 pp | 7.4% | Efficient |
| Grok 4.1 Fast | 84.9% | +65.7 pp | 15.9% | Moderate |
| Gemini 3 Flash | 90.4% | +76.7 pp | 20.9% | Moderate |
| GPT-5.2 | 98.6% | +50.7 pp | 36.1% | Overcorrected |