收集 Trellix Endpoint Security (HX) 稽核記錄 (舊稱 FireEye HX)
剖析器版本:1.0
本文說明如何使用 Bindplane,將 Trellix Endpoint Security (HX) Audit (舊稱 FireEye HX) 記錄檔擷取至 Google Security Operations。
Trellix Endpoint Security (HX) 提供端點偵測與回應功能,包括進階威脅搜尋、鑑識資料收集和行為分析,可偵測及回應端點上的進階威脅,並使用從數千個事件回應參與項目建構的機器學習技術。
事前準備
請確認您已完成下列事前準備事項:
- Google SecOps 執行個體。
- Windows Server 2016 以上版本,或搭載
systemd的 Linux 主機。 - Bindplane 代理程式與 Trellix Endpoint Security (HX) 設備之間的網路連線。
- 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟。
- Trellix Endpoint Security (HX) 管理主控台的特殊權限。
- Trellix Endpoint Security (HX) 設備 CLI 的管理存取權 (SSH 或控制台存取權)。
取得 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](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](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:
/opt/observiq-otel-collector/config.yaml - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\config.yaml
編輯設定檔
將
config.yaml的全部內容替換為下列設定:receivers: tcplog: listen_address: "0.0.0.0:514" exporters: chronicle/trellix_hx: compression: gzip creds_file_path: '/etc/bindplane-agent/ingestion-auth.json' customer_id: 'YOUR_CUSTOMER_ID' endpoint: malachiteingestion-pa.googleapis.com log_type: FIREEYE_HX_AUDIT raw_log_field: body ingestion_labels: env: production source: trellix_hx service: pipelines: logs/trellix_hx_to_chronicle: receivers: - tcplog exporters: - chronicle/trellix_hx
設定參數
替換下列預留位置:
接收器設定:
tcplog:由於 Trellix Endpoint Security (HX) 設備 CLI 會透過 TCP 通訊協定設定系統記錄轉送,因此使用 TCP 接收器。listen_address:要接聽的 IP 位址和通訊埠。使用0.0.0.0:514在通訊埠 514 的所有介面上監聽,或在 Linux 上以非根身分執行時,指定其他通訊埠 (例如0.0.0.0:1514)。
匯出工具設定:
creds_file_path:擷取驗證檔案的完整路徑: * Linux:/etc/bindplane-agent/ingestion-auth.json* Windows:C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.jsonYOUR_CUSTOMER_ID:上一個步驟中的實際客戶 ID。endpoint:區域端點網址 (例如malachiteingestion-pa.googleapis.com)。log_type:必須為FIREEYE_HX_AUDIT。ingestion_labels:用於整理記錄的選用標籤。
儲存設定檔
編輯完成後,請儲存檔案:
- Linux:依序按下
Ctrl+O、Enter和Ctrl+X鍵。 - Windows:依序點選「檔案」>「儲存」。
重新啟動 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"
設定 Trellix Endpoint Security (HX) 系統記錄檔轉送
Trellix Endpoint Security (HX) 支援兩種轉送記錄的方法:適用於 Windows 事件記錄的 Event Streamer 模組,以及適用於 CEF 格式設備記錄的 CLI 設定。
方法 1:透過使用者介面設定 Windows 事件記錄的 Event Streamer
- 登入 Trellix Endpoint Security (HX) 管理控制台。
- 前往「Event Streamer」。
- 選取「在主機上啟用 Event Streamer」。
- 按一下「儲存」,套用政策變更。
- 依序前往「目的地」>「伺服器設定」>「新增系統記錄目的地」。
- 提供下列設定詳細資料:
- 名稱:輸入描述性名稱 (例如
Google SecOps-Collector)。 - IP 位址:輸入 Bindplane 代理程式主機的 IP 位址。
- 「Port」(通訊埠):輸入在 Bindplane 代理程式中設定的通訊埠編號 (例如
514)。
- 名稱:輸入描述性名稱 (例如
- 按一下 [儲存]。
方法 2:設定設備的系統記錄轉送 (CLI)
- 使用 SSH 或主控台存取權登入 Trellix Endpoint Security (HX) 設備。
- 執行下列指令,進入特殊權限模式:
enable - 執行下列指令來進入設定模式:
configure terminal - 執行下列指令,驗證目前的記錄設定:
show logging 執行下列指令來設定系統記錄轉送:
logging BINDPLANE_IP_ADDRESS trap none logging BINDPLANE_IP_ADDRESS trap override class cef priority info logging BINDPLANE_IP_ADDRESS protocol tcp將
BINDPLANE_IP_ADDRESS替換為 Bindplane 代理程式主機的 IP 位址。執行下列指令,啟用 RFC-3339 時間戳記格式:
logging fields timestamp format rfc-3339執行下列指令來儲存設定:
write memory執行下列指令即可退出:
exit
啟用資料擷取功能,收集事件記錄
- 以管理員身分登入 Trellix Endpoint Security (HX) 網頁使用者介面。
- 前往「管理」> 資料擷取指令碼。
- 按一下「標準調查詳細資料」。
- 在「Script Description」(指令碼說明) 頁面中,按一下「ACTIONS」(動作),然後選取「Edit」(編輯)。
- 按一下「事件記錄」。
- 在「Windows event logs」(Windows 事件記錄) 區段中,啟用「Security logs」(安全性記錄)。
- 按一下 [儲存]。
啟用自動分類功能
- 以管理員身分登入 Trellix Endpoint Security (HX) 網頁使用者介面。
- 依序前往「管理」> 分流設定。
- 將「分流設定」切換鈕設為開啟。
- 按一下 [儲存]。
啟用檔案和資料稽核
- 以管理員身分登入 Trellix Endpoint Security (HX) 網頁使用者介面。
- 依序前往「管理」>「政策」。
- 在「設定」下方,按一下「稽核 - 版本號碼」。
- 開啟「在主機上啟用檔案和資料稽核」。
- 按一下 [儲存]。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
alert.agent._id |
principal.asset.asset_id |
代理程式 ID,前置字串為「AGENT ID:」 |
alert.agent.url |
principal.labels.value |
代理程式網址值。 |
alert.condition._id |
additional.fields.value.string_value |
已移除含有 = 字元的條件 ID。 |
alert.condition.url |
additional.fields.value.string_value |
已移除含有 = 字元的條件網址。 |
alert.decorators[].data.fireeye_report.indicator_verdict.malware_families.0 |
security_result.threat_name |
FireEye 報告中的惡意軟體家族。 |
alert.decorators[].data.fireeye_report.risk_summary |
security_result.description |
風險摘要說明。 |
alert.decorators[].data.fireeye_verdict |
security_result.severity_details |
FireEye 判定結果詳細資料。 |
alert.event_at |
read_only_udm.metadata.event_timestamp |
事件時間戳記對應。 |
alert.event_id |
read_only_udm.metadata.product_log_id |
產品記錄 ID。 |
alert.event_type |
read_only_udm.metadata.product_event_type |
產品事件類型 ID。 |
alert.event_values.fileWriteEvent/fullPath |
target.file.full_path |
目標檔案路徑。 |
alert.event_values.fileWriteEvent/md5 |
target.file.md5 |
目標檔案的 MD5 雜湊。 |
alert.event_values.fileWriteEvent/pid |
principal.process.pid |
寫入程序 PID。 |
alert.event_values.fileWriteEvent/processPath |
principal.process.file.full_path |
寫入程序檔案路徑。 |
alert.event_values.fileWriteEvent/size |
target.file.size |
目標檔案大小。 |
alert.event_values.fileWriteEvent/username |
principal.user.userid |
撰寫使用者 ID。 |
alert.event_values.ipv4NetworkEvent/localIP |
principal.ip |
主要本機 IP。 |
alert.event_values.ipv4NetworkEvent/localPort |
principal.port |
主要本機通訊埠。 |
alert.event_values.ipv4NetworkEvent/protocol |
network.ip_protocol |
網路 IP 通訊協定。 |
alert.event_values.ipv4NetworkEvent/remoteIP |
target.ip |
目標遠端 IP。 |
alert.event_values.ipv4NetworkEvent/remotePort |
target.port |
目標遠端通訊埠。 |
alert.event_values.processEvent/md5 |
target.process.file.md5 |
目標程序的 MD5。 |
alert.event_values.processEvent/pid |
target.process.pid |
目標程序的 PID。 |
alert.event_values.urlMonitorEvent/hostname |
target.hostname |
目標目的地主機名稱。 |
alert.event_values.urlMonitorEvent/requestUrl |
target.url |
目標要求網址。 |
alert.event_values.urlMonitorEvent/urlMethod |
network.http.method |
網路 HTTP 方法。 |
alert.event_values.urlMonitorEvent/userAgent |
network.http.user_agent |
網路 HTTP 使用者代理程式。 |
alert.indicator.name |
read_only_udm.security_result.summary |
安全性結果摘要。 |
host.agent_version |
read_only_udm.metadata.product_version |
產品版本對應。 |
host.containment_state |
read_only_udm.principal.containment_state |
主要封鎖狀態。 |
host.hostname |
read_only_udm.principal.hostname |
主要主機名稱。 |
host.os.platform |
read_only_udm.principal.platform |
主要作業系統平台。 |
host.primary_ip_address |
read_only_udm.principal.ip |
主要主要 IP。 |
severity |
security_result.severity |
對應至 LOW、MEDIUM 或 HIGH。 |
timestamp |
timestamp |
原始記錄時間戳記。 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求解答。