arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.02666cs.LGcs.AIcs.CR
收藏

用于端到端InfoSec任务的Transformers:可行性研究

Transformers for End-to-End InfoSec Tasks: A Feasibility Study

Mandiant Inc.(曼迪安特公司);Rochester Institute of Technology(罗切斯特理工学院)

Ethan M. Rudd, Mohammad Saidur Rahman, Philip Tully

摘要:

在本文中,我们评估的可行性Transformer模型在端到端InfoSec设置,其中没有中间功能表示或处理步骤发生在模型之外。我们实现了两种不同的InfoSec数据格式的Transformer模型-特别是URL和PE文件-在一个新的端到端的方法,并探讨了各种架构设计,培训制度,和实验设置,以确定性能检测模型所需的成分。我们表明,在传统的Transformers训练更标准的NLP相关的任务相比,我们的URL Transformer模型需要一个不同的训练方法,以达到高性能水平。具体来说,我们表明:1)在自回归任务的大量未标记URL数据语料库上进行预训练并不容易转移到恶意或良性URL的二进制分类,但2)使用辅助自回归损失可以提高从头开始训练时的性能。我们介绍了一种混合目标优化的方法,动态平衡两个损失项的贡献,使它们都不占主导地位。我们表明,这种方法产生的定量评价指标相媲美的几个表现最好的基准分类。与URL不同,二进制可执行文件包含更长、分布更广的信息丰富字节序列。为了适应这样长的字节序列,我们引入额外的上下文长度到Transformer通过提供自适应跨度类似Sukhbaatar等人的自关注层。我们证明了这种方法执行的恶意软件检测模型的基准PE文件数据集上的扩展,但也指出需要进一步探索模型的可扩展性和计算效率的改进。

英文摘要:

In this paper, we assess the viability of transformer models in end-to-end InfoSec settings, in which no intermediate feature representations or processing steps occur outside the model. We implement transformer models for two distinct InfoSec data formats - specifically URLs and PE files - in a novel end-to-end approach, and explore a variety of architectural designs, training regimes, and experimental settings to determine the ingredients necessary for performant detection models. We show that in contrast to conventional transformers trained on more standard NLP-related tasks, our URL transformer model requires a different training approach to reach high performance levels. Specifically, we show that 1) pre-training on a massive corpus of unlabeled URL data for an auto-regressive task does not readily transfer to binary classification of malicious or benign URLs, but 2) that using an auxiliary auto-regressive loss improves performance when training from scratch. We introduce a method for mixed objective optimization, which dynamically balances contributions from both loss terms so that neither one of them dominates. We show that this method yields quantitative evaluation metrics comparable to that of several top-performing benchmark classifiers. Unlike URLs, binary executables contain longer and more distributed sequences of information-rich bytes. To accommodate such lengthy byte sequences, we introduce additional context length into the transformer by providing its self-attention layers with an adaptive span similar to Sukhbaatar et al. We demonstrate that this approach performs comparably to well-established malware detection models on benchmark PE file datasets, but also point out the need for further exploration into model improvements in scalability and compute efficiency.

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

↑