Section 01
Introduction: Contextual Adversarial Attacks Expose Systemic Security Vulnerabilities in AI Code Generators
This study reveals through 2800 controlled experiments: carefully designed contextual inputs can surge the vulnerability generation rate of AI code generation models from 3.5% to 37.4%, and the attacks are cross-model transferable (60%-100% effective), indicating a systemic issue at the architectural level. The study also proposes a two-layer defense framework with an 89.1% detection rate, providing a feasible solution to address AI code generation security risks.