paperbot · PL 论文追踪

全部论文 待读 收藏

P2 DeepSQLi: deep semantic learning for testing SQL injection

DeepSQLi:面向 SQL 注入测试的深度语义学习
ISSTA Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis2020匹配度 0/10 · 该论文聚焦于使用深度神经语言模型生成 SQL 注入测试用例,属于安全测试/软件测试领域,不涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,与研究画像的核心方向完全无关。引用 49 inbox
Muyang Liu, Ke Li, Tao Chen
crossref: 2026-09-12

AI 速览

一句话:提出 DeepSQLi,用深度神经语言模型学习 SQLi 攻击语义并生成测试用例,从而更高效地检测 SQL 注入漏洞。

Web 应用安全至关重要,SQL 注入(SQLi)是破坏性最强的攻击之一。自动测试 SQLi 漏洞却十分困难,因为 SQLi 变体与语义可能性数量巨大甚至无限。本文提出 DeepSQLi:采用深度神经语言模型与词序列预测,学习 SQLi 攻击中的语义知识,从而把用户输入或测试用例转换为语义相关、可能更复杂的新测试用例。作者在六个不同规模、特征与领域的真实 Web 应用上,与当前最优 SQLi 测试自动化工具 SQLmap 进行比较。结果显示,DeepSQLi 用更少测试用例发现了更多 SQLi 漏洞,同时运行速度显著更快。

问题
如何自动、高效地生成 SQLi 测试用例以检测 Web 应用中的 SQL 注入漏洞;难点在于 SQLi 变体及其语义可能性数量巨大甚至无限。
方法
提出 DeepSQLi,利用深度神经语言模型和词序列预测学习 SQLi 攻击的语义知识,将用户输入或测试用例转换为语义相关且可能更复杂的测试用例。
评估
在六个不同规模、特征与领域的真实 Web 应用上与 SQLmap 对比,DeepSQLi 用更少测试用例发现更多 SQLi 漏洞,且运行速度显著更快。
原文摘要(Abstract)

Security is unarguably the most serious concern for Web applications, to which SQL injection (SQLi) attack is one of the most devastating attacks. Automatically testing SQLi vulnerabilities is of ultimate importance, yet is unfortunately far from trivial to implement. This is because the existence of a huge, or potentially infinite, number of variants and semantic possibilities of SQL leading to SQLi attacks on various Web applications. In this paper, we propose a deep natural language processing based tool, dubbed DeepSQLi, to generate test cases for detecting SQLi vulnerabilities. Through adopting deep learning based neural language model and sequence of words prediction, DeepSQLi is equipped with the ability to learn the semantic knowledge embedded in SQLi attacks, allowing it to translate user inputs (or a test case) into a new test case, which is se- mantically related and potentially more sophisticated. Experiments are conducted to compare DeepSQLi with SQLmap, a state-of-the-art SQLi testing automation tool, on six real-world Web applications that are of different scales, characteristics and domains. Empirical results demonstrate the effectiveness and the remarkable superiority of DeepSQLi over SQLmap, such that more SQLi vulnerabilities can be identified by using a less number of test cases, whilst running much faster.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot6075,
  title = {DeepSQLi: deep semantic learning for testing SQL injection},
  author = {Muyang Liu and Ke Li and Tao Chen},
  booktitle = {ISSTA},
  year = {2020},
  doi = {10.1145/3395363.3397375}
}