收集 Veeam 日志

支持的语言:

本文档介绍了如何使用 Bindplane 将 Veeam 日志注入到 Google Security Operations。解析器使用 grok 模式从 syslog 消息中提取字段,执行数据转换(例如替换和合并字段),并根据事件类型和可用字段将提取的数据映射到统一数据模型 (UDM)。它还会处理错误情况并设置适当的严重程度。

准备工作

请确保满足以下前提条件:

  • Google SecOps 实例
  • Windows 2016 或更高版本,或者具有 systemd 的 Linux 主机
  • 如果通过代理运行,请确保防火墙端口处于开放状态
  • 对 Veeam 的特权访问权限

获取 Google SecOps 注入身份验证文件

  1. 登录 Google SecOps 控制台。
  2. 依次前往 SIEM 设置 > 收集代理
  3. 下载注入身份验证文件。将该文件安全地保存在将要安装 Bindplane 的系统上。

获取 Google SecOps 客户 ID

  1. 登录 Google SecOps 控制台。
  2. 依次前往 SIEM 设置 > 配置文件
  3. 复制并保存组织详细信息部分中的客户 ID

安装 Bindplane 代理

按照以下说明在 Windows 或 Linux 操作系统上安装 Bindplane 代理。

Windows 安装

  1. 以管理员身份打开命令提示符PowerShell
  2. 运行以下命令:

    msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
    

Linux 安装

  1. 打开具有 root 或 sudo 权限的终端。
  2. 运行以下命令:

    sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
    

其他安装资源

如需了解其他安装选项,请参阅安装指南

配置 Bindplane 代理以注入 Syslog 并将其发送到 Google SecOps

  1. 访问配置文件:
    • 找到 config.yaml 文件。通常,它位于 Linux 上的 /etc/bindplane-agent/ 目录中或 Windows 上的安装目录中。
    • 使用文本编辑器(例如 nanovi 或记事本)打开该文件。
  2. 按如下方式修改 config.yaml 文件:

    receivers:
        udplog:
            # Replace the port and IP address as required
            listen_address: "0.0.0.0:514"
    
    exporters:
        chronicle/chronicle_w_labels:
            compression: gzip
            # Adjust the path to the credentials file you downloaded in Step 1
            creds_file_path: '/path/to/ingestion-authentication-file.json'
            # Replace with your actual customer ID from Step 2
            customer_id: <customer_id>
            endpoint: malachiteingestion-pa.googleapis.com
            # Add optional ingestion labels for better organization
            log_type: 'VEEAM'
            raw_log_field: body
            ingestion_labels:
    
    service:
        pipelines:
            logs/source0__chronicle_w_labels-0:
                receivers:
                    - udplog
                exporters:
                    - chronicle/chronicle_w_labels
    
    • 根据基础架构的需要替换端口和 IP 地址。
    • <customer_id> 替换为实际的客户 ID。
    • /path/to/ingestion-authentication-file.json 更新为获取 Google SecOps 提取身份验证文件部分中保存身份验证文件的路径。

重启 Bindplane 代理以应用更改

  • 如需在 Linux 中重启 Bindplane 代理,请运行以下命令:

    sudo systemctl restart bindplane-agent
    
  • 如需在 Windows 中重启 Bindplane 代理,您可以使用服务控制台,也可以输入以下命令:

    net stop BindPlaneAgent && net start BindPlaneAgent
    

为 Veeam 配置 Syslog

  1. 登录 Veeam Backup & Replication 控制台。
  2. 依次前往菜单 > 选项 > SIEM 集成
  3. Syslog 服务器部分,点击添加
  4. 提供以下配置详细信息:
    • 名称:输入 Bindplane 代理 IP 地址和端口号(例如 192.168.1.1:514)。
    • 传输:根据实际的 Bindplane 代理配置,选择 UDPTCP
  5. 点击确定进行保存。

UDM 映射表

日志字段 UDM 映射 逻辑
application principal.application 直接从 grok 模式提取的 application 字段映射。
CredentialId principal.resource.attribute.labels.[] 直接从 kv 过滤器提取的 CredentialId 字段映射。创建了键为“CredentialId”的标签。
date_2time_2year metadata.event_timestamp 系统会使用 date 过滤条件将 date_2time_2year 字段串联并解析,以创建 metadata.event_timestamp
date_2time_2 metadata.event_timestamp 系统会使用 date 过滤条件将 date_2time_2 字段串联并解析,以创建 metadata.event_timestamp
deviceId principal.resource.product_object_id 直接从 kv 过滤器提取的 deviceId 字段映射。
description security_result.description 直接从 grok 模式提取的 description 字段映射。
error_code security_result.detection_fields.[] 直接从 grok 模式提取的 error_code 字段映射。创建了键为“error_code”的标签。
executing_feature principal.hostnameprincipal.asset.hostname 直接从 grok 模式提取的 executing_feature 字段映射。
host principal.hostnameprincipal.asset.hostname 直接从 grok 模式提取的 host 字段映射。
ManagementIP principal.ipprincipal.asset.ip 直接从 kv 过滤器提取的 ManagementIP 字段映射。
pid principal.process.pid 直接从 grok 模式提取的 pid 字段映射。
previousSeverity security_result.severity_details 直接从 grok 模式提取的 previousSeverity 字段映射。
prod_event_type metadata.product_event_type 直接从 grok 模式提取的 prod_event_type 字段映射。
query security_result.detection_fields.[] 直接从 grok 模式提取的 query 字段映射。创建了键为“query”的标签。
reportingAddress principal.ipprincipal.asset.ip 直接从 grok 模式提取的 reportingAddress 字段映射。
severity security_result.severity severity 字段映射。该值由基于 severity 字段的条件逻辑确定(ERROR、MAJOR/WARN、INFO 会映射到特定的 UDM 严重程度值)。
src_ip principal.ipprincipal.asset.ip 直接从 grok 模式提取的 src_ip 字段映射。
summary security_result.summary 直接从 grok 模式提取的 summary 字段映射。
target_ip target.iptarget.asset.ip 直接从 grok 模式提取的 target_ip 字段映射。
thread_id security_result.detection_fields.[] 直接从 grok 模式提取的 thread_id 字段映射。创建了键为“thread_id”的标签。
(不适用) event_type 由解析器中的逻辑确定。如果 principaltarget 都包含 MID 数据,则为 NETWORK_UNCATEGORIZED。如果只有 principal 具有 MID 数据,则为 STATUS_UPDATE。否则为 GENERIC_EVENT
(不适用) metadata.event_type 从内部生成的 event_type 字段复制。
(不适用) metadata.vendor_name 硬编码为“VEEAM”。
(不适用) metadata.product_name 硬编码为“Veeam”。
(不适用) event.timestamp 事件时间戳取自日志条目的 collection_time 字段。

需要更多帮助?从社区成员和 Google SecOps 专业人士那里获得解答。