APEX 100 · AI Security Red Teaming · #007 · Direct & Prompt — L1 · perimeter

Few-Shot and Many-Shot Dilution Attacks

Direct & Prompt · L1 · perimeter

Filling the context with dozens of compliant examples of the forbidden behavior dilutes the policy until the model imitates the pattern. The examples look like helpful demonstrations; together they are a jailbreak.

01Control Architecture

How it is defended

Example-budget gating: the number of user-supplied demonstrations in context is capped and scored. Many-shot imitation patterns get the 'instructed imitation' label and route to the stricter path.

02Why It Breaks Naive Defenses

Filling the context with dozens of compliant examples of the forbidden behavior dilutes the policy until the model imitates the pattern. The examples look like helpful demonstrations; together they are a jailbreak. Example-budget gating: the number of user-supplied demonstrations in context is capped and scored. Many-shot imitation patterns get the 'instructed imitation' label and route to the stricter path.

👤 Dr. Deepanjan Saha · Chief AI Security Red Team Principal & Chief Cybersecurity Architect (CAISO) · 15+ yrs · 47+ CVEs · 200+ pentests · 12 patents
📞 +91 98317 43870 · 💬 WhatsApp · ✉️ core.deepanjan@gmail.com · 🔗 LinkedIn: DRDEEPANJANSAHA · 🌐 drdeepanjansaha.github.io

Book the engagement that kills this, measured

Dr. Deepanjan Saha — Chief AI Security Red Team Principal & Chief Cybersecurity Architect. 15+ years · 47+ CVEs · 200+ pentests · 12 patents. Delivered as the release gate — a residual-risk number with a trend line, not a PDF.

03FAQ

Why do many-shot examples cause jailbreaks?

Models imitate the dominant pattern in context. Fifty examples of 'here's how I'd do it' outweigh one policy line. Budgeting and labeling user-supplied demonstrations breaks the imitation lane.

How do you defend against few-shot and many-shot dilution attacks?

Example-budget gating: the number of user-supplied demonstrations in context is capped and scored. Many-shot imitation patterns get the 'instructed imitation' label and route to the stricter path.

DR. DEEPANJAN SAHA · CHIEF AI SECURITY RED TEAM PRINCIPAL & CHIEF CYBERSECURITY ARCHITECT · AI SECURITY RED TEAM · EST. 2010 · 47+ CVEs · 200+ PENTESTS · 12 PATENTS