收集 Barracuda Email Security Gateway 記錄
支援的國家/地區:
Google SecOps
SIEM
本文說明如何使用 Bindplane 收集 Barracuda Email Security Gateway 記錄。剖析器會使用 Grok 模式和 JSON 剖析,從記錄檔中擷取欄位。然後將擷取的欄位對應至整合式資料模型 (UDM) 結構定義,將電子郵件活動分類 (例如垃圾郵件或網路釣魚),並判斷採取的安全性動作 (例如允許、封鎖或隔離)。
事前準備
- 確認您有 Google Security Operations 執行個體。
- 確認您使用的是 Windows 2016 以上版本,或是搭載
systemd
的 Linux 主機。 - 如果透過 Proxy 執行,請確認防火牆通訊埠已開啟。
- 確認您具備 Symantec DLP 的特殊權限。
取得 Google SecOps 擷取驗證檔案
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」>「收集代理程式」。
- 下載擷取驗證檔案。將檔案安全地儲存在要安裝 Bindplane 的系統上。
取得 Google SecOps 客戶 ID
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」>「設定檔」。
- 複製並儲存「機構詳細資料」專區中的客戶 ID。
安裝 Bindplane 代理程式
Windows 安裝
- 以系統管理員身分開啟「命令提示字元」或「PowerShell」。
執行下列指令:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
Linux 安裝
- 開啟具有根層級或 sudo 權限的終端機。
執行下列指令:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
其他安裝資源
- 如需其他安裝選項,請參閱這份安裝指南。
設定 Bindplane 代理程式,擷取系統記錄檔並傳送至 Google SecOps
存取設定檔:
- 找出
config.yaml
檔案。通常位於 Linux 的/etc/bindplane-agent/
目錄,或 Windows 的安裝目錄。 - 使用文字編輯器 (例如
nano
、vi
或記事本) 開啟檔案。
- 找出
按照下列方式編輯
config.yaml
檔案:receivers: udplog: # Replace the port and IP address as required listen_address: "0.0.0.0:54525" exporters: chronicle/chronicle_w_labels: compression: gzip # Adjust the path to the credentials file you downloaded in Step 1 creds: '/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: SYSLOG namespace: barracuda_email raw_log_field: body 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
設定 Barracuda Email Security Gateway
- 登入 Barracuda ESG 介面。
- 依序選取「進階」>「進階網路」>「系統記錄設定」。
- 請提供下列詳細資料:
- 勾選「啟用系統記錄」核取方塊,啟用系統記錄記錄功能。
- 系統記錄伺服器:輸入
Bindplane
IP 位址。 - 通訊埠:指定系統記錄檔通訊埠 (預設為 514,但請確保這與 Google Security Operations 中的設定相符)。
- 系統記錄設施:選擇「Local0」。
- 嚴重程度:選取「錯誤和警告」,取得優先順序較高的電子郵件安全記錄。
- 按一下「儲存變更」,套用設定。
UDM 對應表
記錄欄位 | UDM 對應 | 邏輯 |
---|---|---|
account_id | 未對應 | |
附件 | 未對應 | |
dst_domain | target.hostname | dst_domain 欄位的值 |
dst_domain | target.asset.hostname | dst_domain 欄位的值 |
env_from | 未對應 | |
geoip | target.location.country_or_region | geoip 欄位的值 |
hdr_from | network.email.from | hdr_from 欄位的值 (如果是電子郵件地址) |
hdr_to | network.email.to | hdr_to 欄位的值 (如果是電子郵件地址),否則會從 hdr_to 欄位的 JSON 陣列剖析 |
主機 | principal.hostname | 主機欄位的值 |
主機 | principal.asset.hostname | 主機欄位的值 |
message_id | network.email.mail_id | message_id 欄位的值 |
product_log_id | metadata.product_log_id | product_log_id 欄位的值 |
queue_id | security_result.detection_fields.value | queue_id 欄位的值 |
recipient_email | network.email.to | recipient_email 欄位的值 (如果不是空白或 - ) |
收件者 | 未對應 | |
recipients.action | security_result.action | 如果值為 allowed ,則對應至 ALLOW,否則對應至 BLOCK |
recipients.action | security_result.action_details | 收件者.動作欄位的值 |
recipients.delivery_detail | security_result.detection_fields.value | 收件者.遞送詳細資料欄位的值 |
recipients.delivered | security_result.detection_fields.value | 收件者.已傳送欄位的值 |
recipients.email | network.email.to | 如果 recipients.email 欄位是電子郵件地址,則為該欄位的值 |
recipients.reason | security_result.detection_fields.value | 收件者.原因欄位的值 |
recipients.reason_extra | security_result.detection_fields.value | recipients.reason_extra 欄位的值 |
recipients.taxonomy | security_result.detection_fields.value | 收件者.分類欄位的值 |
服務 | security_result.summary | 服務欄位的值 |
大小 | network.received_bytes | 大小欄位的值會轉換為無正負號整數 |
src_ip | principal.ip | src_ip 欄位的值 (如果不是空白或 0.0.0.0 ) |
src_ip | principal.asset.ip | src_ip 欄位的值 (如果不是空白或 0.0.0.0 ) |
src_ip | security_result.about.ip | src_ip 欄位的值 (如果不是空白或 0.0.0.0 ) |
主旨 | network.email.subject | 主旨欄位的值 |
target_ip | target.ip | target_ip 欄位的值 |
target_ip | target.asset.ip | target_ip 欄位的值 |
時間戳記 | metadata.event_timestamp | 從記錄項目剖析的時間戳記 |
metadata.event_type | 硬式編碼為 EMAIL_TRANSACTION |
|
metadata.log_type | 硬式編碼為 BARRACUDA_EMAIL |
|
metadata.vendor_name | 硬式編碼為 Barracuda |
|
network.application_protocol | 如果程序欄位包含 smtp ,請設為 SMTP |
|
network.direction | 如果程序欄位包含 inbound ,請設為 INBOUND ;如果程序欄位包含 outbound ,請設為 OUTBOUND |
|
security_result.action | 根據動作、動作代碼、服務和已傳送欄位的組合設定 | |
security_result.category | 根據動作、原因和其他欄位組合設定 | |
security_result.confidence | 硬式編碼為 UNKNOWN_CONFIDENCE |
|
security_result.priority | 硬式編碼為 UNKNOWN_PRIORITY |
|
security_result.severity | 如果類別為 UNKNOWN_CATEGORY ,則硬式編碼為 UNKNOWN_SEVERITY |
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。