收集 Vectra Alerts 記錄
本文說明如何使用 Vectra SIEM 連接器和 Bindplane,將 Vectra Alerts 記錄擷取至 Google Security Operations。
Vectra AI 是一種網路偵測與回應平台,可針對雲端、資料中心和物聯網環境中的威脅偵測結果,產生安全快訊。這個平台會運用 AI 驅動的行為分析功能,即時找出隱藏的網路攻擊。
事前準備
請確認您已完成下列事前準備事項:
- Google SecOps 執行個體
- Windows Server 2016 以上版本,或搭載
systemd的 Linux 主機 - Bindplane 代理程式與 Vectra AI 平台之間的網路連線
- 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
- 具備管理員權限,可存取 Vectra AI 平台
取得 Google SecOps 擷取驗證檔案
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」>「收集代理程式」。
下載擷取驗證檔案,並將檔案安全地儲存在要安裝 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等待安裝完成。
執行下列指令,確認安裝成功:
sc query observiq-otel-collector
服務應顯示為「RUNNING」。
Linux 安裝
- 開啟具有根層級或 sudo 權限的終端機。
執行下列指令:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh等待安裝完成。
執行下列指令,確認安裝成功:
sudo systemctl status observiq-otel-collector
服務應顯示為有效 (執行中)。
其他安裝資源
如需其他安裝選項和疑難排解資訊,請參閱 Bindplane 代理程式安裝指南。
設定 Bindplane 代理程式,擷取系統記錄檔並傳送至 Google SecOps
找出設定檔
Linux:
sudo nano /etc/bindplane-agent/config.yamlWindows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
編輯設定檔
將
config.yaml的所有內容替換為下列設定:receivers: udplog: listen_address: "0.0.0.0:514" exporters: chronicle/vectra_alerts: compression: gzip creds_file_path: '/etc/bindplane-agent/ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: VECTRA_ALERTS raw_log_field: body service: pipelines: logs/vectra_alerts_to_chronicle: receivers: - udplog exporters: - chronicle/vectra_alerts
設定參數
替換下列預留位置:
接收器設定:
listen_address:要接聽的 IP 位址和通訊埠:0.0.0.0,監聽所有介面 (建議)- 通訊埠
514是標準的系統記錄通訊埠 (在 Linux 上需要根層級權限;非根層級權限請使用1514)
匯出工具設定:
creds_file_path:擷取驗證檔案的完整路徑:- Linux:
/etc/bindplane-agent/ingestion-auth.json - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Linux:
customer_id:從 Google SecOps 控制台複製的客戶 IDendpoint:區域端點網址:- 美國:
malachiteingestion-pa.googleapis.com - 歐洲:
europe-malachiteingestion-pa.googleapis.com - 亞洲:
asia-southeast1-malachiteingestion-pa.googleapis.com - 如需完整清單,請參閱「區域端點」
- 美國:
儲存設定檔
- 編輯完成後,請儲存檔案:
- Linux:依序按下
Ctrl+O、Enter和Ctrl+X - Windows:依序點選「檔案」>「儲存」
- Linux:依序按下
重新啟動 Bindplane 代理程式,以套用變更
如要在 Linux 中重新啟動 Bindplane 代理程式,請執行下列步驟:
執行下列指令:
sudo systemctl restart observiq-otel-collector確認服務正在執行:
sudo systemctl status observiq-otel-collector檢查記錄中是否有錯誤:
sudo journalctl -u observiq-otel-collector -f
如要在 Windows 中重新啟動 Bindplane 代理程式,請按照下列步驟操作:
您可以選擇下列其中一個選項:
以管理員身分開啟命令提示字元或 PowerShell:
net stop observiq-otel-collector && net start observiq-otel-collector服務控制台:
- 按下
Win+R,輸入services.msc,然後按下 Enter 鍵。 - 找出 observIQ OpenTelemetry Collector。
- 按一下滑鼠右鍵,然後選取「重新啟動」。
- 按下
確認服務正在執行:
sc query observiq-otel-collector檢查記錄中是否有錯誤:
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
設定轉送 Vectra 警告的系統記錄檔
部署 Vectra SIEM 連接器,將快訊資料轉送至 Bindplane 代理程式。
- 部署 Vectra SIEM 連接器 (可做為 Docker 容器或獨立應用程式)。
- 使用 Vectra AI Platform URL (例如
https://your-tenant.vectra.ai) 和 API 憑證設定連接器。 - 使用下列參數將輸出目的地設為系統記錄:
- 系統記錄伺服器:輸入 Bindplane 代理程式主機的 IP 位址。
- 通訊埠:輸入
514(或在 Bindplane 代理程式中設定的通訊埠)。 - 「通訊協定」:選取「UDP」 (與 Bindplane 接收器設定相符)。
- 選取要轉送的事件類別:
- 偵測項目
- 稽核
- 健康狀態事件
啟動連接器,然後檢查 Bindplane 代理程式記錄,確認系統是否轉送快訊記錄。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
| assigned_date | additional.fields.assigned_date_label | 設定標籤,索引鍵為「Assigned Date」,值來自 assigned_date |
| assigned_to | additional.fields.assigned_to_label | 設定索引鍵為「Assigned To」的標籤,並從 assigned_to 取得值 |
| c_score | additional.fields.c_score_label | 使用鍵「c_score」和 c_score 中的值設定標籤 |
| category | security_result.category_details | 直接複製值 |
| 確定度 | additional.fields.certainty_label | 設定索引鍵為「確定度」的標籤,並從確定度取得值 |
| created_timestamp | metadata.event_timestamp | 已使用 yyyy-MM-ddTHH:mm:ssZ 格式轉換 |
| custom_detection | additional.fields.custom_detection_label | 使用「Custom Detection」鍵和 custom_detection 中的值設定標籤 |
| data_source.connection_id | security_result.detection_fields.connection_id_label | 使用「連線 ID」鍵和 data_source.connection_id 中的值設定標籤 |
| data_source.connection_name | security_result.detection_fields.connection_name_label | 使用「連線名稱」鍵和 data_source.connection_name 中的值設定標籤 |
| data_source.type | security_result.detection_fields.data_source_type_label | 使用「資料來源類型」鍵和 data_source.type 中的值設定標籤 |
| 說明 | metadata.description | 直接複製值 |
| 偵測 | additional.fields.detection_label | 使用「Detection」鍵和偵測值設定標籤 |
| detection_category | additional.fields.detection_category_label | 設定標籤,索引鍵為「Detection Category」,值來自 detection_category |
| detection_type | additional.fields.detection_type_label | 使用「Detection Type」鍵和 detection_type 中的值設定標籤 |
| detection_url | principal.url | 直接複製值 |
| filtered_by_ai | additional.fields.filtered_by_ai_label | 設定索引鍵為「Filtered By AI」的標籤,並從 filtered_by_ai 取得值 |
| filtered_by_rule | additional.fields.filtered_by_rule_label | 設定標籤,索引鍵為「Filtered By Rule」,值來自 filtered_by_rule |
| filtered_by_user | additional.fields.filtered_by_user_label | 使用「Filtered By User」鍵和 filtered_by_user 中的值設定標籤 |
| first_timestamp | additional.fields.first_timestamp_label | 設定標籤,索引鍵為「First Timestamp」,值為 first_timestamp |
| gd_first_timestamp | security_result.detection_fields.gd_first_timestamp_label | 使用「first_timestamp」鍵和 gd_first_timestamp 中的值設定標籤 |
| gd_grouping_field | security_result.detection_fields.gd_grouping_field_label | 設定標籤,索引鍵為「grouping_field」,值來自 gd_grouping_field |
| gd_last_timestamp | security_result.detection_fields.gd_last_timestamp_label | 使用「group_details_last_timestamp」鍵和 gd_last_timestamp 中的值設定標籤 |
| gd_uuid | security_result.detection_fields.gd_uuid_label | 使用「gd_uuid」鍵和 gd_uuid 中的值設定標籤 |
| grp_description | security_result.detection_fields.grp_description_label | 使用「grp_description」鍵和 grp_description 中的值設定標籤 |
| grp_id | security_result.detection_fields.grp_id_label | 使用「grp_id」鍵和 grp_id 中的值設定標籤 |
| grp_last_modified | security_result.detection_fields.grp_last_modified_label | 設定標籤,索引鍵為「grp_last_modified」,值則來自 grp_last_modified |
| grp_last_modified_by | security_result.detection_fields.grp_last_modified_by_label | 使用鍵「grp_last_modified_by」和 grp_last_modified_by 中的值設定標籤 |
| grp_name | security_result.detection_fields.grp_name_label | 設定標籤,鍵為「grp_name」,值來自 grp_name |
| grp_type | security_result.detection_fields.grp_type_label | 使用索引鍵「grp_type」和 grp_type 中的值設定標籤 |
| id | metadata.product_log_id | 直接複製值 |
| 中介 | 中介 | 直接複製值 |
| is_custom_model | additional.fields.is_custom_model_label | 使用索引鍵「is_custom_model」和來自 is_custom_model 的值設定標籤 |
| is_marked_custom | additional.fields.is_marked_custom_label | 使用鍵「is_marked_custom」和來自 is_marked_custom 的值設定標籤 |
| is_targeting_key_asset | additional.fields.is_targeting_key_asset_label | 使用「is_targeting_key_asset」鍵和 is_targeting_key_asset 中的值設定標籤 |
| is_triaged | additional.fields.is_triaged_label | 使用「is_triaged」鍵和 is_triaged 中的值設定標籤 |
| last_timestamp | additional.fields.last_timestamp_label | 設定標籤,並將鍵設為「last_timestamp」,值設為 last_timestamp |
| 附註 | additional.fields.note_label | 設定索引鍵為「note」的標籤,並從附註取得值 |
| note_modified_by | additional.fields.note_modified_by_label | 使用「note_modified_by」鍵和 note_modified_by 中的值設定標籤 |
| note_modified_timestamp | additional.fields.note_modified_timestamp_label | 設定索引鍵為「note_modified_timestamp」的標籤,並從 note_modified_timestamp 取得值 |
| 附註 | additional.fields.notes_label | 設定標籤,索引鍵為「notes」,值來自記事 |
| 主體 | 主體 | 直接複製值 |
| security_result | security_result | 直接複製值 |
| 感應器 | additional.fields.sensor_label | 使用「sensor」鍵和感應器值設定標籤 |
| sensor_name | additional.fields.sensor_name_label | 使用「sensor_name」鍵和 sensor_name 中的值設定標籤 |
| src | src | 直接複製值 |
| src_account | additional.fields.src_account_label | 使用「src_account」鍵和 src_account 中的值設定標籤 |
| src_host.certainty | additional.fields.src_certainty_label | 設定索引鍵為「src_host_certainty」的標籤,並從 src_host.certainty 取得值 |
| src_host.id | principal.user.userid | 直接複製值 |
| gd_src_host_ip、src_ip、src_host.ip | principal.ip | 從 gd_src_host_ip、src_ip、src_host.ip 合併;最後一次合併勝出 |
| src_ip、src_host.ip | principal.asset.ip | 從 src_ip、src_host.ip 合併;最後一次合併勝出 |
| src_host.is_key_asset | additional.fields.src_host_is_key_asset_label | 使用索引鍵「src_host_is_key_asset」和 src_host.is_key_asset 的值設定標籤 |
| src_host.name | principal.hostname | 直接複製值 |
| src_host.threat | additional.fields.src_host_threat_label | 使用「src_host_threat」鍵和 src_host.threat 的值設定標籤 |
| src_host.url | src.url | 直接複製值 |
| src_host_group_description | security_result.detection_fields.src_host_group_description_label | 設定標籤,鍵為「src_host_group_description」,值來自 src_host_group_description |
| src_host_group_id | security_result.detection_fields.src_host_group_id_label | 使用「src_host_group_id」索引鍵和 src_host_group_id 中的值設定標籤 |
| src_host_group_last_modified | security_result.detection_fields.src_host_group_last_modified_label | 使用「src_host_group_last_modified」鍵和 src_host_group_last_modified 中的值設定標籤 |
| src_host_group_last_modified_by | security_result.detection_fields.src_host_group_last_modified_by_label | 設定標籤,鍵為「src_host_group_last_modified_by」,值來自 src_host_group_last_modified_by |
| src_host_group_name | security_result.detection_fields.src_host_group_name_label | 設定索引鍵為「src_host_group_name」的標籤,並從 src_host_group_name 取得值 |
| src_host_group_type | security_result.detection_fields.src_host_group_type_label | 使用索引鍵「src_host_group_type」和 src_host_group_type 的值設定標籤 |
| 最終的隱藏狀態 | security_result.detection_fields.state_label | 使用索引鍵「state」和來自狀態的值設定標籤 |
| summary.num_attempts | additional.fields.num_attempts_label | 使用鍵「num_attempts」和來自 summary.num_attempts 的值設定標籤 |
| 目標 | 目標 | 直接複製值 |
| dst_host_ip、dst_ip1 | target.ip | 從 dst_host_ip、dst_ip1 合併;以最後合併者為準 |
| 標記 | additional.fields.tags_label | 使用「tags」鍵和標記中的值設定標籤 |
| t_score | additional.fields.t_score_label | 使用「t_score」鍵和 t_score 中的值設定標籤 |
| targets_key_asset | additional.fields.targets_key_asset_label | 使用鍵「targets_key_asset」和 targets_key_asset 中的值設定標籤 |
| 威脅 | security_result.detection_fields.threat_label | 使用「threat」鍵和來自威脅的值設定標籤 |
| triage_rule_id | security_result.rule_id | 直接複製值 |
| 類型 | additional.fields.type_label | 使用「type」鍵和來自型別的值設定標籤 |
| 網址 | metadata.url_back_to_product | 直接複製值 |
| uuid1 | security_result.detection_fields.uuid_label | 使用索引鍵「uuid」和 uuid1 中的值設定標籤 |
| dst_host_id | security_result.detection_fields.dst_host_id_label | 設定標籤,索引鍵為「dst_host_id」,值來自 dst_host_id |
| dst_host_name | security_result.detection_fields.dst_host_name_label | 設定標籤,索引鍵為「dst_host_name」,值來自 dst_host_name |
| dst_port1 | security_result.detection_fields.dst_port_label | 設定索引鍵為「dst_port」的標籤,並從 dst_port1 取得值 |
| dst_last_timestamp | security_result.detection_fields.dst_last_timestamp_label | 設定索引鍵為「dst_last_timestamp」的標籤,並從 dst_last_timestamp 取得值 |
| metadata.event_type | 如果 has_principal ==「true」且 has_target ==「true」,則設為「NETWORK_CONNECTION」;如果 has_user ==「true」,則設為「USER_UNCATEGORIZED」;如果 has_principal ==「true」,則設為「STATUS_UPDATE」;否則設為「GENERIC_EVENT」 | |
| metadata.product_name | 設為「Vectra Alerts」 | |
| metadata.vendor_name | 設為「Vectra Alerts」 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。