Skip to content

Instantly share code, notes, and snippets.

@trimarcjared
Created October 12, 2022 00:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trimarcjared/1646d242dbb4765e4500faebeb411361 to your computer and use it in GitHub Desktop.
Save trimarcjared/1646d242dbb4765e4500faebeb411361 to your computer and use it in GitHub Desktop.
Bad VIB(E)s Signature Check
# 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