LLM-based Dynamic Differential Testing for Database Connectors with Reinforcement Learning-Guided Prompt Selection
Ce Lyu, Minghao Zhao, Yanhao Wang, Liang Jie

TL;DR
This paper introduces a reinforcement learning-guided approach using large language models to generate dynamic test cases for database connectors, effectively uncovering security vulnerabilities that traditional fuzzing methods often miss.
Contribution
It presents a novel RL-guided prompt selection method for LLM-based testing of database connectors, improving coverage and vulnerability detection over existing techniques.
Findings
Reported 16 bugs in two JDBC connectors
Successfully identified unsafe implementations and confirmed vulnerabilities
Enhanced test coverage through dynamic prompt optimization
Abstract
Database connectors are critical components enabling applications to interact with underlying database management systems (DBMS), yet their security vulnerabilities often remain overlooked. Unlike traditional software defects, connector vulnerabilities exhibit subtle behavioral patterns and are inherently challenging to detect. Besides, nonstandardized implementation of connectors leaves potential risks (a.k.a. unsafe implementations) but is more elusive. As a result, traditional fuzzing methods are incapable of finding such vulnerabilities. Even for LLM-enable test case generation, due to a lack of domain knowledge, they are also incapable of generating test cases that invoke all interface and internal logic of connectors. In this paper, we propose reinforcement learning (RL)-guided LLM test-case generation for database connector testing. Specifically, to equip the LLM with sufficient…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsVLSI and Analog Circuit Testing · Engineering and Test Systems · Fault Detection and Control Systems
