Created
October 12, 2022 00:24
-
-
Save trimarcjared/1646d242dbb4765e4500faebeb411361 to your computer and use it in GitHub Desktop.
Bad VIB(E)s Signature Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Review output of this script from all ESXi hosts for the presence of suspicious VIBs | |
$esxiHost = Get-VMHost | |
$array = @() | |
foreach ($i in $esxiHost) { | |
$vib = @($i | Get-EsxCli).software.vib.signature.verify.invoke() | |
Foreach ($obj in $vib){ | |
$object = New-Object PSObject | |
$object| Add-Member -MemberType NoteProperty -Name 'HostName' -Value $i.name | |
$object| Add-Member -MemberType NoteProperty -Name VIB_AcceptanceLevel -Value $obj.AcceptanceLevel | |
$object| Add-Member -MemberType NoteProperty -Name VIB_ID -Value $obj.ID | |
$object| Add-Member -MemberType NoteProperty -Name VIB_Name -Value $obj.Name | |
$object| Add-Member -MemberType NoteProperty -Name VIB_SignatureVerification -Value $obj.SignatureVerification | |
$object| Add-Member -MemberType NoteProperty -Name VIB_Vendor -Value $obj.vendor | |
$object| Add-Member -MemberType NoteProperty -Name VIB_Version -Value $obj.version | |
$array += $object | |
} | |
} | |
$array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment