Cisco eStreamer 로그 수집

다음에서 지원:

이 문서에서는 Bindplane을 사용하여 Cisco eStreamer 로그를 Google Security Operations에 수집하는 방법을 설명합니다. 파서는 grok을 사용하여 초기 메시지를 파싱하고 kv를 사용하여 키-값 데이터를 처리하여 키-값 형식으로 SYSLOG 메시지에서 필드를 추출합니다. 그런 다음 추출된 필드를 통합 데이터 모델 (UDM)에 매핑하여 다양한 데이터 유형을 처리하고 주 구성원 및 타겟 정보의 존재 여부에 따라 이벤트 유형과 같은 메타데이터로 이벤트를 보강합니다.

시작하기 전에

다음 기본 요건이 충족되었는지 확인합니다.

  • Google SecOps 인스턴스
  • Windows Server 2012 SP2 이상 또는 systemd가 설치된 Linux 호스트
  • 프록시 뒤에서 실행하는 경우 Bindplane 에이전트 요구사항에 따라 방화벽 포트가 열려 있는지 확인합니다.
  • Cisco Firepower Management Center (FMC)에 대한 권한이 있는 액세스
  • eNcore CLI 클라이언트를 실행할 Linux 시스템

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
    

추가 설치 리소스

추가 설치 옵션은 설치 가이드를 참고하세요.

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

  1. 구성 파일에 액세스합니다.
    • config.yaml 파일을 찾습니다. 일반적으로 Linux의 경우 /opt/observiq-otel-collector/ 디렉터리, Windows의 경우 `C:\Program Files\observIQ OpenTelemetry Collector` 디렉터리에 있습니다.
    • 텍스트 편집기 (예: 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_file_path: '/path/to/ingestion-authentication-file.json'
        # Replace with your actual customer ID from Step 2
        customer_id: YOUR_CUSTOMER_ID
        endpoint: malachiteingestion-pa.googleapis.com
        # Add optional ingestion labels for better organization
        log_type: 'CISCO_ESTREAMER'
        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로 바꿉니다.
    • Google SecOps 수집 인증 파일 가져오기 섹션에서 인증 파일이 저장된 경로로 /path/to/ingestion-authentication-file.json를 업데이트합니다.

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

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

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

    net stop BindPlaneAgent && net start BindPlaneAgent
    

Cisco eStreamer에서 Syslog 전달 구성

Firepower Management Center에서 eStreamer 구성

  1. Firepower Management Center에 로그인합니다.
  2. 시스템 > 통합 > eStreamer로 이동합니다.
  3. eStreamer를 클릭하여 eStreamer 이벤트 구성에 액세스합니다.
  4. 캡처할 이벤트 유형 옆에 있는 체크박스를 선택합니다.
    • 침입 이벤트: 침입 감지 이벤트
    • 침입 이벤트 패킷 데이터: 침입 이벤트와 연결된 패킷 캡처
    • 연결 이벤트: 네트워크 연결 데이터
    • 보안 인텔리전스 이벤트: 위협 인텔리전스 데이터
    • 파일 이벤트: 파일 분석 이벤트
    • 멀웨어 이벤트: 멀웨어 감지 이벤트
  5. 저장을 클릭합니다.

eStreamer 클라이언트 만들기

  1. eStreamer 페이지에서 클라이언트 만들기를 클릭합니다.
  2. 다음 구성 세부정보를 제공합니다.
    • 호스트 이름: eNcore 클라이언트가 실행될 Linux 시스템의 IP 주소를 입력합니다.
    • 비밀번호: 인증서 파일을 암호화할 비밀번호를 입력합니다.
  3. 저장을 클릭합니다.
  4. 생성된 PKCS12 인증서 파일을 다운로드하여 eNcore 클라이언트 시스템으로 전송합니다.

eNcore CLI 클라이언트 설치 및 구성

  1. Linux 시스템에서 Cisco로부터 eStreamer eNcore CLI 클라이언트를 다운로드합니다.
  2. eNcore 패키지를 추출합니다.

    tar -xzf eStreamer-eNcore-*.tar.gz
    cd eStreamer-eNcore-*
    
  3. 설정 스크립트를 실행합니다.

    ./encore.sh setup
    
  4. 메시지가 표시되면 키-값 쌍의 출력 형식 (SIEM 시스템과 호환)을 선택합니다.

  5. FMC IP 주소와 PKCS12 인증서 비밀번호를 입력합니다.

  6. syslog 메시지를 Bindplane 에이전트에 출력하도록 estreamer.conf 파일을 구성합니다.

    • 텍스트 편집기에서 estreamer.conf 파일을 엽니다.
    • outputters 섹션을 찾아 Bindplane 에이전트에 syslog를 보내도록 구성합니다.

      {
        "handler": {
          "outputters": [
            {
              "name": "syslog",
              "adapter": "kvpair",
              "enabled": true,
              "stream": {
                "uri": "udp://BINDPLANE_AGENT_IP:514"
              }
            }
          ]
        }
      }
      
  7. BINDPLANE_AGENT_IP를 Bindplane 에이전트의 IP 주소로 바꿉니다.

eNcore 클라이언트 시작

  1. 포그라운드 모드에서 연결을 테스트합니다.

    ./encore.sh foreground
    
  2. 확인이 완료되면 eNcore를 백그라운드 서비스로 시작합니다.

    ./encore.sh start
    

UDM 매핑 테이블

로그 필드 UDM 매핑 논리
act security_result.action_details 원시 로그의 act 값이 이 필드에 할당됩니다.
act security_result.action act 값이 'Allow' (대소문자 구분 안 함)이면 'ALLOW' 값이 이 필드에 할당됩니다.
app network.http.user_agent 원시 로그의 app (파서에서 requestClientApplication로 이름이 바뀜) 값이 이 필드에 할당됩니다.
blockLength security_result.detection_fields[].key 'blocklength' 문자열이 이 필드에 할당됩니다.
blockLength security_result.detection_fields[].value 원시 로그의 blockLength 값이 문자열로 변환되어 이 필드에 할당됩니다.
blockType security_result.detection_fields[].key 'blockType' 문자열이 이 필드에 할당됩니다.
blockType security_result.detection_fields[].value 원시 로그의 blockType 값이 문자열로 변환되어 이 필드에 할당됩니다.
bytesIn network.received_bytes 원시 로그의 bytesIn 값이 이 필드에 할당되고 부호 없는 정수로 변환됩니다.
bytesOut network.sent_bytes 원시 로그의 bytesOut 값이 이 필드에 할당되고 부호 없는 정수로 변환됩니다.
cat security_result.category_details 원시 로그의 cat 값이 이 필드에 할당됩니다.
cs1 security_result.detection_fields[].value 원시 로그의 cs1 값이 이 필드에 할당됩니다.
cs1Label security_result.detection_fields[].key 원시 로그의 cs1Label 값이 이 필드에 할당됩니다.
cs2 security_result.detection_fields[].value 원시 로그의 cs2 값이 이 필드에 할당됩니다.
cs2Label security_result.detection_fields[].key 원시 로그의 cs2Label 값이 이 필드에 할당됩니다.
cs3 security_result.detection_fields[].value 원시 로그의 cs3 값이 이 필드에 할당됩니다.
cs3Label security_result.detection_fields[].key 원시 로그의 cs3Label 값이 이 필드에 할당됩니다.
cs4 security_result.detection_fields[].value 원시 로그의 cs4 값이 이 필드에 할당됩니다.
cs4Label security_result.detection_fields[].key 원시 로그의 cs4Label 값이 이 필드에 할당됩니다.
cs5 security_result.detection_fields[].value 원시 로그의 cs5 값이 이 필드에 할당됩니다.
cs5Label security_result.detection_fields[].key 원시 로그의 cs5Label 값이 이 필드에 할당됩니다.
cs6 security_result.detection_fields[].value 원시 로그의 cs6 값이 이 필드에 할당됩니다.
cs6 security_result.rule_id 원시 로그의 cs6 값이 이 필드에 할당됩니다.
cs6Label security_result.detection_fields[].key 원시 로그의 cs6Label 값이 이 필드에 할당됩니다.
data security_result.detection_fields[].value suser 필드가 JSON인 경우 원시 로그의 suser JSON 객체에서 data 값이 이 필드에 할당됩니다.
deviceInboundInterface additional.fields[].key 'deviceInboundInterface' 문자열이 이 필드에 할당됩니다.
deviceInboundInterface additional.fields[].value.string_value 원시 로그의 deviceInboundInterface 값이 이 필드에 할당됩니다.
deviceOutboundInterface additional.fields[].key 'deviceOutboundInterface' 문자열이 이 필드에 할당됩니다.
deviceOutboundInterface additional.fields[].value.string_value 원시 로그의 deviceOutboundInterface 값이 이 필드에 할당됩니다.
dpt target.port 원시 로그의 dpt 값이 이 필드에 할당되고 정수로 변환됩니다.
dst target.asset.ip 원시 로그의 dst 값이 이 필드에 할당됩니다.
dst target.ip 원시 로그의 dst 값이 이 필드에 할당됩니다.
dvcpid security_result.about.process.pid 원시 로그의 dvcpid 값이 이 필드에 할당됩니다.
dvchost target.asset.hostname 원시 로그의 dvchost 값이 이 필드에 할당됩니다.
dvchost target.hostname 원시 로그의 dvchost 값이 이 필드에 할당됩니다.
hostname principal.asset.hostname 원시 로그의 hostname 값이 이 필드에 할당됩니다.
hostname principal.hostname 원시 로그의 hostname 값이 이 필드에 할당됩니다. principaltarget 정보의 존재 여부에 따라 파서 로직에 의해 결정됩니다. 두 값이 모두 있으면 값은 'NETWORK_CONNECTION'입니다. principal만 있는 경우 값은 'STATUS_UPDATE'입니다. target만 있는 경우 값은 'USER_UNCATEGORIZED'입니다. 그렇지 않으면 값은 'GENERIC_EVENT'입니다.
product_event_type metadata.product_event_type 원시 로그의 product_event_type 값이 이 필드에 할당됩니다.
product_name metadata.product_name 원시 로그의 product_name 값이 이 필드에 할당됩니다.
proto network.ip_protocol 원시 로그의 proto 값이 정수로 변환된 후 해당 IP 프로토콜 이름 (예: 6은 TCP가 되고 17은 UDP가 됩니다. 'parse_ip_protocol.include'에서 포함된 조회를 사용합니다.
severity security_result.severity_details 원시 로그의 severity 값이 이 필드에 할당됩니다.
spt principal.port 원시 로그의 spt 값이 이 필드에 할당되고 정수로 변환됩니다.
src principal.asset.ip 원시 로그의 src 값이 이 필드에 할당됩니다.
src principal.ip 원시 로그의 src 값이 이 필드에 할당됩니다.
suser security_result.detection_fields[].value 원시 로그의 suser 값이 JSON 객체가 아닌 경우 이 필드에 할당됩니다. JSON인 경우 suser 객체의 data 필드가 사용됩니다.
suser security_result.detection_fields[].key 'suser' 문자열이 이 필드에 할당됩니다.
ts metadata.event_timestamp 원시 로그의 ts 값이 타임스탬프로 파싱되어 이 필드에 할당됩니다. 성공적으로 파싱될 때까지 여러 타임스탬프 형식이 시도됩니다.
vendor_name metadata.vendor_name 원시 로그의 vendor_name 값이 이 필드에 할당됩니다.
version metadata.product_version 원시 로그의 version 값이 이 필드에 할당됩니다.

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