F5 VPN 로그 수집

다음에서 지원:

이 문서에서는 Bindplane을 사용하여 F5 VPN 로그를 Google Security Operations에 수집하는 방법을 설명합니다. 파서는 로그에서 보안 관련 정보를 추출합니다. 정규식을 사용하여 타임스탬프, IP 주소, 호스트 이름과 같은 주요 필드를 식별하고 파싱한 다음 이 데이터를 분석을 위해 Google SecOps 통합 데이터 모델 (UDM) 형식으로 구조화합니다.

시작하기 전에

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

  • Google SecOps 인스턴스
  • Windows 2016 이상 또는 systemd가 설치된 Linux 호스트
  • 프록시 뒤에서 실행하는 경우 방화벽 포트가 열려 있음
  • F5 BIG-IP APM (액세스 정책 관리자)에 대한 권한 액세스

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에서는 /etc/bindplane-agent/ 디렉터리에 있고 Windows에서는 설치 디렉터리에 있습니다.
    • 텍스트 편집기 (예: 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: <customer_id>
            endpoint: malachiteingestion-pa.googleapis.com
            # Add optional ingestion labels for better organization
            log_type: 'F5_VPN'
            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 에이전트를 다시 시작하여 변경사항 적용

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

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

    net stop BindPlaneAgent && net start BindPlaneAgent
    

F5 BIG-IP APM v11.x 이상용 Syslog 구성

  1. CLI 또는 SSH를 사용하여 F5 BIG-IP APM에 로그인합니다.
  2. 다음 명령어를 입력하여 syslog 서버를 추가합니다.

    tmsh syslog remote server {<Name> {host <bindplane-ip> remote-port <bindplane-port>}}
    

    다음 매개변수를 바꿔야 합니다.

    • <Name>: F5 BIG-IP APM 소스의 이름을 입력합니다 (예: BIGIP_APM).
    • <bindplane-ip>: Bindplane 에이전트 IP 주소를 입력합니다.
    • <bindplane-port>: Bindplane 에이전트 포트 번호를 입력합니다.
  3. 다음 명령어를 입력하여 변경사항을 저장합니다.

    tmsh save sys config partitions all
    

UDM 매핑 테이블

로그 필드 UDM 매핑 논리
cmd_data principal.process.command_line 값은 msg 필드에서 추출됩니다.
errdefs_msgno additional.fields.errdefs_msgno.string_value 값은 msg 필드에서 추출됩니다.
event_time metadata.event_timestamp 값이 파싱되고 타임스탬프로 변환됩니다.
호스트 이름 principal.hostname, observer.hostname, principal.asset.hostname, observer.asset.hostname, hostip 이 값은 메시지 필드에서 추출되며 UDM의 호스트 이름 필드를 채우는 데 사용됩니다. hostip 필드를 채우는 데도 사용됩니다.
msg security_result.description 이 값은 메시지 필드에서 추출되며 security_result 객체의 설명 필드를 채우는 데 사용됩니다.
prin_ip principal.ip, principal.asset.ip 이 값은 메시지 필드에서 추출되며 UDM의 IP 주소 필드를 채우는 데 사용됩니다.
additional.fields.Canonical_Info.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.IDP.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.Plugin_Support.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.SMB Stage.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.SP.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.Timezone.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.Tunnel Type.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.UI_Mode.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.Version.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.from_rule_item.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.policy_result.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.ppp_id.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.resource.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.rule.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.server_vip_ip.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.server_vip_name.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.to_rule_item.string_value 값은 로그 메시지에서 파생됩니다.
additional.fields.tunnel_resource.string_value 값은 로그 메시지에서 파생됩니다.
metadata.description 값은 로그 메시지에서 파생됩니다.
metadata.event_type 값은 일부 이벤트의 파서 코드에 하드 코딩되어 있으며 다른 이벤트의 로그 메시지에서 파생됩니다.
metadata.log_type 값이 배치 유형으로 설정됩니다.
metadata.product_event_type 값은 로그 메시지에서 파생됩니다.
metadata.product_name 값이 파서 코드에 하드코딩되어 있습니다.
metadata.vendor_name 값이 파서 코드에 하드코딩되어 있습니다.
network.application_protocol 값은 로그 메시지에서 파생됩니다.
network.direction 값은 로그 메시지에서 파생됩니다.
network.http.method 값은 로그 메시지에서 파생됩니다.
network.http.parsed_user_agent 이 값은 network.http.user_agent 필드에서 파생됩니다.
network.http.referral_url 값은 로그 메시지에서 파생됩니다.
network.http.response_code 값은 로그 메시지에서 파생됩니다.
network.http.user_agent 값은 로그 메시지에서 파생됩니다.
network.ip_protocol 값은 로그 메시지에서 파생됩니다.
network.received_bytes 값은 로그 메시지에서 파생됩니다.
network.sent_bytes 값은 로그 메시지에서 파생됩니다.
network.session_id 값은 로그 메시지에서 파생됩니다.
network.tls.cipher 값은 로그 메시지에서 파생됩니다.
network.tls.version 값은 로그 메시지에서 파생됩니다.
observer.asset.hostname 값이 호스트 이름 필드로 설정됩니다.
observer.asset.ip 값이 hostip 필드로 설정됩니다.
observer.hostname 값이 호스트 이름 필드로 설정됩니다.
observer.ip 값이 hostip 필드로 설정됩니다.
principal.application 값은 로그 메시지에서 파생됩니다.
principal.asset.hostname 값이 호스트 이름 필드로 설정됩니다.
principal.asset.ip 값이 있는 경우 hostip 필드 또는 prin_ip 필드로 설정됩니다.
principal.asset.product_object_id 값은 로그 메시지에서 파생됩니다.
principal.hostname 값이 호스트 이름 필드로 설정됩니다.
principal.ip 값이 있는 경우 hostip 필드 또는 prin_ip 필드로 설정됩니다.
principal.location.country_or_region 값은 로그 메시지에서 파생됩니다.
principal.platform 값은 로그 메시지에서 파생됩니다.
principal.port 값은 로그 메시지에서 파생됩니다.
principal.process.command_line 값은 로그 메시지에서 파생됩니다.
principal.process.pid 값은 로그 메시지에서 파생됩니다.
principal.resource.name 값은 로그 메시지에서 파생됩니다.
principal.resource.type 값은 일부 이벤트의 파서 코드에 하드 코딩되어 있으며 다른 이벤트의 로그 메시지에서 파생됩니다.
principal.user.email_addresses 값은 로그 메시지에서 파생됩니다.
principal.user.userid 값은 로그 메시지에서 파생됩니다.
security_result.action 값은 로그 메시지에서 파생됩니다.
security_result.description 값은 로그 메시지에서 파생됩니다.
security_result.rule_name 값은 로그 메시지에서 파생됩니다.
security_result.severity 값은 로그 메시지에서 파생됩니다.
security_result.severity_details 값은 로그 메시지에서 파생됩니다.
security_result.summary 값은 로그 메시지에서 파생됩니다.
src.ip 값은 로그 메시지에서 파생됩니다.
src.location.country_or_region 값은 로그 메시지에서 파생됩니다.
src.port 값은 로그 메시지에서 파생됩니다.
target.asset.hostname 값은 로그 메시지에서 파생됩니다.
target.asset.ip 값은 로그 메시지에서 파생됩니다.
target.hostname 값은 로그 메시지에서 파생됩니다.
target.ip 값은 로그 메시지에서 파생됩니다.
target.port 값은 로그 메시지에서 파생됩니다.
target.process.command_line 값은 로그 메시지에서 파생됩니다.
target.process.pid 값은 로그 메시지에서 파생됩니다.
target.resource.id 값은 로그 메시지에서 파생됩니다.
target.url 값은 로그 메시지에서 파생됩니다.
target.user.userid 값은 로그 메시지에서 파생됩니다.

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