Malware Analysis Sandbox Testing Methodology

  • Zoltan Balazs MRG Effitas


Manual processing of malware samples became impossible years ago. Sandboxes are used to automate the analysis of malware samples to gather information about the dynamic behaviour of the malware, both at AV companies and at enterprises. Some malware samples use known techniques to detect when it runs in a sandbox, but most of these sandbox detection techniques can be easily detected and thus flagged as malicious. I invented new approaches to detect these sandboxes. I developed a tool, which can collect a lot of interesting information from these sandboxes to create statistics how the current technologies work. After analysing these results I will demonstrate tricks to detect sandboxes. These tricks can’t be easily flagged as malicious. Some sandboxes don’t not interact with the Internet in order to block data extraction, but with some DNS-fu the information can be extracted from these appliances as well.


N. Rin, EP_XOFF, Virtual Machines Detection Enhanced, 2013,

Michael Boman, Making Virtualbox nearly undetectable, 2014

William Metcalf, Cuckoo building scripts, 2015,

Jurriaan Bremer, "VMCloak, a tool for automatically creating and configuring Virtual Machines for Cuckoo Sandbox", 2015,

VirtualBox Anti-AntiVM, 2014,

Peter Kleissner, AVTracker,

SpiderLabs Research, Magnitude Exploit Kit Backend Infrastructure Insight - Part II, 2014,

Christian Amman, Hyperion: Implementation of a PE-Crypter, Nullsecurity, 2012,

James Wyke, Duping the machine - malware strategies, post sandbox detection, 2015,

Ben Baker, Alex Chiu, Threat Spotlight: Rombertik – Gazing Past the Smoke, Mirrors, and Trapdoors, 2015,

Kaspersky Labs' Global Research & Analysis Team, Animals in the APT Farm, 2015,

Joe Giron, Bypassing FireEye, ToorCon 15,

Th4nat0s, No_Sandboxes,

hfiref0x, VBoxHardenedLoader,

Conference short papers