收集 ExtraHop Reveal(x) DNS 記錄

剖析器版本:1.0

支援的國家/地區:

本文說明如何使用 Bindplane,將 ExtraHop Reveal(x) DNS 記錄檔擷取至 Google Security Operations。ExtraHop Reveal(x) 提供被動式 DNS 監控功能,可擷取及分析整個網路中的所有 DNS 交易。組織會使用 Reveal(x) 偵測以 DNS 為基礎的威脅,例如通道、網域產生演算法 (DGA),以及透過 DNS 流量的深層封包檢查進行的資料外洩。

事前準備

請確認您已完成下列事前準備事項:

  • Google SecOps 執行個體。
  • Windows Server 2016 以上版本,或搭載 systemd 的 Linux 主機。
  • 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟。
  • 有權存取 ExtraHop Reveal(x) 管理頁面。
  • ExtraHop 感應器與 Bindplane 代理程式主機之間的網路連線 (位於設定的 Syslog 連接埠)。

取得 Google SecOps 擷取驗證檔案

  1. 登入 Google SecOps 控制台
  2. 依序前往「SIEM 設定」>「收集代理程式」
  3. 下載擷取驗證檔案
  4. 將檔案安全地儲存在要安裝 Bindplane 的系統上。

取得 Google SecOps 客戶 ID

  1. 登入 Google SecOps 控制台
  2. 依序前往「SIEM 設定」>「設定檔」
  3. 複製並儲存「機構詳細資料」部分中的客戶 ID

安裝 Bindplane 代理程式

請按照下列操作說明,在 Windows 或 Linux 作業系統上安裝 Bindplane 代理程式。

Windows 安裝

  1. 以管理員身分開啟「命令提示字元」或「PowerShell」
  2. 執行下列指令:

    msiexec /i "[https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi](https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi)" /quiet
    

Linux 安裝

  1. 開啟具有 rootsudo 權限的終端機。
  2. 執行下列指令:

    sudo sh -c "$(curl -fsSlL [https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh](https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh))" install_unix.sh
    

其他安裝資源

如需其他安裝選項,請參閱 Bindplane 代理程式安裝指南

設定 Bindplane 代理程式,擷取系統記錄檔並傳送至 Google SecOps

  1. 存取設定檔:

    • Linuxsudo systemctl status observiq-otel-collector
    • WindowsC:\Program Files\observIQ OpenTelemetry Collector\config.yaml
  2. 按照下列方式編輯 config.yaml 檔案:

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/extrahop_dns:
        compression: gzip
        creds_file_path: '/path/to/ingestion-authentication-file.json'
        customer_id: '<CUSTOMER_ID>'
        endpoint: '<ENDPOINT>'
        log_type: 'EXTRAHOP_DNS'
        raw_log_field: body
        ingestion_labels:
    
    service:
      pipelines:
        logs/extrahop_dns_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/extrahop_dns
    
  • <CUSTOMER_ID> 替換為實際的客戶 ID。
  • /path/to/ingestion-authentication-file.json 更新為驗證檔案的儲存路徑。
  • <ENDPOINT> 替換為您的區域端點:
    • 美國malachiteingestion-pa.googleapis.com
    • 歐洲europe-malachiteingestion-pa.googleapis.com
    • 亞洲asia-southeast1-malachiteingestion-pa.googleapis.com

重新啟動 Bindplane 代理程式,以套用變更

  • 如要在 Linux 中重新啟動 Bindplane 代理程式,請執行:sudo systemctl restart observiq-otel-collector
  • 如要在 Windows 中重新啟動 Bindplane 代理程式,請使用「服務」主控台或執行: cmd net stop observiq-otel-collector && net start observiq-otel-collector

設定 ExtraHop Reveal(x) Open Data Stream,轉送 DNS syslog

新增系統記錄開放資料串流目標

  1. 登入 ExtraHop「Administration」頁面。
  2. 在「系統設定」部分,按一下「開啟資料串流」
  3. 按一下「新增目標」,然後選取「系統記錄」
  4. 請提供下列設定詳細資料:
    • 名稱:輸入描述性名稱 (例如 Google SecOps-DNS)。
    • 主機:輸入 Bindplane 代理程式主機的 IP 位址。
    • Port514
    • 「Protocol」(通訊協定)UDP
  5. 按一下「測試」驗證連線,然後按一下「儲存」

建立觸發條件,匯出 DNS 交易

  1. 按一下「系統設定」圖示,然後選取「觸發條件」
  2. 點選「建立」
  3. 請提供下列設定詳細資料:
    • 名稱DNS Syslog Export
    • 事件:選取「DNS_REQUEST」和「DNS_RESPONSE」
  4. 在「Editor」(編輯器) 窗格中,輸入下列觸發指令碼:

    var obj = {
        eh_event: "dns",
        client_ip: Flow.client.ipaddr.toString(),
        server_ip: Flow.server.ipaddr.toString(),
        client_port: Flow.client.port,
        server_port: Flow.server.port,
        qname: DNS.qname,
        qtype: DNS.qtype
    };
    
    if (event === "DNS_RESPONSE") {
        obj.dns_type = "response";
        obj.rcode = DNS.errorNum;
        obj.answers = JSON.stringify(DNS.answers);
    } else {
        obj.dns_type = "request";
        obj.opcode = DNS.opcode;
    }
    
    Remote.Syslog("Chronicle-DNS").info(JSON.stringify(obj));
    
  5. 按一下 [儲存]

將觸發條件指派給裝置

  1. 開啟您建立的觸發條件。
  2. 在「作業」部分中,按一下「指派」
  3. 選取相關裝置或裝置群組,然後按一下「指派」

UDM 對應表

記錄欄位 UDM 對應 邏輯
answers network.dns.answers 從原始欄位剖析。
dst target.ip 原始對應。
dpt target.port 原始對應。
host principal.hostname 原始對應。
proto network.ip_protocol 原始對應。
qname network.dns.questions.name 原始對應。
qtype network.dns.questions.type 原始對應。
rcode network.dns.response_code 原始對應。
src principal.ip 原始對應。
spt principal.port 原始對應。
ttl network.dns.answers.ttl 原始對應。
不適用 metadata.log_type 設為 EXTRAHOP_DNS
不適用 metadata.product_name 設為 Reveal(x) DNS
不適用 metadata.vendor_name 設為 ExtraHop

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