Familiar Pattern Analysis Hijack
Large Language Models (LLMs) utilized for static code analysis, code review, and autonomous software engineering exhibit a cognitive vulnerability termed "Abstraction Bias." When processing code that structurally resembles common algorithmic patterns (e.g., standard sorting algorithms, helper functions, or mathematical formulas), the model relies on high-level memorized representations of the algorithm's intent rather than analyzing the specific local logic. Adversaries can exploit this by…
Evaluated models: GPT-4o, Claude 3.5 Sonnet, Gemini 2.0 Flash+3 more
- GPT-4o
- Claude 3.5 Sonnet
- Gemini 2.0 Flash
- o3
- Claude Sonnet 4
- Gemini 2.5 Pro