1 min read

CPU Power Usage - Sandbox Evasive Technique

A short proof of concept for detecting a virtual machine or sandbox by looking at CPU power usage.

Note on older research: This article was published before 2022. The technical breakdown remains accurate, though external links or tools mentioned may have changed.

A stack of laptop processors on a wooden desk.
Hi Folks, I'm not usually in this kind of paper, but this time, I am exceptionally writing a really short one about something related to some VM evasive PoC. There is always some tricks to detect if you are running on a virtual machine or not. Most of them are stupid, but it's enough accurate to just lose some minds when you have to harden your sandbox. The idea here, there are some sensors to check the current CPU Power Usage. When you see as below, it returns this kind of values, when you are running a program normally. Screenshot: RealMachine But in a sandbox, it will return 0. AntiVM Source: Original source #HappyHunting

The GIF that used to sit here is no longer available: it was hosted on gfycat, which has shut down.

Photo by Shawn Stutzman from Pexels      
Topics covered

#Anti-VM

THE END Thanks for reading · 140 words

Reader comments 1

ToastMangler
Interesting how a few years ago VM detection was as simple as detecting reg keys and file paths (which could be mitigated). Three to four years ago they were looking for VMs by the number of cores. Now it's just pushing the limitations by seeing what data you can't obtain from the hardware (temps, power, etc.). Fascinating evolution of evasion techniques. Here's another great article related to this: https://www.andreafortuna.org/dfir/malware-analysis/malware-vm-detection-techniques-evolving-an-analysis-of-gravityrat/

Comments are archived. Get in touch if you have a question.