
Osqery 拡張機能 HP BIOS WMI
CVE-2024-23443
HP BIOS WMI の osquery 拡張機能を Elastic Agent に追加します
pyinstaller --onefile hp_bios_enumeration.py
拡張機能を Elastic Agent の場所にコピーします
copy .\hp_bios_enumeration.exe "C:\Program Files\Elastic\Agent\data\elastic-agent-XXXXXX\components\"
Elastic osquery の auto_load ファイルを更新します
"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
エージェントを再起動します
拡張機能がロードされていることを確認します
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 |