一种用于攻击性使用的CPython内存嵌入
An In-memory Embedding of CPython for Offensive Use
摘要:
我们提供了一个CPython的嵌入,它完全在内存中运行,而不“接触”磁盘。这种内存嵌入可以直接从内存中加载Python脚本,而不是从磁盘上的文件中加载这些脚本。仅驻留在内存中的恶意软件更难检测或缓解。我们希望我们的工作能被安全研究人员用来快速开发和部署攻击性技术,这些技术是安全产品难以分析的,因为这些指令是字节码,只能在执行前由解释器翻译成机器码。我们的工作有助于安全研究人员和企业红队谁发挥进攻。Red Teams希望为他们的定期活动快速制作恶意软件原型,并且不希望他们的恶意软件在完成目标之前被事件响应(IR)团队检测到。红队也很难从磁盘上的文件在生产中运行恶意软件,因为现代企业安全产品会模拟,检查或隔离这些文件,因为这些文件没有声誉。我们的工作还帮助企业Hunt和IR团队了解这种攻击的可行性。我们的方法已经在生产中使用了一年多,满足了客户快速模拟威胁参与者的任务、技术和程序(TTP)的需求。
英文摘要:
We offer an embedding of CPython that runs entirely in memory without "touching" the disk. This in-memory embedding can load Python scripts directly from memory instead these scripts having to be loaded from files on disk. Malware that resides only in memory is harder to detect or mitigate against. We intend for our work to be used by security researchers to rapidly develop and deploy offensive techniques that is difficult for security products to analyze given these instructions are in bytecode and only translated to machine-code by the interpreter immediately prior to execution. Our work helps security researchers and enterprise Red Teams who play offense. Red Teams want to rapidly prototype malware for their periodic campaigns and do not want their malware to be detected by the Incident Response (IR) teams prior to accomplishing objectives. Red Teams also have difficulty running malware in production from files on disk as modern enterprise security products emulate, inspect, or quarantine such executables given these files have no reputation. Our work also helps enterprise Hunt and IR teams by making them aware of the viability of this type of attack. Our approach has been in use in production for over a year and meets our customers' needs to quickly emulate threat-actors' tasks, techniques, and procedures (TTPs).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。