收集 Extreme Networks 交換器記錄

支援的國家/地區:

本文說明如何使用 Bindplane,將 Extreme Networks 交換器記錄檔擷取至 Google Security Operations。剖析器會使用 grok 模式和條件邏輯,從系統記錄訊息中擷取欄位。這個外掛程式會將擷取的欄位對應至 UDM,處理登入事件、狀態更新和一般事件,並使用通訊協定、VLAN 和使用者角色等額外背景資訊來擴充資料。

事前準備

請確認您已完成下列事前準備事項:

  • Google SecOps 執行個體
  • Windows 2016 以上版本,或搭載 systemd 的 Linux 主機
  • 如果透過 Proxy 執行,請確認防火牆通訊埠已開啟
  • Extreme Networks 交換器裝置的特殊存取權

取得 Google SecOps 擷取驗證檔案

  1. 登入 Google SecOps 控制台。
  2. 依序前往「SIEM 設定」>「收集代理程式」
  3. 下載擷取驗證檔案。將檔案安全地儲存在要安裝 Bindplane 的系統上。

取得 Google SecOps 客戶 ID

  1. 登入 Google SecOps 控制台。
  2. 依序前往「SIEM 設定」>「設定檔」
  3. 複製並儲存「機構詳細資料」專區中的客戶 ID

安裝 Bindplane 代理程式

請按照下列操作說明,在 Windows 或 Linux 作業系統上安裝 Bindplane 代理程式。

Windows 安裝

  1. 以系統管理員身分開啟「命令提示字元」或「PowerShell」
  2. 執行下列指令:

    msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
    

Linux 安裝

  1. 開啟具有根層級或 sudo 權限的終端機。
  2. 執行下列指令:

    sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
    

其他安裝資源

如需其他安裝選項,請參閱安裝指南

設定 Bindplane 代理程式,擷取系統記錄檔並傳送至 Google SecOps

  1. 存取設定檔:
    • 找出 config.yaml 檔案。通常位於 Linux 的 /etc/bindplane-agent/ 目錄,或 Windows 的安裝目錄。
    • 使用文字編輯器 (例如 nanovi 或記事本) 開啟檔案。
  2. 按照下列方式編輯 config.yaml 檔案:

    receivers:
        udplog:
            # Replace the port and IP address as required
            listen_address: "0.0.0.0:514"
    
    exporters:
        chronicle/chronicle_w_labels:
            compression: gzip
            # Adjust the path to the credentials file you downloaded in Step 1
            creds_file_path: '/path/to/ingestion-authentication-file.json'
            # Replace with your actual customer ID from Step 2
            customer_id: <customer_id>
            endpoint: malachiteingestion-pa.googleapis.com
            # Add optional ingestion labels for better organization
            log_type: 'EXTREME_SWITCH'
            raw_log_field: body
            ingestion_labels:
    
    service:
        pipelines:
            logs/source0__chronicle_w_labels-0:
                receivers:
                    - udplog
                exporters:
                    - chronicle/chronicle_w_labels
    
    • 視基礎架構需求,替換通訊埠和 IP 位址。
    • <customer_id> 替換為實際的客戶 ID。
    • /path/to/ingestion-authentication-file.json 更新為「取得 Google SecOps 擷取驗證檔案」部分中,驗證檔案的儲存路徑。

重新啟動 Bindplane 代理程式,以套用變更

  • 如要在 Linux 中重新啟動 Bindplane 代理程式,請執行下列指令:

    sudo systemctl restart bindplane-agent
    
  • 如要在 Windows 中重新啟動 Bindplane 代理程式,可以使用「服務」控制台,或輸入下列指令:

    net stop BindPlaneAgent && net start BindPlaneAgent
    

為 Extreme 網路交換器設定系統記錄檔

  1. 使用 CLI 或控制台登入交換器。
  2. 輸入設定指令,存取全域設定層級:

    device# configure terminal
    
  3. 輸入 syslog 伺服器 IP 位址指令,新增 syslog 伺服器:

    • 請將 <bindplane-ip> 替換為實際的 Bindplane 代理程式 IP 位址。
    logging syslog-server <bindplane_ip>
    
  4. 輸入格式指令,為訊息設定 RFC-5424 格式:

    format RFC-5424
    

UDM 對應表

記錄欄位 UDM 對應 邏輯
account_type target.user.user_role 如果 account_type 是「Administrative」或「admin」,請設為「ADMINISTRATOR」。否則,請對應至 target.user.attribute.roles.name
application target.application 直接對應。
attr additional.fields 剖析以擷取 WWN,並建立鍵/值組合,其中索引鍵為「wwn」,擷取的 WWN 則為字串值。
class additional.fields 建立鍵/值組合,並將鍵設為「class」,class 欄位的值則設為字串值。
Cause additional.fields 建立鍵/值組合,並將鍵設為「原因」,Cause 欄位的值則設為字串值。如果沒有特定驗證欄位,系統會建立空白物件。
Info security_result.summary 直接對應。
interface additional.fields 建立鍵/值組合,並將鍵設為「介面」,interface 欄位的值則設為字串值。
ip principal.ip 直接對應。
intermediary_ip intermediary.ip 直接對應。
kv_data 多項政策 用於擷取鍵/值對,並根據鍵將這些鍵/值對對應至不同的 UDM 欄位。舉例來說,VrIpAddr 會對應至 intermediary.ipIPAddr 會對應至 principal.ipSlppRxPort 會對應至 principal.port,而各種 rc* 欄位會對應至 security_result.detection_fields
log_data 多項政策 系統會剖析這些記錄,擷取使用者登入、登出和其他事件的相關資訊。用於填入 principal.ipprincipal.resource.nametarget.user.useridtarget.applicationsecurity_result.summarysecurity_result.descriptionmetadata.description 等欄位。
log_type additional.fields 建立鍵/值組合,並將鍵設為「log」,log_type 欄位的值則設為字串值。
message 多項政策 原始記錄訊息。系統會剖析這些資料,擷取各種欄位。時間戳記會從 timestamp 欄位 (如果存在且格式為「yyyy-mm-ddTHH:mm:ss」) 或 message 欄位中,使用 grok 模式擷取。如果從訊息欄位擷取,則為記錄訊息本身的時間戳記。系統會根據 has_principalhas_targetuser_loginuser_logout 標記的存在與否判斷。可以是「USER_LOGIN」、「USER_LOGOUT」、「STATUS_UPDATE」或「GENERIC_EVENT」。對應「msgid」欄位。靜態值:「EXTREME_SWITCH」。對應「ver」欄位。靜態值:「EXTREME_SWITCH」。
msgid metadata.product_log_id 直接對應。
port principal.port 直接對應並轉換為整數。
protocol additional.fields 建立鍵/值組合,並將鍵設為「通訊協定」,protocol 欄位的值則設為字串值。
rcPortVLacpAdminEnable security_result.detection_fields 建立鍵/值組合,鍵為「rcPortVLacpAdminEnable」,值則為該鍵的值。
rcSyslogHostAddress principal.hostname 直接對應。
rcSyslogHostAddressType security_result.detection_fields 建立鍵/值組合,索引鍵為「rcSyslogHostAddressType」,並設定其值。
rcSyslogHostEnable security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostEnable」,值則為其值。
rcSyslogHostFacility security_result.detection_fields 建立鍵/值組合,並將鍵設為「rcSyslogHostFacility」,值則設為該鍵的值。
rcSyslogHostMapErrorSeverity security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostMapErrorSeverity」,值則為該鍵的值。
rcSyslogHostMapFatalSeverity security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostMapFatalSeverity」,值則為其值。
rcSyslogHostMapInfoSeverity security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostMapInfoSeverity」,值則為其值。
rcSyslogHostMapWarningSeverity security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostMapWarningSeverity」,值則為其值。
rcSyslogHostRowStatus security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostRowStatus」,值則為其值。
rcSyslogHostSeverity security_result.detection_fields 建立鍵/值組合,其中鍵為「rcSyslogHostSeverity」,值則為該鍵的值。
resource principal.resource.name 直接對應。
sec_description security_result.description 直接對應。
seqnum additional.fields 建立鍵/值組合,並將鍵設為「seqnum」,seqnum 欄位的值則設為字串值。
session_id network.session_id 直接對應。
severity security_result.severity 對應轉換:「重大」、「錯誤」、「高」會直接對應;「資訊」會對應至「資訊」;「警告」會對應至「中」;「低」、「中」和「資訊」會直接對應。
SlppIncomingVlanId additional.fields 建立鍵/值組合,鍵為「SlppIncomingVlanId」,值為 SlppIncomingVlanId 欄位的值 (字串值)。
SlppRxVlan additional.fields 建立鍵/值組合,並將鍵設為「SlppRxVlan」,SlppRxVlan 欄位的值則設為字串值。
SlppSrcMacAddress principal.mac 直接對應。
Status additional.fields 建立鍵/值組合,並將鍵設為「Status」,Status 欄位的值則設為字串值。
swname additional.fields 建立鍵/值組合,並將鍵設為「swname」,swname 欄位的值則設為字串值。
timestamp metadata.event_timestamp 剖析並轉換為時間戳記物件。
tz additional.fields 建立鍵/值組合,其中鍵為「tz」,值為 tz 欄位的值 (字串值)。
Type additional.fields 建立鍵/值組合,並將鍵設為「Type」,Type 欄位的值則設為字串值。
username target.user.userid 直接對應。
ver metadata.product_version 直接對應。
VrId additional.fields 建立鍵/值組合,並將鍵設為「VrId」,VrId 欄位的值則設為字串值。

還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。