arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1009.3711cs.SEcs.CRcs.LG
收藏

生成变异XSS攻击的攻击向量结构学习

Structural Learning of Attack Vectors for Generating Mutated XSS Attacks

National Taiwan University of Science and Technology(台湾科技大学);Academia Sinica(中央研究院)

Yi-Hsun Wang, Ching-Hao Mao, Hahn-Ming Lee

摘要:

Web应用程序遭受跨站脚本(XSS)攻击,这是由于不完整或不正确的输入清理。学习攻击向量的结构可以丰富XSS攻击的表现形式。在这项研究中,我们专注于产生更具威胁性的XSS攻击的国家的最先进的检测方法,可以发现潜在的XSS漏洞在Web应用程序中,并提出了一种机制,攻击向量的结构学习的目的是产生突变的XSS攻击在一个完全自动的方式。变异XSS攻击的产生依赖于攻击向量的分析和结构学习机制。在学习机制的核心部分,我们使用隐马尔可夫模型(HMM)作为攻击向量模型的结构,以捕捉攻击向量的隐含方式,这种方式得益于所提出的标记化机制所标注的语法意义。利用贝叶斯定理确定模型中隐状态的个数,对结构模型进行了推广。本文的主要贡献在于:(1)从实际数据分析中自动学习攻击向量的结构,建立攻击向量的结构模型;(2)模仿攻击向量的方式和元素,扩展了XSS漏洞检测工具的识别能力;(3)有助于验证Web应用程序黑名单清理程序的缺陷。我们使用从公共XSS档案中收集的数据集评估了Burp Intruder提出的机制。结果表明,变异XSS攻击生成可以识别潜在的漏洞。

英文摘要:

Web applications suffer from cross-site scripting (XSS) attacks that resulting from incomplete or incorrect input sanitization. Learning the structure of attack vectors could enrich the variety of manifestations in generated XSS attacks. In this study, we focus on generating more threatening XSS attacks for the state-of-the-art detection approaches that can find potential XSS vulnerabilities in Web applications, and propose a mechanism for structural learning of attack vectors with the aim of generating mutated XSS attacks in a fully automatic way. Mutated XSS attack generation depends on the analysis of attack vectors and the structural learning mechanism. For the kernel of the learning mechanism, we use a Hidden Markov model (HMM) as the structure of the attack vector model to capture the implicit manner of the attack vector, and this manner is benefited from the syntax meanings that are labeled by the proposed tokenizing mechanism. Bayes theorem is used to determine the number of hidden states in the model for generalizing the structure model. The paper has the contributions as following: (1) automatically learn the structure of attack vectors from practical data analysis to modeling a structure model of attack vectors, (2) mimic the manners and the elements of attack vectors to extend the ability of testing tool for identifying XSS vulnerabilities, (3) be helpful to verify the flaws of blacklist sanitization procedures of Web applications. We evaluated the proposed mechanism by Burp Intruder with a dataset collected from public XSS archives. The results show that mutated XSS attack generation can identify potential vulnerabilities.

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

↑