設定 Google Security Operations 與 VMware Engine

本文說明如何設定 Google Security Operations (Google SecOps),提升偵測、調查及應對 VMware Engine 虛擬機器 (VM) 網路安全威脅的能力。此外,Google SecOps 還能分析 VMware 基礎架構和其他支援 Google Cloud 服務的遙測資料。

總覽

Google SecOps 是一項雲端服務,建構於 Google 基礎架構之上,專為企業設計,可私下保留、分析及搜尋企業產生的大量安全性和網路遙測資料。Google SecOps 會將資料正規化、建立索引、關聯及分析,以便即時分析及掌握有風險或可疑的活動。

Google SecOps 的資料擷取機制

Google SecOps 提供多種資料擷取途徑,詳情請參閱 Google SecOps 擷取說明文件。本指南中的設定範例著重於代表性架構中的下列重要整合點:

  • VM 和工作負載系統記錄:如要擷取源自 VM 和工作負載的記錄,可以使用多種架構模式。本指南中的設定範例使用直接部署在這些虛擬機器中的 OpenTelemetry BindPlane 代理程式。這個方法提供彈性且標準化的方式,可收集及轉送系統記錄。

  • Google Cloud 記錄:除了虛擬化環境,大多數客戶專案都會使用一系列 Google Cloud 服務 (在此特定情境中不包括 VMware Engine)。如要全面掌握威脅偵測資訊,可以將這些支援服務的記錄檔傳送至 Google SecOps。下列設定範例採用直接擷取機制,設定 Cloud Logging 篩選器,選擇性轉送相關記錄資料。

設定 Google Security Operations 與 VMware Engine

如要設定 Google Security Operations 搭配 VMware Engine,請完成下列步驟:

  1. 轉送工作負載系統記錄
  2. 建立自訂規則
  3. 轉送 Google Cloud 雲端記錄

轉送工作負載系統記錄

如要將 VMware Engine 內執行的 VM 工作負載系統記錄轉送至 Google SecOps,可以使用在工作負載內執行的 OpenTelemetry 收集代理程式。相關步驟如下:

  1. 請按照 Bindplane 代理程式的事前準備操作說明,安裝代理程式並下載 Google SecOps 擷取驗證檔案。您可以前往 Google SecOps 入口網站下載 Google SecOps 驗證檔案。
  2. 驗證防火牆設定,確保相關防火牆通訊埠已開啟。
  3. 按照 Linux 或 Windows 作業系統的操作說明,安裝 Bindplane 代理程式。
  4. 完成設定代理程式的步驟。完成這些步驟時,請留意下列細節:

    • 「Receiver」部分會指定代理程式應收集哪些記錄,並傳送至 Google SecOps。
    • 「Exporter」部分會指定代理程式應將記錄檔傳送至何處。
    • 這項工作會使用 Google SecOps 匯出工具,將記錄直接傳送至 Google SecOps Ingestion API。
  5. 如需可用的設定檔範例,請參閱其他記錄收集設定範例。以下是收集 Windows 事件記錄 (應用程式、安全性和系統) 並傳送至 Google SecOps 的具體範例。採用 OpenTelemetry Collector 設定格式:

    receivers:
    windowseventlog/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_application:
        attributes:
           log_type: windows_event.application
        channel: application
        max_reads: 100
        poll_interval: 1s
        raw: true
        start_at: end
    windowseventlog/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_security:
        attributes:
           log_type: windows_event.security
        channel: security
        max_reads: 100
        poll_interval: 1s
        raw: true
        start_at: end
    windowseventlog/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_system:
        attributes:
           log_type: windows_event.system
        channel: system
        max_reads: 100
        poll_interval: 1s
        raw: true
        start_at: end
    processors:
    resourcedetection/source0_01HZ7NFAB5HZY6TPMGEYRN4XGZ:
        detectors:
            -   system
        system:
            hostname_sources:
                 -   os
    transform/source001HZ7NFAB5HZY6TPMGEYRN4XGZprocessor0_logs:
        error_mode: ignore
        log_statements:
            -   context: log
              statements:
                  -   set(attributes["chronicle_log_type"], "WINEVTLOG") where true
    exporters:
    chronicle/NA-SDL:
        compression: none
        creds: '{  "type": "service_account",
            "project_id": "malachite-previewamericassdl",
            "private_key_id": "a9c8d8f0b081c09bcf92621804ba19fc6529ecce",
            "private_key": "----BEGIN PRIVATE KEY-----abcdefg-----END PRIVATE KEY-----\n",
            "client_email": "previewamericassdl-1710772997@malachite-previewamericassdl.iam.gserviceaccount.com",
            "client_id": "114604545528934473681",
            "auth_uri": "https://accounts.google.com/o/oauth2/auth",
            "token_uri": "https://oauth2.googleapis.com/token",
            "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
            "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/previewamericassdl-1710772997%40malachite-previewamericassdl.iam.gserviceaccount.com",
            "universe_domain": "googleapis.com" }'
        customer_id: a556547c-1cff-43ef-a2e4-cf5b12a865df
        endpoint: malachiteingestion-pa.googleapis.com
        ingestion_labels:
            env: takeshi
        log_type: CATCH_ALL
        namespace: null
        raw_log_field: body
        retry_on_failure:
            enabled: true
            initial_interval: 5s
            max_elapsed_time: 300s
            max_interval: 30s
        sending_queue:
            enabled: true
            num_consumers: 10
            queue_size: 5000
            storage: file_storage/NA-SDL
    extensions:
    file_storage/NA-SDL:
        compaction:
            directory: $OIQ_OTEL_COLLECTOR_HOME/storage
            on_rebound: true
        directory: $OIQ_OTEL_COLLECTOR_HOME/storage
    service:
    extensions:
        -   file_storage/NA-SDL
    pipelines:
        logs/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_NA-SDL-0:
            receivers:
                -   windowseventlog/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_application
                -   windowseventlog/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_security
                -   windowseventlog/source001HZ7NFAB5HZY6TPMGEYRN4XGZ_system
            processors:
                -   resourcedetection/source0_01HZ7NFAB5HZY6TPMGEYRN4XGZ
                -   transform/source001HZ7NFAB5HZY6TPMGEYRN4XGZprocessor0_logs
            exporters:
                -   chronicle/NA-SDL

  6. 設定完成後,請重新啟動收集器,並確認記錄已填入 Google SecOps 資訊主頁。

建立威脅偵測自訂規則

Google SecOps 提供預設的精選規則和偵測功能,可有效識別網路安全威脅。除了預設功能外,您也可以建立自訂規則,根據特定環境和安全疑慮產生快訊。如要偵測更複雜的威脅,Google SecOps 支援使用多事件規則。這樣一來,就能追蹤及關聯一段時間內的相關安全性事件,進而找出複雜的攻擊模式,這些模式可能無法從獨立事件中看出。

轉送 Google Cloud Cloud 記錄檔

如要設定使用直接擷取功能將 Google Cloud 資料擷取至 Google SecOps,請按照下列步驟操作:

  1. 按照「將 Google Cloud 資料擷取至 Google SecOps」一文的步驟設定記錄。
  2. 在「Global Ingestion Settings」(全域擷取設定) 分頁,啟用「ingest and analyze data」(擷取及分析資料)。
  3. 查看支援記錄擷取的 Google Cloud 服務清單,找出最符合安全監控需求的 Google Cloud 服務。請參閱「匯出 gcp_name 記錄」。
  4. 視需要前往「Export Filter Settings」(匯出篩選器設定) 分頁修改預設匯出篩選器,納入所需的特定記錄。以下範例是本文使用的匯出篩選器副本:
    log_id("dns.googleapis.com/dns_queries") OR log_id("cloudaudit.googleapis.com/activity") OR log_id("cloudaudit.googleapis.com/system_event") OR
    ( log_id("cloudaudit.googleapis.com/data_access")
    AND NOT protoPayload.methodName =~ "^storage.(buckets|objects).(get|list)$"
    AND NOT protoPayload.request.cmd = "select" ) OR
    log_id("cloudaudit.googleapis.com/policy") OR
    log_id("cloudaudit.googleapis.com/access_transparency") OR
    log_id("compute.googleapis.com/nat_flows") OR
    log_id("compute.googleapis.com/firewall") OR
    log_id("requests") OR
    logName =~ "^projects/[\w-]+/logs/syslog$" OR
    logName =~ "^projects/[\w-]+/logs/authlog$" OR
    log_id("securelog") OR
    log_id("sysmon.raw") OR
    logName =~ "^projects/[\w-]+/logs/windows_event_log$" OR
    log_id("windows_event_log") OR
    log_id("events") OR
    log_id("stdout") OR
    log_id("stderr") OR
    log_id("audit_log") OR
    log_id("recaptchaenterprise.googleapis.com/assessment") OR
    log_id("recaptchaenterprise.googleapis.com/annotation") OR
    log_id("cloudaudit.googleapis.com/activity")

後續步驟