使用情境扩展数据分析报告

支持的环境:

为了能够进行安全调查,Google Security Operations 会从不同来源注入情境数据,对注入的数据进行分析,并提供客户环境中有关制品的其他情境信息。本文档提供了示例,说明分析师如何在信息中心和 BigQuery 中的 Google SecOps 架构中使用情境扩展数据。

如需详细了解数据丰富化,请参阅 Google SecOps 如何丰富事件和实体数据

使用地理位置扩展数据

UDM 事件可能包含地理位置扩展数据,以便在调查期间提供其他情境信息。将 UDM 事件导出到 BigQuery 时,这些字段也会导出。本部分介绍了如何在创建报告时使用地理位置扩展字段。

events 架构中查询数据

您可以使用 BigQuery 中的 Google SecOps events 架构查询地理位置数据。 以下示例是一个 SQL 查询,它按用户和国家/地区返回所有 USER_LOGIN 事件的汇总结果,并显示首次和上次观测时间。

SELECT
 ip_geo_artifact.location.country_or_region,
 COUNT(ip_geo_artifact.location.country_or_region) AS count_country,
 ip_geo_artifact.location.state,
 COUNT(ip_geo_artifact.location.state) AS count_state,
 target.user.email_addresses[ORDINAL(1)] AS principal_user,
 TIMESTAMP_SECONDS(MIN(metadata.event_timestamp.seconds)) AS first_observed,
 TIMESTAMP_SECONDS(MAX(metadata.event_timestamp.seconds)) AS last_observed,
FROM `datalake.events`,
UNNEST (principal.ip_geo_artifact) as ip_geo_artifact
WHERE DATE(hour_time_bucket) = "2023-01-11"
AND metadata.event_type = 15001
AND metadata.vendor_name IN ("Google Cloud Platform","Google Workspace")
GROUP BY 1,3,5
HAVING count_country > 0
ORDER BY count_country DESC

下表包含可能返回的结果示例。

country_or_region count_country state count_state principal_user first_observed last_observed
Netherlands 5 North Holland 5 admin@acme.com 2023-01-11 14:32:51 UTC 2023-01-11 14:32:51 UTC
Israel 1 Tel Aviv District 1 omri@acme.com 2023-01-11 10:09:32 UTC 2023-01-11 15:26:38 UTC

以下 SQL 查询说明了如何检测两个位置之间的距离。

SELECT
DISTINCT principal_user,
(ST_DISTANCE(north_pole,user_location)/1000) AS distance_to_north_pole_km
FROM (
  SELECT
    ST_GeogPoint(135.00,90.00) AS north_pole,
    ST_GeogPoint(ip_geo_artifact.location.region_coordinates.longitude, ip_geo_artifact.location.region_coordinates.latitude) AS user_location,
    target.user.email_addresses[ORDINAL(1)] AS principal_user
  FROM `datalake.events`,
  UNNEST (principal.ip_geo_artifact) as ip_geo_artifact
  WHERE DATE(hour_time_bucket) = "2023-01-11"
  AND metadata.event_type = 15001
  AND metadata.vendor_name IN ("Google Cloud Platform","Google Workspace")
  AND ip_geo_artifact.location.country_or_region != ""
)
ORDER BY 2 DESC

下表包含可能返回的结果示例。

principal_user distance_to_north_pole_km
omri@acme.com 6438.98507
admin@acme.com 4167.527018

您可以利用区域多边形来计算在给定时间间隔内从某个位置出发的合理旅行区域,从而实现稍微更有用的查询。 您还可以检查多个地理位置值是否匹配,以识别不可能的旅行检测结果。这些解决方案需要准确且一致的地理位置数据源。

在信息中心内查看扩展字段

您还可以使用地理位置扩展 UDM 字段构建信息中心。图表会显示每个 UDM 事件的城市。您可以更改图表类型,以不同的格式查看数据。

后续步骤

如需了解如何将扩展数据与其他 Google SecOps 功能搭配使用,请参阅以下内容:

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