收集 SecureAuth Identity Platform 日志
支持的平台:
Google SecOps
SIEM
本文档介绍了如何使用 Bindplane 将 SecureAuth Identity Platform 日志注入到 Google 安全运营中心。解析器使用 grok 和 xml 过滤器从各种日志格式(SYSLOG、XML、键值对)中提取字段。然后,它会将提取的字段映射到相应的 UDM(统一数据模型)属性,使用安全事件上下文丰富数据,并标准化输出以进行进一步分析。
准备工作
- 确保您有一个 Google Security Operations 实例。
- 确保您使用的是 Windows 2016 或更高版本,或者使用了带有
systemd
的 Linux 主机。 - 如果在代理后面运行,请确保防火墙端口处于打开状态。
- 确保您拥有对 SecureAuth 的特权访问权限。
获取 Google SecOps 提取身份验证文件
- 登录 Google SecOps 控制台。
- 依次前往 SIEM 设置 > 收集代理。
- 下载提取身份验证文件。将该文件安全地保存在将安装 BindPlane 的系统上。
获取 Google SecOps 客户 ID
- 登录 Google SecOps 控制台。
- 依次选择 SIEM 设置 > 配置文件。
- 复制并保存组织详细信息部分中的客户 ID。
安装 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: '/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: SECUREAUTH_SSO raw_log_field: body service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - udplog exporters: - chronicle/chronicle_w_labels
根据基础架构中的需要替换端口和 IP 地址。
将
<customer_id>
替换为实际的客户 ID。在获取 Google SecOps 提取身份验证文件部分中,将
/path/to/ingestion-authentication-file.json
更新为身份验证文件的保存路径。
重启 Bindplane 代理以应用更改
如需在 Linux 中重启 Bindplane 代理,请运行以下命令:
sudo systemctl restart bindplane-agent
如需在 Windows 中重启 Bindplane 代理,您可以使用服务控制台,也可以输入以下命令:
net stop BindPlaneAgent && net start BindPlaneAgent
配置 SecureAuth Identity Platform
- 登录 SecureAuth Identity 控制台。
- 选择日志。
- 在日志选项部分中,提供以下配置详细信息:
- 日志实例 ID:输入日志实例 ID、应用名称或领域名称;例如
SecureAuth1
。 - 审核日志:选中 Syslog 复选框。
- 错误日志:选中 Syslog 复选框。
- Syslog 服务器:输入 Bindplane 代理的 IP 地址。
- Syslog 端口:输入 Bindplane 代理端口号;例如
514
。 - Syslog RFC 规范:选择 RFC 5424。
- 日志实例 ID:输入日志实例 ID、应用名称或领域名称;例如
- 点击保存。
UDM 映射表
日志字段 | UDM 映射 | 逻辑 |
---|---|---|
action_msg | read_only_udm.target.process.command_line | action_msg 字段的值 |
设备 | read_only_udm.principal.domain.name | Appliance 字段的值 |
设备 | read_only_udm.target.administrative_domain | Appliance 字段的值 |
BrowserSession | read_only_udm.network.session_id | BrowserSession 字段的值 |
猫 | read_only_udm.metadata.product_event_type | cat 字段的值 |
类别 | read_only_udm.metadata.product_event_type | Category 字段的值 |
cn1 | security_result.severity | 当 cn1Label 为“优先级”时,根据 cn1 的值进行映射:1 - 高、2 - 中、3 或 4 - 低 |
公司 | read_only_udm.additional.fields.value.string_value | Company 字段的值 |
cs1 | read_only_udm.network.session_id | cs1Label 为“BrowserSession”时 cs1 字段的值 |
cs3 | read_only_udm.additional.fields.value.string_value | cs3Label 为“CompanyName”时的 cs3 字段的值 |
dst | read_only_udm.target.ip | dst 字段的值 |
网域 | read_only_udm.principal.domain.name | domain 字段的值 |
dvc | read_only_udm.intermediary.ip | dvc 字段的值 |
EventID | read_only_udm.metadata.product_log_id | EventID 字段的值 |
HostName | read_only_udm.principal.hostname | 当 grok 无法匹配 IP 地址时,HostName 字段的值 |
HostName | read_only_udm.principal.ip | 当 Grok 与 IP 地址匹配时,HostName 字段的值 |
ip | read_only_udm.principal.ip | ip 字段的值 |
消息 | read_only_udm.metadata.description | Message 字段的值 |
消息 | security_result.description | Message 字段的值 |
nat_ip | read_only_udm.principal.nat_ip | nat_ip 字段的值 |
优先级 | security_result.severity | 根据 Priority 的值进行映射:1 - 高、2 - 中、3 或 4 - 低 |
SAMLConsumerURL | read_only_udm.target.url | SAMLConsumerURL 字段的值 |
sec_msg | security_result.description | sec_msg 字段的值 |
SecureAuthIdPAppliance | read_only_udm.target.administrative_domain | SecureAuthIdPAppliance 字段的值 |
SecureAuthIdPApplianceMachineName | read_only_udm.target.hostname | SecureAuthIdPApplianceMachineName 字段的值 |
SecureAuthIdPDestinationSiteUrl | read_only_udm.target.url | SecureAuthIdPDestinationSiteUrl 字段的值 |
SecureAuthIdPProductType | read_only_udm.additional.fields.value.string_value | SecureAuthIdPProductType 字段的值 |
session | read_only_udm.network.session_id | session 字段的值 |
spid | read_only_udm.target.process.pid | spid 字段的值 |
src | read_only_udm.principal.ip | src 字段的值 |
suser | read_only_udm.target.user.userid | suser 字段的值 |
UserAgent | read_only_udm.network.http.user_agent | UserAgent 字段的值 |
UserHostAddress | read_only_udm.principal.nat_ip | UserHostAddress 字段的值 |
UserHostAddress | read_only_udm.target.ip | UserHostAddress 字段的值 |
UserID | read_only_udm.principal.user.userid | UserID 字段的值 |
版本 | read_only_udm.metadata.product_version | Version 字段的值 |
read_only_udm.additional.fields.key | 硬编码值 -“CompanyName” | |
read_only_udm.additional.fields.key | 硬编码值 -“公司” | |
read_only_udm.additional.fields.key | 硬编码值 - 'SecureAuthIdPProductType' | |
read_only_udm.extensions.auth.type | 硬编码值 -“SSO” | |
read_only_udm.metadata.event_type | SecureAuthIdPAuthGuiMode == 0 且 auth_result == Success 时为“USER_LOGIN”;SecureAuthIdPAuthGuiMode == 0 且 auth_result ==WS-Trust success. 时为“USER_CHANGE_PERMISSIONS”;SecureAuthIdPAuthGuiMode == 0 且 auth_result == Session Aborted 时为“USER_LOGOUT”;UserHostAddress != and `HostName` != 时为“NETWORK_CONNECTION”;ip != or `HostName` != 时为“STATUS_UPDATE”;UserHostAddress != and `HostName` == 且 UserID != `` 时为“USER_UNCATEGORIZED”;否则为“GENERIC_EVENT” |
|
read_only_udm.metadata.log_type | 硬编码值 - 'SECUREAUTH_SSO' | |
read_only_udm.metadata.product_name | 硬编码值 - 'SECUREAUTH_SSO' | |
read_only_udm.metadata.vendor_name | 硬编码值 - 'SECUREAUTH_SSO' | |
read_only_udm.target.user.email_addresses | not_email 为 false 时 user_email 字段的值 |
|
security_result.severity | cn1Label == Priority 且 cn1 == 1 时为“HIGH”;cn1Label == Priority 且 cn1 == 2 时为“MEDIUM”;cn1Label == Priority 且 cn1 在 [3 , 4 ] 中时为“LOW”;Priority == 1 时为“HIGH”;Priority == 2 时为“MEDIUM”;Priority 在 [3 , 4 ] 中时为“LOW” |
变化
2023-07-09
- 新增了对新日志格式的支持:SYSLOG + KV。
- 添加了 Grok 模式来解析新日志。
2022-04-25
- 新创建的解析器:更新并将特定于客户的版本转换为默认版本。
需要更多帮助?向社区成员和 Google SecOps 专业人士寻求解答。