NetApp ONTAP 로그 수집

다음에서 지원:

이 문서에서는 Syslog를 통해 NetApp ONTAP 로그를 수집하는 방법을 설명합니다. 파서는 정규 표현식을 사용하여 syslog 메시지에서 필드를 추출합니다. 그런 다음 추출된 필드를 해당하는 UDM (통합 데이터 모델) 필드에 매핑하여 원시 로그 데이터를 보안 분석을 위한 구조화된 형식으로 효과적으로 변환합니다.

시작하기 전에

  • Google Security Operations 인스턴스가 있는지 확인합니다.
  • Windows 2016 이상 또는 systemd를 사용하는 Linux 호스트를 사용하고 있는지 확인합니다.
  • 프록시 뒤에서 실행하는 경우 방화벽 포트가 열려 있는지 확인합니다.
  • NetApp ONTAP 클러스터에 대한 관리 액세스 권한이 있는지 확인합니다.
  • ONTAP이 Syslog 서버 (Bindplane)와 통신할 수 있는지 확인합니다.

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. 구성 파일에 액세스합니다.

    • config.yaml 파일을 찾습니다. 일반적으로 Linux의 /etc/bindplane-agent/ 디렉터리 또는 Windows의 설치 디렉터리에 있습니다.
    • 텍스트 편집기 (예: nano, vi, 메모장)를 사용하여 파일을 엽니다.
  2. 다음과 같이 config.yaml 파일을 수정합니다.

    receivers:
        udplog:
            # Replace the below port <54525> and IP <0.0.0.0> with your specific values
            listen_address: "0.0.0.0:54525" 
    
    exporters:
        chronicle/chronicle_w_labels:
            compression: gzip
            # Adjust the creds location below according the placement of the credentials file you downloaded
            creds: '{ json file for creds }'
            # Replace <customer_id> below with your actual ID that you copied
            customer_id: <customer_id>
            endpoint: malachiteingestion-pa.googleapis.com
            # You can apply ingestion labels below as preferred
            ingestion_labels:
            log_type: SYSLOG
            namespace: netapp_ontap
            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. /path/to/ingestion-authentication-file.jsonGoogle SecOps 처리 인증 파일 가져오기 섹션에서 인증 파일이 저장된 경로로 업데이트합니다.

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

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

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

    net stop BindPlaneAgent && net start BindPlaneAgent
    

ONTAP에서 Syslog 대상 구성

  1. SSH를 사용하여 ONTAP 클러스터에 액세스하고 <ontap-cluster-ip>를 ONTAP 클러스터의 관리 IP로 바꿉니다.

    ssh admin@<ontap-cluster-ip>
    
  2. 기존 이벤트 필터 및 알림을 확인합니다.

    event filter show
    event notification show
    
  3. 시스템로그 대상을 만들고 <syslog-server-ip><syslog-server-port>를 시스템로그 서버 세부정보 (Bindplane)로 바꿉니다.

    event notification destination create -name syslog-ems -syslog <syslog-server-ip> -syslog-port <syslog-server-port> -syslog-transport udp-unencrypted
    
  4. -syslog-transport의 기타 옵션:

    • udp-unencrypted (기본값)
    • tcp-unencrypted
    • tcp-encrypted (TLS용)
  5. Syslog 대상확인합니다.

    event notification destination show
    

기존 이벤트 필터 구성

  • 기본 필터를 Syslog 대상에 연결합니다.

    event notification create -filter-name no-info-debug-events -destinations syslog-ems
    event notification create -filter-name default-trap-events -destinations syslog-ems
    

선택사항: 맞춤 필터 만들기 및 구성

  1. 인증 이벤트 필터 (로그인/로그아웃): 설명이 '로그인' 또는 '로그아웃'과 일치하는 로그를 캡처합니다.

    event filter create -filter-name auth_events
    event filter rule add -filter-name auth_events -type include -message-name *login* -severity info
    event filter rule add -filter-name auth_events -type include -message-name *logout* -severity info
    
  2. 보안 감지 필드 필터: nmsdk_language, nmsdk_platform, nmsdk_version, netapp_version과 관련된 로그를 캡처합니다.

    event filter create -filter-name security_fields
    event filter rule add -filter-name security_fields -type include -message-name *nmsdk_language* -severity info
    event filter rule add -filter-name security_fields -type include -message-name *nmsdk_platform* -severity info
    event filter rule add -filter-name security_fields -type include -message-name *nmsdk_version* -severity info
    event filter rule add -filter-name security_fields -type include -message-name *netapp_version* -severity info
    
  3. 심각도 기반 로그 필터: 심각도가 정보인 로그를 캡처합니다.

    event filter create -filter-name severity_info
    event filter rule add -filter-name severity_info -type include -message-name * -severity info
    
  4. 네트워크 활동 필터: src_ip 및 src_port가 있는 로그를 캡처합니다.

    event filter create -filter-name network_activity
    event filter rule add -filter-name network_activity -type include -message-name *src_ip* -severity info
    event filter rule add -filter-name network_activity -type include -message-name *src_port* -severity info
    
  5. URL 타겟 로그 필터: URL 정보가 포함된 로그를 캡처합니다.

    event filter create -filter-name url_target
    event filter rule add -filter-name url_target -type include -message-name *url* -severity info
    
  6. Syslog 대상에 각 필터를 적용합니다.

    event notification create -filter-name auth_events -destinations syslog-ems
    event notification create -filter-name security_fields -destinations syslog-ems
    event notification create -filter-name severity_info -destinations syslog-ems
    event notification create -filter-name network_activity -destinations syslog-ems
    event notification create -filter-name url_target -destinations syslog-ems
    
  7. 알림 확인:

    event notification show
    

UDM 매핑 표

로그 필드 UDM 매핑 논리
코드 매핑되지 않음
description metadata.description Grok 패턴을 사용하여 로그 메시지에서 추출됩니다. 설명이 '로그아웃' 또는 '로그인'인 경우에만 표시됩니다.
intermediary_host intermediary.hostname Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
nmsdk_language security_result.detection_fields.value Grok 패턴을 사용하여 로그 메시지에서 추출됩니다. 이 값은 'key' = 'nmsdk_language'로 detection_fields 객체에 'value'로 추가됩니다.
nmsdk_platform security_result.detection_fields.value Grok 패턴을 사용하여 로그 메시지에서 추출됩니다. 이 값은 'key' = 'nmsdk_platform'으로 detection_fields 객체에 'value'로 추가됩니다.
nmsdk_version security_result.detection_fields.value Grok 패턴을 사용하여 로그 메시지에서 추출됩니다. 이 값은 'key' = 'nmsdk_version'으로 detection_fields 객체에 'value'로 추가됩니다.
netapp_version security_result.detection_fields.value Grok 패턴을 사용하여 로그 메시지에서 추출됩니다. 이 값은 'key' = 'netapp_version'으로 detection_fields 객체에 'value'로 추가됩니다.
product_event_type metadata.product_event_type Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
security_result.summary security_result.summary Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
줄이는 것을 security_result.severity 심각도가 '정보'인 경우 'INFORMATIONAL'로 설정합니다(대소문자 구분 안 함).
src_ip principal.ip Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
src_port principal.port Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
상태 security_result.summary Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
ts metadata.event_timestamp.seconds grok 패턴을 사용하여 로그 메시지에서 추출하고 타임스탬프로 변환했습니다.
url target.url Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
사용자 target.user.userid Grok 패턴을 사용하여 로그 메시지에서 추출됩니다.
extensions.auth.type 설명이 '로그아웃' 또는 '로그인'인 경우 'AUTHTYPE_UNSPECIFIED'로 설정합니다.
metadata.event_type 설명이 'Logging in'인 경우 'USER_LOGIN'으로 설정합니다.
metadata.event_type 설명이 '로그아웃 중'인 경우 'USER_LOGOUT'으로 설정합니다.
metadata.event_type 설명이 '로그인 중' 또는 '로그아웃 중'이 아닌 경우 'SCAN_UNCATEGORIZED'로 설정합니다.
metadata.log_type 'NETAPP_ONTAP'으로 설정합니다.
metadata.product_name 'NETAPP_ONTAP'으로 설정합니다.
metadata.vendor_name 'NETAPP_ONTAP'으로 설정합니다.
target.platform nmsdk_platform에 'windows'가 포함된 경우 'WINDOWS'로 설정합니다(대소문자 구분 안 함).

변경사항

2023-04-03

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

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