[논문 리뷰] LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights
대형 언어 모델이 소프트웨어의 취약점 탐지에 어떻게 사용되는지에 대한 포괄적 고찰로, 아키텍처, 벤치마크, 데이터셋, 평가 지표, 기법 및 향후 과제를 다룹니다. 현재 추세, 데이터셋, 교차 언어 및 저장소 수준 탐지의 격차를 강조합니다.
Large Language Models (LLMs) are emerging as transformative tools for software vulnerability detection, addressing critical challenges in the security domain. Traditional methods, such as static and dynamic analysis, often falter due to inefficiencies, high false positive rates, and the growing complexity of modern software systems. By leveraging their ability to analyze code structures, identify patterns, and generate repair suggestions, LLMs, exemplified by models like GPT, BERT, and CodeBERT, present a novel and scalable approach to mitigating vulnerabilities. This paper provides a detailed survey of LLMs in vulnerability detection. It examines key aspects, including model architectures, application methods, target languages, fine-tuning strategies, datasets, and evaluation metrics. We also analyze the scope of current research problems, highlighting the strengths and weaknesses of existing approaches. Further, we address challenges such as cross-language vulnerability detection, multimodal data integration, and repository-level analysis. Based on these findings, we propose solutions for issues like dataset scalability, model interpretability, and applications in low-resource scenarios. Our contributions are threefold: (1) a systematic review of how LLMs are applied in vulnerability detection; (2) an analysis of shared patterns and differences across studies, with a unified framework for understanding the field; and (3) a summary of key challenges and future research directions. This work provides valuable insights for advancing LLM-based vulnerability detection. We also maintain and regularly update latest selected paper on https://github.com/OwenSanzas/LLM-For-Vulnerability-Detection
연구 동기 및 목표
- 취약점 탐지에 사용되는 LLM 아키텍처를 평가하고 보안 작업에 왜 적합한지 분석합니다.
- LLM 기반 취약점 탐지를 평가하기 위해 설계된 데이터셋, 벤치마크 및 지표를 평가합니다.
- 현재 연구에서 효과적인 기법, 프롬프팅 전략 및 평가 방법을 식별합니다.
- 실제 맥락에서 LLM 기반 취약점 탐지를 발전시키기 위한 도전 과제와 방향을 제시합니다.
제안 방법
- 2019-2024년에 발표된 LLM을 이용한 취약점 탐지에 관한 80편이 넘는 논문(그 중 58편은 관련성이 높음)을 체계적으로 고찰.
- LLM 아키텍처를 인코더-전용, 인코더-디코더, 디코더-전용 그룹으로 분류.
- 함수 수준, 파일 수준, 커밋 수준, 저장소 수준의 입체적 세분화에 따른 데이터셋 및 벤치마크 분석.
- 평가 지표를 분류, 생성, 효율성 범주로 합성.
- 다양한 언어 및 맥락에서의 패턴, 모범 사례 및 격차 식별.
- 향후 연구 방향과 자원 필요성 제안.
실험 결과
연구 질문
- RQ1RQ1: 취약점 탐지에 적용된 LLM은 무엇인가?
- RQ2RQ2: 취약점 탐지를 평가하기 위해 어떤 벤치마크, 데이터셋 및 지표가 설계되었나?
- RQ3RQ3: 취약점 탐지에 LLM에서 어떤 기법들이 사용되었나?
- RQ4RQ4: 취약점 탐지에서 LLM이 직면한 도전 과제와 이를 해결할 수 있는 잠재적 방향은 무엇인가?
주요 결과
- C/C++, Java, 및 Solidity가 지배적인 대상 언어이며; C/C++의 메모리 관련 취약점이 주요 초점입니다.
- 디코더-전용 모델(예: GPT 시리즈, CodeLlama)이 파인튜닝 연구의 다수를 차지하는 반면, 인코더-전용 모델은 이해 작업에서 여전히 일반적입니다.
- GPT-4 및 GPT-3.5가 연구 전반에서 가장 자주 사용되는 LLM이며; GPT-4는 여러 보고서에서 강력한 성능으로 주목됩니다.
- 벤치마크 데이터셋은 함수 수준, 파일 수준, 커밋 수준 및 저장소 수준에 걸쳐 있으며, BigVul, CVEfixes, Devign, Juliet, CWE-Bench-Java 등이 널리 사용되는 데이터셋입니다.
- 가용 데이터셋에는 언어 불균형이 존재하며(대략 50-60% C/C++, Java가 대표되지 않음), 실제 상황에 대한 포괄적 저장소 수준 데이터셋의 부족이 있습니다.
- 현재 데이터셋은 흔히 좁은 범위에 의존하고 데이터 누출 위험을 보이며, 더 크고 현실적이며 저장소 규모의 데이터 및 파일 간 컨텍스트 모델링이 필요합니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.