ExtraHop Reveal(x) DNS 로그 수집

파서 버전: 1.0

다음에서 지원:

이 문서에서는 Bindplane을 사용하여 ExtraHop Reveal(x) DNS 로그를 Google Security Operations로 수집하는 방법을 설명합니다. ExtraHop Reveal(x)는 네트워크 전반의 모든 DNS 트랜잭션을 캡처하고 분석하는 수동 DNS 모니터링 기능을 제공합니다. 조직은 Reveal(x)를 사용하여 DNS 트래픽의 심층 패킷 검사를 통해 터널링, 도메인 생성 알고리즘 (DGA), 데이터 무단 반출과 같은 DNS 기반 위협을 감지합니다.

시작하기 전에

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

  • Google SecOps 인스턴스
  • Windows Server 2016 이상 또는 systemd가 있는 Linux 호스트
  • 프록시 뒤에서 실행하는 경우 Bindplane 에이전트 요구사항에 따라 방화벽 포트가 열려 있는지 확인합니다.
  • ExtraHop Reveal(x) 관리 페이지에 대한 권한이 있는 액세스 권한
  • 구성된 syslog 포트에서 ExtraHop 센서와 Bindplane 에이전트 호스트 간의 네트워크 연결

Google SecOps 수집 인증 파일 가져오기

  1. Google SecOps 콘솔 에 로그인합니다.
  2. SIEM 설정 > 수집 에이전트 로 이동합니다.
  3. 데이터 수집 인증 파일 을 다운로드합니다.
  4. 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](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](https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh))" install_unix.sh
    

추가 설치 리소스

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

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

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

    • Linux: sudo systemctl status observiq-otel-collector
    • Windows: C:\Program Files\observIQ OpenTelemetry Collector\config.yaml
  2. 다음과 같이 config.yaml 파일을 수정합니다.

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/extrahop_dns:
        compression: gzip
        creds_file_path: '/path/to/ingestion-authentication-file.json'
        customer_id: '<CUSTOMER_ID>'
        endpoint: '<ENDPOINT>'
        log_type: 'EXTRAHOP_DNS'
        raw_log_field: body
        ingestion_labels:
    
    service:
      pipelines:
        logs/extrahop_dns_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/extrahop_dns
    
  • <CUSTOMER_ID> 를 실제 고객 ID로 바꿉니다.
  • 인증 파일이 저장된 경로로 /path/to/ingestion-authentication-file.json 을 업데이트합니다.
  • <ENDPOINT>를 리전 엔드포인트로 바꿉니다.
    • 미국: malachiteingestion-pa.googleapis.com
    • 유럽: europe-malachiteingestion-pa.googleapis.com
    • 아시아: asia-southeast1-malachiteingestion-pa.googleapis.com

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

  • Linux에서 Bindplane 에이전트를 다시 시작하려면 sudo systemctl restart observiq-otel-collector를 실행합니다.
  • Windows에서 Bindplane 에이전트를 다시 시작하려면 서비스 콘솔을 사용하거나 cmd net stop observiq-otel-collector && net start observiq-otel-collector를 실행합니다.

DNS syslog 전달을 위한 ExtraHop Reveal(x) 공개 데이터 스트림 구성

syslog 공개 데이터 스트림 대상 추가

  1. ExtraHop 관리 페이지에 로그인합니다.
  2. 시스템 구성 섹션에서 공개 데이터 스트림 을 클릭합니다.
  3. 대상 추가 를 클릭하고 Syslog 를 선택합니다.
  4. 다음 구성 세부정보를 제공합니다.
    • 이름: 설명이 포함된 이름 (예: Google SecOps-DNS)을 입력합니다.
    • 호스트: Bindplane 에이전트 호스트의 IP 주소를 입력합니다.
    • 포트: 514.
    • 프로토콜: UDP.
  5. 테스트 를 클릭하여 연결을 확인한 후 저장 을 클릭합니다.

DNS 트랜잭션을 내보내는 트리거 만들기

  1. 시스템 설정 아이콘을 클릭하고 트리거 를 선택합니다.
  2. 만들기 를 클릭합니다.
  3. 다음 구성 세부정보를 제공합니다.
    • 이름: DNS Syslog Export.
    • 이벤트: DNS_REQUESTDNS_RESPONSE 를 선택합니다.
  4. 편집기 창에서 다음 트리거 스크립트를 입력합니다.

    var obj = {
        eh_event: "dns",
        client_ip: Flow.client.ipaddr.toString(),
        server_ip: Flow.server.ipaddr.toString(),
        client_port: Flow.client.port,
        server_port: Flow.server.port,
        qname: DNS.qname,
        qtype: DNS.qtype
    };
    
    if (event === "DNS_RESPONSE") {
        obj.dns_type = "response";
        obj.rcode = DNS.errorNum;
        obj.answers = JSON.stringify(DNS.answers);
    } else {
        obj.dns_type = "request";
        obj.opcode = DNS.opcode;
    }
    
    Remote.Syslog("Chronicle-DNS").info(JSON.stringify(obj));
    
  5. 저장 을 클릭합니다.

기기에 트리거 할당

  1. 생성한 트리거를 엽니다.
  2. 할당 섹션에서 할당 을 클릭합니다.
  3. 관련 기기 또는 기기 그룹을 선택하고 할당 을 클릭합니다.

UDM 매핑 표

로그 필드 UDM 매핑 논리
answers network.dns.answers 원시 필드에서 파싱됨
dst target.ip 원시 매핑
dpt target.port 원시 매핑
host principal.hostname 원시 매핑
proto network.ip_protocol 원시 매핑
qname network.dns.questions.name 원시 매핑
qtype network.dns.questions.type 원시 매핑
rcode network.dns.response_code 원시 매핑
src principal.ip 원시 매핑
spt principal.port 원시 매핑
ttl network.dns.answers.ttl 원시 매핑
해당 사항 없음 metadata.log_type EXTRAHOP_DNS로 설정됨
해당 사항 없음 metadata.product_name Reveal(x) DNS로 설정됨
해당 사항 없음 metadata.vendor_name ExtraHop으로 설정됨

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