收集 BMC Helix Discovery 記錄
剖析器版本:2.0
支援:
Google SecOps
SIEM
這個剖析器會使用 grok 模式,從 BMC Helix Discovery syslog 訊息中擷取欄位。著重於登入/登出事件和狀態更新。將擷取的欄位 (例如時間戳記、使用者名稱、來源 IP 和說明) 對應至 UDM。系統會根據擷取的 product_event_type 和記錄詳細資料,將事件分類。
事前準備
- 確認您有 Google Security Operations 執行個體。
- 請確認您使用的是 Windows 2016 以上版本,或搭載 systemd 的 Linux 主機。
- 如果是在 Proxy 後方執行,請確認防火牆通訊埠已開啟。
- 確認您具備 BeyondTrust 執行個體的特殊權限存取權。
取得 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」(服務帳戶)。
- 按一下「建立服務帳戶」。
- 請提供下列設定詳細資料:
- 服務帳戶名稱:輸入帳戶名稱 (例如
bindplane-ingest)。 - 服務帳戶說明:輸入說明 (例如
Bindplane agent log ingestion)。
- 服務帳戶名稱:輸入帳戶名稱 (例如
- 點按「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 與管理」>「設定」,然後複製「專案編號」。設定匯出工具時會用到。
方法 2:下載擷取驗證檔案 (舊版)
- 登入 Google SecOps 控制台。
- 依序前往「SIEM Settings」 > 「Collection Agents」。
- 下載擷取驗證檔案。
- 將檔案安全地儲存在要安裝 Bindplane 代理程式的系統中。
取得 Google SecOps 客戶 ID
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」 > 「設定檔」。
- 複製並儲存「機構詳細資料」部分的客戶 ID。
安裝 Bindplane 代理程式
- 如要在 Windows 上安裝,請執行下列指令碼:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet - 如要在 Linux 上安裝,請執行下列指令碼:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh - 如需其他安裝選項,請參閱這份安裝指南。
設定 Bindplane 代理,擷取 Syslog 並傳送至 Google SecOps
- 存取安裝 Bindplane 的電腦。
按照下列方式編輯
config.yaml檔案:receivers: tcplog: # Replace the below port <54525> and IP <0.0.0.0> with your specific values listen_address: "0.0.0.0:54525" 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 saved in Step 1 creds: '{ json file for creds }' # Replace <customer_id> below with your actual ID that you copied customer_id: <customer_id> endpoint: chronicle.googleapis.com # You can apply ingestion labels below as preferred ingestion_labels: log_type: SYSLOG namespace: BMC_HELIX_DISCOVERY raw_log_field: body 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 與管理」>「設定」中的專案編號。 - 將
<customer_id>替換為實際的客戶 ID。 - 將
{ json file for creds }更新為服務帳戶金鑰檔案 (選項 1) 的儲存路徑。
重新啟動 Bindplane 代理程式,套用變更:
sudo systemctl restart bindplane
舊版 Ingestion API 匯出工具
如果您使用選項 2 的擷取驗證檔案,請將
exporters區塊替換為下列內容。將creds設為擷取驗證檔案的路徑,如果您的執行個體位於美國境外,請將malachiteingestion-pa.googleapis.com替換為區域端點 (例如europe-malachiteingestion-pa.googleapis.com)。exporters: chronicle/chronicle_w_labels: compression: gzip # Adjust the path to the credentials file you saved in Step 1 creds: '{ json file for creds }' # Replace <customer_id> below with your actual ID that you copied customer_id: <customer_id> endpoint: malachiteingestion-pa.googleapis.com # You can apply ingestion labels below as preferred ingestion_labels: log_type: SYSLOG namespace: BMC_HELIX_DISCOVERY raw_log_field: body
從 BMC Helix Discovery 匯出系統記錄
- 以超級使用者身分存取 BMC Discovery 執行個體。
- 編輯 syslog 設定檔:
etc/rsyslog.conf - 在頂端新增下列項目:
# Send everything to the remote syslog server。 將 IP 位址替換為 Syslog 伺服器的 IP 位址:
# Send everything to the remote syslog server *.* @192.168.1.100在設備上重新啟動系統記錄服務:
sudo /usr/bin/systemctl restart rsyslog.service測試轉寄設定。
使用記錄器公用程式傳送 syslog 訊息:
logger this is a test of remote logging確認這項操作已記錄:
su - Password: tail -n5 /var/log/messages Jan 17 11:42:10 localhost seclab: this is a test of remote logging登入 Google SecOps,確認是否顯示相同訊息。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
data |
metadata.description | 從記錄訊息中擷取的事件說明。 |
data |
metadata.product_event_type | 從記錄訊息擷取的原始事件類型。 |
data |
principal.ip | 來源 IP 位址,從記錄訊息的說明欄位擷取。 |
data |
security_result.summary | 從記錄訊息擷取的事件摘要。 |
data |
target.user.userid | 從記錄訊息擷取的使用者名稱。剖析器會建立空物件。從原始記錄中的頂層 timestamp 欄位複製。由剖析器根據 product_event_type 和 desc 欄位決定。如果 product_event_type 為「logon」或 desc 包含「logged on」,則會設為「USER_LOGIN」。如果 product_event_type 為「logoff」或 desc 包含「logged off」,則會設為「USER_LOGOUT」。否則,如果 src_ip 存在,則會設為「STATUS_UPDATE」。預設為「GENERIC_EVENT」。硬式編碼為「BMC_HELIX_DISCOVERY」。硬式編碼為「BMC_HELIX_DISCOVERY」。硬式編碼為「BMC_HELIX_DISCOVERY」。 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專家尋求解答。