Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models

The growing trend of vulnerability issues in software development as a result of a large dependence on open-source projects has received considerable attention recently. This paper investigates the effectiveness of Large Language Models (LLMs) in identifying vulnerabilities within codebases, with a...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Sultana, Shaznin, Afreen, Sadia, Eisty, Nasir U
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Sultana, Shaznin
Afreen, Sadia
Eisty, Nasir U
description The growing trend of vulnerability issues in software development as a result of a large dependence on open-source projects has received considerable attention recently. This paper investigates the effectiveness of Large Language Models (LLMs) in identifying vulnerabilities within codebases, with a focus on the latest advancements in LLM technology. Through a comparative analysis, we assess the performance of emerging LLMs, specifically Llama, CodeLlama, Gemma, and CodeGemma, alongside established state-of-the-art models such as BERT, RoBERTa, and GPT-3. Our study aims to shed light on the capabilities of LLMs in vulnerability detection, contributing to the enhancement of software security practices across diverse open-source repositories. We observe that CodeGemma achieves the highest F1-score of 58\ and a Recall of 87\, amongst the recent additions of large language models to detect software security vulnerabilities.
doi_str_mv 10.48550/arxiv.2409.10490
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2409_10490</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2409_10490</sourcerecordid><originalsourceid>FETCH-arxiv_primary_2409_104903</originalsourceid><addsrcrecordid>eNqFjrEOgkAQRK-xMOoHWLk_IJ4KidgRxFhoZ2jJqstlk-MgdweRvxeJvc3MFC-TJ8RyK4PwEEVyg_bNXbALZRxsZRjLqcjT-kWQt9qQxQdr9j2cyNPTc22OkEBaVw1a9NwRJAZ179hBXUJWkVVsFFzRKhrSqBaHcRv-tJuLSYna0eLXM7E6Z_f0sh4NisZyhbYvvibFaLL_T3wAYQo-VQ</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models</title><source>arXiv.org</source><creator>Sultana, Shaznin ; Afreen, Sadia ; Eisty, Nasir U</creator><creatorcontrib>Sultana, Shaznin ; Afreen, Sadia ; Eisty, Nasir U</creatorcontrib><description>The growing trend of vulnerability issues in software development as a result of a large dependence on open-source projects has received considerable attention recently. This paper investigates the effectiveness of Large Language Models (LLMs) in identifying vulnerabilities within codebases, with a focus on the latest advancements in LLM technology. Through a comparative analysis, we assess the performance of emerging LLMs, specifically Llama, CodeLlama, Gemma, and CodeGemma, alongside established state-of-the-art models such as BERT, RoBERTa, and GPT-3. Our study aims to shed light on the capabilities of LLMs in vulnerability detection, contributing to the enhancement of software security practices across diverse open-source repositories. We observe that CodeGemma achieves the highest F1-score of 58\ and a Recall of 87\, amongst the recent additions of large language models to detect software security vulnerabilities.</description><identifier>DOI: 10.48550/arxiv.2409.10490</identifier><language>eng</language><subject>Computer Science - Software Engineering</subject><creationdate>2024-09</creationdate><rights>http://creativecommons.org/licenses/by/4.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,781,886</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2409.10490$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2409.10490$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Sultana, Shaznin</creatorcontrib><creatorcontrib>Afreen, Sadia</creatorcontrib><creatorcontrib>Eisty, Nasir U</creatorcontrib><title>Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models</title><description>The growing trend of vulnerability issues in software development as a result of a large dependence on open-source projects has received considerable attention recently. This paper investigates the effectiveness of Large Language Models (LLMs) in identifying vulnerabilities within codebases, with a focus on the latest advancements in LLM technology. Through a comparative analysis, we assess the performance of emerging LLMs, specifically Llama, CodeLlama, Gemma, and CodeGemma, alongside established state-of-the-art models such as BERT, RoBERTa, and GPT-3. Our study aims to shed light on the capabilities of LLMs in vulnerability detection, contributing to the enhancement of software security practices across diverse open-source repositories. We observe that CodeGemma achieves the highest F1-score of 58\ and a Recall of 87\, amongst the recent additions of large language models to detect software security vulnerabilities.</description><subject>Computer Science - Software Engineering</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNqFjrEOgkAQRK-xMOoHWLk_IJ4KidgRxFhoZ2jJqstlk-MgdweRvxeJvc3MFC-TJ8RyK4PwEEVyg_bNXbALZRxsZRjLqcjT-kWQt9qQxQdr9j2cyNPTc22OkEBaVw1a9NwRJAZ179hBXUJWkVVsFFzRKhrSqBaHcRv-tJuLSYna0eLXM7E6Z_f0sh4NisZyhbYvvibFaLL_T3wAYQo-VQ</recordid><startdate>20240916</startdate><enddate>20240916</enddate><creator>Sultana, Shaznin</creator><creator>Afreen, Sadia</creator><creator>Eisty, Nasir U</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20240916</creationdate><title>Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models</title><author>Sultana, Shaznin ; Afreen, Sadia ; Eisty, Nasir U</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-arxiv_primary_2409_104903</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Computer Science - Software Engineering</topic><toplevel>online_resources</toplevel><creatorcontrib>Sultana, Shaznin</creatorcontrib><creatorcontrib>Afreen, Sadia</creatorcontrib><creatorcontrib>Eisty, Nasir U</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Sultana, Shaznin</au><au>Afreen, Sadia</au><au>Eisty, Nasir U</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models</atitle><date>2024-09-16</date><risdate>2024</risdate><abstract>The growing trend of vulnerability issues in software development as a result of a large dependence on open-source projects has received considerable attention recently. This paper investigates the effectiveness of Large Language Models (LLMs) in identifying vulnerabilities within codebases, with a focus on the latest advancements in LLM technology. Through a comparative analysis, we assess the performance of emerging LLMs, specifically Llama, CodeLlama, Gemma, and CodeGemma, alongside established state-of-the-art models such as BERT, RoBERTa, and GPT-3. Our study aims to shed light on the capabilities of LLMs in vulnerability detection, contributing to the enhancement of software security practices across diverse open-source repositories. We observe that CodeGemma achieves the highest F1-score of 58\ and a Recall of 87\, amongst the recent additions of large language models to detect software security vulnerabilities.</abstract><doi>10.48550/arxiv.2409.10490</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2409.10490
ispartof
issn
language eng
recordid cdi_arxiv_primary_2409_10490
source arXiv.org
subjects Computer Science - Software Engineering
title Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-17T15%3A06%3A20IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Code%20Vulnerability%20Detection:%20A%20Comparative%20Analysis%20of%20Emerging%20Large%20Language%20Models&rft.au=Sultana,%20Shaznin&rft.date=2024-09-16&rft_id=info:doi/10.48550/arxiv.2409.10490&rft_dat=%3Carxiv_GOX%3E2409_10490%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true