Skip to content

Commit 128f0ef

Browse files
committed
Merge branch 'dev' of https://github.com/kernelwernel/VMAware into dev
2 parents 66c0543 + ef68337 commit 128f0ef

File tree

3 files changed

+166
-248
lines changed

3 files changed

+166
-248
lines changed

docs/documentation.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,6 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
480480
| `VM::INTEL_THREAD_MISMATCH` | Check for Intel CPU thread count database if it matches the system's thread count | | 95% | | | | |
481481
| `VM::XEON_THREAD_MISMATCH` | Same as above, but for Xeon Intel CPUs | | 95% | | | | |
482482
| `VM::NETTITUDE_VM_MEMORY` | Check for memory regions to detect VM-specific brands | Windows | 100% | | | | |
483-
| `VM::CPUID_BITSET` | Check for CPUID technique by checking whether all the bits equate to more than 4000 | | 25% | | | | |
484483
| `VM::CUCKOO_DIR` | Check for cuckoo directory using crt and WIN API directory functions | Windows | 30% | | | | |
485484
| `VM::CUCKOO_PIPE` | Check for Cuckoo specific piping mechanism | Windows | 30% | | | | |
486485
| `VM::HYPERV_HOSTNAME` | Check for default Azure hostname format regex (Azure uses Hyper-V as their base VM brand) | Windows, Linux | 30% | | | | |
@@ -513,14 +512,14 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
513512
| `VM::GPU_CAPABILITIES` | Check for GPU capabilities related to VMs | Windows | 100% | Admin | | | Admin only needed for some heuristics |
514513
| `VM::GPU_VM_STRINGS` | Check for specific GPU string signatures related to VMs | Windows | 100% | | | | |
515514
| `VM::VM_DEVICES` | Check for VM-specific devices | Windows | 45% | | | | |
516-
| `VM::IDT_GDT_MISMATCH` | Check if the IDT and GDT base virtual addresses mismatch between different CPU cores when called from usermode under a root partition | Windows | 50% | | | | |
515+
| `VM::IDT_GDT_SCAN` | Check if the IDT and GDT virtual base addresses are equal across different CPU cores when not running under Hyper-V | Windows | 50% | | | | |
517516
| `VM::PROCESSOR_NUMBER` | Check for number of processors | Windows | 50% | | | | |
518517
| `VM::NUMBER_OF_CORES` | Check for number of cores | Windows | 50% | | | | |
519518
| `VM::ACPI_TEMPERATURE` | Check for device's temperature | Windows | 25% | | | | |
520519
| `VM::PROCESSOR_ID` | Check if any processor has an empty Processor ID using SMBIOS data | Windows | 25% | | | | |
521520
| `VM::SYS_QEMU` | Check for existence of "qemu_fw_cfg" directories within /sys/module and /sys/firmware | Linux | 70% | | | | |
522521
| `VM::LSHW_QEMU` | Check for QEMU string instances with lshw command | Linux | 80% | | | | |
523-
| `VM::VIRTUAL_PROCESSORS` | Check if the number of maximum virtual processors matches the maximum number of logical processors | Windows | 50% | | | | |
522+
| `VM::VIRTUAL_PROCESSORS` | Check if the number of virtual and logical processors are reported correctly by the system | Windows | 50% | | | | |
524523
| `VM::HYPERV_QUERY` | Check if a call to NtQuerySystemInformation with the 0x9f leaf fills a _SYSTEM_HYPERVISOR_DETAIL_INFORMATION structure | Windows | 100% | | | | |
525524
| `VM::BAD_POOLS` | Check for system pools allocated by hypervisors | Windows | 80% | | | | |
526525
| `VM::AMD_SEV` | Check for AMD-SEV MSR running on the system | Linux and MacOS | 50% | Admin | | | |

src/cli.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ bool is_unsupported(VM::enum_flags flag) {
362362
case VM::ODD_CPU_THREADS:
363363
case VM::INTEL_THREAD_MISMATCH:
364364
case VM::XEON_THREAD_MISMATCH:
365-
case VM::CPUID_BITSET:
366365
case VM::HYPERV_HOSTNAME:
367366
case VM::GENERAL_HOSTNAME:
368367
case VM::BLUESTACKS_FOLDERS:
@@ -439,7 +438,6 @@ bool is_unsupported(VM::enum_flags flag) {
439438
case VM::INTEL_THREAD_MISMATCH:
440439
case VM::XEON_THREAD_MISMATCH:
441440
case VM::NETTITUDE_VM_MEMORY:
442-
case VM::CPUID_BITSET:
443441
case VM::CUCKOO_DIR:
444442
case VM::CUCKOO_PIPE:
445443
case VM::HYPERV_HOSTNAME:
@@ -455,7 +453,7 @@ bool is_unsupported(VM::enum_flags flag) {
455453
case VM::PORT_CONNECTORS:
456454
case VM::GPU_VM_STRINGS:
457455
case VM::GPU_CAPABILITIES:
458-
case VM::IDT_GDT_MISMATCH:
456+
case VM::IDT_GDT_SCAN:
459457
case VM::PROCESSOR_NUMBER:
460458
case VM::NUMBER_OF_CORES:
461459
case VM::ACPI_TEMPERATURE:
@@ -495,7 +493,6 @@ bool is_unsupported(VM::enum_flags flag) {
495493
case VM::ODD_CPU_THREADS:
496494
case VM::INTEL_THREAD_MISMATCH:
497495
case VM::XEON_THREAD_MISMATCH:
498-
case VM::CPUID_BITSET:
499496
case VM::CPUID_SIGNATURE:
500497
case VM::KVM_BITMASK:
501498
case VM::KGT_SIGNATURE:
@@ -944,7 +941,6 @@ void general() {
944941
checker(VM::INTEL_THREAD_MISMATCH, "Intel thread count mismatch");
945942
checker(VM::XEON_THREAD_MISMATCH, "Intel Xeon thread count mismatch");
946943
checker(VM::NETTITUDE_VM_MEMORY, "VM memory regions");
947-
checker(VM::CPUID_BITSET, "CPUID bitset");
948944
checker(VM::CUCKOO_DIR, "Cuckoo directory");
949945
checker(VM::CUCKOO_PIPE, "Cuckoo pipe");
950946
checker(VM::HYPERV_HOSTNAME, "Hyper-V Azure hostname");
@@ -976,7 +972,7 @@ void general() {
976972
checker(VM::PORT_CONNECTORS, "physical connection ports");
977973
checker(VM::GPU_CAPABILITIES, "GPU capabilities");
978974
checker(VM::GPU_VM_STRINGS, "GPU strings");
979-
checker(VM::IDT_GDT_MISMATCH, "IDT GDT mismatch");
975+
checker(VM::IDT_GDT_SCAN, "IDT GDT consistency");
980976
checker(VM::PROCESSOR_NUMBER, "processor count");
981977
checker(VM::NUMBER_OF_CORES, "CPU core count");
982978
checker(VM::ACPI_TEMPERATURE, "thermal devices");

0 commit comments

Comments
 (0)