Real malware rarely detonates blind โ it first fingerprints its own execution environment to tell an automated analysis sandbox apart from a genuine victim's PC. This sample checks four classic signals, each worth one suspicion point when it looks like a sandbox:
- System uptime โ a short uptime (freshly booted VM) is typical of an ephemeral sandbox image spun up per sample.
- Mouse-activity history โ no recorded cursor movement means no human has been using the machine; automated sandboxes rarely simulate a realistic input history.
- Virtualization artifacts โ VirtualBox/VMware registry keys, hypervisor CPUID bits and known driver names betray a VM.
- Analysis timing โ the sample requests a long
Sleep() and measures real elapsed time via RDTSC; if a hooked sandbox fast-forwards the call, elapsed time won't match the request.
The sample sums its suspicion score and applies a simple threshold, exactly like real loaders (e.g. variants seen pairing uptime + artifact checks before detonating):
score = ฮฃ suspicious_signal_i (i = 1..4)
verdict = score โฅ 2 ? STAY DORMANT : RUN PAYLOAD
The sandbox panel is fully tunable โ mimic a convincing real machine (long uptime, mouse history, no VM artifacts, consistent timing) and the same sample that stayed dormant will fire its encryption/exfiltration payload, exactly as it does against the fixed genuine victim machine on the right, which always looks legitimate and is always compromised.