Skip to content

关于本页

本页介绍更夫所基于的开源内核 Keep 的通用能力。更夫在其上提供国内化增强:钉钉/企业微信/飞书通知、国产大模型接入、LDAP 认证与值班管理。部署与上手请看快速上手。

概述 ​

Wazuh provider 实现了 Keep 与 Wazuh 之间的无缝集成。 它允许您通过自定义集成从 Wazuh 获取告警到 Keep,从而更轻松地 在一处跟踪安全相关活动。

有关 Wazuh 自定义集成的更多信息,请参阅 Wazuh Docs。

在工作流中 ​

此提供商不能用作工作流中的"步骤"或"操作"。如果您想使用它,请通过在 GitHub 仓库 创建问题告诉我们。

将 Wazuh 连接到 Keep ​

要将 Wazuh 连接到 Keep,您需要在 Wazuh 中将其配置为自定义集成。按照以下步骤设置集成:

  1. Keep webhook 脚本需要安装在 Wazuh 服务器上。

  2. 您可以使用以下命令下载 Keep webhook 脚本:

bash
wget -O custom-keep.py https://github.com/keephq/keep/blob/main/keep/providers/wazuh_provider/custom-keep.py?raw=true
wget -O custom-keep https://github.com/keephq/keep/blob/main/keep/providers/wazuh_provider/custom-keep?raw=true
  1. 将下载的脚本复制到 Wazuh 服务器上的以下路径:/var/ossec/integrations/ 并设置正确的权限
bash
cp custom-keep.py /var/ossec/integrations/custom-keep.py
cp custom-keep /var/ossec/integrations/custom-keep
chown root:wazuh custom-keep*
chmod 750 /var/ossec/integrations/custom-keep*
  1. 获取 Keep 的 Webhook URL,即 https://api.keephq.dev/alerts/event/wazuh。

  2. 获取 Keep 的 API 密钥,您可以在 Keep 设置 中生成。

  3. 在配置 /var/ossec/etc/ossec.conf 中设置新的集成块

xml
<integration>
    <name>custom-keep</name>
    <level>10</level>
    <hook_url>PLACE_YOUR_KEEP_WEBHOOK_URL_HERE</hook_url>
    <api_key>PLACE_HERE_YOUR_API_KEY</api_key>
    <alert_format>json</alert_format>
</integration>

有关更多信息,请参阅 Wazuh 文档 并设置您感兴趣的 level。 7. 重启 wazuh-manager

bash
$ systemctl restart wazuh-manager

相关链接 ​

基于 MIT 协议开源的 Keep · 由更夫社区维护