收集 Trellix Endpoint Security (HX) Audit(以前称为 FireEye HX)日志

解析器版本: 1.0

支持:

本文档介绍了如何使用 Bindplane 将 Trellix Endpoint Security (HX) Audit(以前称为 FireEye HX)日志注入 Google Security Operations。

Trellix Endpoint Security (HX) 提供终端检测和突发事件响应能力,具有高级威胁搜寻、取证数据收集和行为分析功能,可使用从数千次突发事件响应参与中构建的机器学习来检测和响应终端上的高级威胁。

准备工作

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

  • Google SecOps 实例。
  • Windows Server 2016 或更高版本,或者具有 systemd 的 Linux 主机。
  • Bindplane 代理与 Trellix Endpoint Security (HX) 设备之间的网络连接。
  • 如果通过代理运行,请确保防火墙端口根据 Bindplane 代理要求处于打开状态。
  • 对 Trellix Endpoint Security (HX) 管理控制台的特权访问权限。
  • 对 Trellix Endpoint Security (HX) 设备 CLI 的管理员访问权限(SSH 或控制台访问)。

获取 Bindplane 代理的 Google SecOps 凭据

如需向 Google SecOps 验证 Bindplane 代理的身份,请选择以下方法之一:

  • 新部署:使用 Chronicle API(方法 1)。
  • 旧版部署:继续使用注入身份验证文件(方法 2),直到注入 API 于 2027 年 7 月 20 日停用为止。
  1. 登录 Google Cloud 控制台,然后选择与您的 Google SecOps 实例关联的 Google Cloud 项目。
  2. 依次前往 IAM 和管理 > 服务账号。
  3. 点击创建服务账号 。
  4. 提供以下配置详细信息:
    • 服务账号名称:输入账号的名称(例如 bindplane-ingest)。
    • 服务账号说明:输入说明(例如 Bindplane agent log ingestion)。
  5. 点击创建并继续 。
  6. 在向此服务帐号授予对项目的访问权限 部分,点击选择角色 ,然后选择 Chronicle Editor 。
  7. 点击继续 ,然后点击完成 。
  8. 点击您创建的服务帐号,然后前往密钥 标签页。
  9. 点击添加密钥 > 创建新密钥。
  10. 选择 JSON ,然后点击创建 。密钥文件会下载到您的计算机。
  11. 将密钥文件另存为 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 中以与您保存该文件的路径匹配。
  12. 依次前往 IAM 和管理 > 设置 ,然后复制项目编号 。您需要此编号进行导出器配置。

方法 2:下载注入身份验证文件(旧版)

  1. 登录 Google SecOps 控制台。
  2. 依次前往 SIEM 设置 > 收集代理。
  3. 下载注入身份验证文件 。
  4. 将该文件安全地保存在将安装 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](https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi)" /quiet
    
  3. 等待安装完成。

  4. 运行以下命令,验证安装是否成功:

    sc query observiq-otel-collector
    

    该服务应显示为正在运行 。

Linux 安装

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

    sudo sh -c "$(curl -fsSlL [https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh](https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh))" install_unix.sh
    
  3. 等待安装完成。

  4. 运行以下命令,验证安装是否成功:

    sudo systemctl status observiq-otel-collector
    

    该服务应显示为活跃 (running) 。

其他安装资源

如需了解其他安装选项和问题排查信息,请参阅 Bindplane 代理安装指南。

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

找到配置文件

  • Linux: /opt/observiq-otel-collector/config.yaml
  • Windows: C:\Program Files\observIQ OpenTelemetry Collector\config.yaml

修改配置文件

  • 将 config.yaml 的全部内容替换为以下配置:

    receivers:
      tcplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/trellix_hx:
        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
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: 'YOUR_CUSTOMER_ID'
        endpoint: chronicle.googleapis.com
        log_type: FIREEYE_HX_AUDIT
        raw_log_field: body
        ingestion_labels:
          env: production
          source: trellix_hx
    
    service:
      pipelines:
        logs/trellix_hx_to_chronicle:
          receivers:
            - tcplog
          exporters:
            - chronicle/trellix_hx
    

配置参数

替换以下占位符:

  • 接收器配置:

    • tcplog:由于 Trellix Endpoint Security (HX) 设备 CLI 通过 TCP 协议配置 Syslog 转发,因此使用 TCP 接收器。
    • listen_address:要监听的 IP 地址和端口。使用 0.0.0.0:514 在端口 514 上监听所有接口,或者指定其他端口(例如 0.0.0.0:1514,如果在 Linux 上以非根用户身份运行)。
  • 导出器配置:

    • creds_file_path:服务帐号 JSON 密钥文件的完整路径(方法 1): * Linux:/opt/observiq-otel-collector/ingestion-auth.json * Windows:C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • YOUR_CUSTOMER_ID:上一步中的实际客户 ID。
    • location:将 <LOCATION> 替换为 Google SecOps 实例的区域(例如 us、europe 或 asia-southeast1)。导出器会使用此值为 chronicle.googleapis.com 添加前缀。如需查看完整列表,请参阅区域级端点。
    • project:将 <PROJECT_NUMBER> 替换为 IAM 和管理 > 设置 中的项目编号。
    • endpoint:保持设置为 chronicle.googleapis.com。
    • log_type:必须完全为 FIREEYE_HX_AUDIT。
    • ingestion_labels:用于整理日志的可选标签。

旧版注入 API 导出器

  • 如果您使用方法 2 中的注入身份验证文件,请将 exporters 块替换为以下内容。将 creds_file_path 设置为注入身份验证文件的路径,并且如果您的实例位于美国境外,请将 malachiteingestion-pa.googleapis.com 替换为您的 区域级端点(例如 europe-malachiteingestion-pa.googleapis.com)。

    exporters:
      chronicle/trellix_hx:
        compression: gzip
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: 'YOUR_CUSTOMER_ID'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: FIREEYE_HX_AUDIT
        raw_log_field: body
        ingestion_labels:
          env: production
          source: trellix_hx
    

保存配置文件

修改后,保存文件:

  • Linux: 按 Ctrl+O,然后按 Enter,再按 Ctrl+X。
  • Windows: 点击文件 > 保存。

重启 Bindplane 代理以应用更改

如需在 Linux 中重启 Bindplane 代理,请执行以下操作:

  1. 运行以下命令:

    sudo systemctl restart observiq-otel-collector
    
  2. 验证服务是否正在运行:

    sudo systemctl status observiq-otel-collector
    
  3. 检查日志中是否存在错误:

    sudo journalctl -u observiq-otel-collector -f
    

如需在 Windows 中重启 Bindplane 代理,请执行以下操作:

  1. 请从下列选项中选择一项:

    • 以管理员身份运行命令提示符或 PowerShell:
    net stop observiq-otel-collector && net start observiq-otel-collector
    
    • 服务控制台:
      1. 按 Win+R,输入 services.msc,然后按 Enter 键。
      2. 找到 observIQ OpenTelemetry Collector 。
      3. 右键点击并选择重启 。
  2. 验证服务是否正在运行:

    sc query observiq-otel-collector
    
  3. 检查日志中是否存在错误:

    type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
    

配置 Trellix Endpoint Security (HX) Syslog 转发

Trellix Endpoint Security (HX) 支持两种日志转发方法:适用于 Windows 事件日志的 Event Streamer 模块,以及适用于 CEF 格式设备日志的 CLI 配置。

方法 1:为 Windows 事件日志配置 Event Streamer (UI)

  1. 登录 Trellix Endpoint Security (HX) 管理控制台。
  2. 前往 Event Streamer 。
  3. 选择在主机上启用 Event Streamer 。
  4. 点击保存 以应用政策更改。
  5. 依次前往目的地 > 服务器设置 > 添加 Syslog 目的地。
  6. 提供以下配置详细信息:
    • 名称:输入描述性名称(例如 Google SecOps-Collector)。
    • IP 地址:输入 Bindplane 代理主机的 IP 地址。
    • 端口:输入在 Bindplane 代理中配置的端口号(例如 514)。
  7. 点击保存 。

方法 2:配置设备 Syslog 转发 (CLI)

  1. 使用 SSH 或控制台访问登录 Trellix Endpoint Security (HX) 设备。
  2. 运行以下命令以进入特权模式:enable
  3. 运行以下命令以进入配置模式:configure terminal
  4. 运行以下命令以验证当前日志记录配置:show logging
  5. 运行以下命令以配置 Syslog 转发:

    logging BINDPLANE_IP_ADDRESS trap none
    logging BINDPLANE_IP_ADDRESS trap override class cef priority info
    logging BINDPLANE_IP_ADDRESS protocol tcp
    

    将 BINDPLANE_IP_ADDRESS 替换为 Bindplane 代理主机的 IP 地址。

  6. 运行以下命令以启用 RFC-3339 时间戳格式:logging fields timestamp format rfc-3339

  7. 运行以下命令以保存配置:write memory

  8. 运行以下命令以退出:exit

启用数据采集以收集事件日志

  1. 使用管理员访问权限登录 Trellix Endpoint Security (HX) Web 界面。
  2. 依次前往管理员 > 数据采集脚本。
  3. 点击标准调查详细信息 。
  4. 在脚本说明 页面上,点击操作 ,然后选择修改 。
  5. 点击事件日志 。
  6. 在 Windows 事件日志 部分中,启用安全日志 。
  7. 点击保存 。

启用自动分类

  1. 使用管理员访问权限登录 Trellix Endpoint Security (HX) Web 界面。
  2. 依次前往管理员 > 分类设置。
  3. 将分类设置开关切换为“开启” 。
  4. 点击保存 。

启用文件和数据审核

  1. 使用管理员访问权限登录 Trellix Endpoint Security (HX) Web 界面。
  2. 依次前往管理员 > 政策。
  3. 在配置 下,点击审核 - 版本号 。
  4. 开启在主机上启用文件和数据审核 。
  5. 点击保存 。

UDM 映射表

日志字段 UDM 映射 逻辑
alert.agent._id principal.asset.asset_id 以 AGENT ID: 为前缀的代理 ID
alert.agent.url principal.labels.value 代理网址值。
alert.condition._id additional.fields.value.string_value 移除了 = 字符的条件 ID。
alert.condition.url additional.fields.value.string_value 移除了 = 字符的条件网址。
alert.decorators[].data.fireeye_report.indicator_verdict.malware_families.0 security_result.threat_name FireEye 报告中的恶意软件系列。
alert.decorators[].data.fireeye_report.risk_summary security_result.description 风险摘要说明。
alert.decorators[].data.fireeye_verdict security_result.severity_details FireEye 判定详细信息。
alert.event_at read_only_udm.metadata.event_timestamp 事件时间戳映射。
alert.event_id read_only_udm.metadata.product_log_id 产品日志标识符。
alert.event_type read_only_udm.metadata.product_event_type 产品事件类型标识符。
alert.event_values.fileWriteEvent/fullPath target.file.full_path 目标文件路径。
alert.event_values.fileWriteEvent/md5 target.file.md5 目标文件 MD5 哈希。
alert.event_values.fileWriteEvent/pid principal.process.pid 写入进程 PID。
alert.event_values.fileWriteEvent/processPath principal.process.file.full_path 写入进程文件路径。
alert.event_values.fileWriteEvent/size target.file.size 目标文件大小。
alert.event_values.fileWriteEvent/username principal.user.userid 写入用户标识符。
alert.event_values.ipv4NetworkEvent/localIP principal.ip 主体本地 IP。
alert.event_values.ipv4NetworkEvent/localPort principal.port 主体本地端口。
alert.event_values.ipv4NetworkEvent/protocol network.ip_protocol 网络 IP 协议。
alert.event_values.ipv4NetworkEvent/remoteIP target.ip 目标远程 IP。
alert.event_values.ipv4NetworkEvent/remotePort target.port 目标远程端口。
alert.event_values.processEvent/md5 target.process.file.md5 目标进程 MD5。
alert.event_values.processEvent/pid target.process.pid 目标进程 PID。
alert.event_values.urlMonitorEvent/hostname target.hostname 目标目的地主机名。
alert.event_values.urlMonitorEvent/requestUrl target.url 目标请求网址。
alert.event_values.urlMonitorEvent/urlMethod network.http.method 网络 HTTP 方法。
alert.event_values.urlMonitorEvent/userAgent network.http.user_agent 网络 HTTP 用户代理。
alert.indicator.name read_only_udm.security_result.summary 安全结果摘要。
host.agent_version read_only_udm.metadata.product_version 产品版本映射。
host.containment_state read_only_udm.principal.containment_state 主体隔离状态。
host.hostname read_only_udm.principal.hostname 主体主机名。
host.os.platform read_only_udm.principal.platform 主体操作系统平台。
host.primary_ip_address read_only_udm.principal.ip 主体主要 IP。
severity security_result.severity 映射到低、中或高。
timestamp timestamp 原始日志时间戳。

更新日志

查看此解析器的更新日志

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