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

Style and Formatting-Based Evasion

Direct & Prompt · L1 · perimeter

Reformatting a request — code blocks, tables, reversed order, markdown tricks — changes the surface the filters read while the meaning stays. A payload inside a code fence behaves differently than the same payload in prose.

01Control Architecture

How it is defended

The filter reads meaning, not decoration: canonicalization reduces the request to its semantic core before matching, and a style-evasion battery keeps the reduction current as new formats appear.

02Why It Breaks Naive Defenses

Reformatting a request — code blocks, tables, reversed order, markdown tricks — changes the surface the filters read while the meaning stays. A payload inside a code fence behaves differently than the same payload in prose. The filter reads meaning, not decoration: canonicalization reduces the request to its semantic core before matching, and a style-evasion battery keeps the reduction current as new formats appear.

👤 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

Does putting an attack inside a code block evade filters?

On naive pipelines, yes — filters that match prose patterns miss payloads in code fences or tables. Canonicalization reduces the input to its semantic core before detection, so formatting stops being an evasion surface.

How do you defend against style and formatting-based evasion?

The filter reads meaning, not decoration: canonicalization reduces the request to its semantic core before matching, and a style-evasion battery keeps the reduction current as new formats appear.

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