SecureVibe: Making Vibe Coding More Secure

Danqing Wang, Baolin Peng, Zhepei Wei, Isadora White, Wenlin Yao +6 more
9/29/2026
cs.CRcs.CL

No confident code implementation found for this paper.

Abstract

As vibe coding becomes increasingly capable and widespread, security vulnerabilities in even functionally correct solutions are a growing concern. When investigating functionally correct but insecure solutions, we find that the insecure agent is less than half as likely to conduct effective planning and testing for the hidden security risks behind the functional requirements.

Show full abstract

Motivated by this, we develop SECUREVIBE, a training recipe that explicitly targets planning and testing for code security. SECUREVIBE constructs training signals around these security behaviors. It includes supervised fine-tuning on the security suite with 4 security tasks, and post-training methods, SECUREVIBE_rl and SECUREVIBE_hg, to enhance security capabilities from verifiable execution feedback and hint-based self-supervision. Our SECUREVIBE outperforms the baseline on two types of security coding tasks across 4 benchmarks. Specifically, SECUREVIBE improves the security pass@1 by 6.9 points on BaxBench. The gains extend to unseen CWE categories, with improvements of 11.5 points on SusVibes. Meanwhile, it also improves functionality pass@1 by 13.6 points on the security coding task SusVibes and 4.1 points on the generic coding task SWE-bench Verified. Further analysis offers two practical insights: (i) diversifying supervision across security planning, coding, and testing strengthens security behaviors more effectively than adding coding trajectories alone, and (ii) hint-guided supervision is particularly valuable when the agent's existing security capabilities are insufficient to learn effectively from outcome feedback.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026securevibe,
  title  = {SecureVibe: Making Vibe Coding More Secure},
  author = {Danqing Wang and Baolin Peng and Zhepei Wei and Isadora White and Wenlin Yao and Hao Cheng and Qianhui Wu and Minseon Kim and Xingdi Yuan and Lei Li and Jianfeng Gao},
  year   = {2026},
  eprint = {2609.38606},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.38606v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.38606.svg)](https://codeofpaper.com/paper/2609.38606)

Discussion