GRFuzz: A Deep Reinforcement Learning Approach to Python Library Fuzzing with GRPO

Viet Anh Le-Minh, Hai Anh Tran, Huy Hieu Nguyen, Nam Thang Hoang, Truong X. Tran

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

In the digital realm, ensuring the security and reliability of systems and software is of paramount importance. Fuzzing has emerged as one of the most effective testing techniques for uncovering vulnerabilities by systematically generating and executing test cases to explore unexpected software behaviors. While numerous studies have explored machine learningenhanced fuzzing for C libraries, research on applying machine learning techniques to fuzzing Python libraries remains limited. Given Python's widespread adoption in critical applications such as web development, data science, and cybersecurity, improving fuzzing efficiency for Python libraries is crucial for strengthening software security. In this paper, we propose a novel approach to fuzzing Python libraries using deep reinforcement learning (DRL), specifically leveraging the Group Relative Policy Optimization (GRPO) algorithm. Unlike traditional fuzzing methods that rely on random or heuristic-based input generation, our method dynamically learns and prioritizes test cases that maximize code coverage. To further enhance fuzzing effectiveness, we employ a greedy optimization strategy to fine-tune key hyperparameters, ensuring optimal performance. Our results demonstrate a 2.27% - 10.24% improvement in code coverage compared to both PPO-based fuzzing and the traditional Pythonfuzz, and a 28.50% - 33.25% reduction in memory consumption compared to PPO-based fuzzing. These results show that GRPO-based fuzzing can improve vulnerability detection while maintaining lower resource consumption.

Original languageEnglish (US)
Title of host publicationProceedings - 2025 IEEE International Conference on Information Reuse and Integration and Data Science, IRI 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages13-18
Number of pages6
ISBN (Electronic)9798331599447
DOIs
StatePublished - 2025
Event26th IEEE International Conference on Information Reuse and Integration and Data Science, IRI 2025 - San Jose, United States
Duration: Aug 6 2025Aug 8 2025

Publication series

NameProceedings - 2025 IEEE International Conference on Information Reuse and Integration and Data Science, IRI 2025

Conference

Conference26th IEEE International Conference on Information Reuse and Integration and Data Science, IRI 2025
Country/TerritoryUnited States
CitySan Jose
Period8/6/258/8/25

All Science Journal Classification (ASJC) codes

  • Information Systems
  • Information Systems and Management
  • Safety, Risk, Reliability and Quality
  • Computer Vision and Pattern Recognition

Fingerprint

Dive into the research topics of 'GRFuzz: A Deep Reinforcement Learning Approach to Python Library Fuzzing with GRPO'. Together they form a unique fingerprint.

Cite this