收集 ESET EDR 日志

支持的语言:

本文档介绍了如何使用 Bindplane 将 ESET 日志注入到 Google Security Operations。Logstash 解析器代码首先尝试使用一系列 grok 模式从 SYSLOG 或 JSON 格式的 ESET EDR 日志中提取字段。根据提取的字段及其格式,它会使用键值 (kv) 过滤器或 JSON 解析进一步处理数据,以将信息结构化为统一数据模型 (UDM) 表示形式。

准备工作

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

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

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

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

获取 Google SecOps 客户 ID

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

安装 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
            ingestion_labels:
                log_type: 'ESET_EDR'
                raw_log_field: body
    
    service:
        pipelines:
            logs/source0__chronicle_w_labels-0:
                receivers:
                    - udplog
                exporters:
                    - chronicle/chronicle_w_labels
    
  3. 根据基础架构的需要替换端口和 IP 地址。

  4. <customer_id> 替换为实际的客户 ID。

  5. /path/to/ingestion-authentication-file.json 更新为获取 Google SecOps 提取身份验证文件部分中保存身份验证文件的路径。

重启 Bindplane 代理以应用更改

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

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

    net stop BindPlaneAgent && net start BindPlaneAgent
    

为 ESET PROTECT 本地版配置 Syslog

  1. 登录 ESET Protect Web 控制台。
  2. 依次前往更多 > 设置 > 高级设置 > Syslog 服务器
  3. 选择启用 Syslog 旁边的切换开关。
  4. 提供以下配置详细信息:
    • 主机:输入 Bindplane 代理 IP 地址
    • 端口:输入 Bindplane 代理端口号(UDP 为 514
    • 格式:选择 Syslog
    • 传输:选择 UDP
    • 跟踪记录日志详细程度:选择信息
    • “将日志导出到 Syslog”切换开关:选择启用
    • 导出的日志格式:选择 JSON
  5. 点击保存

为 ESET PROTECT Cloud 配置 Syslog

  1. 登录 ESET Protect Web 控制台。
  2. 依次前往更多 > 设置 > Syslog 服务器
  3. 选择启用 Syslog 旁边的切换开关。
  4. 提供以下配置详细信息:
    • 载荷格式:选择 JSON
    • 信封格式:选择 Syslog
    • 最低日志级别:选择 Informational
    • 要记录的事件类型:选择所有事件类型
    • 目标 IP:输入 Bindplane 代理 IP 地址
    • 端口:输入 Bindplane 代理端口号(UDP 为 514
  5. 点击保存

UDM 映射表

日志字段 UDM 映射 逻辑
操作 event1.idm.read_only_udm.security_result.action 如果值为 Blocked,则有条件地设置为 BLOCK
actionTaken event2.idm.read_only_udm.metadata.event_type 如果值为 Cleaned by deleting,则有条件地设置为 SCAN_PROCESS
actionTaken event1.idm.read_only_udm.security_result.action_details 直接从 actionTaken 字段映射。
actionTaken event2.idm.read_only_udm.security_result.action_details 直接从 actionTaken 字段映射。
accountName event2.idm.read_only_udm.additional.fields.value.string_value 直接从 accountName 字段映射。该键设置为 accountName
应用 event3.idm.read_only_udm.principal.application 直接从 app 字段映射。
情况 event2.idm.read_only_udm.additional.fields.value.string_value 直接从 circumstances 字段映射。该键设置为 circumstances
Computer_name event3.idm.read_only_udm.principal.hostname 直接从 Computer_name 字段映射。
Computer_name event3.idm.read_only_udm.principal.asset.hostname 直接从 Computer_name 字段映射。
date_time
Detection_name event3.idm.read_only_udm.security_result.threat_name 直接从 Detection_name 字段映射。
Detectiontype event3.idm.read_only_udm.security_result.category_details 直接从 Detectiontype 字段映射。
dst event2.idm.read_only_udm.target.ip 直接从 dst 字段映射。
dst event2.idm.read_only_udm.target.asset.ip 直接从 dst 字段映射。
dstPort event2.idm.read_only_udm.target.port 直接从 dstPort 字段映射,并将其转换为整数。
事件 event1.idm.read_only_udm.metadata.description 直接从 event 字段映射。
event_type event1.idm.read_only_udm.metadata.product_event_type 直接从 event_type 字段映射。
event_type event1.idm.read_only_udm.metadata.event_type 如果值为 FirewallAggregated_Event,则有条件地设置为 NETWORK_CONNECTION
哈希 event1.idm.read_only_udm.target.file.sha1 直接从 hash 字段映射,并将其转换为小写形式。
主机名 event1.idm.read_only_udm.target.hostname 直接从 hostname 字段映射。
主机名 event1.idm.read_only_udm.target.asset.hostname 直接从 hostname 字段映射。
主机名 event.alert.devices.hostname 直接从 hostname 字段映射。
ipv4 event1.idm.read_only_udm.principal.ip 直接从 ipv4 字段映射。此字段首先存储在临时字段 udm_ip 中。
ipv4 event1.idm.read_only_udm.principal.asset.ip 直接从 ipv4 字段映射。此字段首先存储在临时字段 udm_ip 中。
ipv4 event.alert.devices.ip_addresses 直接从 ipv4 字段映射,前提是将该字段转换为 IP 地址。
Logged_user event3.idm.read_only_udm.principal.user.userid 直接从 Logged_user 字段映射。
objectUri event1.idm.read_only_udm.target.file.full_path 直接从 objectUri 字段映射。
objectUri event2.idm.read_only_udm.target.file.full_path 直接从 objectUri 字段映射。
processName event2.idm.read_only_udm.target.process.file.full_path 直接从 processName 字段映射。
processName event1.idm.read_only_udm.principal.process.file.full_path 直接从 processName 字段映射。
process_id event3.idm.read_only_udm.principal.process.pid 直接从 process_id 字段映射。
process_id event2.idm.read_only_udm.target.process.pid 直接从 process_id 字段映射。
协议 event1.idm.read_only_udm.network.ip_protocol 直接从 protocol 字段映射。
proto event2.idm.read_only_udm.network.ip_protocol 直接从 proto 字段映射。
结果 event2.idm.read_only_udm.security_result.action 如果值为 Success,则有条件地设置为 ALLOW
扫描器 event3.idm.read_only_udm.security_result.description 直接从 Scanner 字段映射。
和程度上减少 event1.idm.read_only_udm.security_result.severity 根据以下条件从 severity 字段映射:- INFOInformationalDEBUGinfoINFORMATIONAL - ERRORerrorERROR - WARNINGWarningLOW
source_address event1.idm.read_only_udm.principal.ip 直接从 source_address 字段映射。
source_address event1.idm.read_only_udm.principal.asset.ip 直接从 source_address 字段映射。
source_port event1.idm.read_only_udm.principal.port 直接从 source_port 字段映射,并将其转换为整数。
source_uuid event1.idm.read_only_udm.metadata.product_log_id 直接从 source_uuid 字段映射。
src event2.idm.read_only_udm.principal.ip 直接从 src 字段映射。
src event2.idm.read_only_udm.principal.asset.ip 直接从 src 字段映射。
srcPort event2.idm.read_only_udm.principal.port 直接从 srcPort 字段映射,并将其转换为整数。
target_address event1.idm.read_only_udm.target.ip 直接从 target_address 字段映射。
target_address event1.idm.read_only_udm.target.asset.ip 直接从 target_address 字段映射。
target_port event1.idm.read_only_udm.target.port 直接从 target_port 字段映射,并将其转换为整数。
threatName event2.idm.read_only_udm.security_result.threat_name 直接从 threatName 字段映射。
threatName event.alert.alert_short_name 直接从 threatName 字段映射。
Time_of_occurrence event3.idm.read_only_udm.additional.fields.value.string_value 直接从 Time_of_occurrence 字段映射。该键设置为 Time_of_occurrence
类型 event2.idm.read_only_udm.security_result.category_details 直接从 type 字段映射。
类型 event2.idm.read_only_udm.metadata.event_type 如果没有匹配到其他特定事件类型,则有条件地设置为 GENERIC_EVENT
user_id event2.idm.read_only_udm.principal.user.userid 直接从 user_id 字段映射。
event1.idm.read_only_udm.metadata.event_type 如果 event_type 的值为 Threat_Event,则有条件地设置为 FILE_UNCATEGORIZED
event1.idm.read_only_udm.metadata.log_type 设置为 ESET_EDR
event1.idm.read_only_udm.metadata.product_name 如果 event_type 的值为 FirewallAggregated_Event,则有条件地设置为 ESET
event2.idm.read_only_udm.metadata.log_type 设置为 ESET_EDR
event2.idm.read_only_udm.metadata.product_name 设置为 EDR
event2.idm.read_only_udm.metadata.vendor_name 设置为 ESET
event3.idm.read_only_udm.metadata.event_type 根据以下规则有条件地设置:如果 principal_user_presenttrue,则为 USER_UNCATEGORIZED。- 如果 principal_machine_id_presenttrue,则为 STATUS_UPDATE。- 否则为 GENERIC_EVENT
event3.idm.read_only_udm.metadata.log_type 设置为 ESET_EDR
event3.idm.read_only_udm.metadata.product_name 设置为 EDR
event3.idm.read_only_udm.metadata.vendor_name 设置为 ESET
event.alert.is_significant 设置为 true,然后转换为布尔值。
event3.idm.read_only_udm.security_result.description 如果 Scanner 为空,则有条件地设置为 kv_data 的值。

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