
Extensão Osqery HP BIOS WMI
CVE-2024-23443
Adicionar extensão osqery HP BIOS WMI ao Elastic Agent
pyinstaller --onefile hp_bios_enumeration.py
Copie a extensão para o local do Elastic Agent
copy .\hp_bios_enumeration.exe "C:\Program Files\Elastic\Agent\data\elastic-agent-XXXXXX\components\"
Atualize o arquivo auto_load do osquery no Elastic Agent
"C:\Program Files\Elastic\Agent\data\elastic-agent-XXXXXX\components\hp_bios_enumeration.exe" | Out-File "C:\Program Files\Elastic\Agent\data\elastic-agent-XXXXXX\run\osquery-default\osquery\osquery.autoload" -Append
Reinicie o agente
Confirme que a extensão está carregada
osqueryi
osquery> SELECT * FROM hp_bios_enum;
| name | possible_values | current_value |
|---|
| System Management Command | Disable, Enable | Enable |
| Fast Boot | Disable, Enable | Enable |
| BIOS Rollback Policy | Unrestricted Rollback to older BIOS, Restricted Rollback to older BIOS | Unrestricted Rollback to older BIOS |
| Audio Alerts During Boot | Disable, Enable | Enable |