태스크 벡터 산술(task-vector arithmetic)을 활용해 코딩 LLM이 보안 취약점 없는 기능적 코드를 동시에 생성하도록 모델 가중치를 조정하는 SecVecCoder를 제안하며, CodeGuard+ 벤치마크에서 기반 모델 대비 신뢰할 수 있는 코드 완성 비율을 최대 36.0 퍼센트포인트 향상시키면서도 추론 지연은 평균 0.6% 이내로 유지한다.
The increasing use of AI systems for code generation raises a central security question: what can today's models and coding agents actually do to produce secure code, where do they still fail, and what would move the field forward? Existing work has explored prompting, fine-tuning, reinforcement learning, and agentic workflows for secure code generation, but the field still lacks a systematic understanding of how these techniques improve security and why substantial failures persist. In this SoK, we systematize the progress, pitfalls, and paths forward for AI secure code generation. We introduce a three-level framework that measures models' natural-language understanding of secure coding principles, their code-level actuation of those principles during generation, and the knowledge--actuation gaps between the two. We instantiate this framework across models and coding agents on benchmarks covering both isolated function-level security and full web-application security. Our results show that secure-coding-principle understanding is a statistically strong predictor of code-level outcomes, including functional correctness, security, and joint functional-security correctness. Yet substantial knowledge--actuation gaps remain: models can recognize relevant security principles but still fail to translate them into secure and functional code. These findings offer a principle-centered account of where AI secure code generation stands today and identify concrete paths forward through principle-guided generation, evaluation, benchmarking, and agentic workflows.