From 4ab8b5c73b953c8cc672c2fe0ea8deb122c97f67 Mon Sep 17 00:00:00 2001 From: GHOryy5 Date: Tue, 9 Dec 2025 23:14:31 +0300 Subject: [PATCH] fix(detection): invert CheckUSBDevices logic to prevent false positives --- internal/antivm/antivm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/antivm/antivm.go b/internal/antivm/antivm.go index de1edee..f83b0c2 100644 --- a/internal/antivm/antivm.go +++ b/internal/antivm/antivm.go @@ -221,7 +221,7 @@ func (v *VMDetector) CheckUSBDevices() (bool, error) { if err != nil { return false, err } - return len(subKeys) > 0, nil + return len(subKeys) == 0, nil } // im not fan of this one, but its a good way to check if the user is a sandboxed user.