Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

SCGAgent: Recreating the Benefits of Reasoning Models for Secure Code Generation with Agentic Workflows (2506.07313v1)

Published 8 Jun 2025 in cs.CR

Abstract: LLMs have seen widespread success in code generation tasks for different scenarios, both everyday and professional. However current LLMs, despite producing functional code, do not prioritize security and may generate code with exploitable vulnerabilities. In this work, we propose techniques for generating code that is more likely to be secure and introduce SCGAgent, a proactive secure coding agent that implements our techniques. We use security coding guidelines that articulate safe programming practices, combined with LLM-generated unit tests to preserve functional correctness. In our evaluation, we find that SCGAgent is able to preserve nearly 98% of the functionality of the base Sonnet-3.7 LLM while achieving an approximately 25% improvement in security. Moreover, SCGAgent is able to match or best the performance of sophisticated reasoning LLMs using a non-reasoning model and an agentic workflow.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Rebecca Saul (4 papers)
  2. Hao Wang (1120 papers)
  3. Koushik Sen (49 papers)
  4. David Wagner (67 papers)

Summary

We haven't generated a summary for this paper yet.