收集 Sophos Firewall (SFOS) 日志
本文档介绍了如何使用 Bindplane 将 Sophos Firewall 日志注入到 Google Security Operations。Sophos Firewall (SFOS) 是一种新一代防火墙,可提供网络安全、Web 过滤、应用控制、IPS、VPN 和高级威胁防护功能。SFOS 可在 Sophos XGS 系列硬件设备、虚拟和云部署中运行,并可针对防火墙规则、Web 过滤、IPS 事件、身份验证、VPN 连接和系统活动生成详细日志。
如需了解详情,请参阅收集 Sophos 防火墙日志。
准备工作
请确保满足以下前提条件:
- Google SecOps 实例。
- 搭载 systemd 的 Windows 2016 或更高版本或 Linux 主机。
- 如果在代理后面运行,请确保防火墙端口已根据 Bindplane 代理要求打开。
- 以管理员角色对 Sophos 防火墙 Web 管理控制台拥有特权访问权限。
- 运行 SFOS v18 或更高版本的 Sophos Firewall。
获取 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](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](https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh))" install_unix.sh
其他安装资源
如需了解其他安装选项,请参阅此安装指南。
配置 Bindplane 代理以注入 Syslog 并将其发送到 Google SecOps
访问配置文件:
- 找到
config.yaml文件。通常,它位于 Linux 上的/opt/observiq-otel-collector/config.yaml目录中或 Windows 上的安装目录中。 - 使用文本编辑器(例如
nano、vi或记事本)打开该文件。
- 找到
按如下方式修改
config.yaml文件:receivers: udplog: listen_address: "0.0.0.0:514" exporters: chronicle/sophos_firewall: compression: gzip creds_file_path: '/path/to/ingestion-authentication-file.json' customer_id: '<CUSTOMER_ID>' endpoint: malachiteingestion-pa.googleapis.com log_type: SOPHOS_FIREWALL raw_log_field: body ingestion_labels: service: pipelines: logs/sophos_fw_to_chronicle: receivers: - udplog exporters: - chronicle/sophos_firewall
- 根据基础架构的需要替换端口和 IP 地址。
- 将
<CUSTOMER_ID>替换为实际的客户 ID。 - 将
/path/to/ingestion-authentication-file.json更新为保存身份验证文件的路径。
重启 Bindplane 代理以应用更改
如需在 Linux 中重启 Bindplane 代理,请运行以下命令:
sudo systemctl restart observiq-otel-collector如需在 Windows 中重启 Bindplane 代理,您可以使用服务控制台,也可以输入以下命令:
net stop observiq-otel-collector && net start observiq-otel-collector
在 Sophos 防火墙上配置 syslog 转发
添加 syslog 服务器
- 登录 Sophos 防火墙 Web 管理控制台。
- 依次前往系统服务 > 日志设置。
- 向下滚动到 Syslog 服务器部分。
点击添加以添加新的 syslog 服务器。
提供以下配置详细信息:
- 名称:输入一个描述性名称(例如
Bindplane-SecOps)。 - IP 地址/网域:输入 Bindplane 代理主机 IP 地址。
- 端口:输入
514(或您配置的端口)。 - 设备:选择 DAEMON。
- 严重程度:选择信息(建议选择此项以进行全面的日志记录)。
- 格式:选择设备标准格式。
- 名称:输入一个描述性名称(例如
点击保存。
选择要转发的日志类型
- 在 Syslog 服务器部分,点击 syslog 服务器条目
Bindplane-SecOps。 在日志类型部分,启用要转发的日志类别:
- 防火墙:防火墙规则命中次数、丢弃的流量和允许的连接。
- IPS:入侵防御系统提醒和事件。
- 防病毒:恶意软件检测事件。
- 反垃圾信息:垃圾信息检测和过滤事件。
- 内容过滤:网络过滤和网址分类事件。
- 事件:系统事件、身份验证和管理活动。
- Web 服务器保护:WAF 事件。
- 高级威胁防护:Sandstorm 和 ATP 检测事件。
- 无线:无线接入点事件(如有)。
- 心跳:Sophos Security Heartbeat 状态发生变化(如果已启用同步安全)。
- 系统健康状况:硬件和软件健康状况事件。
- 身份验证:用户和管理员身份验证事件。
- 管理员:管理控制台活动。
点击应用。
验证 Syslog 转发
- 在 Sophos Firewall Web 管理控制台中,前往日志查看器。
- 验证是否正在生成日志条目。
检查 Bindplane 代理日志,确认是否正在接收 syslog 消息:
sudo journalctl -u observiq-otel-collector -f
如需了解详情,请参阅 Sophos 防火墙 syslog 文档。
UDM 映射表
| 日志字段 | UDM 映射 | 逻辑 |
|---|---|---|
device_id |
intermediary.asset.asset_id |
直接映射 |
device_serial_id |
intermediary.asset.asset_id |
直接映射 |
device_model |
intermediary.hostname |
直接映射 |
device_name |
intermediary.hostname |
直接映射 |
log_msg |
metadata.description |
直接映射 |
date_time |
metadata.event_timestamp |
解析为 yyyy-MM-dd HH:mm:ss Z |
timestamp |
metadata.event_timestamp |
解析为 yyyy-MM-ddTHH:mm:ssZ |
log_component |
metadata.product_event_type |
直接映射 |
log_id |
metadata.product_log_id |
直接映射 |
client_physical_address |
network.dhcp.chaddr |
直接映射 |
ipaddress |
network.dhcp.ciaddr |
直接映射 |
client_host_name |
network.dhcp.client_hostname |
直接映射 |
user_agent |
network.http.parsed_user_agent |
已重命名/已映射 |
referer |
network.http.referral_url |
直接映射 |
http_status |
network.http.response_code |
已重命名/已映射 |
status_code |
network.http.response_code |
已重命名/已映射 |
user_agent |
network.http.user_agent |
直接映射 |
ip_protocol_out |
network.ip_protocol |
直接映射 |
bytes_received |
network.received_bytes |
已重命名/已映射 |
recv_bytes |
network.received_bytes |
已重命名/已映射 |
packets_received |
network.received_packets |
已重命名/已映射 |
recv_pkts |
network.received_packets |
已重命名/已映射 |
bytes_sent |
network.sent_bytes |
已重命名/已映射 |
sent_bytes |
network.sent_bytes |
已重命名/已映射 |
packets_sent |
network.sent_packets |
已重命名/已映射 |
sent_pkts |
network.sent_packets |
已重命名/已映射 |
duration |
network.session_duration.seconds |
已重命名/已映射 |
domain |
principal.administrative_domain |
已重命名/已映射 |
app_name |
principal.application |
直接映射 |
application |
principal.application |
直接映射 |
ipaddress |
principal.ip |
已合并 |
src_ip |
principal.ip |
已合并 |
src_country |
principal.location.country_or_region |
直接映射 |
src_country_code |
principal.location.country_or_region |
直接映射 |
src_mac |
principal.mac |
已合并 |
src_trans_ip |
principal.nat_ip |
已合并 |
tran_src_ip |
principal.nat_ip |
已合并 |
src_trans_port |
principal.nat_port |
已重命名/已映射 |
tran_src_port |
principal.nat_port |
已重命名/已映射 |
src_port |
principal.port |
已重命名/已映射 |
user_name |
principal.user.email_addresses |
已映射:.*?@.* → user_name |
user_name |
principal.user.userid |
直接映射 |
action |
security_result.action |
已合并 |
status |
security_result.action_details |
直接映射 |
_about0 |
security_result.detection_fields |
已合并 |
_about2 |
security_result.detection_fields |
已合并 |
activityname_label |
security_result.detection_fields |
已合并 |
appCategory_label |
security_result.detection_fields |
已合并 |
appTech_label |
security_result.detection_fields |
已合并 |
app_filter_policy_id_label |
security_result.detection_fields |
已合并 |
app_is_cloud_label |
security_result.detection_fields |
已合并 |
app_resolved_by_label |
security_result.detection_fields |
已合并 |
category_type_label |
security_result.detection_fields |
已合并 |
con_event_label |
security_result.detection_fields |
已合并 |
con_id_label |
security_result.detection_fields |
已合并 |
connevent_label |
security_result.detection_fields |
已合并 |
connid_label |
security_result.detection_fields |
已合并 |
dst_zone_type_label |
security_result.detection_fields |
已合并 |
dstzonetype_label |
security_result.detection_fields |
已合并 |
ether_type_label |
security_result.detection_fields |
已合并 |
exceptions_label |
security_result.detection_fields |
已合并 |
gw_id_request_label |
security_result.detection_fields |
已合并 |
gw_name_request_label |
security_result.detection_fields |
已合并 |
hb_health_label |
security_result.detection_fields |
已合并 |
hb_status_label |
security_result.detection_fields |
已合并 |
http_category_label |
security_result.detection_fields |
已合并 |
http_category_type_label |
security_result.detection_fields |
已合并 |
in_display_interface_label |
security_result.detection_fields |
已合并 |
in_interface_label |
security_result.detection_fields |
已合并 |
log_component_label |
security_result.detection_fields |
已合并 |
log_occurrence_label |
security_result.detection_fields |
已合并 |
log_subtype_label |
security_result.detection_fields |
已合并 |
log_type_label |
security_result.detection_fields |
已合并 |
log_version_label |
security_result.detection_fields |
已合并 |
nat_rule_id_label |
security_result.detection_fields |
已合并 |
nat_rule_name_label |
security_result.detection_fields |
已合并 |
out_display_interface_label |
security_result.detection_fields |
已合并 |
out_interface_label |
security_result.detection_fields |
已合并 |
qualifier_label |
security_result.detection_fields |
已合并 |
reason_label |
security_result.detection_fields |
已合并 |
risk_label |
security_result.detection_fields |
已合并 |
src_zone_type_label |
security_result.detection_fields |
已合并 |
srczonetype_label |
security_result.detection_fields |
已合并 |
used_quota_label |
security_result.detection_fields |
已合并 |
web_policy_id_label |
security_result.detection_fields |
已合并 |
fw_rule_id |
security_result.rule_id |
直接映射 |
fw_rule_name |
security_result.rule_name |
直接映射 |
fw_rule_section |
security_result.rule_set |
直接映射 |
fw_rule_type |
security_result.rule_type |
直接映射 |
priority |
security_result.severity |
已映射:"INFORMATION", "NOTIFICATION", "NOTICE" → INFORMATIONAL,"ERROR","WARNING" → `... |
reason |
security_result.summary |
直接映射 |
domain |
target.hostname |
直接映射 |
dst_ip |
target.ip |
已合并 |
dst_country |
target.location.country_or_region |
直接映射 |
dst_country_code |
target.location.country_or_region |
直接映射 |
dst_mac |
target.mac |
已合并 |
dst_trans_ip |
target.nat_ip |
已合并 |
tran_dst_ip |
target.nat_ip |
已合并 |
dst_trans_port |
target.nat_port |
已重命名/已映射 |
tran_dst_port |
target.nat_port |
已重命名/已映射 |
dst_port |
target.port |
已重命名/已映射 |
url |
target.url |
直接映射 |
| 不适用 | extensions.auth.type |
常量:VPN |
| 不适用 | metadata.event_type |
常量:NETWORK_HTTP |
| 不适用 | metadata.product_name |
常量:SOPHOS Firewall |
| 不适用 | metadata.vendor_name |
常量:SOPHOS |
| 不适用 | network.application_protocol |
常量:DHCP |
| 不适用 | security_result.severity |
常量:INFORMATIONAL |
date_time |
event.idm.read_only_udm.metadata.event_timestamp |
从变更日志映射 |
referer |
network.http.referer_url |
从变更日志映射 |
device_serial_id |
principal.asset.asset_id |
从变更日志映射 |
application_category, application_risk and application_technology |
security_result.detection_fields |
从变更日志映射 |
user_name |
event.idm.read_only_udm.principal.user.userid |
从变更日志映射 |
device_id |
event.idm.read_only_udm.principal.asset.asset_id |
从变更日志映射 |
更新日志
需要更多帮助?获得社区成员和 Google SecOps 专业人士的解答。