Lune

ICSE2023Top-tier venue

VULGEN: Realistic Vulnerability Generation Via Pattern Mining and Deep Learning

Yu Nong, Yuzhe Ou, Michael Pradel, Feng Chen, Haipeng Cai

Abstract

Building new, powerful data-driven defenses against prevalent software vulnerabilities needs sizable, quality vulnerability datasets, so does large-scale benchmarking of existing defense solutions. Automatic data generation would promisingly meet the need, yet there is little work aimed to generate much-needed quality vulnerable samples. Meanwhile, existing similar and adaptable techniques suffer critical limitations for that purpose. In this paper, we present VULGEN, the first injection-based vulnerability-generation technique that is not limited to a particular class of vulnerabilities. VULGEN combines the strengths of deterministic (pattern-based) and probabilistic (deep-learning/DL-based) program transformation approaches while mutually overcoming respective weaknesses. This is achieved through close collaborations between pattern mining/application and DL-based injection localization, which separates the concerns with how and where to inject. By leveraging large, pretrained programming language modeling and only learning locations, VULGEN mitigates its own needs for quality vulnerability data (for training the localization model). Extensive evaluations show that VULGEN significantly outperforms a state-of-the-art (SOTA) pattern-based peer technique as well as both Transformer- and GNN-based approaches in terms of the percentages of generated samples that are vulnerable and those also exactly matching the ground truth (by 38.0-430.1% and 16.3-158.2%, respectively). The VULGEN-generated samples led to substantial performance improvements for two SOTA DL-based vulnerability detectors (by up to 31.8% higher in F1), close to those brought by the ground-truth real-world samples and much higher than those by the same numbers of existing synthetic samples.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • VulRepair: a T5-based automated software vulnerability repair cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • VulRepair: a T5-based automated software vulnerability repair cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • VulRepair: a T5-based automated software vulnerability repair cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
  • VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability Analyses cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability Analyses cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability Analyses cites VulRepair: a T5-based automated software vulnerability repair
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
  • Template-Guided Program Repair in the Era of Large Language Models cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • Template-Guided Program Repair in the Era of Large Language Models cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Template-Guided Program Repair in the Era of Large Language Models cites VulRepair: a T5-based automated software vulnerability repair
  • Template-Guided Program Repair in the Era of Large Language Models cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • Template-Guided Program Repair in the Era of Large Language Models cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
  • Template-Guided Program Repair in the Era of Large Language Models cites An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair
  • Learning to Detect and Localize Multilingual Bugs cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • Learning to Detect and Localize Multilingual Bugs cites VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability Analyses
  • An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair cites VulRepair: a T5-based automated software vulnerability repair
  • An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair cites CURE: Code-Aware Neural Machine Translation for Automatic Program Repair
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. An Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program RepairKai Huang, Xiangxin Meng, Jian Zhang, Yang Liu et al.ASE 2023 · 91 citations
  2. Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection SystemsSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo et al.ICSE 2024 · 27 citations
  3. VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability AnalysesYu Nong, Richard Fang, Guangbei Yi, Kunsong Zhao et al.ICSE 2024 · 23 citations
  4. Learning to Detect and Localize Multilingual BugsHaoran Yang, Yu Nong, Tao Zhang, Xiapu Luo et al.FSE 2024 · 8 citations
  5. Template-Guided Program Repair in the Era of Large Language ModelsKai Huang, Jian Zhang, Xiangxin Meng, Yang LiuICSE 2025 · 7 citations

Builds on14

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan et al.EMNLP Findings 2020 · 2,828 citations
  2. CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and GenerationYue Wang, Weishi Wang, Shafiq R. Joty, Steven C. H. HoiEMNLP 2021 · 1,224 citations
  3. CURE: Code-Aware Neural Machine Translation for Automatic Program RepairNan Jiang, Thibaud Lutellier, Lin TanICSE 2021 · 267 citations
  4. Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 citations
  5. VulRepair: a T5-based automated software vulnerability repairMichael Fu, Chakkrit Tantithamthavorn, Trung Le, Van Nguyen et al.FSE 2022 · 206 citations

Related papers

  1. Generating realistic vulnerabilities via neural code editing: an empirical studyYu Nong, Yuzhe Ou, Michael Pradel, Feng Chen et al.FSE 2022 · 23 citations
  2. Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability DetectionBenjamin Steenhoek, Hongyang Gao, Wei LeICSE 2024 · 54 citations
  3. Are We Learning the Right Features? A Framework for Evaluating DL-Based Software Vulnerability Detection SolutionsSatyaki Das, Syeda Tasnim Fabiha, Saad Shafiq, Nenad MedvidovicICSE 2025 · 1 citation
  4. GVI: Guided Vulnerability Imagination for Boosting Deep Vulnerability DetectorsHeng Yong, Zhong Li, Minxue Pan, Tian Zhang et al.ICSE 2025 · 2 citations
  5. Exploring and Improving Real-World Vulnerability Data Generation via Prompting Large Language ModelsGuangbei Yi, Yu Nong, Minzhang Li, Haipeng CaiICSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines