CVE-2024-23443
将 osqery 扩展 HP BIOS WMI 添加到 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
重启 Agent
确认扩展程序已加载
osqueryi
osquery> SELECT * FROM hp_bios_enum;
| 名称 | 可能值 |
|---|
| 当前值 |
|---|
| 系统管理命令 | 禁用、启用 | 启用 |
| 快速启动 | 禁用、启用 | 启用 |
| BIOS 回滚策略 | 不受限制地回滚到旧版 BIOS、限制回滚到旧版 BIOS | 不受限制地回滚到旧版 BIOS |
| 启动期间的音频警报 | 禁用、启用 | 启用 |