收集 Zscaler Internet Access 日志

支持的语言:

本文档介绍了如何通过设置 Google Security Operations Feed 来导出 Zscaler Internet Access 日志,以及日志字段如何映射到 Google SecOps Unified Data Model (UDM) 字段。

如需了解详情,请参阅 Google SecOps 数据提取概览

典型部署包括 Zscaler Internet Access 和配置为向 Google SecOps 发送日志的 Google SecOps Webhook Feed。每个客户部署都可能有所不同,并且可能更复杂。

部署包含以下组件:

  • Zscaler Internet Access:您从中收集日志的平台。

  • Google SecOps Feed:从 Zscaler Internet Access 中提取日志并将日志写入 Google SecOps 的 Google SecOps Feed。

  • Google SecOps:保留并分析日志。

注入标签用于标识将原始日志数据标准化为结构化 UDM 格式的解析器。本文档中的信息适用于具有 ZSCALER_INTERNET_ACCESS 注入标签的解析器。

准备工作

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

  • 对 Zscaler Internet Access 控制台的访问权限。如需了解详情,请参阅 Secure Internet and SaaS Access ZIA 帮助
  • Zscaler Internet Access 2024 或更高版本
  • 部署架构中的所有系统都使用世界协调时间 (UTC) 时区进行配置。
  • 在 Google Security Operations 中完成 Feed 设置所需的 API 密钥。如需了解详情,请参阅设置 API 密钥

设置 Feed

您可以通过两种不同的入口点在 Google SecOps 平台中设置 Feed:

  • SIEM 设置 > Feed
  • 内容中心 > 内容包

通过“SIEM 设置”>“Feed”设置 Feed

如需为相应产品系列中的不同日志类型配置多个 Feed,请参阅按产品配置 Feed

如需配置单个 Feed,请按以下步骤操作:

  1. 依次前往 SIEM 设置> Feed
  2. 点击添加新 Feed
  3. 在下一页上,点击配置单个 Feed
  4. Feed 名称字段中,输入 Feed 的名称,例如 Zscaler Internet Access Logs
  5. 选择 Webhook 作为来源类型
  6. 选择 Zscaler Internet Access 审核日志作为日志类型
  7. 点击下一步
  8. 可选:为以下输入参数输入值:
    1. 拆分分隔符:用于分隔日志行的分隔符。如果不使用分隔符,请留空。
    2. 资产命名空间:资产命名空间。
    3. 注入标签:要应用于此 Feed 中事件的标签。
  9. 点击下一步
  10. 检查新的 Feed 配置,然后点击提交
  11. 点击生成 Secret 密钥,生成用于验证此 Feed 的 Secret 密钥。

设置来自内容中心的 Feed

为以下字段指定值:

  • 拆分分隔符:用于分隔日志行的分隔符,例如 \n

高级选项

  • Feed 名称:用于标识 Feed 的预填充值。
  • 来源类型:用于将日志收集到 Google SecOps 中的方法。
  • 资源命名空间资源命名空间
  • 注入标签:应用于此 Feed 中事件的标签。
  • 点击下一步
  • 最终确定界面中检查 Feed 配置,然后点击提交
  • 点击生成密钥,生成用于对此 Feed 进行身份验证的密钥。

设置 Zscaler Internet Access

  1. 在 Zscaler Internet Access 控制台中,依次点击管理 > Nanolog Streaming Service > Cloud NSS Feed,然后点击添加 Cloud NSS Feed
  2. 系统随即会显示 Add Cloud NSS Feed 窗口。在添加 Cloud NSS Feed 窗口中,输入详细信息。
  3. Feed Name 字段中输入 Feed 的名称。
  4. NSS Type 中选择 NSS for Web
  5. 状态列表中选择相应状态,以启用或停用 NSS Feed。
  6. SIEM Rate(SIEM 速率)下拉菜单中的值保留为 Unlimited(无限制)。如需因许可或其他限制而抑制输出流,请更改该值。
  7. SIEM 类型列表中,选择其他
  8. OAuth 2.0 身份验证列表中,选择已停用
  9. 根据 SIEM 的最佳实践,在最大批次大小中输入单个 HTTP 请求载荷的大小限制。例如,512 KB。
  10. 在“API 网址”中,输入 Chronicle API 端点的 HTTPS 网址,格式如下:

      https://<CHRONICLE_REGION>-chronicle.googleapis.com/v1alpha/projects/<GOOGLE_PROJECT_NUMBER>/locations/<LOCATION>/instances/<CUSTOMER_ID>/feeds/<FEED_ID>:importPushLogs
    
    • CHRONICLE_REGION:Chronicle 实例的托管区域。例如,美国。
    • GOOGLE_PROJECT_NUMBER:自带项目编号。从 C4 获取此信息。
    • LOCATION:Chronicle 区域。例如,美国。
    • CUSTOMER_ID:Chronicle 客户 ID。从 C4 获取。
    • FEED_ID:在创建的新 Webhook 上显示的 Feed 界面中的 Feed ID
    • API 网址示例:

      https://us-chronicle.googleapis.com/v1alpha/projects/12345678910/locations/US/instances/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/feeds/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy:importPushLogs
      
  11. 点击添加 HTTP 标头,然后添加以下格式的 HTTP 标头:

    • Header 1Key1X-goog-api-keyValue1:在 Google Cloud BYOP 的 API 凭据中生成的 API 密钥。
    • Header 2Key2X-Webhook-Access-KeyValue2:在 Webhook 的“SECRET KEY”(密钥)上生成的 API 密钥。
  12. 日志类型列表中选择管理员审核日志

  13. Feed 输出类型列表中,选择 JSON

  14. Feed 转义字符设置为 , \ "

  15. 如需向 Feed 输出格式添加新字段,请在 Feed 输出类型列表中选择自定义

  16. 复制粘贴 Feed Output Format 并添加新字段。确保键名与实际字段名称一致。

  17. 以下是默认的Feed 输出格式

      \{ "sourcetype" : "zscalernss-audit", "event" :\{"time":"%s{time}","recordid":"%d{recordid}","action":"%s{action}","category":"%s{category}","subcategory":"%s{subcategory}","resource":"%s{resource}","interface":"%s{interface}","adminid":"%s{adminid}","clientip":"%s{clientip}","result":"%s{result}","errorcode":"%s{errorcode}","auditlogtype":"%s{auditlogtype}","preaction":%s{preaction},"postaction":%s{postaction}\}\}
    
  18. 时区列表中,选择输出文件中时间字段的时区。默认情况下,时区设置为组织的时区。

  19. 查看配置的设置。

  20. 点击保存以测试连接。如果连接成功,系统会显示一个绿色对勾标记,并显示消息 Test Connectivity Successful: OK (200)

如需详细了解 Google SecOps Feed,请参阅 Google Security Operations Feed 文档。如需了解每种 Feed 类型的要求,请参阅按类型划分的 Feed 配置

如果您在创建 Feed 时遇到问题,请与 Google Security Operations 支持团队联系。

支持的 Zscaler Internet Access 日志格式

Zscaler Internet Access 解析器支持 JSON 格式的日志。

支持的 Zscaler Internet Access 日志示例

  • JSON

    {
      "sourcetype": "zscalernss-audit",
      "event": {
        "time": "Wed May 29 17:45:03 2024",
        "recordid": "6095",
        "action": "UPDATE",
        "category": "ACCESS_CONTROL_RESOURCE",
        "subcategory": "URL_CATEGORY",
        "resource": "Custom SSL Bypass",
        "interface": "UI",
        "adminid": "abc@xyz.com",
        "clientip": "198.51.100.1",
        "result": "SUCCESS",
        "errorcode": "None",
        "auditlogtype": "ZIA",
        "preaction": "{"id":{"val":130%2c"mask":255%2c"parent":"CUSTOM_SUPERCATEGORY"%2c"deprecated":false%2c"backendName":"custom_03"%2c"name":"CUSTOM_03"%2c"userConfiguredName":""}%2c"configuredName":"Custom%20SSL%20Bypass"%2c"superCategory":"USER_DEFINED"%2c"keywords":[]%2c"keywordsRetainingParentCategory":[]%2c"customUrlsToAdd":[]%2c"customUrlsToDelete":[]%2c"urlsRetainingParentCategoryToAdd":[]%2c"urlsRetainingParentCategoryToDelete":[]%2c"customIpRangesToAdd":[]%2c"customIpRangesToDelete":[]%2c"ipRangesRetainingParentCategoryToAdd":[]%2c"ipRangesRetainingParentCategoryToDelete":[]%2c"customCategory":true%2c"editable":true%2c"description":"https: //help.zscaler.com/zia/url-format-guidelines"%2c"type":"URL_CATEGORY"%2c"customUrlsCount":1%2c"urlsRetainingParentCategoryCount":60%2c"customIpRangesCount":0%2c"ipRangesRetainingParentCategoryCount":0%2c"urlsToAdd":[]%2c"urlsToDelete":[]%2c"dbCategorizedUrlsToAdd":[]%2c"dbCategorizedUrlsToDelete":[]}","postaction":"{"id":{"val":130%2c"mask":255%2c"parent":"CUSTOM_SUPERCATEGORY"%2c"deprecated":false%2c"backendName":"custom_03"%2c"name":"CUSTOM_03"%2c"userConfiguredName":""}%2c"configuredName":"Custom%20SSL%20Bypass"%2c"superCategory":"USER_DEFINED"%2c"customUrlsToAdd":[]%2c"customUrlsToDelete":[]%2c"urlsRetainingParentCategoryToAdd":["webcast.temoinproduction.com"]%2c"urlsRetainingParentCategoryToDelete":[]%2c"customIpRangesToAdd":[]%2c"customIpRangesToDelete":[]%2c"ipRangesRetainingParentCategoryToAdd":[]%2c"ipRangesRetainingParentCategoryToDelete":[]%2c"customCategory":true%2c"editable":true%2c"description":"https://help.zscaler.com/zia/url-format-guidelines"%2c"type":"URL_CATEGORY"%2c"customUrlsCount":1%2c"urlsRetainingParentCategoryCount":61%2c"customIpRangesCount":0%2c"ipRangesRetainingParentCategoryCount":0%2c"urlsToAdd":[]%2c"urlsToDelete":[]%2c"dbCategorizedUrlsToAdd":[]%2c"dbCategorizedUrlsToDelete":[]}"}
    }
    

字段映射参考

下表列出了 ZSCALER_INTERNET_ACCESS 日志类型的日志字段及其对应的 UDM 字段。

Log field UDM mapping Logic
metadata.event_type The metadata.event_type UDM field is set to STATUS_UPDATE.
metadata.product_name The metadata.product_name UDM field is set to Admin Audit.
metadata.vendor_name The metadata.vendor_name UDM field is set to Zscaler.
sourcetype additional.fields[sourcetype]
time metadata.event_timestamp
recordid metadata.product_log_id
action security_result.action_details
category target.security_result.category_details
subcategory target.security_result.category_details
resource target.resource.name
interface principal.resource.attribute.labels[interface]
adminid principal.user.userid
clientip principal.ip
security_result.action If the event.result log field value is equal to SUCCESS, then the security_result.action UDM field is set to ALLOW.

Else, if the event.result log field value is equal to FAILURE, then the security_result.action UDM field is set to BLOCK.
errorcode security_result.summary
auditlogtype additional.fields[auditlogtype]
preaction principal.resource.attribute.labels Iterate through preaction object: The preaction object key is mapped to the principal.resource.attribute.labels.key UDM field and preaction object value is mapped to the principal.resource.attribute.labels.value UDM field.
postaction principal.resource.attribute.labels Iterate through postaction object: The postaction object key is mapped to the principal.resource.attribute.labels.key UDM field and postaction object value is mapped to the principal.resource.attribute.labels.value UDM field.

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