• 基于BERT-GAN的SQL注入攻击检测方法研究

    Research on SQL injection attacks detection method based on BERT-GAN

    • 针对主流检测方法识别SQL注入攻击面临的检测准确率不高和用于训练的大量真实数据集通常难以获取的问题,提出了一种用于检测SQL注入攻击的BERT-GAN网络模型。通过半监督学习方案来综合对抗样本,采用微调的BERT模型处理未标记数据,利用生成对抗网络区分对抗性和真实示例以及检测恶意和良性样本。实验结果表明,模型在公开管理和标准化数据集sqli,sqliv2和自建的sqli-extend数据集上与基于CNN、LSTM、BERT-Base、GAN-Base模型的SQL注入攻击检测方法对比,准确率、精确率、召回率和F1值均有一定程度提高。模型的目标损失函数收敛速度更快说明所提模型具有高效性。

       

      Abstract: A BERT-GAN network model for detecting SQL injection attacks is proposed to solve the problems faced by the mainstream detection methods, such as low detection accuracy and difficult to obtain a large number of real data sets for training. The confrontation samples are synthesized by a Semi-Supervised Learning scheme.The unmarked data is processed using the fine-tuning of BERT-like architectures.Adversarial and real examples as well as detecting malicious and benign samples are distinguished by generating confrontation settings. The experimental results demonstrate that the accuracy, precision, recall and F1 score of the proposed model have been enhanced to a certain degree on openly managed and standardized datasets such as sqli, sqliv2 and self-built sqli-extend datasets. These improvements are observed in comparison to SQL injection detection methods based on CNN, LSTM, BERT-Base, and GAN-Base models. Furthermore, the faster convergence rate of the target loss function indicates that the proposed model exhibits high efficiency.

       

    /

    返回文章
    返回