恶意软件动态分析中虚拟机内存的增量编码

J. Fowler
{"title":"恶意软件动态分析中虚拟机内存的增量编码","authors":"J. Fowler","doi":"10.1109/DCC.2016.66","DOIUrl":null,"url":null,"abstract":"Summary form only given. Malware is an ever-increasing threat to personal, corporate, and government computing systems alike. Particularly in the corporate and government sectors, the attribution of malware - including the identification of the authorship of malware as well as potentially the malefactor responsible for an attack - is of growing interest. Such malware attribution is often enabled by the fact that malware authors build on the work of others through the use of generators, libraries, and borrowed code. Determining malware phylogeny - the evolutionary history of and the derivative relations between malware - is consequently an endeavor of increasing importance, with a growing focus on the dynamic analysis of malware which involves executing a malware sample and determining the actions it takes after some period of operation. In most cases, such dynamic analysis occurs in a virtual machine, or \"sandbox,\" in order to confine the malware to an environment in which it can do no harm to real systems. In sandbox-driven dynamic analysis of malware, a virtual machine is typically run starting from some known, malware-free baseline state. The malware is injected into the virtual machine, and the machine is allowed to run for some period of time during which the malware presumably activates. The machine is then suspended, and the current machine memory is dumped to disk. The process may then be repeated for other malware samples, each time starting from the baseline state. Stored in raw form on the disk, the dumped memory file is the same size as the virtual-machine memory, for virtual machines running modern operating systems, such memory would likely be no less than 512 MB but could be up to several GBs. If the corresponding memory dumps are to be retained for repeated analysis - as is likely to be required in order to determine a phylogeny for a large database of malware samples - lossless compression of the memory dumps is necessarily to prevent explosive disk usage. For example, the VirusShare project maintains a database of over 19 million malware samples, running these in a virtual machine with 512 MB of memory would require of 9 petabytes (PB) of storage to retain the memory dumps. In this paper, we develop a scheme for the lossless compression of memory dumps resulting from the repeated execution of malware samples in a virtual-machine sandbox. Rather than compress each memory dump individually, we capitalize on the fact that memory dumps stem from a known baseline virtual-machine state and code with respect to this baseline memory. Additionally, to further improve compression efficiency, we exploit the fact that a significant portion of the difference between the baseline memory and that of the currently running machine is the result of the loading of known executable programs and shared libraries. Consequently, we propose delta coding to compress the current virtual-machine memory dump by coding its differences with respect to a predicted memory image, with the latter formed by duplicating the loading of the executables and libraries into the baseline memory, resulting in a significant improvement in compression performance over straightforward delta coding alone. In experimental results for a body of malware samples, the proposed approach outperformed the widely used xdelta3 delta coder by approximately 20% and the popular generic gzip coder by 79%.","PeriodicalId":302276,"journal":{"name":"2016 Data Compression Conference (DCC)","volume":"17 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":"{\"title\":\"Delta Encoding of Virtual-Machine Memory in the Dynamic Analysis of Malware\",\"authors\":\"J. Fowler\",\"doi\":\"10.1109/DCC.2016.66\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Summary form only given. Malware is an ever-increasing threat to personal, corporate, and government computing systems alike. Particularly in the corporate and government sectors, the attribution of malware - including the identification of the authorship of malware as well as potentially the malefactor responsible for an attack - is of growing interest. Such malware attribution is often enabled by the fact that malware authors build on the work of others through the use of generators, libraries, and borrowed code. Determining malware phylogeny - the evolutionary history of and the derivative relations between malware - is consequently an endeavor of increasing importance, with a growing focus on the dynamic analysis of malware which involves executing a malware sample and determining the actions it takes after some period of operation. In most cases, such dynamic analysis occurs in a virtual machine, or \\\"sandbox,\\\" in order to confine the malware to an environment in which it can do no harm to real systems. In sandbox-driven dynamic analysis of malware, a virtual machine is typically run starting from some known, malware-free baseline state. The malware is injected into the virtual machine, and the machine is allowed to run for some period of time during which the malware presumably activates. The machine is then suspended, and the current machine memory is dumped to disk. The process may then be repeated for other malware samples, each time starting from the baseline state. Stored in raw form on the disk, the dumped memory file is the same size as the virtual-machine memory, for virtual machines running modern operating systems, such memory would likely be no less than 512 MB but could be up to several GBs. If the corresponding memory dumps are to be retained for repeated analysis - as is likely to be required in order to determine a phylogeny for a large database of malware samples - lossless compression of the memory dumps is necessarily to prevent explosive disk usage. For example, the VirusShare project maintains a database of over 19 million malware samples, running these in a virtual machine with 512 MB of memory would require of 9 petabytes (PB) of storage to retain the memory dumps. In this paper, we develop a scheme for the lossless compression of memory dumps resulting from the repeated execution of malware samples in a virtual-machine sandbox. Rather than compress each memory dump individually, we capitalize on the fact that memory dumps stem from a known baseline virtual-machine state and code with respect to this baseline memory. Additionally, to further improve compression efficiency, we exploit the fact that a significant portion of the difference between the baseline memory and that of the currently running machine is the result of the loading of known executable programs and shared libraries. Consequently, we propose delta coding to compress the current virtual-machine memory dump by coding its differences with respect to a predicted memory image, with the latter formed by duplicating the loading of the executables and libraries into the baseline memory, resulting in a significant improvement in compression performance over straightforward delta coding alone. In experimental results for a body of malware samples, the proposed approach outperformed the widely used xdelta3 delta coder by approximately 20% and the popular generic gzip coder by 79%.\",\"PeriodicalId\":302276,\"journal\":{\"name\":\"2016 Data Compression Conference (DCC)\",\"volume\":\"17 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-03-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"5\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2016 Data Compression Conference (DCC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/DCC.2016.66\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 Data Compression Conference (DCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DCC.2016.66","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5

摘要

只提供摘要形式。恶意软件对个人、企业和政府计算系统的威胁越来越大。特别是在企业和政府部门,恶意软件的归属——包括识别恶意软件的作者以及对攻击负责的潜在犯罪分子——正日益引起人们的兴趣。这种恶意软件的归属通常是由于恶意软件作者通过使用生成器、库和借来的代码来构建他人的工作。因此,确定恶意软件的系统发育——恶意软件的进化历史和派生关系——是一项越来越重要的工作,越来越多的人关注恶意软件的动态分析,包括执行恶意软件样本并确定在一段时间的操作后它所采取的行动。在大多数情况下,这种动态分析发生在虚拟机或“沙箱”中,以便将恶意软件限制在不会对实际系统造成损害的环境中。在沙箱驱动的恶意软件动态分析中,虚拟机通常从一些已知的、无恶意软件的基线状态开始运行。恶意软件被注入到虚拟机中,并且允许虚拟机运行一段时间,在此期间恶意软件可能会被激活。然后挂起机器,并将当前机器内存转储到磁盘。然后可以对其他恶意软件样本重复此过程,每次都从基线状态开始。转储内存文件以原始形式存储在磁盘上,其大小与虚拟机内存相同,对于运行现代操作系统的虚拟机,此类内存可能不少于512 MB,但可能高达几gb。如果要保留相应的内存转储以供重复分析——为了确定大型恶意软件样本数据库的系统发育,可能需要这样做——必须对内存转储进行无损压缩,以防止爆炸性的磁盘使用。例如,VirusShare项目维护着一个包含超过1900万个恶意软件样本的数据库,在512 MB内存的虚拟机中运行这些样本将需要9 PB的存储空间来保留内存转储。在本文中,我们开发了一种在虚拟机沙箱中重复执行恶意软件样本所产生的内存转储的无损压缩方案。我们没有单独压缩每个内存转储,而是利用了这样一个事实,即内存转储源于一个已知的基线虚拟机状态和相对于该基线内存的代码。此外,为了进一步提高压缩效率,我们利用了这样一个事实,即基线内存和当前运行的机器内存之间的很大一部分差异是加载已知的可执行程序和共享库的结果。因此,我们建议采用增量编码来压缩当前虚拟机内存转储,方法是将其与预测内存映像的差异进行编码,后者是通过将可执行文件和库的加载复制到基线内存中形成的,这与直接的增量编码相比,可以显著提高压缩性能。在大量恶意软件样本的实验结果中,所提出的方法比广泛使用的xdelta3 delta编码器高出约20%,比流行的通用gzip编码器高出79%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Delta Encoding of Virtual-Machine Memory in the Dynamic Analysis of Malware
Summary form only given. Malware is an ever-increasing threat to personal, corporate, and government computing systems alike. Particularly in the corporate and government sectors, the attribution of malware - including the identification of the authorship of malware as well as potentially the malefactor responsible for an attack - is of growing interest. Such malware attribution is often enabled by the fact that malware authors build on the work of others through the use of generators, libraries, and borrowed code. Determining malware phylogeny - the evolutionary history of and the derivative relations between malware - is consequently an endeavor of increasing importance, with a growing focus on the dynamic analysis of malware which involves executing a malware sample and determining the actions it takes after some period of operation. In most cases, such dynamic analysis occurs in a virtual machine, or "sandbox," in order to confine the malware to an environment in which it can do no harm to real systems. In sandbox-driven dynamic analysis of malware, a virtual machine is typically run starting from some known, malware-free baseline state. The malware is injected into the virtual machine, and the machine is allowed to run for some period of time during which the malware presumably activates. The machine is then suspended, and the current machine memory is dumped to disk. The process may then be repeated for other malware samples, each time starting from the baseline state. Stored in raw form on the disk, the dumped memory file is the same size as the virtual-machine memory, for virtual machines running modern operating systems, such memory would likely be no less than 512 MB but could be up to several GBs. If the corresponding memory dumps are to be retained for repeated analysis - as is likely to be required in order to determine a phylogeny for a large database of malware samples - lossless compression of the memory dumps is necessarily to prevent explosive disk usage. For example, the VirusShare project maintains a database of over 19 million malware samples, running these in a virtual machine with 512 MB of memory would require of 9 petabytes (PB) of storage to retain the memory dumps. In this paper, we develop a scheme for the lossless compression of memory dumps resulting from the repeated execution of malware samples in a virtual-machine sandbox. Rather than compress each memory dump individually, we capitalize on the fact that memory dumps stem from a known baseline virtual-machine state and code with respect to this baseline memory. Additionally, to further improve compression efficiency, we exploit the fact that a significant portion of the difference between the baseline memory and that of the currently running machine is the result of the loading of known executable programs and shared libraries. Consequently, we propose delta coding to compress the current virtual-machine memory dump by coding its differences with respect to a predicted memory image, with the latter formed by duplicating the loading of the executables and libraries into the baseline memory, resulting in a significant improvement in compression performance over straightforward delta coding alone. In experimental results for a body of malware samples, the proposed approach outperformed the widely used xdelta3 delta coder by approximately 20% and the popular generic gzip coder by 79%.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书