收集 BMC Helix Discovery 日志
解析器版本: 2.0
支持:
Google SecOps
SIEM
此解析器使用 grok 模式从 BMC Helix Discovery 系统日志消息中提取字段。它专注于登录/退出事件和状态更新。它会将提取的字段(例如时间戳、用户名、来源 IP 和说明)映射到 UDM。系统会根据提取的 product_event_type 和日志详细信息对事件进行分类。
准备工作
- 确保您拥有 Google Security Operations 实例。
- 确保您使用的是 Windows 2016 或更高版本,或者使用 systemd 的 Linux 主机。
- 如果通过代理运行,请确保防火墙 端口 处于打开状态。
- 确保您拥有对 BeyondTrust 实例的特权访问权限。
获取 Bindplane 代理的 Google SecOps 凭据
如需向 Google SecOps 验证 Bindplane 代理的身份,请选择以下方法之一:
- 新部署:使用 Chronicle API(方法 1)。
- 旧版部署:继续使用数据注入身份验证文件(方法 2),直到数据注入 API 于 2027 年 7 月 20 日停用为止。
方法 1:为 Chronicle API 创建服务帐号(推荐)
- 登录 Google Cloud 控制台,然后选择与您的 Google SecOps 实例关联的 Google Cloud 项目。
- 依次前往 IAM 和管理 > 服务账号。
- 点击创建服务账号 。
- 提供以下配置详细信息:
- 服务账号名称:输入账号的名称(例如
bindplane-ingest)。 - 服务账号说明:输入说明(例如
Bindplane agent log ingestion)。
- 服务账号名称:输入账号的名称(例如
- 点击创建并继续 。
- 在向此服务帐号授予对项目的访问权限 部分,点击选择角色 ,然后选择 Chronicle Editor 。
- 点击继续 ,然后点击完成 。
- 点击您创建的服务帐号,然后前往密钥 标签页。
- 点击添加密钥 > 创建新密钥。
- 选择 JSON ,然后点击创建 。密钥文件会下载到您的计算机。
- 将密钥文件另存为 Bindplane 收集器目录中的
ingestion-auth.json(在 Linux 上为/opt/observiq-otel-collector/ingestion-auth.json,在 Windows 上为C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json),或者更新creds_file_path在config.yaml中以与您保存该文件的路径匹配。 - 依次前往 IAM 和管理 > 设置 ,然后复制项目编号 。您需要此编号进行导出器配置。
方法 2:下载数据注入身份验证文件(旧版)
- 登录 Google SecOps 控制台。
- 依次前往 SIEM 设置 > 收集代理。
- 下载数据注入身份验证文件 。
- 将该文件安全地保存在将安装 Bindplane 代理的系统上。
获取 Google SecOps 客户 ID
- 登录 Google SecOps 控制台。
- 依次前往 SIEM 设置 > 个人资料。
- 从组织详细信息 部分复制并保存客户 ID 。
安装 Bindplane 代理
- 对于 Windows 安装,请运行以下脚本:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet - 对于 Linux 安装,请运行以下脚本:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh - 如需了解其他安装选项,请参阅此安装指南。
将 Bindplane 代理配置为注入 Syslog 并发送到 Google SecOps
- 访问安装了 Bindplane 的机器。
按如下方式修改
config.yaml文件:receivers: tcplog: # Replace the below port <54525> and IP <0.0.0.0> with your specific values listen_address: "0.0.0.0:54525" exporters: chronicle/chronicle_w_labels: protocol: https # Region of your instance, for example us, europe, asia-southeast1 location: <LOCATION> # Project number of the Google Cloud project linked to the instance project: '<PROJECT_NUMBER>' compression: gzip # Adjust the path to the credentials file you saved in Step 1 creds: '{ json file for creds }' # Replace <customer_id> below with your actual ID that you copied customer_id: <customer_id> endpoint: chronicle.googleapis.com # You can apply ingestion labels below as preferred ingestion_labels: log_type: SYSLOG namespace: BMC_HELIX_DISCOVERY raw_log_field: body service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - tcplog exporters: - chronicle/chronicle_w_labels- 根据基础架构的需要替换端口和 IP 地址。
- 将
<LOCATION>替换为 Google SecOps 实例的区域(例如us、europe或asia-southeast1)。导出器会使用此值为chronicle.googleapis.com添加前缀。 - 将
<PROJECT_NUMBER>替换为 IAM 和管理 > 设置 中的项目编号。 - 将
<customer_id>替换为实际的客户 ID。 - 将
{ json file for creds }更新为服务帐号密钥文件(方法 1)的保存路径。
重启 Bindplane 代理以应用更改:
sudo systemctl restart bindplane
旧版数据注入 API 导出器
如果您使用方法 2 中的数据注入身份验证文件,请将
exporters代码块替换为以下内容。将creds设置为数据注入身份验证文件的路径,并且如果您的实例位于美国境外,请将malachiteingestion-pa.googleapis.com替换为您的 区域端点(例如europe-malachiteingestion-pa.googleapis.com)。exporters: chronicle/chronicle_w_labels: compression: gzip # Adjust the path to the credentials file you saved in Step 1 creds: '{ json file for creds }' # Replace <customer_id> below with your actual ID that you copied customer_id: <customer_id> endpoint: malachiteingestion-pa.googleapis.com # You can apply ingestion labels below as preferred ingestion_labels: log_type: SYSLOG namespace: BMC_HELIX_DISCOVERY raw_log_field: body
从 BMC Helix Discovery 导出 Syslog
- 以 根用户 身份访问 BMC Discovery 实例。
- 修改 syslog 配置 文件:
etc/rsyslog.conf - 在顶部添加以下条目:
# Send everything to the remote syslog server。 将 IP 地址替换为 syslog 服务器的 IP 地址:
# Send everything to the remote syslog server *.* @192.168.1.100在设备上重启 syslog 服务:
sudo /usr/bin/systemctl restart rsyslog.service测试转发配置。
使用 logger 实用程序发送 syslog 消息:
logger this is a test of remote logging验证是否已记录此消息:
su - Password: tail -n5 /var/log/messages Jan 17 11:42:10 localhost seclab: this is a test of remote logging登录 Google SecOps,并检查是否显示相同的消息。
UDM 映射表
| 日志字段 | UDM 映射 | 逻辑 |
|---|---|---|
data |
metadata.description | 从日志消息中提取的事件说明。 |
data |
metadata.product_event_type | 从日志消息中提取的原始事件类型。 |
data |
principal.ip | 从日志消息的说明字段中提取的来源 IP 地址。 |
data |
security_result.summary | 从日志消息中提取的事件摘要。 |
data |
target.user.userid | 从日志消息中提取的用户名。解析器会创建一个空对象。从原始日志的顶层 timestamp 字段复制。由解析器根据 product_event_type 和 desc 字段确定。如果 product_event_type 为“logon”或 desc 包含“logged on”,则设置为“USER_LOGIN”。如果 product_event_type 为“logoff”或 desc 包含“logged off”,则设置为“USER_LOGOUT”。否则,如果存在 src_ip,则设置为“STATUS_UPDATE”。 默认为“GENERIC_EVENT”。硬编码为“BMC_HELIX_DISCOVERY”。硬编码为“BMC_HELIX_DISCOVERY”。硬编码为“BMC_HELIX_DISCOVERY”。 |
更新日志
需要更多帮助?获得社区成员和 Google SecOps 专业人士的解答。