收集 Symantec DLP 日志

支持的平台:

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

Symantec 数据泄露防护 (DLP) 是一种数据保护解决方案,可针对违规行为、数据发现事件、端点监控事件和网络监控提醒生成 syslog 消息。解析器会从以竖线分隔和采用 CEF 格式的 syslog 日志中提取字段,并将其映射到统一数据模型 (UDM)。

准备工作

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

  • Google SecOps 实例
  • Windows Server 2016 或更高版本,或者具有 systemd 的 Linux 主机
  • Bindplane 代理与 Symantec DLP 服务器之间的网络连接
  • 如果在代理后面运行,请确保防火墙端口已根据 Bindplane 代理要求打开
  • 对 Symantec Server 管理控制台的管理员访问权限

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

  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
    

    该服务应显示为 正在运行

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
    

    该服务应显示为有效(正在运行)

其他安装资源

如需了解其他安装选项和问题排查信息,请参阅 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_dlp:
            compression: gzip
            creds_file_path: '/etc/bindplane-agent/ingestion-auth.json'
            customer_id: '<customer_id>'
            endpoint: malachiteingestion-pa.googleapis.com
            log_type: SYMANTEC_DLP
            raw_log_field: body
    
    service:
        pipelines:
            logs/symantec_dlp_to_chronicle:
                receivers:
                    - udplog
                exporters:
                    - chronicle/symantec_dlp
    

配置参数

替换以下占位符:

  • 接收器配置

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

    • creds_file_path:提取身份验证文件的完整路径:
      • Linux/etc/bindplane-agent/ingestion-auth.json
      • WindowsC:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • customer_id:从 Google SecOps 控制台复制的客户 ID
    • endpoint:区域端点网址:
      • 美国malachiteingestion-pa.googleapis.com
      • 欧洲europe-malachiteingestion-pa.googleapis.com
      • 亚洲asia-southeast1-malachiteingestion-pa.googleapis.com
      • 如需查看完整列表,请参阅区域级端点

保存配置文件

  • 修改后,保存文件:
    • Linux:依次按 Ctrl+OEnterCtrl+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 DLP

  1. 登录 Symantec Server 管理控制台。
  2. 依次选择管理 > 政策 > 回应规则
  3. 选择配置回答规则,然后输入规则名称。
  4. 提供以下详细信息:

    • 操作:选择记录到 Syslog 服务器
    • 主机:输入 Bindplane IP 地址。
    • 端口:输入 Bindplane 端口号。
    • 消息:输入以下 Syslog 消息模板:
    |symcdlpsys|APPLICATION_NAME|$APPLICATION_NAME$|APPLICATION_USER|$APPLICATION_USER$|ATTACHMENT_FILENAME|$ATTACHMENT_FILENAME$|BLOCKED|$BLOCKED$|DATAOWNER_NAME|$DATAOWNER_NAME$|DATAOWNER_EMAIL|$DATAOWNER_EMAIL$|...
    
    • 调试:选择级别 4
  5. 点击应用

UDM 映射表

日志字段 UDM 映射 逻辑
act security_result.action 如果 actPassed,则设置为 ALLOW。如果 actModified,则设置为 ALLOW_WITH_MODIFICATION。如果 actBlocked,则设置为 BLOCK。否则,请将其设置为 UNKNOWN_ACTION
application_name target.application 直接映射。
asset_ip principal.ip、principal.asset.ip 直接映射。
asset_name principal.hostname、principal.asset.hostname 直接映射。
attachment_name security_result.about.file.full_path 直接映射。
已屏蔽 security_result.action_details 直接映射。
calling_station_id principal.mac、principal.asset.mac 如果 calling_station_id 是 MAC 地址,则在将 - 替换为 : 并转换为小写后,直接进行映射。
called_station_id target.mac, target.asset.mac 如果 called_station_id 是 MAC 地址,请提取 : 之前的 MAC 地址部分,并在将 - 替换为 : 并转换为小写后直接映射该部分。
category1 security_result.detection_fields 创建键为 category1 且值来自 category1 的标签。
category2 security_result.detection_fields 创建键为 category2 且值来自 category2 的标签。
category3 security_result.detection_fields 创建键为 category3 且值来自 category3 的标签。
client_friendly_name target.user.userid 直接映射。
dataowner_mail principal.user.email_addresses 如果电子邮件地址有效,则直接映射。
说明 metadata.description 直接映射。
dest_location target.location.country_or_region 如果不是 RED,则直接映射。
deviceId target.asset_id 映射为 ID:%{deviceId}
device_version metadata.product_version 直接映射。
dhost network.http.referral_url 直接映射。
dlp_type security_result.detection_fields 创建键为 dlp_type 且值来自 dlp_type 的标签。
DLP_EP_Incident_ID security_result.threat_id、security_result.detection_fields 直接映射到 threat_id。此外,还要创建一个键为 Incident ID、值为 DLP_EP_Incident_ID 的标签。
域名 principal.administrative_domain 直接映射。
dst target.ip、target.asset.ip 如果它是有效的 IP 地址,则直接映射。
endpoint_machine target.ip、target.asset.ip 如果它是有效的 IP 地址,则直接映射。
endpoint_user_department target.user.department 直接映射。
endpoint_user_email target.user.email_addresses 直接映射。
endpoint_user_manager target.user.managers 使用 endpoint_user_manager 中的 user_display_name 创建一个管理器对象。
endpoint_user_name target.user.user_display_name 直接映射。
endpoint_user_title target.user.title 直接映射。
event_description metadata.description 直接映射。
event_id metadata.product_log_id 直接映射。
event_source target.application 直接映射。
event_timestamp metadata.event_timestamp 直接映射。
file_name security_result.about.file.full_path 直接映射。
filename target.file.full_path, src.file.full_path 直接映射到 target.file.full_path。如果 has_principal 为 true,则还需映射到 src.file.full_path 并将 event_type 设置为 FILE_COPY
主机 src.hostname、principal.hostname、principal.asset.hostname 如果 cef_data 包含 CEF,则映射到所有三个字段。否则,映射到 principal.hostnameprincipal.asset.hostname
incident_id security_result.threat_id、security_result.detection_fields 直接映射到 threat_id。此外,还要创建一个键为 Incident ID、值为 incident_id 的标签。
位置 principal.resource.attribute.labels 创建键为 Location 且值来自 location 的标签。
match_count security_result.detection_fields 创建键为 Match Count 且值来自 match_count 的标签。
monitor_name additional.fields 创建键为 Monitor Name 且值来自 monitor_name 的标签。
nas_id target.hostname、target.asset.hostname 直接映射。
occurred_on principal.labels、additional.fields principal.labelsadditional.fields 创建一个标签,该标签的键为 Occurred On,值为 occurred_on
policy_name sec_result.detection_fields 创建键为 policy_name 且值来自 policy_name 的标签。
policy_rule security_result.rule_name 直接映射。
policy_severity security_result.severity 转换为大写后,映射到 severity。如果 policy_severityINFO,则将其映射为 INFORMATIONAL。如果 policy_severity 不是 HIGHMEDIUMLOWINFORMATIONAL 中的一个,请将 severity 设置为 UNKNOWN_SEVERITY
policy_violated security_result.summary 直接映射。
协议 network.application_protocol, target.application, sec_result.description 如果 Protocol 不是 FTPEndpoint,请使用 parse_app_protocol.include 文件解析 Protocol,然后将其映射到 network.application_protocol。如果 ProtocolFTP,则将其映射到 target.application。如果 ProtocolEndpoint,请将 sec_result.description 设置为 Protocol=%{Protocol}
收件人 target.user.email_addresses, about.user.email_addresses 对于 recipient 中的每个电子邮件地址,将其同时映射到 target.user.email_addressesabout.user.email_addresses
收件人 network.http.referral_url, target.resource.attribute.labels 直接映射到 network.http.referral_url。此外,还要创建一个键为 recipients、值为 recipients 的标签。
reported_on additional.fields 创建键为 Reported On 且值来自 reported_on 的标签。
规则 security_result.detection_fields 创建键为 Rules 且值来自 rules 的标签。
发件人 network.email.from, target.resource.attribute.labels 如果 sender 是有效的电子邮件地址,则将其映射到 network.email.from。此外,还要创建一个键为 sender、值为 sender 的标签。
服务器 target.application 直接映射。
严重级别 security_result.severity 如需了解映射逻辑,请参阅 policy_severity
src principal.ip、principal.asset.ip 如果它是有效的 IP 地址,则直接映射。
状态 principal.labels、additional.fields principal.labelsadditional.fields 创建一个标签,该标签的键为 Status,值为 status
subject target.resource.attribute.labels, network.email.subject 创建键为 subject 且值来自 subject 的标签。此外,将 subject 映射到 network.email.subject
target_type target.resource.attribute.labels 创建键为 Target Type 且值来自 target_type 的标签。
时间戳 metadata.event_timestamp 使用 date 过滤条件解析后直接映射。
网址 target.url 直接映射。
用户 target.user.userid 直接映射。
user_id principal.user.userid 直接映射。
用户名 principal.user.userid 直接映射。
不适用 metadata.product_name 设置为 SYMANTEC_DLP
不适用 metadata.vendor_name 设置为 SYMANTEC
不适用 metadata.event_type 如果 event_type 不为空,则直接映射。否则,如果 host 不为空且 has_principal 为 true,则设置为 SCAN_NETWORK。否则,请将其设置为 GENERIC_EVENT
不适用 metadata.product_event_type 如果 policy_violated 包含 -NM-data 包含 DLP NM,则设置为 Network Monitor。如果 policy_violated 包含 -EP-data 包含 DLP EP,则设置为 Endpoint
不适用 metadata.log_type 设置为 SYMANTEC_DLP
subject event.idm.read_only_udm.network.email.subject 从变更日志映射
end event.idm.read_only_udm.metadata.event_timestamp 从变更日志映射
cnt event.idm.read_only_udm.network.session_duration.seconds 从变更日志映射
resolution event.idm.read_only_udm.security_result.detection_fields 从变更日志映射
dhost event.idm.read_only_udm.target.user.email_addresses 从变更日志映射
ATTACHMENT_FILENAME principal.file.full_path 从变更日志映射
DATAOWNER_NAME principal.user.userid 从变更日志映射
ENDPOINT_USERNAME principal.user.userid 从变更日志映射
reported_on" and "monitor_name additional.fields 从变更日志映射
incident_id" and "DLP_EP_Incident_ID security_result.detection_fields 从变更日志映射
application principal.application 从变更日志映射
Occurred on principal.labels 从变更日志映射

更新日志

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

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