字节序列可视为图像:利用位移与n-gram嵌入的CNN进行文件碎片分类
A Byte Sequence is Worth an Image: CNN for File Fragment Classification Using Bit Shift and n-Gram Embeddings
AI总结:
本文提出Byte2Image方法,通过滑动字节窗口和n-gram嵌入将文件碎片转为二维图像,以引入字节内信息,并结合CNN融合网络实现文件碎片分类,在FFT-75数据集上取得显著准确率提升。
摘要:
对内存小块进行文件碎片分类(FFC)在内存取证和互联网安全中至关重要。现有方法主要将文件碎片视为一维字节信号,并利用捕获到的字节间特征进行分类,而字节内部的比特信息(即字节内信息)很少被考虑。这对于符号以可变比特数表示的变长编码文件分类本质上是不合适的。为此,我们提出Byte2Image,一种新颖的数据增强技术,将被忽视的字节内信息引入文件碎片中,并将其重新视为二维灰度图像,从而能够通过强大的卷积神经网络(CNN)同时捕获字节间和字节内相关性。具体而言,为了将文件碎片转换为二维图像,我们采用滑动字节窗口来暴露被忽视的字节内信息,并将其n-gram特征逐行堆叠。我们进一步提出一个字节序列与图像融合网络作为分类器,能够联合建模原始一维字节序列和转换后的二维图像以执行FFC。在FFT-75数据集上的实验验证了我们提出的方法在几乎所有场景下都能比最先进方法取得显著的准确率提升。代码将在https://github.com/wenyang001/Byte2Image发布。
英文摘要:
File fragment classification (FFC) on small chunks of memory is essential in memory forensics and Internet security. Existing methods mainly treat file fragments as 1d byte signals and utilize the captured inter-byte features for classification, while the bit information within bytes, i.e., intra-byte information, is seldom considered. This is inherently inapt for classifying variable-length coding files whose symbols are represented as the variable number of bits. Conversely, we propose Byte2Image, a novel data augmentation technique, to introduce the neglected intra-byte information into file fragments and re-treat them as 2d gray-scale images, which allows us to capture both inter-byte and intra-byte correlations simultaneously through powerful convolutional neural networks (CNNs). Specifically, to convert file fragments to 2d images, we employ a sliding byte window to expose the neglected intra-byte information and stack their n-gram features row by row. We further propose a byte sequence \& image fusion network as a classifier, which can jointly model the raw 1d byte sequence and the converted 2d image to perform FFC. Experiments on FFT-75 dataset validate that our proposed method can achieve notable accuracy improvements over state-of-the-art methods in nearly all scenarios. The code will be released at https://github.com/wenyang001/Byte2Image.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。