
Osqery extension HP BIOS WMI
CVE-2024-23443
Add osqery extension HP BIOS WMI to Elastic Agent
pyinstaller --onefile hp_bios_enumeration.py
Copy extension to Elastic agent location
copy .\hp_bios_enumeration.exe "C:\Program Files\Elastic\Agent\data\elastic-agent-XXXXXX\components\"
Update Elastic osquery auto_load file
"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
Restart agent
Confirm extension is loaded
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 |