收集 Forcepoint NGFW 日志
解析器版本: 16.0
支持范围:
Google SecOps
SIEM
本文档介绍了如何使用 Bindplane 代理将 Forcepoint NGFW 日志注入 Google Security Operations。
准备工作
请确保满足以下前提条件:
- Google SecOps 实例
- 搭载
systemd的 Windows 2016 或更高版本或 Linux 主机 - 如果通过代理运行,请确保防火墙端口根据 Bindplane 代理要求处于打开状态
- 拥有对 Forcepoint Security Management Center (SMC) 的特权访问权限
获取 Bindplane 代理的 Google SecOps 凭据
如需向 Google SecOps 验证 Bindplane 代理的身份,请选择以下方法之一:
- 新部署:使用 Chronicle API(方法 1)。
- 旧版部署:继续使用注入身份验证文件(方法 2),直到注入 API 于 2027 年 7 月 20 日停用为止。
方法 1:为 Chronicle API 创建服务帐号(推荐)
- 登录 Google Cloud 控制台,然后选择与您的 Google SecOps 实例关联的 Google Cloud 项目。
- 依次前往 IAM 和管理 > 服务账号。
- 点击创建服务账号 。
- 提供以下配置详细信息:
- 服务账号名称:输入账号的名称(例如
bindplane-ingest)。 - 服务账号说明:输入说明(例如
Bindplane agent log ingestion)。
- 服务账号名称:输入账号的名称(例如
- 点击创建并继续 。
- 在向此服务帐号授予对项目的访问权限 部分,点击选择角色 ,然后选择 Chronicle Editor 。
- 点击继续 ,然后点击完成 。
- 点击您创建的服务帐号,然后前往密钥 标签页。
- 依次点击添加密钥 > 创建新密钥。
- 选择 JSON ,然后点击创建 。密钥文件会下载到您的计算机上。
- 将密钥文件另存为 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以与您保存该文件的路径一致。 - 依次前往 IAM 和管理 > 设置 ,然后复制项目编号 。您需要此编号进行导出器配置。
方法 2:下载注入身份验证文件(旧版)
- 登录 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 代理安装指南。
配置 Bindplane 代理以注入 Syslog 并将其发送到 Google SecOps
访问配置文件:
- 找到
config.yaml文件。通常,该文件位于 Linux 上的/opt/observiq-otel-collector/目录或 Windows 上的安装目录中。 - 使用文本编辑器(例如
nano、vi或记事本)打开该文件。
- 找到
按如下方式修改
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: YOUR_CUSTOMER_ID endpoint: chronicle.googleapis.com # Add optional ingestion labels for better organization log_type: 'FORCEPOINT_FIREWALL' 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 和管理 > 设置 中的项目编号。 - 将
YOUR_CUSTOMER_ID替换为实际的客户 ID。 - 将
/path/to/ingestion-authentication-file.json更新为在第 1 步中保存服务帐号密钥文件(方法 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: YOUR_CUSTOMER_ID endpoint: malachiteingestion-pa.googleapis.com # Add optional ingestion labels for better organization log_type: 'FORCEPOINT_FIREWALL' raw_log_field: body ingestion_labels:
重启 Bindplane 代理以应用更改
如需在 Linux 中重启 Bindplane 代理,请运行以下命令:
sudo systemctl restart observiq-otel-collector如需在 Windows 中重启 Bindplane 代理,您可以使用服务 控制台,也可以输入以下命令:
net stop observiq-otel-collector && net start observiq-otel-collector
在 Forcepoint NGFW 上配置 Syslog 转发
- 登录 Forcepoint Security Management Center (SMC) 。
- 依次前往配置 > 日志服务器 > 属性。
- 前往日志转发 部分。
- 点击添加 以创建新的转发规则。
- 提供以下配置详细信息:
- 名称:输入描述性名称(例如
Google SecOps Bindplane Syslog)。 - 主机:输入 Bindplane 代理 IP 地址。
- 端口:输入 Bindplane 代理端口号(例如
514)。 - 协议:根据实际的 Bindplane 代理配置,选择 TCP 或 UDP。
- 格式:选择 JSON。
- 名称:输入描述性名称(例如
- 配置要转发的日志字段:
- 点击选择字段 或访问字段选择配置。
- 根据您的要求选择相关日志字段。以下字段通常是安全分析所必需的:
TIMESTAMP(创建时间)LOG_ID(数据标识符)EVENT(事件)EVENT_ID(事件 ID)SRC(来源地址)DST(目标地址)Sport(来源端口)Dport(目标端口)PROTOCOL(协议)SERVICE(服务)RULE_ID(规则标记)ACTION(操作)NAT_SRC、NAT_DST、NAT_SPORT、NAT_DPORT(NAT 字段)ACC_RX_BYTES、ACC_TX_BYTES、ACC_ELAPSED(结算字段)NODE_ID(发送者)COMP_ID(组件 ID)FACILITY(设施)INFO_MSG(信息消息)SITUATION(情况)APPLICATION(应用)
- 如需查看可导出的字段的完整列表,请参阅 Forcepoint NGFW 可导出的防火墙和第 2 层防火墙日志条目字段 文档。
- 向下滚动到 Events (事件)部分,然后选择相关日志类型或全部 。
- 保存配置。
将更改应用于日志服务器。
UDM 映射表
| 日志字段 | UDM 映射 | 逻辑 |
|---|---|---|
AccElapsed |
network.session_duration.seconds |
如果不为空或 0,则直接映射自 AccElapsed。转换为整数。 |
AccRxBytes |
network.received_bytes |
直接映射自 AccRxBytes。转换为无符号整数。 |
AccTxBytes |
network.sent_bytes |
直接映射自 AccTxBytes。转换为无符号整数。 |
Action |
security_result.action_details |
直接映射自 Action。 |
Action |
security_result.action |
如果 Action 为“Allow”,则设置为“ALLOW”。如果 Action 为“Discard”,则设置为“BLOCK”。 |
CompId |
target.hostname |
直接映射自 CompId。 |
Dport |
target.port |
如果不为 0,则直接映射自 Dport。转换为整数。 |
Dst |
target.ip |
直接映射自 Dst。 |
Event |
metadata.product_event_type |
直接映射自 Event。 |
Facility |
metadata.description |
直接映射自 Facility。 |
InfoMsg |
security_result.description |
直接映射自 InfoMsg。 |
LogId |
metadata.product_log_id |
直接映射自 LogId。 |
NatDport |
target.nat_port |
如果不为 0,则直接映射自 NatDport。转换为整数。 |
NatDst |
target.nat_ip |
直接映射自 NatDst。 |
NatSport |
principal.nat_port |
如果 不为 0,则直接映射自 NatSport。转换为整数。 |
NatSrc |
principal.nat_ip |
直接映射自 NatSrc。 |
NodeId |
intermediary.ip |
如果 Src 或 Dst 和 NodeId 都存在,则直接映射自 NodeId。 |
NodeId |
principal.ip |
如果 NodeId 存在,但 Src 和 Dst 不存在,则直接映射自 NodeId。 |
Protocol |
network.ip_protocol |
先将 Protocol 转换为整数,然后使用查询将数字转换为协议名称(例如,6 变为 TCP),再进行映射。 |
RuleId |
security_result.rule_id |
直接映射自 RuleId。 |
Service |
principal.application |
如果 Service 不是“Dest. Unreachable (Port Unreachable)”,则直接映射自 `Service`。 |
Service |
network.application_protocol |
如果 Service 为“HTTP”或“HTTPS”,则设置为 Service 的值。如果 Service 包含“DNS”,则设置为“DNS”。 |
Service |
metadata.event_type |
如果 Service 为“HTTP”或“HTTPS”,则将 metadata.event_type 设置为“NETWORK_HTTP”。 |
Situation |
security_result.summary |
直接映射自 Situation。 |
Sport |
principal.port |
如果不为 0,则直接映射自 Sport。转换为整数。 |
Src |
principal.ip |
直接映射自 Src。 |
Timestamp |
metadata.event_timestamp |
将 解析为日期后直接映射自 Timestamp。 |
Type |
security_result.severity_details |
直接映射自 Type。 |
Type |
security_result.severity |
如果 Type 为“Notification”,则设置为“LOW”。如果 Src 或 NodeId 和 Dst 或 CompId 存在,则设置为“NETWORK_CONNECTION”。如果仅存在 principal.ip,则设置为“STATUS_UPDATE”。否则,设置为“GENERIC_EVENT”。设置为“FORCEPOINT_FIREWALL”。设置为“FORCEPOINT FIREWALL”。设置为“FORCEPOINT”。 |
rt |
metadata.event_timestamp |
将 解析为 CEF 代码块中的日期后直接映射自 rt。 |
act |
security_result.action_details |
直接映射自 CEF 代码块中的 act。 |
app |
principal.application |
直接映射自 CEF 代码块中的 app。 |
deviceFacility |
metadata.description |
直接映射自 CEF 代码块中的 deviceFacility。 |
destinationTranslatedAddress |
target.nat_ip |
直接映射自 CEF 代码块中的 destinationTranslatedAddress。 |
destinationTranslatedPort |
target.nat_port |
直接映射自 CEF 代码块中的 destinationTranslatedPort。 |
dst |
target.ip |
直接映射自 CEF 代码块中的 dst。 |
dpt |
target.port |
直接映射自 CEF 代码块中的 dpt。 |
dvchost |
intermediary.ip |
直接映射自 CEF 代码块中的 dvchost。 |
event_name |
metadata.product_event_type |
直接映射自 CEF 代码块中的 event_name。 |
msg |
security_result.description |
直接映射自 CEF 代码块中的 msg。 |
proto |
network.ip_protocol |
先将 proto 转换为整数,然后使用查询将数字转换为协议名称(例如,6 变为 TCP),再在 CEF 块中进行映射。 |
sourceTranslatedAddress |
principal.nat_ip |
直接映射自 CEF 代码块中的 sourceTranslatedAddress。 |
sourceTranslatedPort |
principal.nat_port |
直接映射自 CEF 代码块中的 sourceTranslatedPort。 |
spt |
principal.port |
直接映射自 CEF 代码块中的 spt。 |
src |
principal.ip |
直接映射自 CEF 代码块中的 src。 |
NodeId |
event.idm.read_only_udm.intermediary.ip |
从变更日志映射 |
CompId |
event.idm.read_only_udm.intermediary.hostname |
从变更日志映射 |
eventid |
metadata.product_log_id |
从变更日志映射 |