基于上下文相关词嵌入的领域生成算法的在线检测
Inline Detection of Domain Generation Algorithms with Context-Sensitive Word Embeddings
摘要:
域生成算法(DGAs)经常被恶意软件用来生成用于连接到命令和控制(C2)服务器的域。最近在DGA检测方面的工作利用了深度学习架构,如卷积神经网络(CNN)和字符级长短期记忆网络(LSTM)来对域进行分类。然而,这些分类器与基于单词列表的DGA家族一起表现不佳,DGA家族通过伪随机连接字典单词来生成域。我们提出了一种新的方法,结合上下文敏感的词嵌入与一个简单的全连接分类器进行分类的领域的基础上,词级信息。词嵌入在大型无关语料库上进行预训练,并在领域数据的训练期间保持冻结。由此产生的少量可训练参数使训练持续时间极短,而存储在表示中的语言知识的转移允许使用小训练数据集的高性能模型。我们表明,这种架构可靠地优于现有的技术,基于单词表的DGA家庭,只有30 DGA训练样本,并实现了最先进的性能与约100 DGA训练样本,同时需要一个数量级更少的时间来训练相比,目前的技术。特别值得注意的是该技术在matsnu DGA上的性能:该分类器在仅30个DGA域示例的训练后达到了89.5%的检测率和1:1,000的假阳性率(FPR),并且在90个示例后达到了91.2%的检测率和1:10,000的FPR。考虑到这些DGA中的一些具有数百个单词的单词列表,我们的研究结果表明,这种技术不依赖于分类器学习DGA单词列表。相反,分类器能够学习基于单词列表的DGA家族的语义签名。
英文摘要:
Domain generation algorithms (DGAs) are frequently employed by malware to generate domains used for connecting to command-and-control (C2) servers. Recent work in DGA detection leveraged deep learning architectures like convolutional neural networks (CNNs) and character-level long short-term memory networks (LSTMs) to classify domains. However, these classifiers perform poorly with wordlist-based DGA families, which generate domains by pseudorandomly concatenating dictionary words. We propose a novel approach that combines context-sensitive word embeddings with a simple fully-connected classifier to perform classification of domains based on word-level information. The word embeddings were pre-trained on a large unrelated corpus and left frozen during the training on domain data. The resulting small number of trainable parameters enabled extremely short training durations, while the transfer of language knowledge stored in the representations allowed for high-performing models with small training datasets. We show that this architecture reliably outperformed existing techniques on wordlist-based DGA families with just 30 DGA training examples and achieved state-of-the-art performance with around 100 DGA training examples, all while requiring an order of magnitude less time to train compared to current techniques. Of special note is the technique's performance on the matsnu DGA: the classifier attained a 89.5% detection rate with a 1:1,000 false positive rate (FPR) after training on only 30 examples of the DGA domains, and a 91.2% detection rate with a 1:10,000 FPR after 90 examples. Considering that some of these DGAs have wordlists of several hundred words, our results demonstrate that this technique does not rely on the classifier learning the DGA wordlists. Instead, the classifier is able to learn the semantic signatures of the wordlist-based DGA families.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。