Add VM guest services and display adapter detection#165
Merged
Conversation
Lift detection methodologies from vmaware — check for VM-specific artifacts that only exist inside guest VMs, never on bare metal: Guest services (registry key existence under Services\): - Hyper-V: vmicheartbeat, vmicshutdown, vmickvpexchange, etc. - VMware: vmci, vmhgfs, vmxnet3, VMTools - VirtualBox: VBoxGuest, VBoxSF, VBoxMouse, VBoxVideo - KVM/virtio: vioscsi, viostor, netkvm, vioinput, balloon - QEMU: QEMU-GA guest agent - Parallels: prl_strg, prl_tg, prl_eth - Xen: xenevtchn, xenvbd, xennet, xenvif Display adapter (GPU class registry DriverDesc): - Microsoft Hyper-V Video, VMware SVGA, VirtualBox Graphics, Red Hat QXL, virtio GPU, Citrix Indirect Display, etc. These checks run after BIOS/manufacturer strings but before CPUID, giving them priority as concrete guest artifacts that cannot be present on physical hardware. Also exposed in VmDiagnostics struct for consumer-side diagnostic logging.
f5cce3f to
30990e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #164. Adds two new detection categories lifted from vmaware's methodology (artifact-based checks only, no CPUID scoring):
Both are exposed in
VmDiagnosticsfor consumer diagnostic logging.Design notes
Test plan
vm_display_signaltests