Git Product home page Git Product logo

anti-anti-vm-detection-dll's Introduction

anti-anti-vm-detection-dll

anti anti vm dll, used to hide VMWare characteristics as files, processes, services, registry values

The method used this project is by hooking the relevat functions in OS, I'm making use in "MinHook" native c library which make my life easier a lot.

The current version aim to win7 32 bit.

One of the main goals is that the dll will be easy to configure, in order to let one to hide specific program.

The way to use the dll is to write its path to AppInit_DLLs registry value, and then every process that load user32.dll will load my dll as well.

There are also 2 black list files: registry_blackList.txt, files_blackList.txt. Those files define which files and registry key to hide. In order to make the use in the project easier I wrote exe file that change the necessary registry values and also copy the black list files to the right location. Another goal of the exe file in the next stages of the project is to change VM footprints that can't be cleaned with hooking such as MAC number that use by vmWare VMs. The functions I decided to hook and the way to check performance of my tool is based on - https://github.com/AlicanAkyol/sems - an open source project that is used to do the next: "sems is a tool which is created to help malware researchers by checking their environments for the signatures of any virtualization techniques, malware sandbox tools or well know malware analysis tools." list of win32api calls hook that was done: registry: RegOpenKeyExA. files: GetFileAttributesA, CreateFileW

How to use:

  1. create win7 32bit vmware machine.
  2. Download https://github.com/AlicanAkyol/sems and run sems.exe to view vm detection result.
  3. Copy runFiles directory to vm and run editReg.exe
  4. Run again sems.exe and compare results to previous run results.

To-Do list - Order of importance:

  1. hook other functions: processes: Process32First, Process32Next. registry: RegQueryValueExA. services: not yet

Refrences:

  1. AppInit_DLLs: https://support.microsoft.com/he-il/kb/197571
  2. anti vm\sandbox techniques: https://sentinelone.com/blogs/sfg-furtims parent/ http://blog.cyberbitsolutions.com/anti-vm-and-anti-sandbox-explained/ https://www.sans.org/reading-room/whitepapers/forensics/detecting-malware-sandbox-evasion-techniques-36667
  3. MinHook library: http://www.codeproject.com/Articles/44326/MinHook-The-Minimalistic-x-x-API-Hooking-Libra
  4. anti vm\sandbox malware samples\PoC : https://github.com/AlicanAkyol/sems

anti-anti-vm-detection-dll's People

Contributors

aviadyifrah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.