Reproduce “SecReason: Vulnerability Detection and In-Stream Self-Repair for LLM Code Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Ruidong Han, Zhensu Sun, Chengyan Ma, Yuqing Niu, Zhou Yang, Siqi Ma, David Lo
SecReason checks code as a reasoning model drafts it, inserting flaw-specific warnings so generation can resume before delivery. It extracts and incrementally scans code, then feeds findings into the retained reasoning stream. For Qwen3.6-35B-A3B on SecCodeBench, 72.8% of runs passed functional and security tests, versus 10.8% unassisted and 67.2% with post-hoc repair; results reflect task-specific rules and screened tasks.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.