Skip to content

A PowerShell script that attempts to help malware analysts hide their VMware Windows VM's from malware that may be trying to evade analysis.

License

Notifications You must be signed in to change notification settings

hartl3y94/VMwareCloak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

VMwareCloak

A PowerShell script that attempts to help malware analysts hide their VMware Windows VM's from malware that may be trying to evade analysis. Guaranteed to bring down your pafish ratings by at least a few points ;)

The script accomplishes this by doing the following:

  • Renames several registry keys that malware typically uses for VM detection.
  • Kills VMware processes.
  • Deletes VMware driver files (this will not crash your VM, since these drivers are loaded into memory anyway!).
  • Deletes or renames VMware supporting files.

For more info, see my blog post here: https://securityliterate.com/hiding-virtual-machines-from-malware-introducing-vmwarecloak-vboxcloak/

Note: This script will not cover ALL VM detection techniques! There are a lot of ways to detect a VM, and many of these cannot be fixed with a simple Powershell script. For example, techniques such as RDTSC and timing detection are not covered, neither is CPUID detection.

Tested on Windows 7 and Windows 10 - Probably works on Windows XP as well.

Spot any bugs? Let me know!

Usage

  1. Simply run VMwareCloak.ps1 as Administrator on your Windows VMware VM.
  2. Detonate your malware. Profit.
  3. When done, reset your VM to clean state.

Usage examples:

Make registry changes, remove VMware files, and kill VMware processes:

  • "VMwareCloak.ps1 -all"

Just make registry modificaitons:

  • "VMwareCloak.ps1 -reg"

Just remove VMware files:

  • "VMwareCloak.ps1 -files"

Just kill VMware processes:

  • "VMwareCloak.ps1 -procs"

Warnings & Disclaimers

  • This code is in Beta. I know I cuold have coded it better, but sometimes quick and dirty is best.
  • Use at your own risk! Use only in a VM, and NOT on your host.
  • Ensure to make a snapshot of your VM before running this.
  • Using the "files" and/or "procs" command line arguments will likely result in lower VM performance. This is because this script removes several files that are required for supporting functions such as graphics, keyboard input, etc. Just revert VM to clean state if this messes anything up.

About

A PowerShell script that attempts to help malware analysts hide their VMware Windows VM's from malware that may be trying to evade analysis.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%