《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 人工智能 > 设计应用 > 基于大语言模型的JS引擎模糊测试方法
基于大语言模型的JS引擎模糊测试方法
电子技术应用
丁加宇,沙乐天,潘家晔
南京邮电大学 计算机学院
摘要: 现有浏览器JavaScript引擎Fuzz工具在检测非崩溃类漏洞时存在不足。为此,提出一种结合内存检测与大语言模型的增强型漏洞检测方法。该方法改进Fuzz工具对潜在漏洞的判别能力,降低漏报率。同时,将大语言模型与常规变异器相结合,在PoC集激励下生成更复杂且具针对性的测试用例,有效探索深层代码路径,提升代码覆盖率。实验结果显示,改进后的工具在分支覆盖率和漏洞检测能力上较现有工具有效提升。
中圖分類號:TP309 文獻(xiàn)標(biāo)志碼:A DOI: 10.16157/j.issn.0258-7998.256463
中文引用格式: 丁加宇,沙樂天,潘家曄. 基于大語言模型的JS引擎模糊測試方法[J]. 電子技術(shù)應(yīng)用,2026,52(2):66-70.
英文引用格式: Ding Jiayu,Sha Letian,Pan Jiaye. Fuzz testing method for JavaScript engines based on large language model[J]. Application of Electronic Technique,2026,52(2):66-70.
Fuzz testing method for JavaScript engines based on large language model
Ding Jiayu,Sha Letian,Pan Jiaye
School of Computer Science, Nanjing University of Posts and Telecommunications
Abstract: Existing Fuzz tools for browser JavaScript engines are insufficient in detecting non-crashing vulnerabilities. To address this issue, an enhanced vulnerability detection method combining memory detection and large language models (LLMs) is proposed. This method improves the Fuzz tool's ability to identify potential vulnerabilities and reduces the false-negative rate. Additionally, the integration of LLMs with conventional mutators generates more complex and targeted test cases under the stimulus of Proof-of-Concept (PoC) sets, effectively exploring deeper code paths and increasing code coverage. Experimental results show that the improved tool significantly enhances branch coverage and vulnerability detection capabilities compared to existing tools.
Key words : Fuzz testing;JavaScript engine;use after free

引言

隨著互聯(lián)網(wǎng)普及,瀏覽器作為訪問在線服務(wù)、獲取信息和交流的關(guān)鍵工具,承載大量敏感信息,其安全性至關(guān)重要?,F(xiàn)代瀏覽器支持JavaScript引擎和WebAssembly等復(fù)雜功能,雖提升Web應(yīng)用交互性和性能,但也增加安全風(fēng)險(xiǎn),如JavaScript引擎出現(xiàn)過UAF、越界寫入和整數(shù)溢出等漏洞[1-3]。

模糊測試作為自動(dòng)化安全測試方法,可通過輸入大量隨機(jī)數(shù)據(jù)發(fā)現(xiàn)潛在漏洞[4],在復(fù)雜瀏覽器系統(tǒng)中優(yōu)勢顯著,但也面臨優(yōu)化測試策略、提高效率以及減少誤報(bào)和漏報(bào)等挑戰(zhàn)。

本文提出基于大語言模型的改進(jìn)方法,優(yōu)化測試用例生成和變異過程,提升Fuzz工具效率。借助大語言模型,生成更復(fù)雜且具針對性的測試用例,增強(qiáng)測試用例多樣性和覆蓋范圍,改進(jìn)工具還強(qiáng)化對內(nèi)存管理問題的檢測能力,尤其在UAF漏洞檢測方面,提高Fuzz工具在復(fù)雜程序空間中的漏洞探索能力。


本文詳細(xì)內(nèi)容請下載:

http://www.ihrv.cn/resource/share/2000006972


作者信息:

丁加宇,沙樂天,潘家曄

(南京郵電大學(xué) 計(jì)算機(jī)學(xué)院,江蘇 南京 210023)

2.jpg

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。