收集 Carbon Black App Control(以前称为 CB Protection)日志

解析器版本:28.0

支持:

本文档介绍了如何使用 Bindplane 将 Carbon Black App Control(以前称为 CB Protection,现在是 Broadcom 的一部分)日志注入到 Google Security Operations。该解析器支持 CEF 和 JSON 格式。它首先尝试将输入解析为 JSON;如果失败,则将输入视为 CEF,执行文本替换,提取 CEF 字段,将其映射到 UDM,并将事件类型设置为 GENERIC_EVENT。

Carbon Black App Control 是一种应用控制和白名单解决方案,可让组织锁定服务器和关键系统。它通过以下方式来防止未经授权的恶意软件执行:强制执行基于信任的政策、监控文件完整性变化,以及实时了解端点活动。

准备工作

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

  • Google SecOps 实例。
  • 装有 systemd 的 Windows Server 2016 或更高版本或 Linux 主机。
  • 如果通过代理运行,请确保防火墙端口处于打开状态。
  • Carbon Black App Control Server 8.x 或更高版本。
  • 对 Carbon Black App Control 控制台的特权访问权限(管理员账号)。

获取 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 收集器目录(在 Linux 上为 /opt/observiq-otel-collector/ingestion-auth.json,在 Windows 上为 C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json)中的 ingestion-auth.json,或更新 config.yaml 中的 creds_file_path 以与您保存密钥文件的路径相匹配。
  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" /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 代理安装指南。

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

  1. 访问配置文件:

    • 找到 config.yaml 文件。通常,该文件位于 Linux 上的 /observiq-otel-collector/ 目录中,或 Windows 上的安装目录中。
    • 使用文本编辑器(例如 nano、vi 或记事本)打开该文件。
  2. 按如下方式修改 config.yaml 文件:

    receivers:
      tcplog:
        # Replace the port and IP address as required
        listen_address: "0.0.0.0:514"
    
    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 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: chronicle.googleapis.com
        # Add optional ingestion labels for better organization
        log_type: CB_APP_CONTROL
        raw_log_field: body
        ingestion_labels:
    
    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。
  • 将 /path/to/ingestion-authentication-file.json 更新为获取 Bindplane 代理的 Google SecOps 凭证部分中保存服务账号密钥文件(选项 1)的文件路径。

旧版提取 API

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

    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: CB_APP_CONTROL
        raw_log_field: body
        ingestion_labels:
    

重启 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 收集器。
      3. 右键点击并选择重启。
  2. 验证服务是否正在运行:

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

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

配置 Carbon Black App Control syslog 转发

  1. 使用管理员账号登录 Carbon Black App Control 控制台。
  2. 点击设置(齿轮)图标,然后点击系统配置。
  3. 在系统配置页面上,点击活动标签页。
  4. 点击页面底部的修改按钮。
  5. 在外部事件日志记录面板中,选中已启用 Syslog 复选框。
  6. 提供以下配置详细信息:
    • Syslog 地址:输入 Bindplane 代理主机的 IP 地址或 FQDN(例如 192.168.1.100)。
    • Syslog 端口:输入 514(或在 Bindplane 中配置的端口)。
    • Syslog 格式:从 Syslog 格式菜单中选择输出格式:
      • CEF (ArcSight) - 建议用于 Google SecOps 提取。
      • 增强型 (RFC 5424) - v6.0.1 及更高版本的新安装的默认设置。
      • 基本 (RFC 3164) - 从 6.0.1 之前的版本升级时的默认格式。
      • LEEF (Q1 Labs) - 用于 QRadar 集成。
  7. 点击更新,然后在确认对话框中点击是。

UDM 映射表

日志字段 UDM 映射 逻辑
ABId principal.asset.asset_id JSON 日志中的 ABId 用作资产 ID 的一部分,格式为 PRODUCT_SPECIFIC_ID:{ABId}-{Bit9Server}。
Bit9Server principal.asset.asset_id 与 ABId 结合使用,作为主账号资产 ID 的一部分。还用于构建 metadata.url_back_to_product 字段。
CommandLine about.process.command_line 直接映射。
EventType metadata.product_event_type 与方括号中的相应 EventTypeId 映射(例如 [5] - Discovery)。
EventTypeId metadata.product_event_type 与 EventType 搭配使用,以填充 metadata.product_event_type。
EventSubType metadata.description 附加到 metadata.description 字段。
EventSubTypeId metadata.description 未明确映射,但可能会根据解析器的内部逻辑对说明做出贡献。
externalId metadata.product_log_id 直接映射。
FileHash about.file.sha256 直接映射。
FileName additional.fields(密钥为 FileName) 已添加为附加字段。对于某些事件,还用作 metadata.description 中文件信息的一部分。
FilePath about.file.full_path 直接映射。
FileThreat additional.fields(密钥为 fileThreat) 已添加为附加字段。
FileTrust additional.fields(使用密钥 fileTrust) 已添加为附加字段。
HostId principal.asset.asset_id 用于构建返回 metadata.url_back_to_product 中商品的网址。
HostName target.hostname 直接映射。
HostIP target.ip 直接映射。
Message metadata.description 直接映射。
PathName about.file.full_path 直接映射。
Platform target.platform 映射到枚举值 WINDOWS。
Policy additional.fields(密钥为 Policy) 已添加为附加字段。
PolicyId additional.fields(密钥为 PolicyId) 已添加为附加字段。
ProcessKey additional.fields(使用密钥 ProcessKey) 已添加为附加字段。
ProcessPath about.process.command_line 直接映射。
ProcessPathName about.process.command_line 直接映射。
ProcessThreat additional.fields(使用密钥 ProcessThreat) 已添加为附加字段。
ProcessTrust additional.fields(密钥为 ProcessTrust) 已添加为附加字段。
RuleName additional.fields(使用密钥 ruleName) 已添加为附加字段。
Timestamp metadata.event_timestamp 直接映射。
UserName target.user.user_display_name 直接映射。
UserSid principal.user.userid 直接映射。
agent.ephemeral_id observer.labels(密钥为 ephemeral_id) 已添加为观察方标签。
agent.name principal.hostname、observer.hostname、observer.user.userid 映射到多个字段。
agent.type observer.application 直接映射。
agent.version metadata.product_version 直接映射到 JSON 日志。对于 CEF 日志,从 CEF 消息中提取。
cat security_result.category_details 直接映射。
process event.idm.read_only_udm.principal.file.full_path 从更新日志映射
text event.idm.read_only_udm.metadata.description 从更新日志映射
type event.idm.read_only_udm.security_result.category_details 从更新日志映射
subtype event.idm.read_only_udm.security_result.category_details 从更新日志映射
hostname event.idm.read_only_udm.principal.hostname和event.idm.read_only_udm.principal.asset.hostname之间 从更新日志映射
username event.idm.read_only_udm.target.user.userid 从更新日志映射
date event.idm.read_only_udm.metadata.collected_timestamp 从更新日志映射
ip_address event.idm.read_only_udm.principal.ip和event.idm.read_only_udm.principal.asset.ip之间 从更新日志映射
file_path event.idm.read_only_udm.target.file.full_path 从更新日志映射
file_name event.idm.read_only_udm.target.process.file.names 从更新日志映射
file_hash event.idm.read_only_udm.target.file.sha256 从更新日志映射
policy event.idm.read_only_udm.security_result.rule_name 从更新日志映射
server_version event.idm.read_only_udm.metadata.product_version 从更新日志映射
file_trust event.idm.read_only_udm.security_result.about.labels 从更新日志映射
file_threat event.idm.read_only_udm.security_result.about.labels 从更新日志映射

更新日志

查看相应解析器的更新日志

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