Approach to Forming Vulnerability Datasets for Fine-Tuning AI Agents
This study addresses the problem of identifying vulnerabilities in open-source code by exploring existing methods of code analysis and evaluating the feasibility of automating security assessments using large language models (LLMs). We propose an approach for constructing high-quality datasets to fine-tune LLMs for software security analysis. Our methodology involves collecting and processing vulnerability data, filtering and curating security-related code changes, and structuring datasets to optimize model fine-tuning. We present an algorithm for aggregating vulnerability data sources and constructing a dataset specifically for training security-focused LLMs. To validate our approach, we fine-tune models from the Qwen family for software vulnerability detection in Python codebases during development and testing. Our findings demonstrate that the proposed method enables the development of intelligent, continuously adaptable AI agents capable of identifying and analyzing emerging zero-day vulnerabilities, not only in Python but also in other structurally similar programming languages.
Authors
- Alexander A. Zakharov (ORCID: https://orcid.org/0000-0002-1050-8145)
- Kirill I. Gladkikh
Institutions
- University of Tyumen (RU)
Publication Details
- Published
- 2025-03-24
- DOI
- https://doi.org/10.1109/smartindustrycon65166.2025.10986048
- Primary Topic
- Advanced Data Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00