信息安全研究 ›› 2017, Vol. 3 ›› Issue (2): 145-150.

• 学术论文 • 上一篇    下一篇

基于语义分析的Webshell检测技术研究

易楠   

  1. 四川大学信息安全研究所
  • 收稿日期:2017-02-20 出版日期:2017-02-15 发布日期:2017-02-20
  • 通讯作者: 易楠
  • 作者简介:易楠 硕士研究生,主要研究方向为Web安全、网络攻防技术.

Semantics Based Webshell Detection Method Research

  • Received:2017-02-20 Online:2017-02-15 Published:2017-02-20

摘要: 提出了一种基于语义分析的Webshell检测方法,通过对文件进行语法分析,得到代码的行为节点和相关依赖关系,并通过风险模型匹配实现语义理解从而完成Webshell检测.在分析过程中提出了污点子树的获取方法,通过节点风险值评估表,准确定位Webshell文件恶意行为发生点,剔除无关影响因子.使用巴斯克范式对行为进行特征的提取和描述,构造风险模型.最后通过计算得到平滑的风险值曲线完成文件危险程度评估,通过阈值的调整可进行更精细的评估分析.在此基础上,完成了系统的设计和编写,对检测思路进行了验证.实验结果表明,基于语义的检测方法可以有效地对行为意图进行判断,区分正常文件和Webshell.

关键词: 语义分析, Webshell, 行为特征提取, 入侵检测, Web安全

Abstract: A semanticsbased Webshell detection method was proposed. This method obtained the code behavior and related dependencies by syntax analysis of the file, and achieved semantic understanding to complete the Webshell detection by the risk model. A critical abstract syntax subtree extraction method which can reject irrelevant factor and get the malicious behavior occurrence point was proposed. The description of behavior in risk model database was defined with BackusNaur Form, finally a smooth risk value curve could be obtained by graph matching algorithm, which can finish the criticality assessment of the file and can get a better result by adjusting the threshold A webshell detection system based on that detection method was designed and finished, the experimental results have demonstrated that the SemanticsBased method was effective in Webshell detection.

Key words: semantic analysis, Webshell, behavior signature extraction, intrusion detection, Web security