超越检测:面向细粒度Webshell家族分类的全面基准和研究
Beyond Detection: A Comprehensive Benchmark and Study on Representation Learning for Fine-Grained Webshell Family Classification
AI总结:
本文提出自动化WebShell家族分类方法,通过动态函数调用轨迹和图结构抽象,评估多种表示方法以提升细粒度分类效果。
摘要:
恶意WebShell pose 一个显著且不断演变的威胁,通过 compromising 关键数字基础设施,并危及 healthcare 和 finance 等领域的公共服务。尽管研究社区在WebShell检测(即区分恶意样本与良性样本)方面取得了显著进展,但我们认为是时候从被动检测转向深入分析和主动防御。一个有前途的方向是WebShell家族分类的自动化,这涉及识别特定的恶意软件谱系,以了解对手的战术并实现精确快速的响应。然而,这项关键任务仍然是一个几乎未被探索的领域,目前依赖于缓慢、手动专家分析。为了解决这一缺口,我们提出了第一个系统研究来自动化WebShell家族分类。我们的方法从提取动态函数调用轨迹开始,以捕捉内在行为,这些行为对常见的加密和混淆具有抵抗力。为了增强我们数据集的规模和多样性以获得更稳定的评估,我们通过大型语言模型合成新的变体来增强这些现实轨迹。这些增强的轨迹随后被抽象为序列、图和树,为基准一系列全面的表示方法提供了基础。我们的评估涵盖了经典的序列基于嵌入(CBOW,GloVe),transformers(BERT,SimCSE),以及一系列结构感知算法,包括图核,图编辑距离,图2vec,以及各种图神经网络。通过在四个现实世界、家族注释的数据集上进行广泛实验,在监督和非监督设置下,我们建立了一个稳健的基线,并提供了关于最有效的数据抽象、表示模型和学习范式组合的实用见解。
英文摘要:
Malicious WebShells pose a significant and evolving threat by compromising critical digital infrastructures and endangering public services in sectors such as healthcare and finance. While the research community has made significant progress in WebShell detection (i.e., distinguishing malicious samples from benign ones), we argue that it is time to transition from passive detection to in-depth analysis and proactive defense. One promising direction is the automation of WebShell family classification, which involves identifying the specific malware lineage in order to understand an adversary's tactics and enable a precise, rapid response. This crucial task, however, remains a largely unexplored area that currently relies on slow, manual expert analysis. To address this gap, we present the first systematic study to automate WebShell family classification. Our method begins with extracting dynamic function call traces to capture inherent behaviors that are resistant to common encryption and obfuscation. To enhance the scale and diversity of our dataset for a more stable evaluation, we augment these real-world traces with new variants synthesized by Large Language Models. These augmented traces are then abstracted into sequences, graphs, and trees, providing a foundation to benchmark a comprehensive suite of representation methods. Our evaluation spans classic sequence-based embeddings (CBOW, GloVe), transformers (BERT, SimCSE), and a range of structure-aware algorithms, including Graph Kernels, Graph Edit Distance, Graph2Vec, and various Graph Neural Networks. Through extensive experiments on four real-world, family-annotated datasets under both supervised and unsupervised settings, we establish a robust baseline and provide practical insights into the most effective combinations of data abstractions, representation models, and learning paradigms for this challenge.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。