• bitcoinBitcoin(BTC)$83,822.00-0.25%
  • ethereumEthereum(ETH)$2,670.29-0.45%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$771.89-0.02%
  • rippleXRP(XRP)$1.532.06%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$116.031.15%
  • tronTRON(TRX)$0.338547-1.44%
  • zcashZcash(ZEC)$1,539.061.53%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.75%
  • HyperliquidHyperliquid(HYPE)$91.98-0.35%
  • dogecoinDogecoin(DOGE)$0.0948120.76%
  • moneroMonero(XMR)$570.241.86%
  • chainlinkChainlink(LINK)$13.378.09%
  • whitebitWhiteBIT Coin(WBT)$83.64-1.01%
  • USDSUSDS(USDS)$1.00-0.01%
  • cardanoCardano(ADA)$0.2473482.99%
  • RainRain(RAIN)$0.011916-2.14%
  • leo-tokenLEO Token(LEO)$8.79-2.20%
  • stellarStellar(XLM)$0.2178547.65%
  • bitcoin-cashBitcoin Cash(BCH)$331.40-2.06%
  • nearNEAR Protocol(NEAR)$4.464.67%
  • uniswapUniswap(UNI)$9.07-1.31%
  • litecoinLitecoin(LTC)$70.693.37%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • CantonCanton(CC)$0.1165956.84%
  • daiDai(DAI)$1.000.00%
  • avalanche-2Avalanche(AVAX)$10.16-0.40%
  • USD1USD1(USD1)$1.00-0.02%
  • suiSui(SUI)$1.015.21%
  • hedera-hashgraphHedera(HBAR)$0.0918630.81%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.41-1.29%
  • shiba-inuShiba Inu(SHIB)$0.0000060.87%
  • BittensorBittensor(TAO)$295.652.75%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • crypto-com-chainCronos(CRO)$0.0643433.11%
  • MemeCoreMemeCore(M)$1.21-3.97%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BitwayBitway(BTW)$1.00-6.15%
  • OndoOndo(ONDO)$0.5527.88%
  • tether-goldTether Gold(XAUT)$4,274.58-0.18%
  • okbOKB(OKB)$119.09-0.73%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.07%
  • EthenaEthena(ENA)$0.2201005.66%
  • mantleMantle(MNT)$0.671.62%
  • aaveAave(AAVE)$143.493.06%
  • polkadotPolkadot(DOT)$1.152.31%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

VulScribeR: A Large Language Model-Based Approach for Generating Diverse and Realistic Vulnerable Code Samples

August 12, 2024
in AI & Technology
Reading Time: 4 mins read
A A
VulScribeR: A Large Language Model-Based Approach for Generating Diverse and Realistic Vulnerable Code Samples
ShareShareShareShareShare

In software engineering, detecting vulnerabilities in code is a crucial task that ensures the security & reliability of software systems. If left unchecked, vulnerabilities can lead to significant security breaches, compromising the integrity of software and the data it handles. Over the years, the development of automated tools to detect these vulnerabilities has become increasingly important, particularly as software systems grow more complex and interconnected.

A significant challenge in developing these automated tools is the lack of extensive and diverse datasets required to effectively train deep learning-based vulnerability detection (DLVD) models. Without sufficient data, these models struggle to accurately identify and generalize different types of vulnerabilities. This problem is compounded by the fact that existing methods for generating vulnerable code samples are often limited in scope, focusing on specific types of vulnerabilities and requiring large, well-curated datasets to be effective.

Traditionally, approaches to generating vulnerable code have relied on methods like mutation and injection. Mutation involves altering vulnerable code samples to create new ones, maintaining the code’s functionality while introducing slight variations. Conversely, injection involves inserting vulnerable code segments into clean code to generate new samples. While these methods have shown promise, they are often restricted in generating diverse and complex vulnerabilities, which are crucial for training robust DLVD models.

Researchers from the University of Manitoba and Washington State University introduced a novel approach called VulScribeR, designed to address these challenges. VulScribeR employs large language models (LLMs) to generate diverse and realistic vulnerable code samples through three strategies: Mutation, Injection, and Extension. This approach leverages advanced techniques such as retrieval-augmented generation (RAG) and clustering to enhance the diversity and relevance of the generated samples, making them more effective for training DLVD models.

The methodology behind VulScribeR is sophisticated and well-structured. The Mutation strategy prompts the LLM to modify vulnerable code samples, ensuring that the changes do not alter the code’s original functionality. The Injection strategy involves retrieving similar vulnerable and clean code samples, with the LLM injecting the vulnerable logic into the clean code to create new samples. The Extension strategy takes this a step further by incorporating parts of clean code into already vulnerable samples, thereby enhancing the contextual diversity of the vulnerabilities. To ensure the quality of the generated code, a fuzzy parser filters out any invalid or syntactically incorrect samples.

In terms of performance, VulScribeR has demonstrated significant improvements over existing methods. The Injection strategy, for instance, outperformed several baseline approaches, including NoAug, VulGen, VGX, and ROS, with F1-score improvements of 30.80%, 27.48%, 27.93%, and 15.41%, respectively, when generating an average of 5,000 vulnerable samples. When scaled up to 15,000 samples, the Injection strategy achieved even more impressive results, surpassing the same baselines by 53.84%, 54.10%, 69.90%, and 40.93%. These results underscore the effectiveness of VulScribeR in generating high-quality, diverse datasets that significantly enhance the performance of DLVD models.

The success of VulScribeR highlights the importance of large-scale data augmentation in the field of vulnerability detection. By generating diverse and realistic vulnerable code samples, this approach provides a practical solution to the data scarcity problem that has long hindered the development of effective DLVD models. VulScribeR’s innovative use of LLMs, combined with advanced data augmentation techniques, represents a significant advancement in the field, paving the way for more effective and scalable vulnerability detection tools in the future.


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter..

Don’t Forget to join our 48k+ ML SubReddit

Find Upcoming AI Webinars here



Nikhil is an intern consultant at Marktechpost. He is pursuing an integrated dual degree in Materials at the Indian Institute of Technology, Kharagpur. Nikhil is an AI/ML enthusiast who is always researching applications in fields like biomaterials and biomedical science. With a strong background in Material Science, he is exploring new advancements and creating opportunities to contribute.

YOU MAY ALSO LIKE

Fastino Releases GLiNER2.5-Decide: A 340M Open-Weight Decision Model That Runs on CPU

Black Forest Labs Releases FLUX 3 Action: A 7B Open-Weights World Action Model That Tops RoboLab-120


Credit: Source link

ShareTweetSendSharePin

Related Posts

Fastino Releases GLiNER2.5-Decide: A 340M Open-Weight Decision Model That Runs on CPU
AI & Technology

Fastino Releases GLiNER2.5-Decide: A 340M Open-Weight Decision Model That Runs on CPU

September 25, 2026
Black Forest Labs Releases FLUX 3 Action: A 7B Open-Weights World Action Model That Tops RoboLab-120
AI & Technology

Black Forest Labs Releases FLUX 3 Action: A 7B Open-Weights World Action Model That Tops RoboLab-120

September 25, 2026
Warzone Is Adding A Button To Hide All The Goofy Skins
AI & Technology

Warzone Is Adding A Button To Hide All The Goofy Skins

September 24, 2026
How These AI Glasses Compare
AI & Technology

How These AI Glasses Compare

September 24, 2026
Next Post
Hallie Jackson NOW – April 9 | NBC News NOW

Hallie Jackson NOW - April 9 | NBC News NOW

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Dog reunited with owner after deadly floods in Nepal

Dog reunited with owner after deadly floods in Nepal

September 21, 2026
How To Improve Your Audio Quality On Netflix

How To Improve Your Audio Quality On Netflix

September 20, 2026
Russian arena says Kanye West concerts will not happen

Russian arena says Kanye West concerts will not happen

September 24, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!