[1]关 慧,曹同洲.基于 CNN 和多注意力机制的 XSS 检测模型[J].计算机技术与发展,2023,33(04):175-181.[doi:10. 3969 / j. issn. 1673-629X. 2023. 04. 026]
 GUAN Hui,CAO Tong-zhou.XSS Detection Model Based on CNN and Multi-attention Mechanism[J].,2023,33(04):175-181.[doi:10. 3969 / j. issn. 1673-629X. 2023. 04. 026]
点击复制

基于 CNN 和多注意力机制的 XSS 检测模型()

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
33
期数:
2023年04期
页码:
175-181
栏目:
人工智能
出版日期:
2023-04-10

文章信息/Info

Title:
XSS Detection Model Based on CNN and Multi-attention Mechanism
文章编号:
1673-629X(2023)04-0175-07
作者:
关 慧12 曹同洲1
1. 沈阳化工大学 计算机科学与技术学院,辽宁 沈阳 110142;
2. 辽宁省化工过程工业智能化技术重点实验室,辽宁 沈阳 110142
Author(s):
GUAN Hui12 CAO Tong-zhou1
1. School of Computer Science and Technology,Shenyang University of Chemical Technology,Shenyang 110142,China;
2. Liaoning Province Key Laboratory of Industrial Intelligence Technology on Chemical Process,Shenyang 110142,China
关键词:
卷积神经网络多注意力机制XSS 攻击word2vec自注意力通道注意力
Keywords:
convolutional neural networkmulti-attention mechanismXSS attacksword2vecself attentionchannel attention
分类号:
TP391
DOI:
10. 3969 / j. issn. 1673-629X. 2023. 04. 026
摘要:
为了解决普通深度学习模型存在的难以区分信息重要性差异,以及单一注意力机制存在的关注维度单一的问题,文
中提出了一种基于卷积神经网络和多注意力机制的模型对 XSS 攻击进行检测。 首先,将经过 word2vec 转换后的数据输入到卷积神经网络提取局部特征;然后,使用自注意力模块学习数据的长距离依赖关系,并加强模型对序列维
度上重要特征的关注;接着,经过通道注意力模块从通道维度对不同的通道特征图加权;之后,将经注意力模块处理过的特征输入到池化层进行下采样处理,并使用 Dropout 层提高模型的泛化能力;最后,利用提取到的特征对样本进行分类。 使用测试数据集对文中提出的模型进行实验,结果显示,该模型对 XSS 攻击的检测效果良好,准确率与 F1 值相比其他深度学习模型有一定程度提升。
Abstract:
In order to solve the problems that ordinary deep learning models are difficult to distinguish the difference?
of the importance ofinformation,and the attention dimension of single attention mechanism is single,a model based on convolutional neural network and multi-attention mechanism is proposed to detect XSS attacks.?
Firstly, the data converted by word2vec are input into convolutional neuralnetwork to extract local features.?
Then, the self attention module is used to learn the long - distance dependencies of the data andstrengthen?
the model’s attention on the important features in the sequence dimension. Next, through the channel attention module, different channel feature maps are weighted from the channel dimension. After that,the features processed by the attention modules areinput into the pooling layer for down-sampling,and the Dropout layer?
is used to improve the generalization ability of the model. Finally,the extracted features are used to classify?
the samples. The test data set is used to test the proposed model,the results show that the modelhas a good detection effect on XSS attacks,the accuracy and F1 values are improved to a certain extent compared with other deep learningmodels.

相似文献/References:

[1]张丹丹,李雷. 基于PCANet-RF的人脸检测系统[J].计算机技术与发展,2016,26(02):31.
 ZHANG Dan-dan,LI Lei. Face Detection System Based on PCANet-RF[J].,2016,26(04):31.
[2]邓宗平,赵启军,陈虎. 基于深度学习的人脸姿态分类方法[J].计算机技术与发展,2016,26(07):11.
 DEND Zong-ping,ZHAO Qi-jun,CHEN Hu. Face Pose Classification Method Based on Deep Learning[J].,2016,26(04):11.
[3]戴晓薇,赵启军. 基于回归的指纹方向场估计[J].计算机技术与发展,2017,27(01):1.
 DAI Xiao-wei,ZHAO Qi-jun. Fingerprint Orientation Field Estimation Based on Regression[J].,2017,27(04):1.
[4]李宏林. 分析式纹理合成技术及其在深度学习的应用[J].计算机技术与发展,2017,27(11):7.
 LI Hong-lin. Analyzed Texture-synthesis Techniques and Their Applications in Deep Learning[J].,2017,27(04):7.
[5]周成伟. 基于卷积神经网络的自然场景中数字识别[J].计算机技术与发展,2017,27(11):101.
 ZHOU Cheng-wei. Recognition of Numbers in Natural Scene with Convolutional Neural Network[J].,2017,27(04):101.
[6]曲之琳,胡晓飞.基于改进激活函数的卷积神经网络研究[J].计算机技术与发展,2017,27(12):77.[doi:10.3969/ j. issn.1673-629X.2017.12.017]
 QU Zhi-lin,HU Xiao-fei.Research on Convolutional Neural Network Based on Improved Activation Function[J].,2017,27(04):77.[doi:10.3969/ j. issn.1673-629X.2017.12.017]
[7]傅 鹏,谢世朋.基于级联卷积神经网络的车牌定位[J].计算机技术与发展,2018,28(01):134.[doi:10.3969/ j. issn.1673-629X.2018.01.029]
 FU Peng,XIE Shi-peng.License Plate Location Based on Cascaded Convolution Neural Network[J].,2018,28(04):134.[doi:10.3969/ j. issn.1673-629X.2018.01.029]
[8]崔凤焦.表情识别算法研究进展与性能比较[J].计算机技术与发展,2018,28(02):145.[doi:10.3969/j.issn.1673-629X.2018.02.031]
 CUI Feng-jiao.Research and Performance Comparison of Facial Expression Recognition Algorithm[J].,2018,28(04):145.[doi:10.3969/j.issn.1673-629X.2018.02.031]
[9]陈强锐,谢世朋.基于深度学习的肺部肿瘤检测方法[J].计算机技术与发展,2018,28(04):201.[doi:10.3969/ j. issn.1673-629X.2018.04.043]
 CHEN Qiang-rui,XIE Shi-peng.Lung Cancer Detection Method Based on Deep Learning[J].,2018,28(04):201.[doi:10.3969/ j. issn.1673-629X.2018.04.043]
[10]郭子琰,舒心,刘常燕,等.基于ReLU 函数的卷积神经网络的花卉识别算法[J].计算机技术与发展,2018,28(05):154.[doi:10.3969/j.issn.1673-629X.2018.05.035]
 GUO Ziyan,SHU Xin,LIU Changyan,et al.A Recognition Algorithm of Flower Based on Convolution Neural Network with ReLU Function[J].,2018,28(04):154.[doi:10.3969/j.issn.1673-629X.2018.05.035]

更新日期/Last Update: 2023-04-10