Sandbox is one of the testing environments.
Each environments have particular purpose. It is critical, that the tester knows all the aspects of environments which could lead to better testing and QA strategy in the organization.
Types of environments:
DEV (Development)
QA (Testing)
SANDBOX (Isolated Virtual Environment)
STAGING (Pre-production)
PROD (Live)
DR (Disaster Recovery)
Sandbox-evading malware is a known type of malware (malicious software).
This malware can identify if it is within virtual machine environment or not.
Sandbox is a highly controlled environment that can be used to test unverified programs that may contain malicious codes with no loss to host device. However, these sandbox-evading malwares don’t perform their malicious code until they are out of the controlled environment.
There are several recent instances in the industry, where AI algorithms are used to these malwares for evading virtual environments.
Malware writers (aka cyber criminals) are users of sandbox environment themselves and to the fact, that there are more than 500 evasion techniques to avoid the detection and analysis.
There are many, to list few common Evasion Techniques includes that of,
Human-like behavior (Interaction detection – Like scrolling, mouse clicks)
System interaction detection (Shut down by payload, self-debugging)
File systems (Specific files, directories, strings)
Hooks (mouse hooks)
Generic OS Queries (Specific username, computer name, host name)
Global OS objects (Specific global mutexes, virtual device, pipes and objects)
Windows Management Interface (WMI) (Win32_Process Class, Task scheduler, Last boot time, last reset time)
Timing-based evasion – delayed execution (stalling, dropper, logic bomb, extended sleep)
Obfuscating internal data (encrypting API Calls, Domain Generation Algo (DGA))
Firmware tables (Specific strings – SMBIOS table)
UI Artifacts (class names)
Registry (registry paths, keys)
OS features (debug privileges, unbalanced stack)
Processes (Specific running processes, loaded libraries)
Network (Specific MAC address, adapter name, anti-emulation)
To address evasion/dodging, organization need to deploy strong systems (typically SaaS) that can bypass anti-sandbox strategies for evading detection and that can evaluate and continuously monitors the trend of threats which should potentially include that of vulnerabilities, exploits, active attacks, viruses and further malwares, such as spam, phishing, and malicious web content.
Further factors that need to be leveraged while monitoring should include categories such as,
Behaviors exhibited
Data Reputation (whether hosted on a suspicious IP/URL)
Digi Certificate (Correctly signed?)
Total Virus (Known sample?)
Industry reputation (popular application?)
Alongside, deploying detection mechanisms, such as, below list can effectively control and counter evasion.
Changing sleep duration dynamically
Human interaction simulation
Adding real environment and hardware artefacts
Apart from dynamic analysis, perform static analysis as well
Using fingerprint analysis
Using behavior-based analysis
Customizing the Sandbox
Adding kernel analysis
Implementing ML
Considering content disarm and reconstruction (CDR) – Extra Sec layer
These measures when combined and deployed can result in effective security solutioning for countering malware evasion.