收集 Trellix Endpoint Security (HX) 稽核 (舊稱 FireEye HX) 記錄

剖析器版本:1.0

支援:

本文說明如何使用 Bindplane,將 Trellix Endpoint Security (HX) Audit (舊稱 FireEye HX) 記錄檔擷取至 Google Security Operations。

Trellix Endpoint Security (HX) 提供端點偵測與應變功能,可透過進階威脅搜索、鑑識資料收集和行為分析,偵測及應對端點上的進階威脅。這項功能採用機器學習技術,並根據數千次事件應變經驗建構而成。

事前準備

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

  • Google SecOps 執行個體。
  • Windows Server 2016 以上版本,或搭載 systemd 的 Linux 主機。
  • Bindplane 代理程式和 Trellix Endpoint Security (HX) 設備之間的網路連線。
  • 如果是在 Proxy 後方執行,請確認防火牆通訊埠已按照 Bindplane 代理程式需求開啟。
  • Trellix Endpoint Security (HX) 管理主控台的特殊權限。
  • Trellix Endpoint Security (HX) 設備 CLI 的管理員權限 (SSH 或控制台存取權)。

取得 Bindplane 代理程式的 Google SecOps 憑證

如要向 Google SecOps 驗證 Bindplane 代理程式,請選擇下列其中一種方法:

  • 新部署作業:使用 Chronicle API (選項 1)。
  • 舊版部署作業:在 2027 年 7 月 20 日停用 Ingestion API 前,請繼續使用擷取驗證檔案 (選項 2)。
  1. 登入 Google Cloud 控制台,選取連結至 Google SecOps 執行個體的 Google Cloud 專案。
  2. 依序前往 「IAM & Admin」(IAM 與管理) >「Service Accounts」(服務帳戶)。
  3. 按一下「建立服務帳戶」。
  4. 提供下列設定詳細資料:
    • 服務帳戶名稱:輸入帳戶名稱 (例如 bindplane-ingest)。
    • 服務帳戶說明:輸入說明 (例如 Bindplane agent log ingestion)。
  5. 點按「Create and continue」(建立並繼續)。
  6. 在「將專案存取權授予這個服務帳戶」部分,按一下「選取角色」,然後選取「Chronicle 編輯者」。
  7. 依序點選「繼續」和「完成」。
  8. 按一下您建立的服務帳戶,然後前往「金鑰」分頁。
  9. 依序點選「新增金鑰」>「建立新的金鑰」。
  10. 選取「JSON」,然後按一下「建立」。金鑰檔案會下載到電腦。
  11. 將金鑰檔案儲存為 Bindplane 收集器目錄中的 ingestion-auth.json (Linux 上的 /opt/observiq-otel-collector/ingestion-auth.json 或 Windows 上的 C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json),或更新 config.yaml 中的 creds_file_path,使其與儲存路徑相符。
  12. 依序前往「IAM & Admin」(IAM 與管理) >「Settings」(設定),然後複製「Project number」(專案編號)。匯出工具設定時會用到。

方法 2:下載擷取驗證檔案 (舊版)

  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
    
  3. 等待安裝完成。

  4. 執行下列指令,確認安裝成功:

    sc query observiq-otel-collector
    

    服務應顯示為「RUNNING」。

Linux 安裝

  1. 開啟具有根層級或 sudo 權限的終端機。
  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
    
  3. 等待安裝完成。

  4. 執行下列指令,確認安裝成功:

    sudo systemctl status observiq-otel-collector
    

    服務應顯示為「active (running)」。

其他安裝資源

如需其他安裝選項和疑難排解資訊,請參閱 Bindplane 代理程式安裝指南。

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

找出設定檔

  • Linux: /opt/observiq-otel-collector/config.yaml
  • Windows: C:\Program Files\observIQ OpenTelemetry Collector\config.yaml

編輯設定檔

  • 將 config.yaml 的全部內容替換為下列設定:

    receivers:
      tcplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/trellix_hx:
        protocol: https
        # Region of your instance, for example us, europe, asia-southeast1
        location: <LOCATION>
        # Project number of the Google Cloud project linked to the instance
        project: '<PROJECT_NUMBER>'
        compression: gzip
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: 'YOUR_CUSTOMER_ID'
        endpoint: chronicle.googleapis.com
        log_type: FIREEYE_HX_AUDIT
        raw_log_field: body
        ingestion_labels:
          env: production
          source: trellix_hx
    
    service:
      pipelines:
        logs/trellix_hx_to_chronicle:
          receivers:
            - tcplog
          exporters:
            - chronicle/trellix_hx
    

設定參數

請替換下列預留位置:

  • 接收器設定:

    • tcplog:使用 TCP 接收器,因為 Trellix Endpoint Security (HX) 設備 CLI 會透過 TCP 通訊協定設定系統記錄轉送。
    • listen_address:要監聽的 IP 位址和通訊埠。使用 0.0.0.0:514 監聽通訊埠 514 上的所有介面,或指定其他通訊埠 (例如 0.0.0.0:1514),如果是在 Linux 上以非根使用者身分執行。
  • Exporter 設定:

    • creds_file_path:服務帳戶 JSON 金鑰檔案的完整路徑 (選項 1): * Linux:/opt/observiq-otel-collector/ingestion-auth.json * Windows:C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • YOUR_CUSTOMER_ID:上一步取得的實際客戶 ID。
    • location:將 <LOCATION> 替換為 Google SecOps 執行個體的區域 (例如 us、europe 或 asia-southeast1)。匯出工具會在這個值前面加上 chronicle.googleapis.com。如需完整清單,請參閱「區域性端點」。
    • project:將 <PROJECT_NUMBER> 替換為「IAM 與管理」>「設定」中的專案編號。
    • endpoint:請將此值設為 chronicle.googleapis.com。
    • log_type:必須是 FIREEYE_HX_AUDIT。
    • ingestion_labels:用於整理記錄的選用標籤。

舊版 Ingestion API 匯出工具

  • 如果您使用方式 2 的擷取驗證檔案,請將 exporters 區塊替換成下列內容。將 creds_file_path 設為擷取驗證檔案的路徑。如果執行個體位於美國境外,請將 malachiteingestion-pa.googleapis.com 替換為區域端點 (例如 europe-malachiteingestion-pa.googleapis.com)。

    exporters:
      chronicle/trellix_hx:
        compression: gzip
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: 'YOUR_CUSTOMER_ID'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: FIREEYE_HX_AUDIT
        raw_log_field: body
        ingestion_labels:
          env: production
          source: trellix_hx
    

儲存設定檔

編輯完畢後,請儲存檔案:

  • Linux:依序按下 Ctrl+O、Enter 和 Ctrl+X 鍵。
  • Windows:依序點選「檔案」>「儲存」。

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

如要在 Linux 中重新啟動 Bindplane 代理程式,請執行下列指令:

  1. 執行下列指令:

    sudo systemctl restart observiq-otel-collector
    
  2. 確認服務正在執行:

    sudo systemctl status observiq-otel-collector
    
  3. 檢查記錄是否有錯誤:

    sudo journalctl -u observiq-otel-collector -f
    

如要在 Windows 重新啟動 Bindplane 代理程式,請按照下列步驟操作:

  1. 您可以選擇下列其中一個選項:

    • 以管理員身分開啟命令提示字元或 PowerShell:
    net stop observiq-otel-collector && net start observiq-otel-collector
    
    • 服務控制台:
      1. 按下 Win+R,輸入 services.msc,然後按下 Enter 鍵。
      2. 找出「observIQ OpenTelemetry Collector」。
      3. 按一下滑鼠右鍵,然後選取「重新啟動」。
  2. 確認服務是否正在執行:

    sc query observiq-otel-collector
    
  3. 檢查記錄是否有錯誤:

    type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
    

設定 Trellix Endpoint Security (HX) 系統記錄檔轉送

Trellix Endpoint Security (HX) 支援兩種轉送記錄的方法:Windows 事件記錄的 Event Streamer 模組,以及 CEF 格式設備記錄的 CLI 設定。

方法 1:設定 Windows 事件記錄的 Event Streamer (使用者介面)

  1. 登入 Trellix Endpoint Security (HX) 管理控制台。
  2. 前往「Event Streamer」。
  3. 選取「Enable Event Streamer on the host」。
  4. 按一下「儲存」,套用政策變更。
  5. 依序前往「目的地」>「伺服器設定」>「新增系統記錄目的地」。
  6. 提供下列設定詳細資料:
    • 名稱:輸入描述性名稱 (例如 Google SecOps-Collector)。
    • IP 位址:輸入 Bindplane 代理程式主機的 IP 位址。
    • 「Port」(通訊埠):輸入 Bindplane 代理程式中設定的通訊埠編號 (例如 514)。
  7. 按一下 [儲存]。

方法 2:設定設備系統記錄轉送 (CLI)

  1. 使用 SSH 或主控台存取權,登入 Trellix Endpoint Security (HX) 裝置。
  2. 執行下列指令,進入特權模式:enable
  3. 執行下列指令,進入設定模式:configure terminal
  4. 執行下列指令,驗證目前的記錄設定:show logging
  5. 執行下列指令,設定 syslog 轉送:

    logging BINDPLANE_IP_ADDRESS trap none
    logging BINDPLANE_IP_ADDRESS trap override class cef priority info
    logging BINDPLANE_IP_ADDRESS protocol tcp
    

    將 BINDPLANE_IP_ADDRESS 替換為 Bindplane 代理程式主機的 IP 位址。

  6. 執行下列指令,啟用 RFC-3339 時間戳記格式:logging fields timestamp format rfc-3339

  7. 執行下列指令來儲存設定:write memory

  8. 執行下列指令即可退出:exit

啟用資料收集功能,收集事件記錄

  1. 以管理員身分登入 Trellix Endpoint Security (HX) 網頁使用者介面。
  2. 依序前往 「Admin」 > 「Data Acquisition Scripts」。
  3. 按一下「Standard Investigative Details」(標準調查詳細資料)。
  4. 在「指令碼說明」頁面中,按一下「動作」,然後選取「編輯」。
  5. 按一下「事件記錄」。
  6. 在「Windows event logs」(Windows 事件記錄) 區段中啟用「Security logs」(安全性記錄)。
  7. 按一下 [儲存]。

啟用自動分類功能

  1. 以管理員身分登入 Trellix Endpoint Security (HX) 網頁使用者介面。
  2. 依序前往「管理」>「分流設定」。
  3. 將「分流設定」切換鈕切換為「開啟」。
  4. 按一下 [儲存]。

啟用檔案和資料稽核

  1. 以管理員身分登入 Trellix Endpoint Security (HX) 網頁版 UI。
  2. 前往「管理」> 政策。
  3. 在「設定」下方,按一下「稽核 - 版本號碼」。
  4. 開啟「在主機上啟用檔案和資料稽核」。
  5. 按一下 [儲存]。

UDM 對應表

記錄欄位 UDM 對應 邏輯
alert.agent._id principal.asset.asset_id 代理 ID,前置字串為 AGENT ID:
alert.agent.url principal.labels.value 代理網址值。
alert.condition._id additional.fields.value.string_value 已移除含有 = 字元的條件 ID。
alert.condition.url additional.fields.value.string_value 已移除包含 = 字元的條件網址。
alert.decorators[].data.fireeye_report.indicator_verdict.malware_families.0 security_result.threat_name FireEye 報告中的惡意軟體系列。
alert.decorators[].data.fireeye_report.risk_summary security_result.description 風險摘要說明。
alert.decorators[].data.fireeye_verdict security_result.severity_details FireEye 判定結果詳細資料。
alert.event_at read_only_udm.metadata.event_timestamp 事件時間戳記對應。
alert.event_id read_only_udm.metadata.product_log_id 產品記錄 ID。
alert.event_type read_only_udm.metadata.product_event_type 產品事件類型 ID。
alert.event_values.fileWriteEvent/fullPath target.file.full_path 目標檔案路徑。
alert.event_values.fileWriteEvent/md5 target.file.md5 目標檔案 MD5 雜湊。
alert.event_values.fileWriteEvent/pid principal.process.pid 寫入程序 PID。
alert.event_values.fileWriteEvent/processPath principal.process.file.full_path 寫入程序檔案路徑。
alert.event_values.fileWriteEvent/size target.file.size 目標檔案大小。
alert.event_values.fileWriteEvent/username principal.user.userid 寫入使用者 ID。
alert.event_values.ipv4NetworkEvent/localIP principal.ip 主要本機 IP。
alert.event_values.ipv4NetworkEvent/localPort principal.port 主要本機通訊埠。
alert.event_values.ipv4NetworkEvent/protocol network.ip_protocol 網路 IP 通訊協定。
alert.event_values.ipv4NetworkEvent/remoteIP target.ip 目標遠端 IP。
alert.event_values.ipv4NetworkEvent/remotePort target.port 目標遠端通訊埠。
alert.event_values.processEvent/md5 target.process.file.md5 目標程序 MD5。
alert.event_values.processEvent/pid target.process.pid 目標程序 PID。
alert.event_values.urlMonitorEvent/hostname target.hostname 目標目的地主機名稱。
alert.event_values.urlMonitorEvent/requestUrl target.url 目標要求網址。
alert.event_values.urlMonitorEvent/urlMethod network.http.method 網路 HTTP 方法。
alert.event_values.urlMonitorEvent/userAgent network.http.user_agent 網路 HTTP 使用者代理程式。
alert.indicator.name read_only_udm.security_result.summary 安全性結果摘要。
host.agent_version read_only_udm.metadata.product_version 產品版本對應。
host.containment_state read_only_udm.principal.containment_state 主要遏制狀態。
host.hostname read_only_udm.principal.hostname 主要主機名稱。
host.os.platform read_only_udm.principal.platform 主要 OS 平台。
host.primary_ip_address read_only_udm.principal.ip 主體主要 IP。
severity security_result.severity 對應至 LOW、MEDIUM 或 HIGH。
timestamp timestamp 原始記錄時間戳記。

變更記錄

查看這個剖析器的變更記錄

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