收集 Imperva FlexProtect 記錄

支援的國家/地區:

本文說明如何使用 Bindplane,將 Imperva FlexProtect 記錄檔擷取至 Google Security Operations。剖析器會先清理及預先處理傳入的記錄,然後嘗試擷取通用事件格式 (CEF) 資料。系統會根據「src」和「sip」等特定欄位是否存在,指派 UDM 事件類型,並將相關 CEF 欄位對應至 UDM 架構,最後使用其他自訂欄位擴充輸出內容。Imperva FlexProtect 可在混合雲環境中彈性部署 Imperva 安全性解決方案 (SecureSphere、Cloud WAF、Bot Protection)。

事前準備

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

  • Google SecOps 執行個體
  • Windows 2016 以上版本,或搭載 systemd 的 Linux 主機
  • 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
  • Imperva FlexProtect 管理控制台或個別產品控制台的特殊存取權

取得 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. 開啟具有根層級或 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. 存取設定檔:

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

    receivers:
      udplog:
        # 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
        log_type: 'IMPERVA_FLEXPROTECT'
        raw_log_field: body
        ingestion_labels:
    
    service:
      pipelines:
        logs/source0__chronicle_w_labels-0:
          receivers:
            - udplog
          exporters:
            - chronicle/chronicle_w_labels
    
    • 視基礎架構需求替換通訊埠和 IP 位址。
    • <customer_id> 替換為實際的客戶 ID。
    • /path/to/ingestion-authentication-file.json 更新為「取得 Google SecOps 擷取驗證檔案」部分中驗證檔案的儲存路徑。

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

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

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

    net stop BindPlaneAgent && net start BindPlaneAgent
    

在 Imperva FlexProtect 上設定 Syslog 轉送

適用於 SecureSphere 元件 (地端/雲端)

  1. 登入 Imperva SecureSphere 管理控制台
  2. 依序前往「設定」> 動作集」
  3. 按一下「新增」即可建立新的動作集。
  4. 按一下「新增動作」,然後提供下列設定詳細資料:

    • 名稱:輸入描述性名稱 (例如 Google SecOps Syslog)。
    • 動作類型:選取「系統記錄檔」
    • 主機:輸入 Bindplane 代理程式 IP 位址。
    • 「Port」(通訊埠):輸入 Bindplane 代理程式通訊埠編號 (預設為 514)。
    • 通訊協定:選取 UDPTCP
    • 系統記錄層級:選取「DEBUG」
    • 系統記錄檔設施:選取「LOCAL0」
    • 格式:選取 CEF (通用事件格式)。
  5. 儲存動作設定,並套用至相關安全性政策。

適用於 Cloud WAF/Incapsula 元件

  1. 登入 Imperva Cloud Console
  2. 依序前往「記錄」>「記錄設定」
  3. 設定系統記錄檔目的地:
    • 主機:輸入 Bindplane 代理程式 IP 位址。
    • 「Port」(通訊埠):輸入 Bindplane 代理程式通訊埠編號 (預設為 514)。
    • 通訊協定:選取 UDPTCP
    • 格式:選取「CEF」

UDM 對應表

記錄欄位 UDM 對應 邏輯
act read_only_udm.security_result.action_details 直接從「act」欄位對應。
應用程式 read_only_udm.network.application_protocol 直接從「app」欄位對應。
ccode read_only_udm.principal.location.country_or_region 直接從「ccode」欄位對應。
cicode read_only_udm.principal.location.city 直接從「cicode」欄位對應。
cn1 read_only_udm.network.http.response_code 轉換為整數後,直接從 cn1 欄位對應。
cs1 read_only_udm.additional.fields.value.string_value 直接從「cs1」欄位對應。
cs2 read_only_udm.additional.fields.value.string_value 直接從「cs2」欄位對應。
cs3 read_only_udm.additional.fields.value.string_value 直接從「cs3」欄位對應。
cs4 read_only_udm.additional.fields.value.string_value 直接從「cs4」欄位對應。
cs5 read_only_udm.additional.fields.value.string_value 直接從「cs5」欄位對應。
cs6 read_only_udm.additional.fields.value.string_value 直接從「cs6」欄位對應。
cs7 read_only_udm.additional.fields.value.string_value 直接從「cs7」欄位對應。
cs8 read_only_udm.additional.fields.value.string_value 直接從「cs8」欄位對應。
cs9 read_only_udm.additional.fields.value.string_value 直接從「cs9」欄位對應。
cpt read_only_udm.principal.port 轉換為整數後,直接從 cpt 欄位對應。
客戶 read_only_udm.principal.user.user_display_name 直接從「Customer」欄位對應。
deviceExternalId read_only_udm.about.asset.asset_id 這個值是將「Incapsula.SIEMintegration:」與 deviceExternalId 欄位串連而來。
deviceFacility read_only_udm.principal.location.city 直接從「deviceFacility」欄位對應。
dproc read_only_udm.target.process.command_line 直接從「dproc」欄位對應。
結束 read_only_udm.security_result.detection_fields.value 直接從「end」欄位對應。
fileId read_only_udm.network.session_id 直接從「fileId」欄位對應。
filePermission read_only_udm.about.resource.attribute.permissions.name 直接從「filePermission」欄位對應。
read_only_udm.network.received_bytes 直接從「in」欄位對應。
qstr read_only_udm.security_result.detection_fields.value 直接從「qstr」欄位對應。
要求 read_only_udm.target.url 直接從「request」欄位對應。
requestClientApplication read_only_udm.network.http.user_agent 直接從「requestClientApplication」欄位對應。
requestMethod read_only_udm.network.http.method 直接從「requestMethod」欄位對應。
siteid read_only_udm.security_result.detection_fields.value 直接從「siteid」欄位對應。
sip read_only_udm.target.ip 直接從「sip」欄位對應。
sourceServiceName read_only_udm.principal.application 直接從「sourceServiceName」欄位對應。
spt read_only_udm.target.port 轉換為整數後,直接從 spt 欄位對應。
src read_only_udm.principal.ip 直接從「src」欄位對應。
開始 read_only_udm.security_result.detection_fields.value 直接從「start」欄位對應。
suid read_only_udm.principal.user.userid 直接從「suid」欄位對應。
ver read_only_udm.network.tls.version 直接從「ver」欄位對應。
read_only_udm.about.asset.asset_id 這個值是將「Incapsula.SIEMintegration:」與 deviceExternalId 欄位串連而來。
read_only_udm.additional.fields.key 值是由剖析器邏輯根據欄位的標籤判斷,例如:
- cs1Label 對應至「Cap Support」
- cs2Label 對應至「Javascript Support」
- cs3Label 對應至「CO Support」
- cs4Label 對應至「VID」
- cs5Label 對應至「clappsig」
- cs6Label 對應至「clapp」
- cs7Label 對應至「latitude」
- cs8Label 對應至「longitude」
- cs9Label 對應至「Rule name」
read_only_udm.metadata.event_timestamp.nanos 直接從「collection_time.nanos」欄位對應。
read_only_udm.metadata.event_timestamp.seconds 直接從「collection_time.seconds」欄位對應。
read_only_udm.metadata.event_type 系統會根據 srcsip 欄位是否出現來判斷值:
- 如果兩者皆有,值會設為「NETWORK_HTTP」。
- 如果只有 src,值會設為「USER_UNCATEGORIZED」。
- 否則,值會設為「GENERIC_EVENT」。
read_only_udm.metadata.product_event_type 這個值是透過串連「[」、索引 4 的 CEF 標頭欄位數值、「] - 」和索引 4 的 CEF 標頭欄位文字說明而得。
read_only_udm.metadata.product_name 值會靜態設為「SIEMintegration」。
read_only_udm.metadata.product_version 值靜態設為「1」。
read_only_udm.metadata.vendor_name 值會靜態設為「Incapsula」。
read_only_udm.security_result.detection_fields.key 系統會根據處理的對應欄位,將值靜態設為「siteid」、「event_start_time」、「event_end_time」或「qstr」。
read_only_udm.security_result.severity 值會靜態設為「LOW」。
read_only_udm.target.port 轉換為整數後,直接從 spt 欄位對應。

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