Skip to content

Commit 096552c

Browse files
author
Requiem
committed
fix: skill issues in hardened detection logic
1 parent 03bd442 commit 096552c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmaware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12720,7 +12720,7 @@ struct VM {
1272012720
}
1272112721

1272212722
// rule 4: if VM::TRAP or VM::NVRAM is detected, so should VM::HYPERVISOR_BIT or VM::HYPERVISOR_STR
12723-
if ((check(VM::TRAP) || check(VM::NVRAM)) && (hv_present || (!hv_present && has_hyper_x))) {
12723+
if ((check(VM::TRAP) || check(VM::NVRAM)) && !hv_present && !has_hyper_x) {
1272412724
debug("is_hardened(): trap/NVRAM and hypervisor bit/str are not detected together");
1272512725
return true;
1272612726
}

0 commit comments

Comments
 (0)