arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.13041cs.CR
收藏

推进高速数据中心的 SQL 注入检测:一种使用级联 NLP 的新方法

Advancing SQL Injection Detection for High-Speed Data Centers: A Novel Approach Using Cascaded NLP

Kasim Tasdemir, Rafiullah Khan, Fahad Siddiqui, Sakir Sezer, Fatih Kurugollu, Sena Busra Yengec-Tasdemir, Alperen Bolat

AI总结:

本文提出融合经典 NLP 与 transformer 模型的级联 SQLi 检测方法,在 3 万余条 SQL 语句上对比 35 种方法,达到 99.86% 准确率且速度提升 20 倍。

摘要:

检测 SQL 注入(SQLi)攻击对于基于 Web 的数据中心安全至关重要,但如何平衡准确性与计算效率颇具挑战,尤其是在高速网络中。传统方法难以实现这种平衡,而基于 NLP 的方法虽然准确,却具有很高的计算开销。我们提出一种新颖的级联 SQLi 检测方法,融合经典 NLP 模型与基于 transformer 的 NLP 模型,实现了 99.86% 的检测准确率,同时计算需求显著降低——速度比单独使用基于 transformer 的模型快 20 倍。我们的方法在真实环境中进行了测试,并在包含超过 30,000 条 SQL 语句的数据集上与包括基于机器学习的方法和 BERT 等 transformer 模型在内的 35 种其他方法进行了比较。结果表明,这种混合方法能够在高流量环境中有效检测 SQLi,以较高的计算效率为 SQLi 漏洞提供高效且准确的防护。代码可在 https://github.com/gdrlab/cascaded-sqli-detection 获取。

英文摘要:

Detecting SQL Injection (SQLi) attacks is crucial for web-based data center security, but it is challenging to balance accuracy and computational efficiency, especially in high-speed networks. Traditional methods struggle with this balance, while NLP-based approaches, although accurate, are computationally intensive. We introduce a novel cascade SQLi detection method, blending classical and transformer-based NLP models, achieving a 99.86% detection accuracy with significantly lower computational demands-20 times faster than using transformer-based models alone. Our approach is tested in a realistic setting and compared with 35 other methods, including Machine Learning-based and transformer models like BERT, on a dataset of over 30,000 SQL sentences. Our results show that this hybrid method effectively detects SQLi in high-traffic environments, offering efficient and accurate protection against SQLi vulnerabilities with computational efficiency. The code is available at https://github.com/gdrlab/cascaded-sqli-detection .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑