收集 Forcepoint NGFW 記錄
剖析器版本:16.0
支援:
Google SecOps
SIEM
本文說明如何使用 Bindplane 代理程式,將 Forcepoint NGFW 記錄檔擷取至 Google Security Operations。
事前準備
請確認您符合下列必要條件:
- Google SecOps 執行個體
- Windows 2016 以上版本或 Linux 主機,並安裝
systemd - 如果是在 Proxy 後方執行,請確認防火牆通訊埠已按照 Bindplane 代理程式規定開啟
- Forcepoint Security Management Center (SMC) 的特殊權限存取權
取得 Bindplane 代理程式的 Google SecOps 憑證
如要向 Google SecOps 驗證 Bindplane 代理程式,請選擇下列其中一種方法:
- 新部署作業:使用 Chronicle API (選項 1)。
- 舊版部署作業:繼續使用擷取驗證檔案 (選項 2),直到 Ingestion API 於 2027 年 7 月 20 日停用。
方法 1:為 Chronicle API 建立服務帳戶 (建議)
- 登入 Google Cloud 控制台,選取連結至 Google SecOps 執行個體的 Google Cloud 專案。
- 依序前往 「IAM & Admin」(IAM 與管理) >「Service Accounts」(服務帳戶)。
- 按一下「建立服務帳戶」。
- 提供下列設定詳細資料:
- 「Service account name」(服務帳戶名稱):輸入帳戶名稱 (例如
bindplane-ingest)。 - 服務帳戶說明:輸入說明 (例如
Bindplane agent log ingestion)。
- 「Service account name」(服務帳戶名稱):輸入帳戶名稱 (例如
- 點按「Create and continue」(建立並繼續)。
- 在「將專案存取權授予這個服務帳戶」部分,按一下「選取角色」,然後選取「Chronicle 編輯者」。
- 依序點選「繼續」和「完成」。
- 按一下您建立的服務帳戶,然後前往「金鑰」分頁標籤。
- 依序點選「新增金鑰」>「建立新的金鑰」。
- 選取「JSON」,然後點選「建立」。金鑰檔案會下載到電腦。
- 將金鑰檔案儲存為 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,使其與儲存路徑相符。 - 依序前往「IAM & Admin」(IAM 與管理) >「Settings」(設定),然後複製「Project number」(專案編號)。設定匯出工具時會用到。
方法 2:下載擷取驗證檔案 (舊版)
- 登入 Google SecOps 控制台。
- 依序前往「SIEM Settings」 > 「Collection Agents」。
- 下載擷取驗證檔案。
- 將檔案安全地儲存在要安裝 Bindplane 代理程式的系統上。
取得 Google SecOps 客戶 ID
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」 > 「設定檔」。
- 複製並儲存「機構詳細資料」專區中的「客戶 ID」。
安裝 Bindplane 代理程式
請按照下列操作說明,在 Windows 或 Linux 作業系統上安裝 Bindplane 代理程式。
Windows 安裝
- 以管理員身分開啟命令提示字元或 PowerShell。
執行下列指令:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
Linux 安裝
- 開啟具有 root 或 sudo 權限的終端機。
執行下列指令:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
其他安裝資源
如需其他安裝選項,請參閱 Bindplane 代理程式安裝指南。
設定 Bindplane 代理,擷取系統記錄檔並傳送至 Google SecOps
存取設定檔:
- 找出
config.yaml檔案。通常位於 Linux 的/opt/observiq-otel-collector/目錄,或 Windows 的安裝目錄。 - 使用文字編輯器 (例如
nano、vi或記事本) 開啟檔案。
- 找出
按照下列方式編輯
config.yaml檔案:receivers: tcplog: # Replace the port and IP address as required listen_address: "0.0.0.0:514" exporters: chronicle/chronicle_w_labels: 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 # 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: YOUR_CUSTOMER_ID endpoint: chronicle.googleapis.com # Add optional ingestion labels for better organization log_type: 'FORCEPOINT_FIREWALL' raw_log_field: body ingestion_labels: service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - tcplog exporters: - chronicle/chronicle_w_labels- 請根據基礎架構需求,替換通訊埠和 IP 位址。
- 將
<LOCATION>替換為 Google SecOps 執行個體的區域 (例如us、europe或asia-southeast1)。匯出工具會在這個值前面加上chronicle.googleapis.com。 - 將
<PROJECT_NUMBER>替換為「IAM 與管理」>「設定」中的專案編號。 - 將
YOUR_CUSTOMER_ID替換為實際的客戶 ID。 - 將
/path/to/ingestion-authentication-file.json更新為服務帳戶金鑰檔案 (選項 1) 在步驟 1 中儲存的檔案路徑。
舊版擷取 API 匯出工具
如果您使用選項 2 的擷取驗證檔案,請將
exporters區塊替換為下列內容。將creds_file_path設為擷取驗證檔案的路徑。如果執行個體位於美國境外,請將malachiteingestion-pa.googleapis.com替換為區域端點 (例如europe-malachiteingestion-pa.googleapis.com)。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: YOUR_CUSTOMER_ID endpoint: malachiteingestion-pa.googleapis.com # Add optional ingestion labels for better organization log_type: 'FORCEPOINT_FIREWALL' raw_log_field: body ingestion_labels:
重新啟動 Bindplane 代理程式,套用變更
如要在 Linux 中重新啟動 Bindplane 代理程式,請執行下列指令:
sudo systemctl restart observiq-otel-collector如要在 Windows 中重新啟動 Bindplane 代理程式,可以使用「Services」控制台,或輸入下列指令:
net stop observiq-otel-collector && net start observiq-otel-collector
在 Forcepoint NGFW 上設定 Syslog 轉送
- 登入 Forcepoint Security Management Center (SMC)。
- 依序前往「Configuration」>「Log Server」>「Properties」。
- 前往「Log Forwarding」(記錄轉送) 部分。
- 按一下「Add」(新增),建立新的轉送規則。
- 提供下列設定詳細資料:
- 名稱:輸入描述性名稱 (例如
Google SecOps Bindplane Syslog)。 - Host:輸入 Bindplane 代理程式 IP 位址。
- Port:輸入 Bindplane 代理程式通訊埠編號 (例如
514)。 - 「Protocol」(通訊協定):依據實際的 Bindplane 代理程式設定,選取「TCP」或「UDP」。
- 格式:選取「JSON」。
- 名稱:輸入描述性名稱 (例如
- 設定要轉送的記錄欄位:
- 按一下「選取欄位」,或存取欄位選取設定。
- 根據需求選取相關記錄欄位。安全性分析通常需要下列欄位:
TIMESTAMP(建立時間)LOG_ID(資料 ID)EVENT(活動)EVENT_ID(事件 ID)SRC(來源位址)DST(目的地地址)Sport(來源通訊埠)Dport(目的地通訊埠)PROTOCOL(通訊協定)SERVICE(服務)RULE_ID(規則標記)ACTION(動作)NAT_SRC、NAT_DST、NAT_SPORT、NAT_DPORT(NAT 欄位)ACC_RX_BYTES、ACC_TX_BYTES、ACC_ELAPSED(會計欄位)NODE_ID(寄件者)COMP_ID(元件 ID)FACILITY(設施)INFO_MSG(資訊訊息)SITUATION(情境)APPLICATION(應用程式)
- 如需可匯出欄位的完整清單,請參閱「Forcepoint NGFW 可匯出防火牆和第 2 層防火牆記錄項目欄位」說明文件。
- 向下捲動至「事件」部分,然後選取相關記錄類型或「全部」。
- 儲存設定。
將變更套用至記錄伺服器。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
AccElapsed |
network.session_duration.seconds |
如果 AccElapsed 不是空白或 0,則直接從該欄位對應。已轉換為整數。 |
AccRxBytes |
network.received_bytes |
直接對應自 AccRxBytes。已轉換為無正負號整數。 |
AccTxBytes |
network.sent_bytes |
直接從 AccTxBytes 對應。已轉換為無正負號整數。 |
Action |
security_result.action_details |
直接從 Action 對應。 |
Action |
security_result.action |
如果 Action 為「Allow」,請設為「ALLOW」。如果 Action 為「Discard」,請設為「BLOCK」。 |
CompId |
target.hostname |
直接對應自 CompId。 |
Dport |
target.port |
如果不是 0,則直接從 Dport 對應。已轉換為整數。 |
Dst |
target.ip |
直接從 Dst 對應。 |
Event |
metadata.product_event_type |
直接從 Event 對應。 |
Facility |
metadata.description |
直接對應自 Facility。 |
InfoMsg |
security_result.description |
直接從 InfoMsg 對應。 |
LogId |
metadata.product_log_id |
直接對應自 LogId。 |
NatDport |
target.nat_port |
如果不是 0,則直接從 NatDport 對應。已轉換為整數。 |
NatDst |
target.nat_ip |
直接對應自 NatDst。 |
NatSport |
principal.nat_port |
如果不是 0,則直接從 NatSport 對應。已轉換為整數。 |
NatSrc |
principal.nat_ip |
直接對應自 NatSrc。 |
NodeId |
intermediary.ip |
如果同時存在 Src 或 Dst 和 NodeId,則直接從 NodeId 對應。 |
NodeId |
principal.ip |
如果 NodeId 存在,但 Src 和 Dst 不存在,則直接從 NodeId 對應。 |
Protocol |
network.ip_protocol |
從 Protocol 對應,先轉換為整數,然後使用查閱將數字轉換為通訊協定名稱 (例如 6 會變成 TCP)。 |
RuleId |
security_result.rule_id |
直接從 RuleId 對應。 |
Service |
principal.application |
如果 Service 不是「Dest. Unreachable (Port Unreachable)」。 |
Service |
network.application_protocol |
如果 Service 是「HTTP」或「HTTPS」,請設為 Service 的值。如果 Service 包含「DNS」,請設為「DNS」。 |
Service |
metadata.event_type |
如果 Service 為「HTTP」或「HTTPS」,請將 metadata.event_type 設為「NETWORK_HTTP」。 |
Situation |
security_result.summary |
直接對應自 Situation。 |
Sport |
principal.port |
如果不是 0,則直接從 Sport 對應。已轉換為整數。 |
Src |
principal.ip |
直接從 Src 對應。 |
Timestamp |
metadata.event_timestamp |
剖析為日期後,直接從 Timestamp 對應。 |
Type |
security_result.severity_details |
直接從 Type 對應。 |
Type |
security_result.severity |
如果 Type 是「Notification」,請設為「LOW」。如果同時存在 Src 或 NodeId,以及 Dst 或 CompId,請設為「NETWORK_CONNECTION」。如果只有 principal.ip,請設為「STATUS_UPDATE」。否則,請設為「GENERIC_EVENT」。設為「FORCEPOINT_FIREWALL」。設為「FORCEPOINT FIREWALL」。設為「FORCEPOINT」。 |
rt |
metadata.event_timestamp |
在 CEF 區塊中剖析為日期後,直接從 rt 對應。 |
act |
security_result.action_details |
直接從 CEF 區塊中的 act 對應。 |
app |
principal.application |
直接從 CEF 區塊中的 app 對應。 |
deviceFacility |
metadata.description |
直接從 CEF 區塊中的 deviceFacility 對應。 |
destinationTranslatedAddress |
target.nat_ip |
直接從 CEF 區塊中的 destinationTranslatedAddress 對應。 |
destinationTranslatedPort |
target.nat_port |
直接從 CEF 區塊中的 destinationTranslatedPort 對應。 |
dst |
target.ip |
直接從 CEF 區塊中的 dst 對應。 |
dpt |
target.port |
直接從 CEF 區塊中的 dpt 對應。 |
dvchost |
intermediary.ip |
直接從 CEF 區塊中的 dvchost 對應。 |
event_name |
metadata.product_event_type |
直接從 CEF 區塊中的 event_name 對應。 |
msg |
security_result.description |
直接從 CEF 區塊中的 msg 對應。 |
proto |
network.ip_protocol |
從 proto 對應而來,先轉換為整數,然後使用查詢功能將數字轉換為 CEF 區塊中的通訊協定名稱 (例如 6 變成 TCP)。 |
sourceTranslatedAddress |
principal.nat_ip |
直接從 CEF 區塊中的 sourceTranslatedAddress 對應。 |
sourceTranslatedPort |
principal.nat_port |
直接從 CEF 區塊中的 sourceTranslatedPort 對應。 |
spt |
principal.port |
直接從 CEF 區塊中的 spt 對應。 |
src |
principal.ip |
直接從 CEF 區塊中的 src 對應。 |
NodeId |
event.idm.read_only_udm.intermediary.ip |
從變更記錄對應 |
CompId |
event.idm.read_only_udm.intermediary.hostname |
從變更記錄對應 |
eventid |
metadata.product_log_id |
從變更記錄對應 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求解答。