中国科学技术大学学报 ›› 2019, Vol. 49 ›› Issue (2): 166-172.DOI: 10.3969/j.issn.0253-2778.2019.02.012

• 原创论文 • 上一篇    

基于贝叶斯网络的XSS攻击检测方法

王培超   

  1. 国防科技大学信息系统工程重点实验室,湖南长沙 410073
  • 收稿日期:2018-10-04 修回日期:2018-12-04 出版日期:2019-02-28 发布日期:2019-02-28
  • 通讯作者: 周鋆
  • 作者简介:王培超,男1993年生,硕士生.研究方向: 人工智能. E-mail: peichaow@163.com
  • 基金资助:
    国家自然科学基金(61703416),湖南省自然科学基金(2018JJ3614)资助.

XSS attack detection based on Bayesian network

WANG Peichao   

  1. Science and Technology on Information Systems Engineering Laboratory, National University of Defense Technology, Changsha, 410073, China
  • Received:2018-10-04 Revised:2018-12-04 Online:2019-02-28 Published:2019-02-28

摘要: 跨站脚本(XSS)攻击是最严重的网络攻击之一.传统的XSS检测方法主要从漏洞本身入手,多依赖于静态分析和动态分析,在多样化的攻击载荷(payload)面前显得力不从心.为此提出一种基于贝叶斯网络的XSS攻击检测方法,通过领域知识获取该网络中的节点.利用领域知识构建的本体为贝叶斯网络的构建提供良好的特征选择基础,并从中提取了17个特征,同时从公开渠道搜集的恶意IP和恶意域名为该模型及时检测新型攻击补充有力规则.为验证所提方法的有效性,在实际收集的XSS攻击数据集上进行实验,结果表明,在面对多样化的攻击时,该方法可以保持90%以上的检测准确率.

关键词: 跨站脚本(XSS)攻击检测, 贝叶斯网络, 领域知识, 恶意IP, 恶意域名

Abstract: Cross-site scripting (XSS) attack is one of the most serious cyber-attacks. Traditional XSS detection methods mainly focus on the vulnerability itself, relying on static analysis and dynamic analysis, which appear weak in defending the flood of various kinds of payloads. An XSS attack detection method is proposed based on the Bayesian network, in which the nodes are acquired with domain knowledge. The ontology constructed with domain knowledge provides a good basis for feature selection, and 17 features have been abstracted from it; besides, malicious IPs and malicious domain names collected from open source channels make effective complement rules for the detection of new attacks. To validate the proposed method, experiments were conducted on a collected real-world dataset about XSS attacks. The results show that the proposed method could maintain a detection accuracy of above 90%.

Key words: cross-site scripting (XSS) attack detection, bayesian network, domain knowledge, malicious IP, malicious domain name