收集 Alcatel 交換器記錄
剖析器版本:1.0
本文說明如何使用 Bindplane 代理程式,將 Alcatel 交換器記錄擷取至 Google Security Operations。
Alcatel-Lucent Enterprise OmniSwitch 是一系列可堆疊的 LAN 交換器,提供網路存取、安全政策執行,以及有線/無線管理。交換器會產生涵蓋驗證事件、介面狀態變更、VLAN 作業和 CLI 指令的系統記錄訊息。
事前準備
請確認您已完成下列事前準備事項:
- Google SecOps 執行個體
- Windows Server 2016 以上版本,或搭載
systemd的 Linux 主機 - Bindplane 代理程式與 Alcatel 交換器之間的網路連線
- 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
- Alcatel 交換器的特殊憑證 (管理員存取權)
取得 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/alcatel_switch: compression: gzip creds_file_path: '/etc/bindplane-agent/ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: ALCATEL_SWITCH raw_log_field: body service: pipelines: logs/alcatel_to_chronicle: receivers: - udplog exporters: - chronicle/alcatel_switch
設定參數
替換下列預留位置:
接收器設定:
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"
- 按下
在 Alcatel 交換器上設定系統記錄匯出功能
- 使用 SSH 或控制台傳輸線連線至交換器。
- 使用管理員憑證登入。
進入全域設定模式:
enable configure terminal設定 Bindplane (syslog) 伺服器 IP 位址:
swlog output socket <BINDPLANE_IP>- 將
<BINDPLANE_IP>替換為 Bindplane 代理程式 IP 位址。
- 將
啟用記錄功能,將記錄傳送至系統記錄伺服器:
swlog remote enable設定記錄層級:
swlog console level info啟用指令記錄功能:
command-log enable儲存啟動設定的變更:
write memory
UDM 對應表
| 記錄欄位 | UDM 對應 | 邏輯 |
|---|---|---|
1.1.1.1 |
principal.ipprincipal.asset.ip |
從記錄訊息中擷取。 |
1.1.1.2 |
target.iptarget.asset.ip |
從記錄訊息中擷取。 |
1.1.2.7 |
target.iptarget.asset.ip |
從記錄訊息中擷取。 |
1035 |
target.port |
從記錄訊息中擷取。 |
2266 |
additional.fields.value.string_value |
從記錄訊息擷取並對應為 vlan。 |
3036 |
principal.port |
從記錄訊息中擷取。 |
59300 |
target.port |
從記錄訊息中擷取。 |
60588 |
target.port |
從記錄訊息中擷取。 |
997 |
principal.resource.attribute.labels.value |
從記錄訊息擷取並對應為 limit。 |
A6450-L2-K4B-01 |
principal.application |
從記錄訊息中擷取。 |
A6450-L2-X1B-02-01 |
principal.application |
從記錄訊息中擷取。 |
A6450-L2-X2A-01-01 |
principal.application |
從記錄訊息中擷取。 |
A6450-L2-X4B-02-01 |
principal.application |
從記錄訊息中擷取。 |
A6900-L3-LTX0A |
principal.application |
從記錄訊息中擷取。 |
Accepted keyboard-interactive/pam |
security_result.summary |
擷取的「sec_summary」欄位部分內容。 |
b8:53:ac:6e:c9:bc |
principal.mac |
從記錄訊息中擷取。 |
BRIDGE(10) |
additional.fields.value.string_value |
從記錄訊息擷取並對應為 id_protocol。 |
CLI log, |
security_result.summary |
擷取的「sec_summary」欄位部分內容。 |
cmd: show configuration snapshot all, |
security_result.detection_fields.value |
從記錄訊息擷取並對應為 cmd。 |
Connection reset by 1.1.2.7 port 60505 |
security_result.summary |
從記錄訊息中擷取。 |
Dec 7 14:28:40 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Dec 8 04:21:22 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Dec 9 20:08:29 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Dec 9 20:51:34 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Dec 11 10:18:30 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Dec 17 02:14:22 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Dec 19 10:27:33 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Did not receive identification string from 1.1.2.7 port 60588 |
security_result.summary |
從記錄訊息中擷取。 |
esmSetRateLimit: Txing |
additional.fields.value.string_value |
從記錄訊息擷取並對應為 esm_set_rate_limit。 |
Feb 15 16:29:29 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Feb 16 11:08:45 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
Feb 16 11:08:49 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
flashManager FlashMgr Main info(5) flashMgrValidateImage_exec: valid |
security_result.summary |
從記錄訊息中擷取。 |
for ncmadmin from 1.1.1.2 port 59300 ssh2 |
security_result.summary |
擷取的「sec_summary」欄位部分內容。 |
from port 3036 to port 1035 |
security_result.summary |
擷取的「sec_summary」欄位部分內容。 |
IVDELCSW03 |
principal.hostnameprincipal.asset.hostname |
當 principal_ip 不是 IP 位址時,從記錄訊息中擷取。 |
IP-HELPER(22) |
additional.fields.value.string_value |
從記錄訊息擷取並對應為 id_protocol。 |
Jan 16 02:14:13 |
metadata.event_timestamp.secondsmetadata.event_timestamp.nanos |
從 ts 欄位剖析。 |
LLDP(42) |
additional.fields.value.string_value |
從記錄訊息擷取並對應為 id_protocol。 |
limit=997, |
principal.resource.attribute.labels.value |
從記錄訊息擷取並對應為 limit。 |
limitType=1 |
principal.resource.attribute.labels.value |
從記錄訊息擷取並對應為 limitType。 |
lldpProcessLocationIdTLV: Error, LLDP-MED Civic Address LCI len 39 invalid, tlvL |
security_result.summary |
從記錄訊息中擷取。 |
Mac Movement for MacAddr: a0:29:19:c0:55:18 |
security_result.summary |
從記錄訊息中擷取。 |
MacAddr: a0:29:19:c0:55:18 |
principal.mac |
從記錄訊息中擷取。 |
ncmadmin |
principal.user.userid |
從記錄訊息中擷取。 |
OS6360 |
principal.hostnameprincipal.asset.hostname |
當 principal_ip 不是 IP 位址時,從記錄訊息中擷取。 |
result: SUCCESS |
security_result.detection_fields.value |
從記錄訊息擷取並對應為 result。 |
SES CMD info(5) |
security_result.summary |
擷取內容的一部分 sec_summaryfield。 |
STACK-MANAGER |
principal.application |
從記錄訊息中擷取。 |
Stack Port A MAC Frames TX/RX Enabled |
security_result.summary |
從記錄訊息中擷取。 |
STP(11) |
additional.fields.value.string_value |
從記錄訊息擷取並對應為 id_protocol。 |
SWCONSOLE-L2-K0A-01 |
target.hostnametarget.asset.hostname |
從記錄訊息中擷取。 |
trafficType=2, |
principal.resource.attribute.labels.value |
從記錄訊息中擷取,並對應為 traffic 類型。 |
user: ncmadmin |
security_result.summary |
擷取的「sec_summary」欄位部分內容。 |
zslot=0, |
principal.resource.attribute.labels.value |
從記錄訊息擷取並對應為 zslot。 |
- |
additional.fields.key |
硬式編碼值:id_protocol |
- |
additional.fields.key |
硬式編碼值:esm_set_rate_limit |
- |
additional.fields.key |
硬式編碼值:vlan |
- |
metadata.event_type |
如果沒有其他相符的類型,請設為 GENERIC_EVENT。 |
- |
metadata.product_name |
硬式編碼值:Alcatel Switch |
- |
metadata.vendor_name |
硬式編碼值:ALCATEL SWITCH |
- |
network.application_protocol |
如果 id_protocol 與 ssh 相符 (不區分大小寫),請設為 SSH。 |
- |
principal.resource.attribute.labels.key |
硬式編碼值:limit |
- |
principal.resource.attribute.labels.key |
硬式編碼值:trafficType |
- |
principal.resource.attribute.labels.key |
硬式編碼值:limitType |
- |
principal.resource.attribute.labels.key |
硬式編碼值:zslot |
- |
security_result.detection_fields.key |
硬式編碼值:cmd |
- |
security_result.detection_fields.key |
硬式編碼值:result |
- |
security_result.severity |
如果 prod_severity 與 info 相符 (不區分大小寫),請設為 INFORMATIONAL。 |
變更記錄
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。