在搜尋中使用指標

在搜尋中使用指標
支援的國家/地區:

本文將說明如何在搜尋功能中使用指標函式,透過 YARA-L 2.0 分析匯總的歷來行為數據。只要將這些函式直接併入搜尋查詢的 outcome 區段,就能從大型資料集取得高階洞察資料。

函式參數

指標函式可在搜尋中執行實體行為分析。舉例來說,您可以建構搜尋查詢,判斷特定 IP 位址在過去一個月內傳送的每日位元組數上限。如要代表特定 IP 位址,可以直接在搜尋查詢中輸入 IP 值,不必使用預留位置變數。

由於這些函式使用的引數數量龐大,因此會使用具名參數,且可按照任意順序指定。參數如下:

期間

個別記錄檔事件合併為一項觀察所需的時間長度。只能輸入 1h 和 1d。

時間範圍

個別觀察匯總為一個值 (例如平均值和最大值) 所需的時間長度。視窗的允許值取決於指標週期。有效對應如下:

period:1h:window:today

period:1d:window:30d

範例:下列查詢會傳回過去 30 天內,使用者在特定日期首次和最後一次成功登入的時間。

  $u1.principal.asset.ip = $ip
    $ip = "10.138.0.4"
    $user = $u1.target.user.userid

  match:
    $ip, $user

  outcome:

    // First and last time a user logged in successfully

     $first_seen = max(metrics.auth_attempts_success(
        period:1d, window:30d,
        metric:first_seen,
        agg:min,
        target.user.userid:$user))


    $last_seen = max(metrics.auth_attempts_success(
        period:1d, window:30d,
        metric:last_seen,
        agg:max,
        target.user.userid:$user))

指標

在每段時長,各項觀察都有多項相關聯的指標。您必須選取其中一個選項,才能在整個期間內匯總資料。支援的指標類型如下:

  • event_count_sum—每個期間內的不重複記錄事件數。

  • first_seen:每個期間內相符記錄事件的首次出現時間戳記。

  • last_seen—每個期間內相符記錄事件的上次查看時間戳記。

  • value_sum:這段期間內所有記錄事件的位元組數總和。您只能將這個值用於名稱中含有位元組的指標函式。

  • num_unique_filter_values:Google SecOps 未預先計算的指標,但可在執行搜尋查詢時計算。詳情和相關規定請參閱「計算不重複指標」。

匯總資料

並在整個期間內發揮作用 (例如過去 30 天的最高每日價值)。允許的值如下:

  • avg:每個週期的平均值。這是統計平均值,不含零值。

  • max:每個週期的最大值。

  • min:每個週期的最小值。

  • num_metric_periods:時間範圍內指標值不為零的週期數。

  • stddev:每個週期的價值標準差。這是統計標準差,不含零值。

  • sum—整個時間範圍內,每個時段值的總和。

  • earliest:第一個 (最舊) 事件的時間戳記,解析度為微秒。

  • latest—上次 (最近) 事件的時間戳記,解析度為微秒。

如需範例,請參閱「使用 YARA-L 2.0 進行 UDM 搜尋時的統計資料和彙整」。

篩選器

篩選器可以在匯總指標之前,依據一個值篩選尚未計算的指標 (請參閱「指標」中的值)。篩選條件可以是任何有效的事件運算式 (事件區段中的單行),但不得包含任何事件欄位或預留位置。這項條件只能納入指標類型變數。

範例:下列查詢結果部分會傳回特定 IP 位址在過去一個月內傳送的每日位元組數上限。

$ip = principal.asset.ip
match:
    $ip
outcome:
$max_bytes_per_day = max(metrics.network_bytes_outbound(
    period: 1d, window: 30d,
    metric: value_sum,
    agg:max,
    principal.asset.ip: $ip,
    filter:value_sum > 10 AND event_count_sum > 2))

UDM 欄位

視函式而定,指標會依據一、二或三個 UDM 欄位篩選。如需函式相關資訊,請參閱「函式」。

指標函式會使用下列類型的 UDM 欄位:

  • 尺寸 (必填):這個頁面會列出不同的組合。您無法加入具有預設值的指標 (字串為 "",整數為 0)。
  • 命名空間 (選用):您只能為維度中指定的實體使用命名空間。舉例來說,如果您使用 principal.asset.hostname 篩選器,也可以使用 principal.namespace 篩選器。如未加入命名空間篩選器,系統會匯總所有命名空間的資料。您可以將預設值做為命名空間篩選器。

視窗計算

Google SecOps 會使用每日或每小時指標時間範圍計算指標。

每日時段

所有每日時間範圍 (例如 30d) 的判斷方式都相同。 Google SecOps 會使用最新產生的可用指標資料,這些資料不會與搜尋查詢時間範圍重疊。計算每日指標最多可能需要 6 小時,且必須等到世界標準時間當天結束後才會開始。前一天的指標資料會在每天世界標準時間 6:00 之前提供。

舉例來說,如果搜尋查詢是針對 2023 年 10 月 31 日世界標準時間 4:00 至 2023 年 10 月 31 日世界標準時間 7:00 的事件資料執行,系統可能會產生 2023 年 10 月 30 日的每日指標,因此指標計算會使用 2023 年 10 月 1 日至 2023 年 10 月 30 日 (含) 的資料。如果查詢是針對 2023 年 10 月 31 日 1:00 UTC 至 2023 年 10 月 31 日 3:00 UTC 的事件資料執行,系統可能不會產生 2023 年 10 月 30 日的每日指標,因此指標計算會使用 2023 年 9 月 30 日至 2023 年 10 月 29 日 (含) 的資料。

每小時 today 視窗

每小時指標的計算時間範圍與每日指標不同。today 的每小時指標視窗並非固定大小,不像每日指標的 30d 視窗。每小時指標時間範圍 today 會盡可能填入每日時間範圍結束和搜尋查詢時間範圍開始之間的資料。

舉例來說,如果搜尋查詢在 2023 年 10 月 31 日世界標準時間 4:00:00 到 2023 年 10 月 31 日世界標準時間 7:00:00 之間執行,每日指標計算會使用 2023 年 10 月 1 日到 2023 年 10 月 30 日 (含) 的事件資料,每小時指標視窗則會使用 2023 年 10 月 31 日世界標準時間 00:00:00 到 2023 年 10 月 31 日世界標準時間 4:00:00 的資料。

計算不重複指標

Google SecOps 不會預先計算 num_unique_filter_values 指標。 系統會在執行搜尋查詢時計算這項指標。方法是匯總預先計算指標中的現有維度。舉例來說,您可以從維度 target.user.userid 和 principal.ip_geo_artifact.location.country_or_region 的預先計算 auth_attempts_total 指標,對後者維度執行不重複計數匯總,得出「使用者嘗試驗證身分的國家/地區每日總數」指標。

範例:

$userid = target.user.userid
match:
    $userid
outcome:
$outcome_variable = max(metrics.auth_attempts_total(
    period: 1d,
    window: 30d,
    // This metric type indicates any filter with a wildcard value should be
    // aggregated over each day to produce a new metric dynamically
    metric: num_unique_filter_values,
    agg: max,
    target.user.userid: $userid,
    // Filter whose value should be counted over each day to produce the
    // num_unique_filter_values metric.
    principal.ip_geo_artifact.location.country_or_region: *
))

限制:計算不重複指標數量時,只能針對單一篩選維度進行匯總。使用萬用字元權杖 * 做為篩選條件值,即可表示這點。

函式

本節包含 Google SecOps 支援的特定指標函式相關說明文件。

快訊事件

metrics.alert_event_name_count 會預先計算 UDM 事件的歷史值,這些事件是由 Carbon Black、CrowdStrike Falcon、Microsoft Graph API 警報或 Microsoft Sentinel 產生警報。

可做為篩選器的所有 UDM 欄位

  • principal.asset.asset_id, principal.process.file.full_path, principal.user.email_addresses, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.full_path, principal.user.employee_id, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.full_path, principal.user.product_object_id, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.full_path, principal.user.userid, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.full_path, principal.user.windows_sid, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.full_path, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.sha256, principal.user.email_addresses, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.sha256, principal.user.employee_id, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.sha256, principal.user.product_object_id, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.sha256, principal.user.userid, security_result.rule_name
  • principal.asset.asset_id, principal.process.file.sha256, principal.user.windows_sid, security_result.rule_name
  • principal.asset.asset_id, security_result.rule_name
  • principal.asset.hostname, principal.process.file.full_path, principal.user.email_addresses, security_result.rule_name
  • principal.asset.hostname, principal.process.file.full_path, principal.user.employee_id, security_result.rule_name
  • principal.asset.hostname, principal.process.file.full_path, principal.user.product_object_id, security_result.rule_name
  • principal.asset.hostname, principal.process.file.full_path, principal.user.userid, security_result.rule_name
  • principal.asset.hostname, principal.process.file.full_path, principal.user.windows_sid, security_result.rule_name
  • principal.asset.hostname, principal.process.file.full_path, security_result.rule_name
  • principal.asset.hostname, principal.process.file.sha256, principal.user.email_addresses, security_result.rule_name
  • principal.asset.hostname, principal.process.file.sha256, principal.user.employee_id, security_result.rule_name
  • principal.asset.hostname, principal.process.file.sha256, principal.user.product_object_id, security_result.rule_name
  • principal.asset.hostname, principal.process.file.sha256, principal.user.userid, security_result.rule_name
  • principal.asset.hostname, principal.process.file.sha256, principal.user.windows_sid, security_result.rule_name
  • principal.asset.hostname, security_result.rule_name
  • principal.asset.ip, principal.process.file.full_path, principal.user.email_addresses, security_result.rule_name
  • principal.asset.ip, principal.process.file.full_path, principal.user.employee_id, security_result.rule_name
  • principal.asset.ip, principal.process.file.full_path, principal.user.product_object_id, security_result.rule_name
  • principal.asset.ip, principal.process.file.full_path, principal.user.userid, security_result.rule_name
  • principal.asset.ip, principal.process.file.full_path, principal.user.windows_sid, security_result.rule_name
  • principal.asset.ip, principal.process.file.full_path, security_result.rule_name
  • principal.asset.ip, principal.process.file.sha256, principal.user.email_addresses, security_result.rule_name
  • principal.asset.ip, principal.process.file.sha256, principal.user.employee_id, security_result.rule_name
  • principal.asset.ip, principal.process.file.sha256, principal.user.product_object_id, security_result.rule_name
  • principal.asset.ip, principal.process.file.sha256, principal.user.userid, security_result.rule_name
  • principal.asset.ip, principal.process.file.sha256, principal.user.windows_sid, security_result.rule_name
  • principal.asset.ip, security_result.rule_name
  • principal.asset.mac, principal.process.file.full_path, principal.user.email_addresses, security_result.rule_name
  • principal.asset.mac, principal.process.file.full_path, principal.user.employee_id, security_result.rule_name
  • principal.asset.mac, principal.process.file.full_path, principal.user.product_object_id, security_result.rule_name
  • principal.asset.mac, principal.process.file.full_path, principal.user.userid, security_result.rule_name
  • principal.asset.mac, principal.process.file.full_path, principal.user.windows_sid, security_result.rule_name
  • principal.asset.mac, principal.process.file.full_path, security_result.rule_name
  • principal.asset.mac, principal.process.file.sha256, principal.user.email_addresses, security_result.rule_name
  • principal.asset.mac, principal.process.file.sha256, principal.user.employee_id, security_result.rule_name
  • principal.asset.mac, principal.process.file.sha256, principal.user.product_object_id, security_result.rule_name
  • principal.asset.mac, principal.process.file.sha256, principal.user.userid, security_result.rule_name
  • principal.asset.mac, principal.process.file.sha256, principal.user.windows_sid, security_result.rule_name
  • principal.asset.mac, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.full_path, principal.user.email_addresses, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.full_path, principal.user.employee_id, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.full_path, principal.user.product_object_id, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.full_path, principal.user.userid, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.full_path, principal.user.windows_sid, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.full_path, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.sha256, principal.user.email_addresses, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.sha256, principal.user.employee_id, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.sha256, principal.user.product_object_id, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.sha256, principal.user.userid, security_result.rule_name
  • principal.asset.product_object_id, principal.process.file.sha256, principal.user.windows_sid, security_result.rule_name
  • principal.asset.product_object_id, security_result.rule_name

驗證嘗試

metrics.auth_attempts_total 會預先計算 UDM 事件的歷史值,並使用 USER_LOGIN event type。

metrics.auth_attempts_success 進一步要求事件至少要有一個 SecurityResult.Action ALLOW。

metrics.auth_attempts_fail 則要求所有 SecurityResult.Actions 皆未 ALLOW。

可做為篩選器的所有 UDM 欄位

  • principal.asset.asset_id
  • principal.asset.asset_id、target.asset.asset_id
  • principal.asset.asset_id、target.asset.hostname
  • principal.asset.asset_id、target.asset.ip
  • principal.asset.asset_id、target.asset.mac
  • principal.asset.asset_id、target.asset.product_object_id
  • principal.asset.hostname
  • principal.asset.hostname、target.asset.asset_id
  • principal.asset.hostname、target.asset.hostname
  • principal.asset.hostname、target.asset.ip
  • principal.asset.hostname、target.asset.mac
  • principal.asset.hostname、target.asset.product_object_id
  • principal.asset.ip
  • principal.asset.ip、target.asset.asset_id
  • principal.asset.ip、target.asset.hostname
  • principal.asset.ip、target.asset.ip
  • principal.asset.ip、target.asset.mac
  • principal.asset.ip、target.asset.product_object_id
  • principal.asset.mac
  • principal.asset.mac、target.asset.asset_id
  • principal.asset.mac、target.asset.hostname
  • principal.asset.mac、target.asset.ip
  • principal.asset.mac、target.asset.mac
  • principal.asset.mac、target.asset.product_object_id
  • principal.asset.product_object_id
  • principal.asset.product_object_id、target.asset.asset_id
  • principal.asset.product_object_id、target.asset.hostname
  • principal.asset.product_object_id、target.asset.ip
  • principal.asset.product_object_id、target.asset.mac
  • principal.asset.product_object_id、target.asset.product_object_id
  • principal.user.email_addresses
  • principal.user.email_addresses、target.asset.asset_id
  • principal.user.email_addresses、target.asset.hostname
  • principal.user.email_addresses、target.asset.ip
  • principal.user.email_addresses、target.asset.mac
  • principal.user.email_addresses、target.asset.product_object_id
  • principal.user.employee_id
  • principal.user.employee_id、target.asset.asset_id
  • principal.user.employee_id、target.asset.hostname
  • principal.user.employee_id、target.asset.ip
  • principal.user.employee_id、target.asset.mac
  • principal.user.employee_id、target.asset.product_object_id
  • principal.user.product_object_id
  • principal.user.product_object_id、target.asset.asset_id
  • principal.user.product_object_id、target.asset.hostname
  • principal.user.product_object_id、target.asset.ip
  • principal.user.product_object_id、target.asset.mac
  • principal.user.product_object_id、target.asset.product_object_id
  • principal.user.userid
  • principal.user.userid、target.asset.asset_id
  • principal.user.userid、target.asset.hostname
  • principal.user.userid、target.asset.ip
  • principal.user.userid、target.asset.mac
  • principal.user.userid、target.asset.product_object_id
  • principal.user.windows_sid
  • principal.user.windows_sid、target.asset.asset_id
  • principal.user.windows_sid、target.asset.hostname
  • principal.user.windows_sid、target.asset.ip
  • principal.user.windows_sid、target.asset.mac
  • principal.user.windows_sid、target.asset.product_object_id
  • target.application
  • target.user.email_addresses
  • target.user.email_addresses、network.tls.client.certificate.sha256
  • target.user.email_addresses、principal.ip_geo_artifact.location.country_or_region
  • target.user.email_addresses、principal.ip_geo_artifact.network.organization_name
  • target.user.email_addresses、target.application
  • target.user.employee_id
  • target.user.employee_id、network.tls.client.certificate.sha256
  • target.user.employee_id、principal.ip_geo_artifact.location.country_or_region
  • target.user.employee_id、principal.ip_geo_artifact.network.organization_name
  • target.user.employee_id、target.application
  • target.user.product_object_id
  • target.user.product_object_id、network.tls.client.certificate.sha256
  • target.user.product_object_id、principal.ip_geo_artifact.location.country_or_region
  • target.user.product_object_id、principal.ip_geo_artifact.network.organization_name
  • target.user.product_object_id、target.application
  • target.user.userid
  • target.user.userid、network.tls.client.certificate.sha256
  • target.user.userid、principal.ip_geo_artifact.location.country_or_region
  • target.user.userid、principal.ip_geo_artifact.network.organization_name
  • target.user.userid、target.application
  • target.user.windows_sid
  • target.user.windows_sid、network.tls.client.certificate.sha256
  • target.user.windows_sid、principal.ip_geo_artifact.location.country_or_region
  • target.user.windows_sid、principal.ip_geo_artifact.network.organization_name
  • target.user.windows_sid、target.application

metrics.auth_attempts_total 有其他 UDM 欄位可做為篩選器

  • target.application、target.asset.asset_id
  • target.application、target.asset.hostname
  • target.application、target.asset.ip
  • target.application、target.asset.mac
  • target.application、target.asset.product_object_id

metrics.auth_attempts_success 有其他 UDM 欄位可做為篩選器

  • network.http.user_agent
  • principal.asset.asset_id、metadata.event_type
  • principal.asset.hostname、metadata.event_type
  • principal.asset.ip、metadata.event_type
  • principal.asset.mac、metadata.event_type
  • principal.asset.product_object_id、metadata.event_type

DNS 輸出位元組

metrics.dns_bytes_outbound 會預先計算 UDM 事件的歷史值,其中 network.sent_bytes 大於 0,且目標通訊埠為 53/udp、53/tcp 或 3000/tcp。 network.sent_bytes 可做為 value_sum。

可做為篩選器的所有 UDM 欄位

  • principal.asset.asset_id
  • principal.asset.asset_id、target.ip
  • principal.asset.hostname
  • principal.asset.hostname、target.ip
  • principal.asset.ip
  • principal.asset.ip、target.ip
  • principal.asset.mac
  • principal.asset.mac、target.ip
  • principal.asset.product_object_id
  • principal.asset.product_object_id、target.ip
  • principal.user.email_addresses
  • principal.user.email_addresses、target.ip
  • principal.user.employee_id
  • principal.user.employee_id、target.ip
  • principal.user.product_object_id
  • principal.user.product_object_id、target.ip
  • principal.user.userid
  • principal.user.userid、target.ip
  • principal.user.windows_sid
  • principal.user.windows_sid、target.ip
  • target.ip

DNS 查詢

metrics.dns_queries_total 會預先計算 network 中有值的 UDM 事件的歷史值。dns.id。

metrics.dns_queries_success 進一步要求 network。dns.response_code 為 0 (NoError)。

metrics.dns_queries_fail 只會考量具有 network 的事件。dns.response_code 大於 0。

可做為篩選器的所有 UDM 欄位

  • principal.asset.asset_id
  • principal.asset.asset_id、network.dns_domain
  • principal.asset.asset_id、network.dns.questions.type
  • principal.asset.hostname
  • principal.asset.hostname、network.dns_domain
  • principal.asset.hostname、network.dns.questions.type
  • principal.asset.ip
  • principal.asset.ip、network.dns_domain
  • principal.asset.ip、network.dns.questions.type
  • principal.asset.mac
  • principal.asset.mac、network.dns_domain
  • principal.asset.mac、network.dns.questions.type
  • principal.asset.product_object_id
  • principal.asset.product_object_id、network.dns_domain
  • principal.asset.product_object_id、network.dns.questions.type
  • principal.user.email_addresses
  • principal.user.email_addresses、network.dns_domain
  • principal.user.email_addresses、network.dns.questions.type
  • principal.user.employee_id
  • principal.user.employee_id、network.dns_domain
  • principal.user.employee_id、network.dns.questions.type
  • principal.user.product_object_id
  • principal.user.product_object_id、network.dns_domain
  • principal.user.product_object_id、network.dns.questions.type
  • principal.user.userid
  • principal.user.userid、network.dns_domain
  • principal.user.userid、network.dns.questions.type
  • principal.user.windows_sid
  • principal.user.windows_sid、network.dns_domain
  • principal.user.windows_sid、network.dns.questions.type

檔案執行

metrics.file_executions_total預先計算 UDM 事件的歷來值,並使用 PROCESS_LAUNCH event type。

metrics.file_executions_success 進一步要求事件至少有一個 SecurityResult.Action ALLOW。

metrics.file_executions_fail 則要求 SecurityResult.Actions 皆不得為 ALLOW。

可做為篩選器的所有 UDM 欄位

  • metadata.event_type、principal.process.file.sha256
  • metadata.event_type、principal.asset.asset_id、principal.process.file.sha256
  • metadata.event_type、principal.asset.hostname、principal.process.file.sha256
  • metadata.event_type、principal.asset.ip、principal.process.file.sha256
  • metadata.event_type、principal.asset.mac、principal.process.file.sha256
  • metadata.event_type、principal.asset.product_object_id、principal.process.file.sha256
  • metadata.event_type、principal.user.email_addresses、principal.process.file.sha256
  • metadata.event_type、principal.user.employee_id、principal.process.file.sha256
  • metadata.event_type、principal.user.product_object_id、principal.process.file.sha256
  • metadata.event_type、principal.user.userid、principal.process.file.sha256
  • metadata.event_type、principal.user.windows_sid、principal.process.file.sha256

HTTP 查詢

metrics.http_queries_total 會預先計算 network 中有值的 UDM 事件的歷史值。http.method。

metrics.http_queries_success 進一步要求 network。http.response_code小於 400。

metrics.http_queries_fail 只會考量具有 network 的事件。http.response_code 大於或等於 400。

可做為篩選器的所有 UDM 欄位

  • principal.asset.asset_id
  • principal.asset.asset_id、network.http.user_agent
  • principal.asset.asset_id、target.hostname
  • principal.asset.asset_id、network.http.user_agent、target.hostname
  • principal.asset.hostname
  • principal.asset.hostname、network.http.user_agent
  • principal.asset.hostname、target.hostname
  • principal.asset.hostname、network.http.user_agent、target.hostname
  • principal.asset.ip
  • principal.asset.ip、network.http.user_agent
  • principal.asset.ip、target.hostname
  • principal.asset.ip、network.http.user_agent、target.hostname
  • principal.asset.mac
  • principal.asset.mac、network.http.user_agent
  • principal.asset.mac、target.hostname
  • principal.asset.mac、network.http.user_agent、target.hostname
  • principal.asset.product_object_id
  • principal.asset.product_object_id、network.http.user_agent
  • principal.asset.product_object_id、target.hostname
  • principal.asset.product_object_id、network.http.user_agent、target.hostname
  • principal.user.email_addresses
  • principal.user.email_addresses、network.http.user_agent
  • principal.user.email_addresses、target.hostname
  • principal.user.email_addresses、network.http.user_agent、target.hostname
  • principal.user.employee_id
  • principal.user.employee_id、network.http.user_agent
  • principal.user.employee_id、target.hostname
  • principal.user.employee_id、network.http.user_agent、target.hostname
  • principal.user.product_object_id
  • principal.user.product_object_id、network.http.user_agent
  • principal.user.product_object_id、target.hostname
  • principal.user.product_object_id、network.http.user_agent、target.hostname
  • principal.user.userid
  • principal.user.userid、network.http.user_agent
  • principal.user.userid、target.hostname
  • principal.user.userid、network.http.user_agent、target.hostname
  • principal.user.windows_sid
  • principal.user.windows_sid、network.http.user_agent
  • principal.user.windows_sid、target.hostname
  • principal.user.windows_sid、network.http.user_agent、target.hostname
  • target.hostname

網路位元組

metrics.network_bytes_inbound 會預先計算 network 值不為零的 UDM 事件歷史值,received_bytes並將該欄位設為 value_sum。

metrics.network_bytes_outbound 需要 network 的非零值。sent_bytes,並將該欄位設為 value_sum。

metrics.network_bytes_total 會考量 network.received_bytes 或 network.sent_bytes (或兩者) 的非零值事件,並將這兩個欄位的總和做為 value_sum。

可做為篩選器的所有 UDM 欄位

  • principal.asset.asset_id
  • principal.asset.asset_id、principal.ip_geo_artifact.location.country_or_region
  • principal.asset.asset_id、security_result.category
  • principal.asset.asset_id、target.ip_geo_artifact.network.organization_name
  • principal.asset.hostname
  • principal.asset.hostname、principal.ip_geo_artifact.location.country_or_region
  • principal.asset.hostname、security_result.category
  • principal.asset.hostname、target.ip_geo_artifact.network.organization_name
  • principal.asset.ip
  • principal.asset.ip、principal.ip_geo_artifact.location.country_or_region
  • principal.asset.ip、security_result.category
  • principal.asset.ip、target.ip_geo_artifact.network.organization_name
  • principal.asset.mac
  • principal.asset.mac、principal.ip_geo_artifact.location.country_or_region
  • principal.asset.mac、security_result.category
  • principal.asset.mac、target.ip_geo_artifact.network.organization_name
  • principal.asset.product_object_id
  • principal.asset.product_object_id、principal.ip_geo_artifact.location.country_or_region
  • principal.asset.product_object_id、security_result.category
  • principal.asset.product_object_id、target.ip_geo_artifact.network.organization_name
  • principal.user.email_addresses
  • principal.user.email_addresses、principal.ip_geo_artifact.location.country_or_region
  • principal.user.email_addresses、security_result.category
  • principal.user.email_addresses、target.ip_geo_artifact.network.organization_name
  • principal.user.employee_id
  • principal.user.employee_id、principal.ip_geo_artifact.location.country_or_region
  • principal.user.employee_id、security_result.category
  • principal.user.employee_id、target.ip_geo_artifact.network.organization_name
  • principal.user.product_object_id
  • principal.user.product_object_id、principal.ip_geo_artifact.location.country_or_region
  • principal.user.product_object_id、security_result.category
  • principal.user.product_object_id、target.ip_geo_artifact.network.organization_name
  • principal.user.userid
  • principal.user.userid、principal.ip_geo_artifact.location.country_or_region
  • principal.user.userid、security_result.category
  • principal.user.userid、target.ip_geo_artifact.network.organization_name
  • principal.user.windows_sid
  • principal.user.windows_sid、principal.ip_geo_artifact.location.country_or_region
  • principal.user.windows_sid、security_result.category
  • principal.user.windows_sid、target.ip_geo_artifact.network.organization_name

建立資源

metrics.resource_creation_total 會預先計算 UDM 事件的歷來值,並使用 RESOURCE_CREATION event type 或 USER_RESOURCE_CREATION event type。

如需對等事件類型清單,請參閱「中繼資料事件類型」

metrics.resource_creation_success 進一步要求事件至少要有一個 SecurityResult.Action ALLOW。

可做為篩選器的所有 UDM 欄位

  • principal.user.email_addresses、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、metadata.vendor_name、metadata.product_name
  • principal.user.userid、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.userid、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • target.user.email_addresses、metadata.vendor_name、metadata.product_name
  • target.user.employee_id、metadata.vendor_name、metadata.product_name
  • target.user.product_object_id、metadata.vendor_name、metadata.product_name
  • target.user.userid、metadata.vendor_name、metadata.product_name
  • target.user.windows_sid、metadata.vendor_name、metadata.product_name

資源刪除

metrics.resource_deletion_success 會預先計算 UDM 事件的歷史值,並使用 RESOURCE_DELETION event type,且進一步要求事件至少有一個 SecurityResult.Actions ALLOW。

可做為篩選器的所有 UDM 欄位

  • principal.user.email_addresses、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、metadata.vendor_name、metadata.product_name
  • principal.user.userid、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.userid、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • target.user.email_addresses、metadata.vendor_name、metadata.product_name
  • target.user.employee_id、metadata.vendor_name、metadata.product_name
  • target.user.product_object_id、metadata.vendor_name、metadata.product_name
  • target.user.userid、metadata.vendor_name、metadata.product_name
  • target.user.windows_sid、metadata.vendor_name、metadata.product_name

資源讀取

metrics.resource_read_success 會預先計算 UDM 事件的歷史值,並使用 RESOURCE_READ event type,且進一步要求事件至少有一個 SecurityResult.Action ALLOW。

metrics.resource_read_fail 則要求 SecurityResult.Actions 皆不得為 ALLOW。

可做為篩選器的所有 UDM 欄位

  • principal.user.email_addresses、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、metadata.vendor_name、metadata.product_name
  • principal.user.userid、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.userid、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、principal.ip、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.application、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.application、target.location.name、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.resource.name、metadata.vendor_name、metadata.product_name
  • principal.user.email_addresses、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.employee_id、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.product_object_id、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.userid、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • principal.user.windows_sid、target.resource.name、target.resource_type、metadata.vendor_name、metadata.product_name
  • target.user.email_addresses、metadata.vendor_name、metadata.product_name
  • target.user.employee_id、metadata.vendor_name、metadata.product_name
  • target.user.product_object_id、metadata.vendor_name、metadata.product_name
  • target.user.userid、metadata.vendor_name、metadata.product_name
  • target.user.windows_sid、metadata.vendor_name、metadata.product_name

限制

使用指標建立 YARA-L 搜尋查詢時,須遵守下列限制:

  • 您無法加入具有預設值的指標 (字串為 "",整數為 0)。
    • 預設值:
      • 如果沒有與事件相應的指標資料,指標函式傳回的值會是 0。
      • 如果某個事件沒有指標資料,使用 min 彙整函式可能會傳回 0。
  • 指標函式只能在結果區段中使用。這些項目必須在含有相符部分的搜尋查詢中彙整。

還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求解答。