Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM Check for Spectre Mitigation Plugin False-Positives #755

Open
aaronmrqz1 opened this issue Oct 11, 2023 · 0 comments
Open

VM Check for Spectre Mitigation Plugin False-Positives #755

aaronmrqz1 opened this issue Oct 11, 2023 · 0 comments

Comments

@aaronmrqz1
Copy link

Problem Code only checks for versions vmx-09 thru vmx-13, so newer versions fail and are tagged as affected by vulnerability. Recommend switching to 'greater than or equal to' vmx-09 instead of listing out each version. This way it should account for any newer releases without a need to constantly update plugin.

Current Code:

elseif($vmvHW -eq "vmx-09" -or $vmvHW -eq "vmx-10" -or $vmvHW -eq "vmx-11" -or $vmvHW -eq "vmx-12" -or $vmvHW -eq "vmx-13") {
            $vHWPass = $true
        }

Recommended Code:

if($vmvHW -ge "vmx-09") {
            $vHWPass = $true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant