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

[vSphere][7.0][ESXI-70-000072] The ESXi host must have all security patches and updates installed. #152

Open
daveho5392 opened this issue Apr 6, 2023 · 2 comments
Labels
enhancement New feature or request powercli

Comments

@daveho5392
Copy link

Is your feature request related to a problem? Please describe.

Currently the script only compares the ESXi build number to esxiLastestBuild parameter and if they don't match, throws a failed count.

If the ESXi build number is greater than the esxiLatestBuild parameter, the script will still throw a failed count.

May not want to be on the latest build of ESXi host due to bad patches.

Describe the solution you'd like

Change the IF statement from:

        If($build -ne $stigsettings.esxiLatestBuild){
            Write-ToConsoleRed "...ESXi is not the latest build $($stigsettings.esxiLatestBuild) on $($vmhost.name)...patch the host with the latest updates!!"
            $failedcount++
        }Else{
            Write-ToConsoleGreen "...ESXi is the latest build $build on $($vmhost.name)"
            $unchangedcount++

To:

        If([int]$build -lt [int]$stigsettings.esxiLatestBuild){
            Write-ToConsoleRed "...ESXi is on older build $build on $($vmhost.name)...patch the host to build ($stigsettings.esxiLatestBuild)!!"
            $failedcount++
        }Else{
            Write-ToConsoleGreen "...ESXi is the build $build on $($vmhost.name)"
            $unchangedcount++

Describe alternatives you've considered

No response

Additional context

No response

@daveho5392 daveho5392 added the enhancement New feature or request label Apr 6, 2023
@rlakey rlakey changed the title [vsphere][70][ESXI-70-000072]The ESXi host must have all security patches and updates installed [vSphere][7.0][ESXI-70-000072] The ESXi host must have all security patches and updates installed. Apr 6, 2023
@rlakey rlakey added the powercli label Apr 7, 2023
@rlakey
Copy link
Contributor

rlakey commented Apr 7, 2023

Controls like this are really only in that script for to account for all controls where we would expect patch management and updates to be done separately.

You could also just provide your preferred baseline build in the variable to check against.

@pstearns
Copy link

pstearns commented May 4, 2023

@rlakey Question: Can this item be reviewed to downgrade or reword the finding?
Issue it being a CATI and not stating within 30days or such. We have to follow a change control process and it near impossible to patch all sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request powercli
Projects
None yet
Development

No branches or pull requests

3 participants