Simple Go library to detect virtual machines.
go get github.com/Inspect-Element-Ltd/vm
import (
"fmt"
"github.com/Inspect-Element-Ltd/vm/vmdetect"
)
vm, vendor, reason := vmdetect.Check()
if vm {
fmt.Printf("Detected VM (Vendor: %s, Reason: %s)", vendor, reason)
}
- Linux support
- Clean up the horrible code in
mac_reg.go
Heavily inspired by VM-Detection by ShellCode33. Most, if not all, of the Windows code is from VM-Detection but with some detections removed, our use-case doesn't want to flag a system with Sandbox tools installed as a VM.