收集 Proofpoint Sendmail Sentrion 記錄

支援的國家/地區:

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

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

事前準備

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

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

取得 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" /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
    

    服務應顯示為有效 (執行中)

其他安裝資源

如需其他安裝選項和疑難排解資訊,請參閱 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:
            compression: gzip
            creds_file_path: '<CREDS_FILE_PATH>'
            customer_id: '<CUSTOMER_ID>'
            endpoint: <REGION_ENDPOINT>
            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 接收系統記錄。如果您在系統記錄設定中設定 TCP 傳輸,請使用 tcplog
    • 0.0.0.0:514:在通訊埠 514 上監聽所有介面。視需要變更通訊埠 (例如,非根 Linux 的通訊埠為 1514)。
  • 匯出工具設定:

    • <CREDS_FILE_PATH>:擷取驗證檔案的完整路徑:
      • Linux/etc/bindplane-agent/ingestion-auth.json
      • WindowsC:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • <CUSTOMER_ID>:從「取得 Google Security Operations 客戶 ID」步驟取得的客戶 ID。
    • <REGION_ENDPOINT>:區域端點網址:
      • 美國malachiteingestion-pa.googleapis.com
      • 歐洲europe-malachiteingestion-pa.googleapis.com
      • 亞洲asia-southeast1-malachiteingestion-pa.googleapis.com
      • 如需完整清單,請參閱「區域端點」。

儲存設定檔

  • 編輯完成後,請儲存檔案:
    • Linux:依序按下 Ctrl+OEnterCtrl+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 系統記錄檔轉送

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

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

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

  1. 在 Sentrion MTA 伺服器上編輯系統記錄設定檔:

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

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

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

方法 2:透過 Sentrion 管理控制台設定系統記錄轉送

  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)
位元 security_result.detection_fields 合併為 bits_label (鍵:位元,值:位元)
分類 security_result.category_details 直接複製值
加密 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)
郵寄包材 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 合併為 starttls_label (鍵:STARTTLS,值: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,否則取自使用者
版本 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 專業人員尋求答案。