作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2013, Vol. 39 ›› Issue (6): 154-157,161. doi: 10.3969/j.issn.1000-3428.2013.06.033

• 安全技术 • 上一篇    下一篇

基于哈希树和有限状态机的XSS检测模型

曹 文,郭 帆,余 敏,张 磊   

  1. (江西师范大学计算机信息工程学院,南昌 330022)
  • 收稿日期:2012-06-25 出版日期:2013-06-15 发布日期:2013-06-14
  • 作者简介:曹 文(1987-),男,硕士研究生,主研方向:信息安全,软件工程;郭 帆,副教授、博士;余 敏,教授、博士; 张 磊,硕士研究生
  • 基金资助:
    江西省教育厅科技基金资助项目(20101106);科技部国际合作基金资助项目(2010DFA70990)

XSS Detection Model Based on Hash Tree and Finite State Machine

CAO Wen, GUO Fan, YU Min, ZHANG Lei   

  1. (College of Computer and Information Engineering, Jiangxi Normal University, Nanchang 330022, China)
  • Received:2012-06-25 Online:2013-06-15 Published:2013-06-14

摘要: 目前对于跨站脚本(XSS)攻击缺乏有效的防御措施。针对该问题,提出一种基于哈希树的多模式匹配模型,以快速检测XSS攻击。将质数分辨定理作为哈希散列函数的基础,对特征值进行编码,使其成为特征节点进行动态增减,以构建哈希树,并结合改进的确定性有限状态机算法提取多模式相似度攻击向量,实现多模式匹配的快速检测。实验结果表明,该模型的检测准确率较高,漏报率和误报率较低,能满足大范围XSS脚本攻击的防范要求。

关键词: 哈希树, 跨站脚本, 相似度, 确定性有限状态机, 攻击向量

Abstract: Aiming at the lack of effective prevention measures against Cross-site Scripting(XSS) attacks, this paper proposes multi-pattern matching model for rapidly detection based on the Hash tree. The contributions include: Using prime resolution theorem as the basis of hash function; Adopting a series of encoded methods to the feature values; Dynamically adding nodes to build a Hash tree; Combining an improved deterministic finite state machine algorithm to extract multiple pattern similarity attack vectors for rapid detection of XSS. Experimental results show that this model can effectively prevent reflective XSS.

Key words: Hash tree, Cross-site Scripting(XSS), similarity, deterministic finite state machine, attack vector

中图分类号: