收集 DMP Entre 記錄
剖析器版本:1.0
本文說明如何使用 Bindplane 代理程式,將 DMP Entre 記錄檔擷取至 Google Security Operations。
DMP Entre 是 Digital Monitoring Products (DMP) 的入侵警報監控和存取控制軟體。可管理出入口、訪客和實體存取事件。應用程式會將事件資料 (徽章刷卡、存取權授予/拒絕、設防狀態變更和警報事件) 儲存在 Microsoft SQL Server 資料庫中。
事前準備
請確認您已完成下列事前準備事項:
- Google SecOps 執行個體
- Windows Server 2016 以上版本
- Bindplane 代理程式與 DMP Entre 伺服器之間的網路連線
- 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
- DMP Entre 系統的管理員存取權
- 存取 Entre SQL Server 資料庫,或匯出活動報表
取得 Google SecOps 擷取驗證檔案
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」>「收集代理程式」。
- 下載擷取驗證檔案。
將檔案安全地儲存在要安裝 Bindplane 的系統上。
取得 Google SecOps 客戶 ID
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」>「設定檔」。
複製並儲存「機構詳細資料」部分中的客戶 ID。
安裝 Bindplane 代理程式
請按照下列操作說明,在 Windows 作業系統上安裝 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」。
其他安裝資源
如需其他安裝選項和疑難排解資訊,請參閱 Bindplane 代理程式安裝指南。
設定 Bindplane 代理程式,擷取記錄並傳送至 Google SecOps
找出設定檔
找出設定檔,方法如下:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
編輯設定檔
將
config.yaml的所有內容替換為下列設定:receivers: filelog: include: - 'C:\DMP\Entre\Exports\*.csv' start_at: beginning poll_interval: 5s exporters: chronicle/dmp_entre: compression: gzip creds_file_path: 'C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: DMP_ENTRE raw_log_field: body ingestion_labels: env: production service: pipelines: logs/dmp_entre_to_chronicle: receivers: - filelog exporters: - chronicle/dmp_entre
設定參數
替換下列預留位置:
接收器設定:
include:DMP Entre 匯出檔案的路徑:- Windows:
C:\DMP\Entre\Exports\*.csv - 根據匯出 Entre 活動報表的位置調整路徑
- Windows:
start_at:設為beginning可讀取現有記錄,設為end則只會讀取新項目poll_interval:檢查新記錄資料的頻率 (預設:5s)
匯出工具設定:
dmp_entre:匯出工具的說明名稱creds_file_path:擷取驗證檔案的完整路徑:- Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Windows:
<customer_id>:上一步中的客戶 IDendpoint:區域端點網址:- 美國:
malachiteingestion-pa.googleapis.com - 歐洲:
europe-malachiteingestion-pa.googleapis.com - 亞洲:
asia-southeast1-malachiteingestion-pa.googleapis.com - 如需完整清單,請參閱「區域端點」
- 美國:
DMP_ENTRE:記錄類型,與 Chronicle 中顯示的完全相同ingestion_labels:YAML 格式的選用標籤 (例如env: production)
管道設定:
dmp_entre_to_chronicle:管道的說明名稱
儲存設定檔
- 編輯完成後,請儲存檔案:
- Windows:依序點選「檔案」>「儲存」
重新啟動 Bindplane 代理程式,以套用變更
如要在 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"
- 按下
匯出 DMP Entre 事件資料
DMP Entre 會將事件資料儲存在 Microsoft SQL Server 資料庫中。您必須將事件匯出為 Bindplane 代理程式可讀取的 CSV 檔案。
從 DMP Entre GUI 匯出事件報表
- 在 Entre 伺服器上登入 DMP Entre 應用程式。
- 前往 Entre 選單列中的「報表」。
- 選取適當的事件報表類型:
- 事件記錄報表:包含所有系統事件,包括門禁、警報事件和設防狀態變更。
- 存取活動報告:包含徽章刷卡事件,以及使用者、門和時間戳記詳細資料。
- 警報活動報告:包含警報、問題和監控事件。
- 設定報表篩選器:
- 日期範圍:選取要匯出事件的日期範圍。
- 面板/裝置:選取特定面板或所有面板。
- 活動類型:選取要納入的活動類別。
- 按一下「產生」 (或「執行」) 即可產生報表。
- 將報表匯出為 CSV 檔案至匯出目錄 (例如 `C:\DMP\Entre\Exports`)。
替代方案:自動匯出資料庫
如要自動匯出,可以使用排定的 SQL Server 代理程式工作或 Windows 工作排程器,直接查詢 Entre SQL Server 資料庫:
- 連線至 Entre SQL Server 資料庫。
使用
bcp公用程式匯出事件資料:bcp "SELECT date, time, event_type, p_event_title, p_event_action, user_display_name, userid, device_data, principal_host, data, log_level FROM [EntreDB].[dbo].[EventHistory] WHERE date >= DATEADD(day, -1, GETDATE())" queryout "C:\DMP\Entre\Exports\entre_events.csv" -c -t"," -S localhost -T使用 Windows 工作排程器,排定定期執行這項指令 (例如每小時一次),讓 Bindplane 代理程式持續擷取新的匯出檔案。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
| 日期、時間 | metadata.event_timestamp | 由日期和時間串連而成,並使用 M/d/yyyy HH:mm:ss、MM/d/yyyy HH:mm:ss 等格式剖析。 |
| event_type | metadata.event_type | 直接複製值 |
| p_event_type | metadata.description | 如果 event_type == "GENERIC_EVENT",則設為 p_event_type |
| metadata.product_name | 設為「ENTRE」 | |
| metadata.vendor_name | 設為「DMP」 | |
| p_event_title、p_event_action | event_type | 預設為「GENERIC_EVENT」;如果 p_event_title ==「arming status」或 p_event_action ==「set time」,則為「SETTING_MODIFICATION」;如果 p_event_action ==「automatic recall test ok」或符合門鎖上/解鎖或區域開啟/關閉/強制開啟,則為「STATUS_HEARTBEAT」;如果 p_event_title ==「door access」且 p_event_action ==「door access granted」,則為「USER_BADGE_IN」 |
| extensions.auth.mechanism | 針對 USER_BADGE_IN 事件設為「BADGE_READER」 | |
| extensions.auth.type | 針對 USER_BADGE_IN 事件設為「PHYSICAL」 | |
| inter_host | intermediary.hostname | 設定 inter_host 是否無法轉換為 IP |
| inter_host | intermediary.ip | 設定 inter_host 是否可轉換為 IP |
| principal_host、inter_host | principal.hostname | 如果存在 device_data 且 principal_host 無法轉換為 IP,則取自 principal_host;否則如果 principal 為空且 inter_host 無法轉換為 IP,則取自 inter_host |
| principal_host、inter_host | principal.ip | 如果可轉換為 IP,則取自主機;否則如果主機為空,則取自 inter_ip |
| device_data | principal.location.name | 直接複製值 |
| user_display_name | principal.user.user_display_name | 直接複製值 |
| userid | principal.user.userid | 直接複製值 |
| 資料 | security_result.description | 直接複製值 |
| log_level | security_result.severity | 如果為「INFO」,請設為「LOW」;如果為「WARNING」,請設為「MEDIUM」;如果為「ERROR」,請設為「HIGH」 |
| log_level | security_result.severity_details | 直接複製值 |
| p_event_type | security_result.summary | 直接複製值 |
| device_data | target.location.name | 為 USER_BADGE_IN 事件設定 |
| target.resource.name | 如果 p_event_title ==「arming status」,則設為「Arming status」;如果 p_event_action ==「set time」,則設為「Panel command」 | |
| target.resource.type | 針對 SETTING_MODIFICATION 事件,請設為「SETTING」 |
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。