Skip to content

LucaBongiorni/antivmdetection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

#Antivmdetection

#Background:

A script to help you create templates which you can use with VirtualBox to make VM detection harder.

My first post on the subject was in 2012 and have after that been updated at random times. The blog format might have not been the best way of publishing the information and some people did make nice and "easy to apply" script based on the content.

As a way to make it easier for me to add new content, I have decided to do the very same.

The purpose of this script is to use, available settings without modifying the VirtualBox base. There are people who do really neat things by patching Virtualbox. But that is out of the scoop for this script. I think this approach has some merits as it does not (hopefully) break with every new release of VirtualBox. Overtime I have also included "things" that are not directly VM related but rather things malware is using to fingerprint known installations, I hope you don't mind..

The main script will create the following files:

  • One shell script, that can be used as a template, to be used from the host OS and applied to the VM that you like to modify.
  • A dump of the DSDT, that is used in the template script above.
  • A Windows batch file to be used inside the guest, to handle the settings that is not possible to change from the host.

#Notes:

  • When the antivmdetect script can't find any suitable values to use, it will comment these settings in the newly created script, with a "#". These needs manual review as they might have impact on what is displayed in the VM.
  • Create the VM, Verify that "I/O APIC" is enabled (system > Motherboard). But don't start it, also exit the VirtualBox GUI. The shell script needs to be run before installation!.
  • The script expects that the storage layout to look like the following:
    • IDE: Primary master (Disk) and Primary slave (CD-ROM)
    • SATA: Port 0 (Disk) and Port 1 (CD-ROM)
  • Run the shell script to apply the setting to the guest
  • Install the Windows Operating System (so far only tested on XP and W7)
  • Move the batch script to the newly installed guest.
  • Run the batch script inside the guest. Remember that most of the settings that gets modified, are reverted after each reboot. So make it run at boot if needed.
  • Before you apply the batch script inside the guest, please disable UAC (reboot required) otherwise you will not be able to modify the registry with the script

#Version History:

< 0.1.0 No version history kept, need to start somewhere I guess.

  • 0.1.0:
    • Resolved the WMI detection make famous by the HT. Added DevManView.exe (your choice of architecture) to the prerequisites.
  • 0.1.1
    • Check for CPU count (Less than 2 == alert).
    • Check for memory size (Less than 2GB == alert).
    • Check if the default IP/IP-range is being used for vboxnet0 (You can ignore the notification if you don't use it).
    • Randomizing the ProductId.
    • Merged PR #3 from r-sierra (Thanks for helping out!
    • Fixed a bug in the AcpiCreatorId (Thanks @Nadacsc for reporting it to me!).
    • Fixed a bug in the DmiBIOSReleaseDate parsing.
    • Fixed a bug in DmiBIOSReleaseDate, to handle both the "default" misspelled variant and the correctly spelled one (Thanks @WanpengQian for reporting it to me!).
    • The DevManView inclusion did not work as expected, It should be fixed in this release.
    • Supports SATA controller as well (Previously only IDE settings was modified)
    • Updated the readme.

/Mikael

Feedback is always welcome! =)

About

Script to create templates to use with VirtualBox to make vm detection harder

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%