Giter Club home page Giter Club logo

vmde's People

Contributors

hfiref0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vmde's Issues

NtQueryLicenseValue or built-in by Microsoft VM detect

Original comment by HonoraryBoT https://habrahabr.ru/post/322486/#comment_10093238

There is integrated VM detection routines available in Windows kernel. These routines available at least since Windows 7 and the check result can be retrieved using undocumendted service NtQueryLicenseValue with the parameter "Kernel-VMDetection-Private" unicode string.

Why this isn't included in VMDE and is this method really good for VM detect?

  1. Nothing from Microsoft implemented code is anyhow better than already available detects;
  2. The routine (which is the source for NtQueryLicenseValue) ExpIsVirtualMachinePrivate doesn't consider guest machine with Microsoft Hyper-V (also known as Viridian) as private VM. Judging on it name ExpIsVirtualMachinePrivate it make some sense and makes no sense in case if you want to detect Microsoft Hyper-V;
  3. The ECX hypervisor bit check implemented in ExpDetectHypervisorCpuId already present in VMDE, this detection won't work on configurable hypervisors like for example VirtualBox - set paravirtualization interface to "Legacy" and you will bypass this check;
  4. ExpDetectHyperVisorCr3Heuristic live classic from MS with comparing time of two instructions execution. This won't work if your HV support EPT, IIRC Intel CPU supports it from Nehalem. Of course if you have out-dated hardware or castrated CPU this will be a problem. In VirtualBox this check will be bypassed by setting paravirtualization interface to "Legacy", in VMWare there exist setting "Virtualize Intel VT-x/EPT or AMD-V/RVI";
  5. ExpDetectHypervisorVarianceHeuristic - this is variation of timing detections based on different sources and statistics. Again this won't work in VirtualBox (paravirtualization interface set to Legacy) or VMWare with setting "Virtualize CPU performance counters".

As a conclusion: modern hardware and configured VM will bypass any of the above checks without any problems, so the above method doesn't give any advantage compared to already existing and implemented. And since this tool implements methods from paper dated back to 2013 there is no sense in adding anything beyond that, especially when this anything is merely useless.

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.