Alcatel 스위치 로그 수집

다음에서 지원:

이 문서에서는 Bindplane 에이전트를 사용하여 Alcatel 스위치 로그를 Google Security Operations로 처리하는 방법을 설명합니다. 파서는 다양한 로그 형식에 따라 일련의 grok 패턴을 사용하여 필드를 추출합니다. 그런 다음 추출된 필드를 통합 데이터 모델 (UDM)의 해당 필드에 매핑하고 공급업체 및 이벤트 유형과 같은 메타데이터로 데이터를 보강합니다.

시작하기 전에

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

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: ALCATEL_SWITCH
                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
    

Alcatel 스위치 Syslog 내보내기 구성

  1. SSH 또는 콘솔 케이블을 사용하여 스위치에 연결합니다.
  2. 관리자 사용자 인증 정보로 로그인합니다.
  3. 전역 구성 모드를 시작합니다.

    enable
    configure terminal
    
  4. Bindplane (syslog) 서버 IP 주소를 설정합니다.

    swlog output socket <syslog-server-ip>
    
    • <syslog-server-ip>를 Bindplane 에이전트 IP 주소로 바꿉니다.
  5. syslog 서버에 로깅을 사용 설정합니다.

    swlog remote enable
    
  6. 로깅 수준을 구성합니다.

    swlog console level info
    
  7. 명령어 로깅을 사용 설정합니다.

    command-log enable
    
  8. 시작 구성의 변경사항을 저장합니다.

    write memory
    

UDM 매핑 표

로그 필드 UDM 매핑 논리
1.1.1.1 principal.ip
principal.asset.ip
로그 메시지에서 추출했습니다.
1.1.1.2 target.ip
target.asset.ip
로그 메시지에서 추출했습니다.
1.1.2.7 target.ip
target.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.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Dec 8 04:21:22 metadata.event_timestamp.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Dec 9 20:08:29 metadata.event_timestamp.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Dec 9 20:51:34 metadata.event_timestamp.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Dec 11 10:18:30 metadata.event_timestamp.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Dec 17 02:14:22 metadata.event_timestamp.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Dec 19 10:27:33 metadata.event_timestamp.seconds
metadata.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.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Feb 16 11:08:45 metadata.event_timestamp.seconds
metadata.event_timestamp.nanos
ts 필드에서 파싱됩니다.
Feb 16 11:08:49 metadata.event_timestamp.seconds
metadata.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.hostname
principal.asset.hostname
principal_ip가 IP 주소가 아닌 경우 로그 메시지에서 추출됩니다.
IP-HELPER(22) additional.fields.value.string_value 로그 메시지에서 추출되고 id_protocol로 매핑됩니다.
Jan 16 02:14:13 metadata.event_timestamp.seconds
metadata.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.hostname
principal.asset.hostname
principal_ip가 IP 주소가 아닌 경우 로그 메시지에서 추출됩니다.
result: SUCCESS security_result.detection_fields.value 로그 메시지에서 추출되고 result로 매핑됩니다.
SES CMD info(5) security_result.summary 추출된 sec_summary 필드의 일부입니다.
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.hostname
target.asset.hostname
로그 메시지에서 추출했습니다.
trafficType=2, principal.resource.attribute.labels.value 로그 메시지에서 추출되고 trafficType로 매핑됩니다.
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_protocolssh와 일치하면 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_severityinfo와 일치하면 INFORMATIONAL로 설정합니다 (대소문자 구분 안 함).

변경사항

2024-03-11

개선사항:

  • 새 형식의 syslog 로그를 파싱하기 위한 새로운 Grok 패턴이 추가되었습니다.
  • severitysecurity_result.severitysecurity_result.detection_fields에 매핑했습니다.
  • id_protocolssh에 거의 같으면 network.application_protocolSSH로 설정합니다.
  • 새 형식의 sec_summary를 파싱하는 새로운 Grok 패턴이 추가되었습니다.

2024-01-16

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

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