收集 Trellix DLP 日志
支持的语言:
Google SecOps
SIEM
本文档介绍了如何使用 Bindplane 将 Trellix(原 McAfee)DLP(数据丢失防护)日志注入到 Google Security Operations。此解析器可处理 CSV 格式的 McAfee DLP 日志,并将其转换为统一数据模型 (UDM)。它会清理输入内容、解析 CSV 数据、将字段映射到 UDM、处理特定的 DLP 事件类型和严重程度,并使用其他元数据和安全结果详细信息来丰富 UDM。
准备工作
请确保满足以下前提条件:
- Google SecOps 实例
- Windows 2016 或更高版本,或者具有
systemd
的 Linux 主机 - 如果在代理后运行,防火墙端口处于开放状态
- 对 McAfee EPO 的特权访问权限
- McAfee DLP Endpoint Extension 已安装并处于活跃状态
获取 Google SecOps 注入身份验证文件
- 登录 Google SecOps 控制台。
- 依次前往 SIEM 设置 > 收集代理。
- 下载注入身份验证文件。将该文件安全地保存在将要安装 Bindplane 的系统上。
获取 Google SecOps 客户 ID
- 登录 Google SecOps 控制台。
- 依次前往 SIEM 设置 > 配置文件。
- 复制并保存组织详细信息部分中的客户 ID。
安装 Bindplane 代理
按照以下说明在 Windows 或 Linux 操作系统上安装 Bindplane 代理。
Windows 安装
- 以管理员身份打开命令提示符或 PowerShell。
运行以下命令:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
Linux 安装
- 打开具有 root 或 sudo 权限的终端。
运行以下命令:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
其他安装资源
如需了解其他安装选项,请参阅安装指南。
配置 Bindplane 代理以注入 Syslog 并将其发送到 Google SecOps
- 访问配置文件:
- 找到
config.yaml
文件。通常,它位于 Linux 上的/etc/bindplane-agent/
目录中或 Windows 上的安装目录中。 - 使用文本编辑器(例如
nano
、vi
或记事本)打开该文件。
- 找到
按如下方式修改
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: 'MCAFEE_DLP' raw_log_field: body service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - udplog exporters: - chronicle/chronicle_w_labels
- 根据基础架构的需要替换端口和 IP 地址。
- 将
<customer_id>
替换为实际的客户 ID。 - 将
/path/to/ingestion-authentication-file.json
更新为获取 Google SecOps 提取身份验证文件部分中保存身份验证文件的路径。
重启 Bindplane 代理以应用更改
如需在 Linux 中重启 Bindplane 代理,请运行以下命令:
sudo systemctl restart bindplane-agent
如需在 Windows 中重启 Bindplane 代理,您可以使用服务控制台,也可以输入以下命令:
net stop BindPlaneAgent && net start BindPlaneAgent
在 McAfee ePO 中配置 Syslog 服务器
- 登录 McAfee ePO 控制台。
- 依次前往菜单 > 配置 > 已注册的服务器。
- 依次点击 New Server> Syslog Server。
- 提供以下配置详细信息:
- 名称:Syslog 服务器的唯一名称(例如
Google SecOps
)。 - 服务器地址:输入 Bindplane 代理 IP 地址。
- 端口:输入 Bindplane 代理端口号(默认为
514
)。 - 协议:选择 UDP 或 TCP(取决于您的 Bindplane 代理安装)。
- 格式:使用
CSV
或CEF
。
- 名称:Syslog 服务器的唯一名称(例如
- 点击保存。
配置数据泄露防护事件转发
- 依次前往菜单 > 数据保护 > DLP 政策管理器。
- 点击 DLP 政策分配规则标签页。
- 修改适用于目标系统的规则或创建新规则。
- 前往规则的操作标签页。
- 选中记录到 Syslog 服务器对应的复选框,然后选择您之前创建的 Syslog 服务器。
- 保存规则。
启用 DLP 突发事件转发
- 依次前往菜单 >“数据保护”>“DLP 事件管理器”。
- 点击突发事件操作。
- 创建或修改转发到 Syslog 服务器的操作。
- 将此操作分配给数据泄露防护政策中的规则。
部署政策
- 前往系统树 > 选择所需的群组或系统。
- 依次点击操作 > 代理 > 唤醒代理。
- 选择 Send Policies。
- 点击确定。
UDM 映射表
日志字段 | UDM 映射 | 逻辑 |
---|---|---|
action |
security_result.action_details |
直接从 action 字段映射。 |
action |
security_result.action |
派生自 action 字段。如果 action 为 1,则为 BLOCK。如果 action 为 0,则为 ALLOW。如果 action 为 6,则为 UNKNOWN_ACTION。 |
agent_ver |
metadata.product_version |
直接从 agent_ver 字段(来自 column8 )映射。 |
class_count |
additional.fields[4].key |
值为 ClassCount 。 |
class_count |
additional.fields[4].value.string_value |
直接从 class_count 字段映射。 |
class_display |
additional.fields[5].key |
值为 ClassDisplay 。 |
class_display |
additional.fields[5].value.string_value |
直接从 class_display 字段映射。 |
count |
additional.fields[6].key |
值为 Count 。 |
count |
additional.fields[6].value.string_value |
直接从 count 字段映射。 |
device_name |
principal.hostname |
直接从 device_name 字段映射。 |
dst |
target.hostname |
如果 inc_type 为 10000 ,则直接从 dst 字段映射。 |
dst |
target.user.userid |
如果 inc_type 不是 10000 ,则直接从 dst 字段映射。 |
dst_app |
target.application |
直接从 dst_app 字段映射。 |
dst_url |
target.url |
直接从 dst_url 字段映射。 |
encrypt |
security_result.detection_fields[1].key |
值为 EncryptionProvider 。 |
encrypt |
security_result.detection_fields[1].value |
直接从 encrypt 字段映射。 |
evidence_count |
additional.fields[2].key |
值为 EvidenceCount 。 |
evidence_count |
additional.fields[2].value.string_value |
直接从 evidence_count 字段映射。 |
fail_reason |
additional.fields[3].key |
值为 FailReason 。 |
fail_reason |
additional.fields[3].value.string_value |
直接从 fail_reason 字段映射。 |
fail_reason |
security_result.description |
如果 fail_reason 为 0 ,则该值为 No Failure 。否则,该值为 Failure Occurred 。 |
file |
target.file.full_path |
直接从 file 字段映射。 |
file_size |
target.file.size |
直接从 file_size 字段映射,并转换为无符号整数。 |
group |
principal.user.attribute.labels.key |
值为 group 。 |
group |
principal.user.attribute.labels.value |
直接从 group 字段映射。 |
inc_id |
metadata.product_log_id |
直接从 inc_id 字段(来自 column1 )映射。 |
inc_type |
metadata.event_type |
用于条件逻辑中,以确定 metadata.event_type 。如需了解详情,请参阅逻辑。 |
inc_type |
metadata.product_event_type |
直接从 inc_type 字段(来自 column2 )映射。 |
ip |
principal.ip |
使用 grok 从 ip 字段中提取的 IP 地址。 |
local_date |
metadata.event_timestamp |
local_date 字段中的时间戳,经过解析并转换为自纪元以来经过的秒数。 |
name |
principal.user.user_display_name |
直接从 name 字段映射。如果 inc_type 位于 [10000 ,10001 ,10002 ,40101 ,40400 ,40500 ,40700 ] 中,且 ip 是有效的 IP,则值为 SCAN_NETWORK 。如果 inc_type 为 40102 且 file 不为空,则值为 SCAN_FILE 。如果 inc_type 位于 [40301 ,40602 ] 中,则值为 PROCESS_UNCATEGORIZED 。否则,该值为 GENERIC_EVENT 。硬编码值:GCP_CLOUDAUDIT 。硬编码值:Mcafee DLP 。硬编码值:Mcafee 。如果 status_id 位于 [1 ,2 ] 中,则值为 NEW 。如果 status_id 位于 [3 ,4 ] 中,则值为 CLOSED 。如果 status_id 位于 [5 ,6 ] 中,则值为 REVIEWED 。值为 StatusId 。值为 Resolution Id 。值为 Expected Action 。 |
process_name |
target.process.file.full_path |
直接从 process_name 字段映射。 |
resolution_id |
security_result.about.labels[0].value |
直接从 resolution_id 字段映射。 |
rule_name |
security_result.rule_name |
直接从 rule_name 字段映射。 |
rule_set |
security_result.rule_labels.key |
值为 rule_set 。 |
rule_set |
security_result.rule_labels.value |
直接从 rule_set 字段映射。 |
sev |
security_result.severity |
派生自 sev 字段。如果 sev 为 1,则为 INFORMATIONAL。如果 sev 为 2,则表示 ERROR。如果 sev 为 3,则为 LOW。如果 sev 为 4,则为 HIGH。如果 sev 为 5,则为严重。 |
sev |
security_result.severity_details |
直接从 sev 字段映射。 |
status_id |
principal.labels.value |
直接从 status_id 字段映射。 |
total_count |
additional.fields[1].key |
值为 TotalCount 。 |
total_count |
additional.fields[1].value.string_value |
直接从 total_count 字段映射。 |
total_size |
additional.fields[0].key |
值为 TotalSize 。 |
total_size |
additional.fields[0].value.string_value |
直接从 total_size 字段映射。 |
usb_serial_number |
security_result.detection_fields[0].key |
值为 USBSerialNumber 。 |
usb_serial_number |
security_result.detection_fields[0].value |
直接从 usb_serial_number 字段映射。 |
user |
principal.user.userid |
直接从 user 字段映射。 |
user_ou |
principal.user.group_identifiers |
直接从 user_ou 字段映射。 |
volume_serial_number |
security_result.detection_fields[2].key |
值为 VolumeSerialNumber 。 |
volume_serial_number |
security_result.detection_fields[2].value |
直接从 volume_serial_number 字段映射。 |
expected_action |
security_result.about.labels[1].value |
直接从 expected_action 字段映射。 |
需要更多帮助?从社区成员和 Google SecOps 专业人士那里获得解答。