Nokia 라우터 로그 수집

다음에서 지원:

이 문서에서는 Bindplane 에이전트를 사용하여 Nokia 라우터 로그를 Google Security Operations로 수집하는 방법을 설명합니다. 파서는 먼저 Grok 패턴을 사용하여 타임스탬프, IP 주소, 호스트 이름, 이벤트 세부정보와 같은 필드를 추출합니다. 그런 다음 이러한 추출된 필드를 Google SecOps UDM 스키마의 해당 필드에 매핑하여 데이터 변환을 실행하고 특정 이벤트 유형 및 조건에 따라 추가 컨텍스트로 데이터를 보강합니다.

시작하기 전에

  • Google SecOps 인스턴스가 있는지 확인합니다.
  • Windows 2016 이상을 사용 중이거나 systemd와 함께 Linux 호스트를 사용하고 있는지 확인합니다.
  • 프록시 뒤에서 실행하는 경우 방화벽 포트가 열려 있는지 확인합니다.
  • Nokia 라우터에 대한 권한이 있는지 확인합니다.

Google SecOps 처리 인증 파일 가져오기

  1. Google SecOps 콘솔에 로그인합니다.
  2. SIEM 설정 > 수집 에이전트로 이동합니다.
  3. 처리 인증 파일을 다운로드합니다. Bindplane가 설치될 시스템에 파일을 안전하게 저장합니다.

Google SecOps 고객 ID 가져오기

  1. Google SecOps 콘솔에 로그인합니다.
  2. SIEM 설정 > 프로필로 이동합니다.
  3. 조직 세부정보 섹션에서 고객 ID를 복사하여 저장합니다.

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
    

추가 설치 리소스

Syslog를 수집하고 Google SecOps로 전송하도록 Bindplane 에이전트 구성

  1. 구성 파일에 액세스합니다.

    1. config.yaml 파일을 찾습니다. 일반적으로 Linux의 /etc/bindplane-agent/ 디렉터리 또는 Windows의 설치 디렉터리에 있습니다.
    2. 텍스트 편집기 (예: nano, vi, 메모장)를 사용하여 파일을 엽니다.
  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: '/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
            ingestion_labels:
                log_type: NOKIA_ROUTER
                raw_log_field: body
    
    service:
        pipelines:
            logs/source0__chronicle_w_labels-0:
                receivers:
                    - udplog
                exporters:
                    - chronicle/chronicle_w_labels
    
  3. 인프라에서 필요에 따라 포트와 IP 주소를 바꿉니다.

  4. <customer_id>를 실제 고객 ID로 바꿉니다.

  5. Google SecOps 처리 인증 파일 가져오기 섹션에서 인증 파일이 저장된 경로로 /path/to/ingestion-authentication-file.json를 업데이트합니다.

Bindplane 에이전트를 다시 시작하여 변경사항 적용

  • Linux에서 Bindplane 에이전트를 다시 시작하려면 다음 명령어를 실행합니다.

    sudo systemctl restart bindplane-agent
    
  • Windows에서 Bindplane 에이전트를 다시 시작하려면 서비스 콘솔을 사용하거나 다음 명령어를 입력하면 됩니다.

    net stop BindPlaneAgent && net start BindPlaneAgent
    

Nokia 서비스 라우터에서 Syslog 구성

  1. 구성 모드를 시작합니다.

    config# log
    
  2. Syslog 대상을 정의합니다.

    config>log# syslog 1
    
  3. Syslog 매개변수 구성:

    config>log>syslog# address <syslog-server-ip>
    config>log>syslog# port <port-number>
    config>log>syslog# facility local0
    config>log>syslog# level info
    config>log>syslog# log-prefix "Nokia-SR"
    config>log>syslog# description "Google SecOps syslog server"
    
    • <syslog-server-ip>를 Bindplane 에이전트의 IP 주소로, <port-number>를 적절한 포트 (예: UDP의 경우 514)로 바꿉니다.
  4. 로그 파일에 Syslog 대상을 적용합니다.

    config>log# log-id 1
    config>log>log-id# to syslog 1
    
  5. 로그 파일을 사용 설정합니다.

    config>log>log-id# no shutdown
    
  6. 구성을 저장합니다.

    config>log>log-id# exit
    config>log# save
    

전체 구성 예시:

```bash
config# log
config>log# syslog 1
config>log>syslog# address 192.168.1.100
config>log>syslog# port 514
config>log>syslog# facility local0
config>log>syslog# level info
config>log>syslog# log-prefix "Nokia-SR"
config>log>syslog# description "Google SecOps syslog server"
config>log>syslog# exit
config>log# log-id 1
config>log>log-id# to syslog 1
config>log>log-id# no shutdown
config>log>log-id# exit
config>log# save
```

UDM 매핑 표

로그 필드 UDM 매핑 논리
%{SYSLOGTIMESTAMP:date_time} metadata.event_timestamp 원시 로그에서 추출되고 타임스탬프로 변환됩니다.
%{IP:src_ip} principal.ip 원시 로그에서 추출됩니다.
%{HOSTNAME:host_name} principal.hostname 원시 로그에서 추출됩니다.
%{INT:sequence_id} metadata.product_log_id 원시 로그에서 추출됩니다.
%{DATA:router_name} metadata.product_name 원시 로그에서 추출됩니다.
%{DATA:application} target.application 원시 로그에서 추출됩니다.
%{WORD:severity} security_result.severity 다음 로직에 따라 원시 로그 심각도에서 매핑됩니다.
- CLEARED, INFO -> INFORMATIONAL
- MINOR -> ERROR
- WARNING -> LOW
- MAJOR -> HIGH
- CRITICAL -> CRITICAL
%{DATA:event_name} metadata.product_event_type 원시 로그에서 추출됩니다.
%{INT:event_id} additional.fields.value.string_value 원시 로그에서 추출되고 Event Id 키와 함께 additional fields 내에 배치됩니다.
%{GREEDYDATA:message1} event_name를 기반으로 다양한 필드를 추출하는 데 사용됩니다. 아래에서 특정 필드의 로직을 확인하세요.
Group %{NOTSPACE:group_id} target.group.product_object_id event_name가 BGP 이벤트와 관련된 경우 message1에서 추출됩니다.
%{WORD} %{IP:dest_ip} target.ip event_name가 BGP 이벤트와 관련된 경우 message1에서 추출됩니다.
%{GREEDYDATA:desc} security_result.description 다양한 event_name 시나리오를 위해 message1에서 추출됩니다.
SAP %{DATA:sap_id} additional.fields.value.string_value event_namesapStatusChanged인 경우 message1에서 추출되고 SAP Id 키와 함께 additional fields 내에 배치됩니다.
in service %{INT:service_id} additional.fields.value.string_value event_namesapStatusChanged인 경우 message1에서 추출되고 Service Id 키와 함께 additional fields 내에 배치됩니다.
\\(customer %{INT:customer_id}\\) additional.fields.value.string_value event_namesapStatusChanged인 경우 message1에서 추출되고 Customer Id 키와 함께 additional fields 내에 배치됩니다.
admin=%{WORD:admin_status} additional.fields.value.string_value event_namesapStatusChanged인 경우 message1에서 추출되고 Admin Status 키와 함께 additional fields 내에 배치됩니다.
oper=%{WORD:operation_status} additional.fields.value.string_value event_namesapStatusChanged인 경우 message1에서 추출되고 Operation Status 키와 함께 additional fields 내에 배치됩니다.
flags=%{WORD:flag} additional.fields.value.string_value event_namesapStatusChanged인 경우 message1에서 추출되고 Flag 키와 함께 additional fields 내에 배치됩니다.
with MI:SCI %{DATA:mi_sci} additional.fields.value.string_value event_nametmnxMkaSessionEstablished인 경우 message1에서 추출되고 MI:SCI 키와 함께 additional fields 내에 배치됩니다.
on port %{DATA:port_id} additional.fields.value.string_value event_nametmnxMkaSessionEstablished인 경우 message1에서 추출되고 Port Id 키와 함께 additional fields 내에 배치됩니다.
sub-port %{INT:sub_port_id} additional.fields.value.string_value event_nametmnxMkaSessionEstablished인 경우 message1에서 추출되고 Sub-port Id 키와 함께 additional fields 내에 배치됩니다.
CA %{INT:ca} additional.fields.value.string_value event_nametmnxMkaSessionEstablished인 경우 message1에서 추출되고 CA 키와 함께 additional fields 내에 배치됩니다.
EAPOL-destination %{MAC:dest_mac} target.mac event_nametmnxMkaSessionEstablished인 경우 message1에서 추출됩니다.
local port-id %{DATA:local_port_id} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 local_port_id 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
dest-mac-type %{NOTSPACE:mac_type} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 mac_type 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
remote system name %{HOSTNAME:dest_host} target.hostname 특정 event_name 값의 message1에서 추출되었습니다.
remote chassis-id %{DATA:dest_mac} target.mac 특정 event_name 값의 message1에서 추출되었습니다.
remote port-id %{DATA:port_id} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 port_id 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
remote-index %{INT:remote_index} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 remote_index 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
remote management address %{IP:dest_ip} target.ip 특정 event_name 값의 message1에서 추출되었습니다.
advRtr:%{HOSTNAME:dest_host}%{GREEDYDATA}, ip@:%{IP:dest_ip}/%{INT:dest_port} target.hostname, target.ip, target.port 특정 event_name 값의 message1에서 추출되었습니다.
SID:%{INT:sid} network.session_id 특정 event_name 값의 message1에서 추출되었습니다.
level:%{DATA:level} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 level 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
mtid:%{INT:mtid} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 키 mtid와 함께 target.resource.attribute.labels 내에 배치됩니다.
type:%{WORD:type} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 type 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
flags:%{WORD:flag} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 키 flag와 함께 target.resource.attribute.labels 내에 배치됩니다.
, algo:%{INT:algo} target.resource.attribute.labels.value 특정 event_name 값의 message1에서 추출되고 algo 키와 함께 target.resource.attribute.labels 내에 배치됩니다.
Description:%{GREEDYDATA:desc}. security_result.description event_namemafEntryMatch인 경우 message1에서 추출됩니다.
SrcIP principal.ip event_namemafEntryMatch인 경우 kv_data 필드에서 추출됩니다.
SrcIP: %{INT:src_port} principal.port event_namemafEntryMatch인 경우 kv_data 필드에서 추출됩니다.
DstIP target.ip event_namemafEntryMatch인 경우 kv_data 필드에서 추출됩니다.
DstIP: %{INT:dest_port} target.port event_namemafEntryMatch인 경우 kv_data 필드에서 추출됩니다.
Protocol network.ip_protocol event_namemafEntryMatch인 경우 kv_data 필드에서 추출됩니다.
해당 사항 없음 metadata.vendor_name NOKIA_ROUTER로 설정합니다.
해당 사항 없음 metadata.event_type 추출된 필드의 존재 여부와 조합에 따라 결정됩니다.
- src_ip, dest_ip, network가 있는 경우 -> NETWORK_CONNECTION
- principal가 있는 경우 -> STATUS_UPDATE
- 그 외의 경우 -> GENERIC_EVENT
%{GREEDYDATA:description} metadata.description event_nametmnxMkaSessionEstablished인 경우 message1에서 추출됩니다.

변경사항

2023-11-27

  • 파서를 새로 만들었습니다.

도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가의 답변을 받아 보세요.