VMware vCenter 로그 수집

다음에서 지원:

이 문서에서는 Bindplane을 사용하여 VMware vCenter 로그를 Google Security Operations로 수집하는 방법을 설명합니다. 파서는 원시 로그를 통합 데이터 모델 (UDM)로 변환합니다. 먼저 로그 데이터를 JSON으로 파싱하려고 시도하고, 실패하면 데이터를 syslog 메시지로 처리하여 grok 패턴을 사용하여 필드를 추출하고 UDM 스키마에 매핑합니다.

시작하기 전에

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

  • Google SecOps 인스턴스
  • Windows 2016 이상 또는 systemd가 설치된 Linux 호스트
  • 프록시 뒤에서 실행하는 경우 방화벽 포트가 열려 있는지 확인
  • VMware vCenter에 대한 액세스 권한

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: 'VMWARE_VCENTER'
            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
    

VMware vCenter용 Syslog 구성

  1. vCenter Server 관리 웹 UI에 로그인합니다.
  2. Syslog > Forwarding Configuration > Configure로 이동합니다.
  3. Create Forwarding Configuration(전달 구성 만들기)을 선택하고 Bindplane 에이전트 IP 주소를 입력합니다.
  4. 프로토콜 드롭다운에서 실제 Bindplane 에이전트 구성에 따라 UDP 또는 TCP를 선택합니다.
  5. 포트 섹션에 Bindplane 에이전트 포트 번호를 입력합니다.
  6. 저장을 클릭합니다.
  7. 테스트 메시지 보내기를 클릭하고 메시지가 수신되었는지 확인합니다.

UDM 매핑 테이블

로그 필드 UDM 매핑 논리
Access Mask principal.process.access_mask 16진수에서 10진수로 변환되었습니다.
Account Domain principal.administrative_domain
Account Name principal.user.userid
ApplicationProtocol additional.fields
Authentication Package security_result.about.resource.name
Client Address principal.ip, principal.asset.ip IP로 파싱됩니다.
Client Port principal.port 정수로 변환되었습니다.
cmd target.process.command_line
date 타임스탬프 yyyy-MM-dd로 파싱되고 날짜로 파싱된 시간과 yyyy-MM-dd HH:mm:ss로 병합됩니다.
date_time 타임스탬프 RFC 3339, TIMESTAMP_ISO8601, SYSLOGTIMESTAMP 형식으로 날짜로 파싱됩니다.
desc metadata.description
eventid metadata.product_event_type eventid - task로 작업과 병합되었습니다.
host_name principal.hostname, principal.asset.hostname
http_method network.http.method
ip target.ip, target.asset.ip
kv_data1 키-값 쌍으로 파싱됩니다.
kv_data2 키-값 쌍으로 파싱됩니다.
kv_msg1.cipher network.tls.cipher
kv_msg1.ctladdr intermediary.labels
kv_msg1.daemon security_result.about.labels
kv_msg1.from network.email.from mail_from에 @ 가 포함되지 않으면 @local이 추가됩니다.
kv_msg1.msgid network.email.mail_id
kv_msg1.proto security_result.about.labels
kv_msg1.relay intermediary.hostname, intermediary.ip (HOSTNAME)으로 파싱됨 [IP] 또는 HOSTNAME. relay_domain이 있으면 intermediary.hostname으로 설정하고 relay_ip가 있으면 intermediary.ip로 병합됩니다.
kv_msg1.size network.sent_bytes 부호 없는 정수로 변환되었습니다.
kv_msg1.stat security_result.summary
kv_msg1.verify security_result.description, security_result.action kv_msg1.verify가 FAIL이면 security_result.action이 BLOCK으로 설정됩니다.
kv_msg1.version network.tls.version
labels.log_type metadata.product_event_type
labels.net.host.ip principal.ip, principal.asset.ip
labels.net.host.port principal.port
labels.net.peer.ip target.ip, target.asset.ip
labels.net.peer.port target.port
labels.net.transport network.ip_protocol labels.net.transport가 TCP이면 TCP입니다.
level security_result.severity 수준이 INFO/Informational/DEBUG/info/Information이면 INFORMATIONAL, 수준이 ERROR/error이면 ERROR, 수준이 WARNING이면 LOW입니다.
log.file.path target.process.file.full_path
logName security_result.category_details
Logon Account principal.user.userid
Logon Type extensions.auth.mechanism logon_type이 2/Interactive이면 INTERACTIVE, logon_type이 3/8이면 NETWORK, logon_type이 4이면 BATCH, logon_type이 5이면 SERVICE, logon_type이 7이면 UNLOCK, logon_type이 9이면 NEW_CREDENTIALS, logon_type이 10이면 REMOTE_INTERACTIVE, logon_type이 11이면 CACHED_INTERACTIVE, 그 외의 경우에는 MECHANISM_UNSPECIFIED입니다.
mail_from network.email.from mail_from에 @ 가 포함되지 않으면 @local이 추가됩니다.
mail_to network.email.to mail_to에 @ 가 포함되지 않으면 @local이 추가됩니다.
message grok 패턴으로 파싱되었습니다.
namespace principal.namespace
port target.port 정수로 변환되었습니다.
process_id target.process.pid
providername principal.application
Relative Target Name target.file.full_path
resource.labels.project_id src.cloud.project.id
resource.type src.labels
response_status network.http.response_code 정수로 변환되었습니다.
sec_desc security_result.description
Security ID target.user.windows_sid
security_result_action_detail security_result.action_details
server_name target.hostname, target.asset.hostname
Share Name target.resource.name
Source Network Address principal.ip, principal.asset.ip IP로 파싱됩니다.
Source Port principal.port 정수로 변환되었습니다.
summary security_result.summary
target_host target.hostname, target.asset.hostname
target_url target.url
target_userid target.user.userid
time 타임스탬프 HH:mm:ss로 파싱되고 날짜로 파싱된 경우 yyyy-MM-dd HH:mm:ss로 날짜와 병합됩니다.
upn_name intermediary.url
URL target.url
User ID target.user.windows_sid
user_id principal.user.userid
UserAgent network.http.user_agent
metadata.event_type 메시지에 API_HEALTH 또는 JobDispatcher가 포함된 경우 STATUS_UPDATE로 설정하고, 메시지에 logged in as가 포함되고 target_userid가 비어 있지 않은 경우 USER_LOGIN으로 설정하고, 메시지에 Leave Validate가 포함된 경우 SCAN_HOST로 설정하고, 메시지에 Getting IP Address from host가 포함된 경우 NETWORK_UNCATEGORIZED로 설정하고, 메시지에 Wrote vpxd health가 포함된 경우 RESOURCE_WRITTEN으로 설정하고, has_principal 및 has_target이 true이고 application_protocol이 비어 있지 않은 경우 NETWORK_HTTP로 설정하고, process_id 및 cmd가 비어 있지 않은 경우 PROCESS_LAUNCH로 설정하고, user_id가 비어 있지 않거나 eventid가 4776인 경우 USER_UNCATEGORIZED로 설정하고, eventid가 4624/4768/4769인 경우 USER_LOGIN으로 설정하고, eventid가 4634/4647인 경우 USER_LOGOUT으로 설정하고, eventid가 5145인 경우 USER_RESOURCE_ACCESS로 설정하고, host_name이 비어 있지 않은 경우 STATUS_UPDATE로 설정하고, 그 외의 경우 GENERIC_EVENT로 설정합니다.
extensions.auth.type eventid가 4624/4768/4769인 경우 MACHINE으로 설정합니다.
metadata.log_type VMWARE_VCENTER로 설정됩니다.
metadata.vendor_name VMWARE로 설정됩니다.
metadata.product_name VCENTER로 설정됩니다.
security_result.action response_status가 200이거나 작업이 허용인 경우 ALLOW로 설정됩니다.

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