收集 Symantec CloudSOC CASB 日志

支持的语言:

本文档介绍了如何使用 Bindplane 代理将 Symantec CloudSOC CASB 日志注入到 Google Security Operations。

Symantec CloudSOC 是一种云访问安全代理 (CASB),可针对云应用活动、DLP 政策违规、威胁检测、内容检查结果和用户访问事件生成 syslog 消息。解析器会从 JSON 格式和 syslog 格式的日志中提取字段,并将其映射到统一数据模型 (UDM)。

准备工作

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

  • Google SecOps 实例
  • Windows Server 2016 或更高版本,或者具有 systemd 的 Linux 主机
  • Bindplane 代理与 Symantec CloudSOC 主机之间的网络连接
  • 如果在代理后面运行,请确保按照 Bindplane 代理要求打开防火墙端口
  • 对 Symantec CloudSOC 主机的管理员权限

获取 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
    
  3. 等待安装完成。

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

    sc query observiq-otel-collector
    

    该服务应显示为 RUNNING。

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
    
  3. 等待安装完成。

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

    sudo systemctl status observiq-otel-collector
    

    该服务应显示为 active (running)。

其他安装资源

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

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

找到配置文件

  • Linux:

    sudo nano /opt/observiq-otel-collector/config.yaml
    
  • Windows:

    notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
    

修改配置文件

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

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/symantec_casb:
        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: '<customer_id>'
        endpoint: chronicle.googleapis.com
        log_type: SYMANTEC_CASB
        raw_log_field: body
    
    service:
      pipelines:
        logs/symantec_casb_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/symantec_casb
    

配置参数

替换以下占位符:

  • 接收器配置:

    • listen_address:要监听的 IP 地址和端口:
      • 0.0.0.0,以监听所有接口(推荐)
      • 端口 514 是标准 syslog 端口(在 Linux 上需要 root 权限;对于非 root 用户,请使用 1514)
  • 导出器配置:

    • creds_file_path:服务账号 JSON 密钥文件的完整路径(选项 1):
      • Linux:/opt/observiq-otel-collector/ingestion-auth.json
      • Windows:C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • customer_id:从 Google SecOps 控制台复制的客户 ID
    • location:将 <LOCATION> 替换为 Google SecOps 实例的区域(例如 us、europe 或 asia-southeast1)。导出器会使用此值作为 chronicle.googleapis.com 的前缀。如需查看完整列表,请参阅区域级端点。
    • project:将 <PROJECT_NUMBER> 替换为 IAM 和管理 > 设置中的项目编号。
    • endpoint:保持设置为 chronicle.googleapis.com。

旧版提取 API 导出工具

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

    exporters:
      chronicle/symantec_casb:
        compression: gzip
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: '<customer_id>'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: SYMANTEC_CASB
        raw_log_field: body
    

保存配置文件

  • 修改后,保存文件:
    • Linux:依次按 Ctrl+O、Enter 和 Ctrl+X
    • Windows:依次点击文件 > 保存

重启 Bindplane 代理以应用更改

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

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

      sudo systemctl status observiq-otel-collector
      
    2. 检查日志中的错误:

      sudo journalctl -u observiq-otel-collector -f
      
  • 如需在 Windows 中重启 Bindplane 代理,请选择以下选项之一:

    • 以管理员身份运行命令提示符或 PowerShell:

      net stop observiq-otel-collector && net start observiq-otel-collector
      
    • 服务控制台:

      1. 按 Win+R,输入 services.msc,然后按 Enter 键。
      2. 找到 observIQ OpenTelemetry 收集器。
      3. 右键点击并选择重启。
      4. 验证服务是否正在运行:

        sc query observiq-otel-collector
        
      5. 检查日志中的错误:

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

在 Symantec CloudSOC CASB 中配置 syslog

  1. 登录您的 Symantec CloudSOC 主机。
  2. 运行以下命令,确定系统使用的是哪个日志记录器:

    ls -d /etc/*syslog*
    
  3. 根据回答前往相应部分:

    • syslog.conf:旧版 Syslog。
    • syslog-ng.conf:Syslog-ng。

旧版 syslog 配置

  1. 打开 syslogd 文件,该文件通常位于 /etc/default 目录中:

    vi /etc/default/syslogd
    
  2. 确保 SYSLOGD 值包含 -r 标志:

    SYSLOGD="-r"
    
  3. 保存文件并退出编辑器。

  4. 打开 services 文件,该文件通常位于 /etc 目录中:

    vi /etc/services
    
  5. 修改 syslog 服务的端口值:

    syslog          514/udp
    
  6. 保存文件并退出编辑器。

  7. 打开 syslog.conf 文件,该文件通常位于 /etc 目录中:

    vi /etc/syslog.conf
    
  8. 更新配置以将所有日志转发到 Bindplane 代理:

    *.* @<BINDPLANE_IP>
    
    • 将 <BINDPLANE_IP> 替换为 Bindplane 代理 IP 地址。
  9. 打开 hosts 文件,该文件通常位于 /etc 目录中:

    vi /etc/hosts
    
  10. 为 Bindplane 代理创建本地 DNS 条目:

    <BINDPLANE_IP>    bindplane_agent_host
    
  11. 保存文件并退出编辑器。

  12. 重启 syslog 守护程序服务。

Syslog-ng 配置

  1. 打开 syslog-ng.conf 文件,该文件通常位于 /etc 目录中:

    vi /etc/syslog-ng.conf
    
  2. 将以下代码添加到文件末尾:

    destination d_bindplane { udp("<BINDPLANE_IP>" port(514)); };
    log { source(s_src); destination(d_bindplane); };
    
    • 将 <BINDPLANE_IP> 替换为 Bindplane 代理 IP 地址。
  3. 打开 hosts 文件,该文件通常位于 /etc 目录中:

    vi /etc/hosts
    
  4. 为 Bindplane 代理创建本地 DNS 条目:

    <BINDPLANE_IP>    bindplane_agent_host
    
  5. 保存文件并退出编辑器。

  6. 重启 syslog-ng 守护进程服务。

UDM 映射表

日志字段 UDM 映射 逻辑
_domain target.hostname _domain 字段的值
_domain target.asset.hostname _domain 字段的值
_id metadata.product_log_id _id 字段的值
actions_taken security_result.detection_fields[].value actions_taken 字段的值。密钥是动态生成的,格式为 Action_ + 索引。
activity_type metadata.product_event_type 如果 product_data.activity_type 为空,则为 activity_type 字段的值;如果不为空,则为 product_data.activity_type 的值。
collector_device_ip principal.ip collector_device_ip 字段的值(如果不是 Unknown IP)。
collector_device_ip principal.asset.ip collector_device_ip 字段的值(如果不是 Unknown IP)。
collector_device_name principal.hostname collector_device_name 字段的值。
collector_device_name principal.asset.hostname collector_device_name 字段的值。
content_checks.dlp.raw_response.contentdetails[].contentBlockId security_result.detection_fields[].value content_checks.dlp.raw_response.contentdetails[].contentBlockId 的值。密钥是动态生成的,格式为 contentBlockId_ + 索引。
content_checks.dlp.raw_response.contentdetails[].topLevelFileType security_result.detection_fields[].value content_checks.dlp.raw_response.contentdetails[].topLevelFileType 的值。密钥是动态生成的,格式为 topLevelFileType_ + 索引。
content_checks.dlp.raw_response.requestid security_result.detection_fields[].value content_checks.dlp.raw_response.requestid 的值。密钥为 Request ID。
content_checks.dlp.raw_response.responseaction security_result.detection_fields[].value content_checks.dlp.raw_response.responseaction 的值。按键为 Response Action。
content_checks.dlp.raw_response.violation[].name security_result.detection_fields[].value content_checks.dlp.raw_response.violation[].name 的值。键是动态生成的,格式为 Violation_Policy_Name_ + 索引。
content_checks.dlp.raw_response.violation[].policyId security_result.detection_fields[].value content_checks.dlp.raw_response.violation[].policyId 的值。密钥是动态生成的,格式为 Violation_Policy_ID_ + 索引。
content_checks.dlp.updated_timestamp additional.fields[].value.string_value content_checks.dlp.updated_timestamp 的值。密钥为 Updated TimeStamp。
content_checks.filename target.file.full_path content_checks.filename 的值。
content_checks.mimetype target.file.mime_type content_checks.mimetype 的值。
content_checks.risktype_list[] security_result.detection_fields[].value content_checks.risktype_list[] 的值。密钥是动态生成的,格式为 RiskType_ + 索引。
content_checks.vba_macros.expressions[].values[].key security_result.detection_fields[].key 与索引串联的 content_checks.vba_macros.expressions[].values[].key 值。
content_checks.vba_macros.expressions[].values[].value security_result.detection_fields[].value content_checks.vba_macros.expressions[].values[].value 的值。
content_checks.vk_content_iq_violations[] security_result.detection_fields[].value content_checks.vk_content_iq_violations[] 的值。密钥是动态生成的,格式为 content_violation_ + 索引。
content_checks.vk_dlp_policy_violations[] security_result.detection_fields[].value content_checks.vk_dlp_policy_violations[] 的值。密钥是动态生成的,格式为 dlp_policy_violation_ + 索引。
content_checks.vk_encryption security_result.detection_fields[].value content_checks.vk_encryption 的值。密钥为 vk_encryption。
content_checks.vk_glba security_result.detection_fields[].value content_checks.vk_glba 的值。密钥为 vk_glba。
content_checks.vk_hipaa security_result.detection_fields[].value content_checks.vk_hipaa 的值。密钥为 vk_hipaa。
content_checks.vk_pci security_result.detection_fields[].value content_checks.vk_pci 的值。密钥为 vk_pci。
content_checks.vk_pii security_result.detection_fields[].value content_checks.vk_pii 的值。密钥为 vk_pii。
content_checks.vk_source_code security_result.detection_fields[].value content_checks.vk_source_code 的值。密钥为 vk_source_code。
content_checks.vk_vba_macros security_result.detection_fields[].value content_checks.vk_vba_macros 的值。密钥为 vk_vba_macros。
content_checks.vk_virus security_result.detection_fields[].value content_checks.vk_virus 的值。密钥为 vk_virus。
content_checks.violations security_result.detection_fields[].value content_checks.violations 的值。按键为 violations。
created_timestamp additional.fields[].value.string_value created_timestamp 的值。密钥为 Created TimeStamp。
date metadata.event_timestamp.seconds 从 date 字段中提取的纪元秒数。
device_ip target.ip device_ip 字段的值(如果不是 Unknown IP)。
device_ip target.asset.ip device_ip 字段的值(如果不是 Unknown IP)。
file_size target.file.size 如果 file_size 为空,则为 product_data.file_size 的值。转换为无符号整数。
file_url target.file.full_path product_data.file_url 的值。
group_name target.group.group_display_name 从 group_name 字段中提取的显示名称。
hosts[] principal.ip 以英文逗号分隔的 hosts 字段的值。
inserted_timestamp additional.fields[].value.string_value inserted_timestamp 的值。密钥为 Inserted TimeStamp。
instance principal.hostname instance 字段的第一个值(如果该字段是数组),或 instance 字段的值(如果该字段是字符串)。
instance principal.asset.hostname instance 字段的第一个值(如果该字段是数组),或 instance 字段的值(如果该字段是字符串)。
ioi_code security_result.summary ioi_code 字段的值。
_latency security_result.detection_fields[].value _latency 字段的值。密钥为 Latency。
locations security_result.detection_fields[].value locations 字段的值。按键为 Locations。
log_name intermediary.asset.asset_id 从 log_name 字段中提取的日志 ID,前缀为 logid:。
mailbox_owner target.user.userid product_data.mailbox owner 的值。
metadata.log_type metadata.log_type 硬编码为 SYMANTEC_CASB。
metadata.product_name metadata.product_name 硬编码为 SYMANTEC_CASB。
metadata.vendor_name metadata.vendor_name 硬编码为 SYMANTEC。
msg metadata.description msg 字段的值;如果 msg 不存在,则为 message 字段的值。
name security_result.detection_fields[].value name 字段的值。按键为 Name。
object_name security_result.detection_fields[].value object_name 字段的值。密钥为 Object Name。
object_type target.resource.name object_type 字段的值。
org_unit security_result.detection_fields[].value org_unit 字段的值。按键为 org_unit ID。
policy_action security_result.action_details policy_action 字段的值。
policy_type security_result.detection_fields[].value policy_type 字段的值。密钥为 policy_type。
policy_violated security_result.detection_fields[].value policy_violated 字段的值。密钥为 policy_violated。
product_data._domain target.hostname product_data._domain 的值。
product_data._domain target.asset.hostname product_data._domain 的值。
product_data.activity_type metadata.product_event_type product_data.activity_type 的值。
product_data.file url target.file.full_path product_data.file url 的值。
product_data.file_size target.file.size product_data.file_size 的值。
product_data.group target.group.group_display_name product_data.group 的值。
product_data.location principal.location.country_or_region product_data.location 的值。
product_data.logon error security_result.summary product_data.logon error 的值。
product_data.mailbox owner target.user.userid product_data.mailbox owner 的值。
product_data.name target.file.full_path product_data.name 的值。
product_data.object_name target.file.full_path product_data.object_name 的值。
product_data.originatingserver product_data.service target.application product_data.service 的值。
product_data.site url target.url product_data.site url 的值。
product_data.target target.user.userid product_data.target 的值。
product_data.useragent network.http.user_agent product_data.useragent 的值。
product_name intermediary.application product_name 字段的值。
product_uid metadata.product_name product_uid 字段的值。
responsible_logs additional.fields[].value.string_value responsible_logs 字段的值。密钥为 responsible_logs。
resource_id target.resource.product_object_id resource_id 字段的值。
risks security_result.detection_fields[].value risks 字段的值。密钥为 Risks。
security_result.action security_result.action 派生自 product_data.logon error。如果 product_data.logon error 为 BlockedByConditionalAccess,则设置为 BLOCK。
security_result.severity security_result.severity severity 字段的大写值(如果它是受支持的严重级别之一)。
security_result.severity_details security_result.severity_details severity 字段的值(如果不是受支持的严重级别之一)。
security_result.summary security_result.summary ioi_code 字段的值,如果不存在 ioi_code,则为 product_data.logon error。
service target.application 如果 product_data.service 为空,则为 service 字段的值。
site_url target.url product_data.site url 的值。
source principal.resource.attribute.labels[].value source 字段的值。密钥为 Source。
sub_feature additional.fields[].value.string_value sub_feature 字段的值。密钥为 Sub Feature。
target.application target.application 根据 product_data.activity_type 以及主账号和目标的存在情况派生。
target.resource.name target.resource.name 根据 product_data.activity_type 以及主账号和目标的存在情况派生。
threat_score security_result.detection_fields[].value threat_score 字段的值。密钥为 Threat Score。
transaction_id security_result.detection_fields[].value transaction_id 字段的值。密钥为 Transaction ID。
updated_timestamp additional.fields[].value.string_value updated_timestamp 的值,如果前者为空,则为 content_checks.dlp.updated_timestamp 的值。密钥为 Updated TimeStamp。
user principal.user.userid user 字段的值。
user_email target.user.userid user_email 字段的值。
user_mail target.user.userid 从 msg 字段中提取的 user_mail 字段的值。
user_name principal.user.user_display_name user_name 字段的值。
user_uid principal.user.userid 或 target.user.userid user_uid 字段的值。如果 product_data.activity_type 不是 InvalidLogin 或 Login,则映射到 principal.user.userid;否则映射到 target.user.userid。
uuid intermediary.asset.product_object_id uuid 字段的值。
version metadata.product_version version 字段的值。
user", "user_mail", and "user_uid principal.user.email_addresses 从更新日志映射
user_email", "mailbox_owner", "product_data.target", and "user_uid target.user.email_addresses 从更新日志映射
__event_timestamp metadata.event_timestamp 从更新日志映射
_elastic_timestamp", "created_timestamp", "inserted_timestamp", "updated_timestamp", "responsible_logs" and "sub_feature additional.fields 从更新日志映射
threat_score", "locations", "transaction_id", "content_checks.dlp.raw_response.requestid", "content_checks.dlp.raw_response.responseaction", "org_unit", "policy_type", "content_checks.vk_pci", "content_checks.vk_vba_macros", "content_checks.vk_glba", "content_checks.vk_source_code", "content_checks.vk_pii", "content_checks.vk_virus", "content_checks.vk_hipaa", "content_checks.violations", "object_name", "multi_user", "risks", "name", "_latency", "content_checks.dlp.raw_response.warning", "content_checks.dlp.raw_response.violation", "content_checks.dlp.raw_response.contentdetails", "content_checks.vk_dlp_policy_violations", "content_checks.risktype_list", "content_checks.vk_content_iq_violations", "actions_taken", "__detect_source", "multi_facility", "content_checks.vba_macros.expressions" and "policy_violated security_result.detection_fields 从更新日志映射
resource_id target.resource.id 从更新日志映射

更新日志

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

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