arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.19257cs.CRcs.AI
收藏

海报:基于滑动窗口注意力的长PHP WebShell文件检测

Poster: Long PHP webshell files detection based on sliding window attention

Beijing Municipal Public Security Bureau(北京市公安局)

Zhiqiang Wang, Haoyu Wang, Lu Hao

AI总结:

本研究提出一种基于滑动窗口注意力的PHP WebShell检测方法,通过操作码双元组提取和CodeBert与FastText模型结合,有效检测长文件中的恶意行为,达到高准确率。

摘要:

WebShell是一种后门,Web应用程序广泛面临WebShell注入攻击的风险。因此,研究WebShell检测技术具有重要意义。在本研究中,我们提出了一种WebShell检测方法。我们首先将PHP源代码转换为操作码,然后提取操作码双元组(ODTs)。接下来,我们结合CodeBert和FastText模型进行特征表示和分类。为了解决深度学习方法难以检测长WebShell文件的挑战,我们引入了滑动窗口注意力机制。该方法能够有效捕获长文件中的恶意行为。实验结果表明,我们的方法在WebShell检测中达到了高准确率,解决了传统方法难以应对新型WebShell变体和反检测技术的问题。

英文摘要:

Webshell is a type of backdoor, and web applications are widely exposed to webshell injection attacks. Therefore, it is important to study webshell detection techniques. In this study, we propose a webshell detection method. We first convert PHP source code to opcodes and then extract Opcode Double-Tuples (ODTs). Next, we combine CodeBert and FastText models for feature representation and classification. To address the challenge that deep learning methods have difficulty detecting long webshell files, we introduce a sliding window attention mechanism. This approach effectively captures malicious behavior within long files. Experimental results show that our method reaches high accuracy in webshell detection, solving the problem of traditional methods that struggle to address new webshell variants and anti-detection techniques.

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

↑