收集 Citrix Receiver 記錄
剖析器版本:1.0
本文說明如何使用 Bindplane 代理程式,將 Citrix Receiver 記錄擷取至 Google Security Operations。
Citrix Receiver (現為 Citrix Workspace 應用程式) 是用戶端應用程式,可從 Citrix Virtual Apps and Desktops 環境存取虛擬桌面、應用程式和資料。記錄檔會擷取工作階段事件、驗證和用戶端活動。
事前準備
請確認您已完成下列事前準備事項:
- Google SecOps 執行個體
- Windows Server 2016 以上版本,或搭載
systemd的 Linux 主機 - Bindplane 代理程式與 Citrix Receiver 主機之間的網路連線
- 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
- 具備管理員權限的 Citrix 環境特殊存取權
- 存取伺服器或用戶端檔案系統中的 Citrix Receiver 記錄檔
取得 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 /opt/observiq-otel-collector/config.yamlWindows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
編輯設定檔
將
config.yaml的所有內容替換為下列設定:receivers: filelog: include: - 'C:\Users\*\AppData\Local\Citrix\Receiver\*.log' start_at: beginning poll_interval: 5s exporters: chronicle/citrix_rx: 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: CSG_CITRIX_RX raw_log_field: body ingestion_labels: env: production service: pipelines: logs/citrix_rx_to_chronicle: receivers: - filelog exporters: - chronicle/citrix_rx
設定參數
替換下列預留位置:
接收器設定:
include:Citrix Receiver 記錄檔的路徑:- Windows:
C:\Users\*\AppData\Local\Citrix\Receiver\*.log - 集中收集:如果記錄檔收集到中央共用位置,請調整路徑
- Windows:
start_at:設為beginning可讀取現有記錄,設為end則只會讀取新項目poll_interval:檢查新記錄資料的頻率 (預設:5s)
匯出工具設定:
citrix_rx:匯出工具的說明名稱creds_file_path:擷取驗證檔案的完整路徑:- Linux:
/etc/bindplane-agent/ingestion-auth.json - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Linux:
<customer_id>:上一步中的客戶 IDendpoint:區域端點網址:- 美國:
malachiteingestion-pa.googleapis.com - 歐洲:
europe-malachiteingestion-pa.googleapis.com - 亞洲:
asia-southeast1-malachiteingestion-pa.googleapis.com - 如需完整清單,請參閱「區域端點」
- 美國:
CSG_CITRIX_RX:記錄類型,與 Chronicle 中顯示的完全相同ingestion_labels:YAML 格式的選用標籤 (例如env: production)
管道設定:
citrix_rx_to_chronicle:管道的說明名稱
儲存設定檔
- 編輯完成後,請儲存檔案:
- 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"
- 按下
啟用 Citrix Receiver 記錄功能並設定記錄收集功能
Citrix Receiver 預設會停用記錄功能。您必須先使用登錄項目啟用這項功能,系統才會產生記錄檔。
在 Windows 上啟用記錄功能
- 在 Citrix Receiver 用戶端電腦上,以管理員身分開啟「登錄編輯程式」 (
regedit)。 - 前往「
HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Receiver」。 - 建立名為
EnableTracing的新字串值,並設為true。 建立名為
TracePath的新字串值,指定記錄輸出路徑。例如:C:\CitrixLogs\- 或者,使用預設路徑:
%USERPROFILE%\AppData\Local\Citrix\Receiver\
重新啟動 Citrix Receiver 應用程式,變更才會生效。
確認記錄檔生成作業
- 啟用記錄功能後,開啟 Citrix Receiver 並連線至已發布的資源。
- 前往記錄目錄:
- 預設路徑:
%USERPROFILE%\AppData\Local\Citrix\Receiver\ - 自訂路徑:
TracePath登錄值中指定的路徑。
- 預設路徑:
- 確認系統是否正在建立
.log檔案,且檔案包含工作階段事件資料。 確認 Bindplane 代理程式對記錄目錄和檔案具有讀取權限。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
creationTime |
metadata.event_timestamp |
已剖析為 dd/M/yyyy HH:mm:ss |
timestamp |
metadata.event_timestamp |
已剖析為 MMM d HH:mm:ss |
has_principal |
metadata.event_type |
已對應:true → NETWORK_CONNECTION |
has_user |
metadata.event_type |
已對應:true → USER_UNCATEGORIZED |
logId |
metadata.product_log_id |
直接對應 |
srcip |
principal.asset.ip |
已合併 |
srcip |
principal.ip |
已合併 |
userId |
principal.user.userid |
直接對應 |
application |
target.application |
直接對應 |
targetip |
target.asset.ip |
已合併 |
targetip |
target.ip |
已合併 |
resourcename |
target.resource.name |
直接對應 |
| 不適用 | metadata.event_type |
常數:NETWORK_CONNECTION |
| 不適用 | metadata.product_name |
常數:CSG Citrix RX |
| 不適用 | metadata.vendor_name |
常數:CSG Citrix RX |
logId |
event.idm.read_only_udm.metadata.product_log_id |
從變更記錄對應 |
application |
event.idm.read_only_udm.target.application |
從變更記錄對應 |
resourcename |
event.idm.read_only_udm.target.resource.name |
從變更記錄對應 |
srcip |
event.idm.read_only_udm.principal.ip |
從變更記錄對應 |
target |
event.idm.read_only_udm.principal.asset.ip |
從變更記錄對應 |
creationTime |
event.idm.read_only_udm.target.resource.attribute.creation_time |
從變更記錄對應 |
user |
event.idm.read_only_udm.principal.user.user |
從變更記錄對應 |
targetip |
event.idm.read_only_udm.target.ip |
從變更記錄對應 |
timestamp |
event.idm.read_only_udm.metadata.timestamp |
從變更記錄對應 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。