this post was submitted on 30 Oct 2025
26 points (100.0% liked)

cybersecurity

5120 readers
49 users here now

An umbrella community for all things cybersecurity / infosec. News, research, questions, are all welcome!

Community Rules

Enjoy!

founded 2 years ago
MODERATORS
 

Running suspicious software in a virtual machine seems like a basic precaution to figure out whether said software contains naughty code. Unfortunately it’s generally rather easy to detect whether or not one’s software runs inside a VM, with [bRootForce] going through a list of ways that a VirtualBox VM can be detected from inside the guest OS. While there are a range of obvious naming issues, such as the occurrence of the word ‘VirtualBox’ everywhere, there many more subtle ways too.

Demonstrated is the PoC ‘malware’ application called Al-Khaser, which can be used to verify one’s anti-malware systems, such as when trying to unleash a debugger on a piece of malware, run it inside a VM, along with many more uses. Among its anti-virtualization features are specific registry key names and values, file system artefacts, directory names, MAC addresses, virtual devices, etc.

In order to squeeze by those checks, [bRootForce] created the vbox_stealth shell script for Bash-blessed systems in order to use the VirtualBox Manager for the renaming of hardware identifier, along with the VBoxCloak project’s PowerShell script that’s used inside a Windows VirtualBox guest instance to rename registry keys, kill VirtualBox-specific processes, and delete VirtualBox-specific files.

top 2 comments
sorted by: hot top controversial new old
[–] Tramort@programming.dev 6 points 5 days ago (1 children)

why not go the other way, and make your computer look like it's a VM when it's not?

if malware writers didn't want to run in a VM then great! you are protected.

[–] Atherel@lemmy.dbzer0.com 1 points 5 days ago

Because there's other software you want to run but doesn't when it detects a vm. And you don't want to publish how to run that software in a vm because of lawyers.