收集 Cisco 無線入侵防禦系統 (WIPS) 記錄
剖析器版本:1.0
本文說明如何使用 Bindplane 代理程式,將 Cisco Wireless Intrusion Prevention System (WIPS) 記錄擷取至 Google Security Operations。
剖析器會從系統記錄訊息中擷取鍵/值組合,然後將這些值對應至統合式資料模型 (UDM) 欄位。系統會根據主體、目標和使用者資訊是否存在,判斷適當的事件類型,並根據 eventType 和其他欄位將安全事件分類。
事前準備
請確認您已完成下列事前準備事項:
- Google SecOps 執行個體
- Windows Server 2016 以上版本,或搭載
systemd的 Linux 主機 - Bindplane 代理程式與 Cisco 存取點 (AP) 或無線 LAN 控制器 (WLC) 之間的網路連線
- 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
- Cisco 存取點 (AP) 或無線 LAN 控制器 (WLC) 的特殊存取權
取得 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/cisco_wips: compression: gzip creds_file_path: '/etc/bindplane-agent/ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: CISCO_WIPS raw_log_field: body service: pipelines: logs/cisco_wips_to_chronicle: receivers: - udplog exporters: - chronicle/cisco_wips
設定參數
替換下列預留位置:
接收器設定:
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"
- 按下
在 Cisco Catalyst 上設定 Adaptive Wireless Intrusion Prevention System (aWIPS)
- 使用 SSH 登入 Cisco Catalyst。
輸入全域設定,在 AP 設定檔下啟用 aWIPS:
configure terminal ap profile <profile-name> awips將系統記錄節流間隔設為 60 秒:
awips-syslog throttle period 60
使用 Cisco AP 設定檔設定系統記錄
在 AP 聯結設定檔中 (透過 CLI):
configure terminal ap profile <profile-name> syslog host <BINDPLANE_IP> syslog level informational syslog facility local0 end將
<BINDPLANE_IP>替換為 Bindplane 代理程式 IP 位址。
在 Cisco WLC 上設定系統記錄 (GUI)
- 登入 WLC 網頁版 UI。
- 依序前往「管理」>「記錄」>「設定」。
- 在「Syslog Server IP Address」(系統記錄伺服器 IP 位址) 欄位中,輸入 Bindplane 代理程式 IP 位址。
- 按一下「新增」。
- 請提供下列設定詳細資料:
- Syslog Severity:選取「Informational」。
- Syslog Facility:選取「Local Use 0」。
- 按一下「套用」。
- 按一下 [Save Configuration] (儲存組態)。
使用 WLC (CLI) 在存取點上設定系統記錄
全域 AP 系統記錄檔主機:
config ap syslog host global <BINDPLANE_IP>設定特定 AP Syslog 主機:
config ap syslog host specific <AP-name> <BINDPLANE_IP>設定 AP 系統記錄嚴重程度:
config ap logging syslog level informational設定 AP 訊息的設施:
config logging syslog facility local0將
<BINDPLANE_IP>替換為 Bindplane 代理程式 IP 位址。
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
applicationCategoryData |
security_result.summary |
直接對應。 |
applicationSpecificAlarmID |
target.resource.attribute.labels.applicationSpecificAlarmID |
已轉換為目標資源的標籤。 |
attackerMacAddr |
target.mac |
直接對應。 |
authEntityId |
principal.resource.attribute.labels.authEntityId |
轉換為主體資源的標籤。 |
category |
security_result.category_details |
直接對應。 |
detectingApCount |
target.resource.attribute.labels.detectingApCount |
已轉換為目標資源的標籤。 |
description |
metadata.description |
直接對應。 |
displayName |
principal.user.userid |
如果模式相符,則使用規則運算式 host/(?P<user_id>[\\w-]+) 從 displayName 中擷取。 |
eventType |
metadata.product_event_type |
直接對應。 |
instanceId |
principal.resource.attribute.labels.instanceId |
轉換為主體資源的標籤。 |
instanceUuid |
metadata.product_log_id |
直接對應。 |
instanceVersion |
principal.resource.attribute.labels.instanceVersion |
轉換為主體資源的標籤。 |
macInfo |
target.resource.attribute.labels.macInfo |
已轉換為目標資源的標籤。 |
notificationDeliveryMechanism |
target.resource.attribute.labels.notificationDeliveryMechanism、network.ip_protocol |
已轉換為目標資源的標籤。如果值包含「snmp」(不區分大小寫),則 會設為「UDP」。network.ip_protocol |
previousSeverity |
target.resource.attribute.labels.previousSeverity |
已轉換為目標資源的標籤。如果 eventType 為「USER_AUTHENTICATION_FAILURE」,且 user_id 不為空白,請設為「AUTHTYPE_UNSPECIFIED」。從記錄的 timestamp 複製。由剖析器邏輯根據多項條件決定:如果 eventType 為「USER_AUTHENTICATION_FAILURE」,且 user_id 不為空白,則為「USER_LOGIN」。如果 is_target_present 和 is_principal_present 均為 true,則為「NETWORK_CONNECTION」。如果 is_principal_present 為 true,則為「STATUS_UPDATE」。如果 user_id 不為空白,則為「USER_UNCATEGORIZED」。否則為「GENERIC_EVENT」。硬式編碼為「CISCO_WIPS」。硬式編碼為「無線入侵防禦系統 (WIPS)」。已硬式編碼為「Cisco」。如果 notificationDeliveryMechanism 包含「snmp」(不區分大小寫),請設為「UDP」。如果不是 IP,則會從 reportingEntityAddress 或 source 對應。如果是 IP,則會從 reportingEntityAddress 或 source 對應。如果是 MAC 位址,則使用規則運算式從 source 中擷取。轉換為主要資源的標籤。轉換為主體資源的標籤。 |
reportingEntityAddress |
principal.ip、principal.hostname |
如果是 IP 位址,則會對應至 principal.ip。否則會對應至 principal.hostname。 |
severity |
security_result.severity |
根據下列條件對應:如果 severity 為「0」、「1」、「CRITICAL」或「VERY-HIGH」,則為「CRITICAL」。如果 severity 為「2」、「3」、「4」或「HIGH」,則 為「HIGH」。如果 severity 為「5」或「MEDIUM」,則 為「MEDIUM」。如果 severity 為「6」、「7」或「LOW」,則 為「LOW」。 |
sigAlertDescription |
security_result.description |
直接對應。 |
signatureName |
target.resource.attribute.labels.signatureName |
已轉換為目標資源的標籤。 |
source |
principal.hostname、principal.ip、principal.mac |
如果是 IP 位址,則會對應至 principal.ip。如果是 MAC 位址,則會對應至 principal.mac。否則會對應至 principal.hostname。 |
srcObjectClassId |
principal.resource.attribute.labels.srcObjectClassId |
轉換為主體資源的標籤。 |
srcObjectId |
principal.resource.attribute.labels.srcObjectId |
轉換為主體資源的標籤。 |
subclassName |
security_result.rule_name |
直接對應。如果 applicationSpecificAlarmID 包含「BlockList」(不區分大小寫),或 eventType 是「SIGNATURE_ATTACK」、「MALICIOUS_ROGUE_AP_DETECTED」或「USER_AUTHENTICATION_FAILURE」其中之一,請設為「BLOCK」。由剖析器邏輯根據 eventType 判斷:如果 eventType 為「MALICIOUS_ROGUE_AP_DETECTED」,則為「NETWORK_MALICIOUS」。如果 eventType 為「SIGNATURE_ATTACK」,則為「NETWORK_SUSPICIOUS」。如果 eventType 為「USER_AUTHENTICATION_FAILURE」,則為「AUTH_VIOLATION」。 |
timestamp |
metadata.event_timestamp |
seconds 和 nanos 欄位會直接對應。 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。