收集 Kaseya Datto File Protection 記錄

支援以下發布途徑:

本文說明如何使用 Bindplane,將 Kaseya Datto File Protection 記錄擷取到 Google Security Operations。剖析器會使用 grok 模式從 Datto S4P4 系統記錄訊息中擷取欄位,將這些欄位對應至統一資料模型 (UDM),並根據系統記錄嚴重程度分類事件。這個類別會特別處理 syslog 訊息中的 CEF 格式資料,擷取供應商、產品、版本和事件詳細資料等重要欄位,用於強化和分類。

事前準備

請確認您已具備下列必要條件:

  • Google SecOps 執行個體
  • Windows 2016 以上版本,或搭載 systemd 的 Linux 主機。
  • 如果是在 Proxy 後方執行,防火牆通訊埠會開啟
  • 具備 Datto Siris 或 Alto 的特殊存取權

取得 Google SecOps 擷取驗證檔案

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

取得 Google SecOps 客戶 ID

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

安裝 Bindplane 代理程式

Windows 安裝

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

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

Linux 安裝

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

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

其他安裝資源

如需其他安裝選項,請參閱安裝指南

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

  1. 存取設定檔:
    • 找出 config.yaml 檔案。通常位於 Linux 的 /etc/bindplane-agent/ 目錄或 Windows 的安裝目錄。
    • 使用文字編輯器 (例如 nanovi 或記事本) 開啟檔案。
  2. 按照下列方式編輯 config.yaml 檔案:

    receivers:
        tcplog:
            # Replace the port and IP address as required
            listen_address: "0.0.0.0:514"
    
    exporters:
        chronicle/chronicle_w_labels:
            compression: gzip
            # Adjust the path to the credentials file you downloaded in Step 1
            creds_file_path: '/path/to/ingestion-authentication-file.json'
            # Replace with your actual customer ID from Step 2
            customer_id: <customer_id>
            endpoint: malachiteingestion-pa.googleapis.com
            # Add optional ingestion labels for better organization
            ingestion_labels:
                log_type: 'DATTO_FILE_PROTECTION'
                raw_log_field: body
    
    service:
        pipelines:
            logs/source0__chronicle_w_labels-0:
                receivers:
                    - tcplog
                exporters:
                    - chronicle/chronicle_w_labels
    
  3. 視基礎架構需求替換通訊埠和 IP 位址。

  4. <customer_id> 替換為實際的客戶 ID。

  5. 在「取得 Google SecOps 攝入驗證檔案」部分,將 /path/to/ingestion-authentication-file.json 更新為驗證檔案的儲存路徑。

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

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

    sudo systemctl restart bindplane-agent
    
  • 如要在 Windows 中重新啟動 Bindplane 代理程式,您可以使用「Services」主控台,或輸入下列指令:

    net stop BindPlaneAgent && net start BindPlaneAgent
    

為 Datto Siris 和 Alto 設定 Syslog

  1. 登入 Datto 網路主控台。
  2. 依序前往「設定」>「裝置設定」>「遠端記錄」
  3. 啟用「遠端記錄」
  4. 提供下列設定詳細資料:
    • 確認 Bindplane Agent 已設定為透過 TCP 連線監聽 通訊埠 514
    • IP 位址:輸入 Bindplane 代理程式 IP 位址。
  5. 按一下 [套用]

UDM 對應表

記錄欄位 UDM 對應 邏輯
act security_result.category_details 原始記錄檔擴充資料欄位的 act 值。
desc metadata.description 使用 grok 從 desc 欄位擷取的 description 欄位值。
dvc target.ip 原始記錄檔擴充資料欄位的 dvc 值。
extensions security_result.category_detailstarget.ip 使用 kv 篩選器剖析,擷取 actdvc,然後對應至 UDM 欄位。
hostname principal.hostname 從原始記錄訊息中擷取的主機名稱。
log_id metadata.product_log_id 從原始記錄訊息中擷取的記錄 ID。
prod_dvc_version metadata.product_version 從原始記錄的 desc 欄位擷取的產品版本。與 principal.hostname 相同的值。如果原始記錄中出現 hostnamedvc,請將此屬性設為 STATUS_UPDATE,否則設為「GENERIC_EVENT」。當原始記錄中存在 extensions 欄位時,硬式編碼值為 \n\n\0017。從原始記錄訊息中擷取的時間戳記。與 edr.raw_event_name 相同的值。硬式編碼值 DATTO_FILE_PROTECTION。硬式編碼值 S4P4。硬式編碼值 Datto。衍生自 syslog_severity_code。如果 < 3,則嚴重性為低。如果大於 2 且小於 6,則嚴重性為中等。如果大於 5,則嚴重性為「高」。
timestamp metadata.event_timestamp 從原始記錄訊息中擷取的時間戳記。

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