Enhancing Code Security Specification Detection in Software Development with LLM
Preprint
- 3 June 2025
- preprint
- Published by MDPI AG in Preprints.org
Abstract
In order to improve the accuracy and efficiency of code security specification detection in the software development process, a large-scale language model (LLM)-based detection architecture is constructed to realize deep semantic parsing and structured rule matching for high-complexity code in multilingual environments. The research designs a security specification controlled language system integrating CFG and AST, covering 62 rule items, 480 types of semantic labels and 3000 AST nodes, and introduces a quintuple language model G = (N, Σ, P, S, C) to construct five types of key constraint domains, including variable naming, privilege boundaries, input validation and so on. The structural semantic graph with 2.1×10⁶ edges is constructed by graph neural network, and a deep detection model containing 690 million parameters is designed to support sliding window scanning and semantic embedding matching, adapting to 45 kinds of security constraint structures. The experiments are tested in 1.38 million function fragments, and the detection accuracy is more than 93%, among which the accuracy of memory access out-of-bounds class reaches 95.6%, which verifies the high adaptability and stability of the model in the aspects of function privilege control, input validation and memory security.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Generative AI for software testing: Harnessing large language models for automated and intelligent quality assuranceInternational Journal of Science and Research Archive, 2025
- BadCodePrompt: backdoor attacks against prompt engineering of large language models for code generationAutomated Software Engineering, 2025
- AI-Driven Innovations in Software Engineering: A Review of Current Practices and Future DirectionsApplied Sciences, 2025
- Code Obfuscation: A Comprehensive Approach to Detection, Classification, and Ethical ChallengesAlgorithms, 2025
- Come for syntax, stay for speed, write secure code: an empirical study of security weaknesses in Julia programsEmpirical Software Engineering, 2025
- Perceived Impact of AI-Based Tooling on Software Development Code QualitySN Computer Science, 2025
- Current and Future Trends for Sustainable Software Development: Software Security in Agile and Hybrid Agile through Bibliometric AnalysisJournal of Applied Data Sciences, 2024
- Motion Capture Data Denoising Based on LSTNet Autoencoder網際網路技術學刊, 2022