Skip to content

Commit 66c0543

Browse files
committed
vm brand type changes and --no-ansi fix
1 parent 1239cfb commit 66c0543

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/cli.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ std::string vm_description(const std::string& vm_brand) {
636636
{ brands::AZURE_HYPERV, "Azure Hyper-V is Microsoft's cloud-optimized hypervisor variant powering Azure VMs. Implements Azure-specific virtual devices like NVMe Accelerated Networking and vTPMs. Supports nested virtualization for running Hyper-V/containers within Azure VMs, enabling cloud-based CI/CD pipelines and dev/test environments." },
637637
{ brands::NANOVISOR, "NanoVisor is a Hyper-V modification serving as the host OS of Xbox's devices: the Xbox System Software. It contains 2 partitions: the \"Exclusive\" partition is a custom VM for games, while the other partition, called the \"Shared\" partition is a custom VM for running multiple apps including the OS itself. The OS was based on Windows 8 Core at the Xbox One launch in 2013." },
638638
{ brands::SIMPLEVISOR, "SimpleVisor is a minimalist Intel VT-x hypervisor by Alex Ionescu for Windows/Linux research. Demonstrates EPT-based memory isolation and hypercall handling. Used to study VM escapes and hypervisor rootkits, with hooks for intercepting CR3 changes and MSR accesses." },
639-
{ brands::HYPERV_ARTIFACT, "The CLI detected Hyper-V operating as a Type 1 hypervisor, not as a guest virtual machine. Althought your hardware/firmware signatures match Microsoft's Hyper-V architecture, we determined that you're running on baremetal, with the help of our \"Hyper-X\" mechanism that differentiates between the root partition (host OS) and guest VM environments. This prevents false positives, as Windows sometimes runs under Hyper-V (type 1) hypervisor." },
639+
{ brands::HYPERV_ARTIFACT, "The CLI detected Hyper-V operating as a Type 1 hypervisor, not as a guest virtual machine. Althought your hardware/firmware signatures match Microsoft's Hyper-V architecture, we determined that you're running on baremetal, with the help of our \"Hyper-X\" mechanism that differentiates between the root partition (host OS) and guest VM environments. This prevents false positives, as Windows sometimes runs under Hyper-V (type 1) hypervisor." },
640640
{ brands::UML, "User-Mode Linux (UML) allows running Linux kernels as user-space processes using ptrace-based virtualization. Primarily used for kernel debugging and network namespace testing. Offers lightweight isolation without hardware acceleration, but requires host/guest kernel version matching for stable operation." },
641641
{ brands::POWERVM, "IBM PowerVM is a type 1 hypervisor for POWER9/10 systems, supporting Live Partition Mobility and Shared Processor Pools. Implements VIOS (Virtual I/O Server) for storage/networking virtualization, enabling concurrent AIX, IBM i, and Linux workloads with RAS features like predictive failure analysis." },
642642
{ brands::GCE, "Google Compute Engine (GCE) utilizes KVM-based virtualization with custom Titanium security chips for hardware root of trust. Features live migration during host maintenance and shielded VMs with UEFI secure boot. Underpins Google Cloud's Confidential Computing offering using AMD SEV-SNP memory encryption." },
@@ -1235,7 +1235,7 @@ int main(int argc, char* argv[]) {
12351235
{ "--compact", COMPACT },
12361236
{ "--mit", MIT },
12371237
{ "--enums", ENUMS },
1238-
{ "--no-color", NO_ANSI }
1238+
{ "--no-ansi", NO_ANSI }
12391239
}};
12401240

12411241
std::string potential_null_arg = "";

src/vmaware.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11520,7 +11520,6 @@ struct VM {
1152011520
{ brands::AWS_NITRO, "Hypervisor (type 1)" },
1152111521
{ brands::LKVM, "Hypervisor (type 1)" },
1152211522
{ brands::NOIRVISOR, "Hypervisor (type 1)" },
11523-
{ brands::HYPERV_ARTIFACT, "Hypervisor (type 1)" },
1152411523

1152511524
// type 2
1152611525
{ brands::BHYVE, "Hypervisor (type 2)" },
@@ -11568,7 +11567,9 @@ struct VM {
1156811567
{ brands::AMD_SEV_ES, "VM encryptor" },
1156911568
{ brands::AMD_SEV_SNP, "VM encryptor" },
1157011569
{ brands::GCE, "Cloud VM service" },
11571-
{ brands::NSJAIL, "Process isolator" }
11570+
{ brands::NSJAIL, "Process isolator" },
11571+
{ brands::HYPERV_ARTIFACT, "Unknown" },
11572+
{ brands::NULL_BRAND, "Unknown" }
1157211573
};
1157311574

1157411575
auto it = type_table.find(brand_str.c_str());

0 commit comments

Comments
 (0)