The Research Report
The System Prompt Is the Attack Surface
How prompt configuration turns a secure LLM agent into a phishing pipeline
You built an AI email agent. You gave it a system prompt. You tested it. It caught 99% of phishing emails. You shipped it.
Then someone rewrote the prompt. Same model. Same emails. Now it misses 97% of them.
That is not a hypothetical. That is the central finding of PhishNChips, a paper from Ron Litvak that ran 220,000 evaluations across 11 models and 10 prompt strategies. The paper shows that prompt engineering is not a tuning knob for performance. It is the primary security variable in any LLM agent deployment.
The Numbers
GPT-4o-mini's phishing bypass rate ranges from under 1% to 97% based on the prompt alone. Not the model. Not the training data. The prompt. A single configuration choice turns the same model from near-perfect detector into near-total failure.
This is not a quirk of one model. The paper tested 11 models. The pattern holds across all of them. The prompt you write determines whether your agent is safe or dangerous.
How Signal-Based Prompts Backfire
The best-performing prompts in the benchmark use specific signals. Match the sender domain to the URL domain. Check for urgent language. Look for mismatched reply-to addresses. These signal-based strategies reach 93.7% recall at 3.8% false positive rate. That looks deployable.
Then attackers adapt. They register infrastructure that matches the signal. They send phishing emails from look-alike domains where the sender and URL match. The model follows the prompt. The prompt says "matching domains are likely safe." The model lets the email through.
Response-trace analysis in the paper shows that 98% of successful bypasses follow this pattern. The model is doing exactly what the prompt instructed. The instruction's core assumption became false, and the model had no way to know.
Infrastructure phishing cuts recall in half. A strategy that looked rock-solid in testing collapses when the adversary changes tactics.
The Specificity Trap
Here is the counter-intuitive finding. Making prompts more specific can make capable models worse.
A broad, general prompt like "identify phishing emails" lets the model weigh multiple signals. Sender domain, URL structure, language patterns, request urgency. The model uses its training to combine these signals. It works well.
A specific prompt that lists exact signals to check replaces that multi-signal reasoning with single-signal dependence. The model stops thinking broadly. It checks the listed signals and nothing else. That makes it exploitable.
You thought you were helping the model by being explicit. You were actually narrowing its defenses to a checklist an attacker can study and defeat.
Safetility: Measuring What Actually Matters
The paper introduces a metric called Safetility. It combines detection performance with deployability by penalizing false positives. A phishing detector that flags 30% of legitimate emails is not deployable, even if it catches every attack.
This matters because the tradeoff is real. Tight prompts catch more phishing but flag more legitimate email. Loose prompts reduce false positives but miss more attacks. Safetility makes that tradeoff explicit and measurable.
For practitioners, this is the right framing. You do not need a model that scores well on a benchmark. You need a model that your users will tolerate in production. A 3.8% false positive rate is already pushing it for most email workflows. Go higher and users start ignoring the alerts. Then you have no security at all.
What This Means for Practitioners
Audit your prompts like you audit your code. Your system prompt is attack surface. Treat it that way. Review it for single-point-of-failure signals. Ask what happens when an attacker knows the exact criteria your agent uses.
Prefer broad instructions over specific checklists. Tell the model what to look for in general terms. Let it bring its training to bear. Do not enumerate signals that an attacker can study and invert.
Test adversarially, not just functionally. Your benchmark passes. Now write prompts that target your agent's specific signals. Send phishing that matches every listed criterion. If your recall drops sharply, your prompt is brittle.
Augment with external tools. The paper argues that closing the adversarial gap requires external ground truth. Domain reputation services. URL reputation APIs. Real-time block lists. The model cannot verify whether a domain is legitimate from the email text alone. It needs tools that check registration date, WHOIS data, and threat intelligence.
Measure your false positive rate in production terms. A 3.8% FPR sounds small. On 10,000 daily emails, that is 380 legitimate messages flagged. Every false positive is a human cost. Track Safetility or a similar metric. Make deployability a first-class requirement.
Version your prompts. When you change a system prompt, you change your security posture. Track prompt changes the same way you track code changes. Rollbacks should be trivial.
The Bigger Picture
The security community treats prompt engineering as a performance problem. Tune the prompt, get better results. PhishNChips reframes it as a security problem. The prompt is the attack surface. The model is the infrastructure.
This has implications beyond phishing. Any LLM agent that makes security-relevant decisions uses a system prompt. Content moderation. Fraud detection. Access control. Code review. All of these agents are vulnerable to the same dynamic. Specific prompts create exploitable dependencies. Broad prompts are harder to attack but harder to control.
The paper's core message is simple. The system prompt is not a configuration detail. It is a security boundary. Treat it with the same rigor you apply to any other attack surface. Test it adversarially. Monitor it in production. Assume the attacker has read it.
Because they have. Your system prompt is in your API call. It is visible to anyone who inspects the traffic. It is leaked through prompt injection. It is extracted through model oversharing. Design for the assumption that the adversary knows your full prompt.
Bottom Line
GPT-4o-mini goes from under 1% bypass to 97% bypass on the same phishing dataset. The only variable is the prompt. Signal-based prompts benchmark well but fail under adversarial pressure. Specific prompts narrow model reasoning to exploitable checklists. Broad prompts let the model reason more flexibly but sacrifice control.
The fix is not a better prompt. The fix is treating prompts as what they are: a first-order security variable that needs adversarial testing, external tool augmentation, and deployability-aware metrics.
Read the full paper: arXiv 2603.25056