收集 Proofpoint Sendmail Sentrion 記錄

支援的服務:

本文說明如何使用 Bindplane 代理程式,將 Proofpoint Sendmail Sentrion 記錄檔擷取至 Google Security Operations。

Proofpoint Sendmail Sentrion 是企業郵件傳輸代理程式 (MTA),可為外寄和內送電子郵件提供安全控管、郵件追蹤和政策強制執行功能。這項功能會透過標準系統記錄 mail 設施記錄郵件交易。

事前準備

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

  • Google SecOps 執行個體
  • Windows Server 2016 以上版本,或搭載 systemd 的 Linux 主機
  • Bindplane 代理程式與 Proofpoint Sendmail Sentrion MTA 伺服器之間的網路連線
  • 如果是在 Proxy 後方執行,請確認防火牆通訊埠已按照 Bindplane 代理程式規定開啟
  • 具備 root 或管理員權限的 Proofpoint Sendmail Sentrion 伺服器特殊存取權

取得 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 Settings」 > 「Collection Agents」。
  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" /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)" install_unix.sh
    
  3. 等待安裝完成。

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

    sudo systemctl status observiq-otel-collector
    

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

其他安裝資源

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

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

找出設定檔

  • Linux:

    sudo nano /opt/observiq-otel-collector/config.yaml
    
  • Windows:

    notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
    

編輯設定檔

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

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/proofpoint_sentrion:
        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: '<CREDS_FILE_PATH>'
        customer_id: '<CUSTOMER_ID>'
        endpoint: chronicle.googleapis.com
        log_type: PROOFPOINT_SENDMAIL_SENTRION
        raw_log_field: body
        ingestion_labels:
          env: production
    
    service:
      pipelines:
        logs/sentrion_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/proofpoint_sentrion
    

設定參數

  • 請替換下列預留位置:

  • 接收器設定:

    • udplog:透過 UDP 接收系統記錄。如果您在 syslog 設定中設定 TCP 傳輸,請使用 tcplog。
    • 0.0.0.0:514:監聽通訊埠 514 上的所有介面。視需要變更通訊埠 (例如非根 Linux 的 1514)。
  • 匯出工具設定:

    • <CREDS_FILE_PATH>:服務帳戶 JSON 金鑰檔案的完整路徑 (選項 1):
      • Linux:/opt/observiq-otel-collector/ingestion-auth.json
      • Windows:C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • <CUSTOMER_ID>:來自「取得 Google SecOps 客戶 ID」步驟的客戶 ID。
    • location:將 <LOCATION> 替換為 Google SecOps 執行個體的區域 (例如 us、europe 或 asia-southeast1)。匯出工具會以這個值做為 chronicle.googleapis.com 的前置字元。如需完整清單,請參閱「區域性端點」。
    • project:將 <PROJECT_NUMBER> 替換為「IAM 與管理」>「設定」中的專案編號。
    • endpoint:請將此值設為 chronicle.googleapis.com。

舊版 Ingestion API 匯出工具

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

    exporters:
      chronicle/proofpoint_sentrion:
        compression: gzip
        creds_file_path: '<CREDS_FILE_PATH>'
        customer_id: '<CUSTOMER_ID>'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: PROOFPOINT_SENDMAIL_SENTRION
        raw_log_field: body
        ingestion_labels:
          env: production
    

儲存設定檔

  • 編輯完畢後,請儲存檔案:
    • Linux:依序按下 Ctrl+O、Enter 和 Ctrl+X
    • Windows:依序點選「檔案」>「儲存」

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

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

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

      sudo systemctl status observiq-otel-collector
      
    2. 查看記錄檔是否有錯誤:

      sudo journalctl -u observiq-otel-collector -f
      
  • 如要在 Windows 中重新啟動 Bindplane 代理程式,請選擇下列其中一個選項:

    • 以管理員身分開啟命令提示字元或 PowerShell:

      net stop observiq-otel-collector && net start observiq-otel-collector
      
    • 服務控制台:

      1. 按下 Win+R 鍵,輸入 services.msc,然後按下 Enter 鍵。
      2. 找出「observIQ OpenTelemetry Collector」。
      3. 按一下滑鼠右鍵,然後選取「重新啟動」。
      4. 確認服務是否正在執行:

        sc query observiq-otel-collector
        
      5. 查看記錄檔是否有錯誤:

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

設定 Proofpoint Sendmail Sentrion syslog 轉送

Sendmail Sentrion 會使用標準 syslog mail 設施寫入郵件交易記錄。預設記錄檔位置會因作業系統而異:

OS 預設記錄路徑
RHEL / CentOS /var/log/maillog
Debian / Ubuntu /var/log/mail.log
Solaris /var/log/syslog (篩選條件:mail.*)

方法 1:使用 rsyslog 設定系統記錄轉送

  1. 編輯 Sentrion MTA 伺服器上的 syslog 設定檔:

    sudo nano /etc/rsyslog.d/sentrion.conf
    
  2. 新增下列規則,將郵件設施記錄轉送至 Bindplane 代理程式:

    mail.*    @BINDPLANE_AGENT_IP:514
    
  3. 儲存檔案並重新啟動 rsyslog 服務:

    sudo systemctl restart rsyslog
    
  4. 檢查 Bindplane 代理程式記錄,確認記錄是否已轉送。

方法 2:透過 Sentrion 管理控制台設定 syslog 轉送

  1. 登入 Sentrion 管理控制台。
  2. 依序前往「Configuration」>「Logging」 (或「System」>「Log Settings」)。
  3. 設定遠端系統記錄:
    • Syslog 伺服器:輸入 Bindplane 代理程式主機的 IP 位址 (例如 192.168.1.100)。
    • 「Port」(通訊埠):輸入 514 (必須與 Bindplane 代理接收器通訊埠相符)。
    • 「通訊協定」:選取「UDP」 (必須與 Bindplane 代理程式接收器設定相符)。
    • 記錄層級:設定為擷取所有郵件交易事件。
  4. 按一下「套用」或「儲存」。
  5. 檢查 Bindplane 代理程式記錄,確認記錄是否已轉送。

UDM 對應表

記錄欄位 UDM 對應 邏輯
additional.fields 從 tty_label 和 pwd_label 合併
動作 security_result.action_details 直接複製值
action_result security_result.summary 直接複製值 (如有)
應用程式 principal.application 直接複製值
app_proto network.application_protocol 直接複製值
授權 security_result.detection_fields 已合併為 auth_label (鍵:auth,值:auth)
bits security_result.detection_fields 合併為 bits_label (鍵:bits,值:bits)
分類 security_result.category_details 直接複製值
cipher network.tls.cipher 直接複製值
類別 security_result.detection_fields 已合併為 class_label (鍵:class,值:class)
叢集 principal.resource.attribute.labels 合併為 cluster_label (鍵:cluster,值:cluster)
COMMAND principal.process.command_line 直接複製值
Daemon security_result.detection_fields 合併為 daemon_label (鍵:daemon,值:daemon)
delay security_result.detection_fields 已合併為 delay_label (鍵:delay,值:delay)
說明 security_result.description 直接複製值
詳細資料 metadata.description 直接複製值
disposition security_result.detection_fields 合併為 disposition_label (鍵:disposition,值:disposition)
dsn security_result.detection_fields 合併為 dsn_label (鍵:dsn,值:dsn)
event_type metadata.event_type 直接複製值
來自 network.email.from 如果電子郵件有效,則使用 grok 模式擷取為 valid_from
主機 principal.asset.hostname、principal.hostname 直接複製值
ip principal.asset.ip、principal.ip 直接複製值
job_name principal.resource.attribute.labels 已合併為 job_name_label (鍵:job_name,值:job_name)
mailer security_result.detection_fields 合併為 mailer_label (鍵:mailer,值:mailer)
msgid network.email.mail_id 移除 < 和 > 後直接複製的值
mtaqid principal.resource.product_object_id 直接複製值
nw_direction network.direction 如果符合 (?i)Outbound,則設為 OUTBOUND
nrcpts security_result.detection_fields 合併為 nrcpts_label (鍵:nrcpts,值:nrcpts)
pid principal.process.pid 直接複製值
通訊埠 principal.port 直接複製值並轉換為整數
pri security_result.detection_fields 合併為 pri_label (鍵:priority,值:pri)
處理器 principal.resource.attribute.labels 合併為 processor_label (鍵:處理器,值:處理器)
product_event_type metadata.product_event_type 直接複製值
reject_msg security_result.summary 如果 action_result、stat 和 status 為空,則直接複製值
relay_domain intermediary.hostname 直接複製值
relay_ip intermediary.ip 直接複製值
規則集 security_result.rule_name 直接複製值
嚴重性 security_result.severity 如果符合 (?i)info,請設為 INFORMATIONAL
大小 network.sent_bytes 直接複製值並轉換為 uinteger
STARTTLS security_result.detection_fields Merged as starttls_label (key: STARTTLS, value: STARTTLS)
stat security_result.summary 如果 action_result 為空,則直接複製值
狀態 security_result.summary 如果 action_result、stat 和 reject_msg 為空,則直接複製值
主旨 network.email.subject, security_result.detection_fields 直接複製並合併為 subject_label (鍵:subject,值:subject)
tls_verify、verify security_result.action、security_result.description 如果符合 (?i)OK,則設為 ALLOW;如果符合 (?i)FAIL,則設為 BLOCK;說明設為 tls_verify - tls_verify;如果 tls_verify 為空,則 tls_verify 來自驗證
至 network.email.to 使用 grok 模式從陣列中擷取為 valid_to (每封電子郵件)
USER, user principal.user.userid 如果 USER 不為空,則取自 USER,否則取自 user
版本 network.tls.version 直接複製值
xdelay security_result.detection_fields 合併為 xdelay_label (鍵:xdelay,值:xdelay)
metadata.product_name 設為「Proofpoint Sendmail Sentrion」
metadata.vendor_name 設為「PROOFPOINT_SENDMAIL_SENTRION」

變更記錄

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

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