BloxOne Threat Defense 로그 수집
이 문서에서는 Bindplane을 사용하여 BloxOne Threat Defense 로그를 Google Security Operations에 수집하는 방법을 설명합니다. Logstash 파서는 SYSLOG 또는 JSON 형식으로 수신된 BLOXONE DNS
로그에서 필드를 추출합니다. 먼저 로그 메시지를 JSON 객체로 정규화한 다음 추출된 필드를 통합 데이터 모델 (UDM)에 매핑하여 보안 분석을 위해 위치정보 및 DNS 세부정보로 데이터를 보강합니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Windows 2016 이상 또는
systemd
가 설치된 Linux 호스트 - 프록시 뒤에서 실행하는 경우 방화벽 포트가 열려 있음
- Infoblox BloxOne에 대한 액세스 권한 관리
Google SecOps 수집 인증 파일 가져오기
- Google SecOps 콘솔에 로그인합니다.
- SIEM 설정 > 수집 에이전트로 이동합니다.
- 수집 인증 파일을 다운로드합니다. Bindplane이 설치될 시스템에 파일을 안전하게 저장합니다.
Google SecOps 고객 ID 가져오기
- Google SecOps 콘솔에 로그인합니다.
- SIEM 설정 > 프로필로 이동합니다.
- 조직 세부정보 섹션에서 고객 ID를 복사하여 저장합니다.
Bindplane 에이전트 설치
Windows 설치
- 명령 프롬프트 또는 PowerShell을 관리자로 엽니다.
다음 명령어를 실행합니다.
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
Linux 설치
- 루트 또는 sudo 권한으로 터미널을 엽니다.
다음 명령어를 실행합니다.
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
추가 설치 리소스
추가 설치 옵션은 설치 가이드를 참고하세요.
Syslog를 수집하여 Google SecOps로 전송하도록 Bindplane 에이전트 구성
- 구성 파일에 액세스합니다.
config.yaml
파일을 찾습니다. 일반적으로 Linux에서는/etc/bindplane-agent/
디렉터리에 있고 Windows에서는 설치 디렉터리에 있습니다.- 텍스트 편집기 (예:
nano
,vi
, 메모장)를 사용하여 파일을 엽니다.
다음과 같이
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: 'BLOXONE' raw_log_field: body 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
Infoblox BloxOne에서 Syslog 구성
- Infoblox Portal에 로그인합니다.
- 구성 > 관리 > 데이터 커넥터로 이동합니다.
- 대상 구성 탭을 선택합니다.
- 만들기 > Syslog를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 이름: 설명이 포함된 이름 (예: Google SecOps 수집기)을 입력합니다.
- 설명: 간단한 설명을 입력합니다.
- 상태: 사용 설정을 선택합니다.
- 태그: 추가를 클릭하고 다음을 지정하여 키를 대상과 연결합니다.
- KEY: 키의 설명이 포함된 이름을 입력합니다.
- VALUE: 키 값을 입력합니다.
- 형식: CEF를 선택합니다.
- 프로토콜: Bindplane 에이전트 구성에 따라 UDP 또는 TCP를 선택합니다.
- FQDN/IP: Bindplane 에이전트 IP 주소를 입력합니다.
- 포트: Bindplane 에이전트 포트를 입력합니다 (기본값은 UDP의 경우
514
로 설정됨).
- Save & Close(저장 후 닫기)를 클릭합니다.
UDM 매핑 테이블
로그 필드 | UDM 매핑 | 논리 |
---|---|---|
additional_list.key |
이 필드는 루프에서 additional_list 배열을 반복하고 key 필드의 값을 기반으로 데이터를 추출하는 데 사용됩니다. UDM에 직접 매핑되지 않습니다. |
|
additional_list.value |
principal.location.region_latitude , principal.location.region_longitude , target.location.region_latitude , target.location.region_longitude |
이 필드는 additional_list.key 와 함께 사용하여 additional_list 배열에서 특정 값을 추출합니다. 값을 추출하고 매핑하는 로직은 해당 key 에 따라 다릅니다. 예: - additional_list.key 이 intel:source:ip:geoIP:location 인 경우 grok을 사용하여 위도 및 경도 값을 추출하고 각각 principal.location.region_latitude 및 principal.location.region_longitude 에 매핑합니다. - additional_list.key 이 intel:destination:ip:geoIP:location 인 경우 grok을 사용하여 위도 및 경도 값을 추출하고 각각 target.location.region_latitude 및 target.location.region_longitude 에 매핑합니다. |
additional_string.key |
additional_list.key 와 마찬가지로 이 필드는 루프에서 additional_string 배열을 반복하고 key 값을 기반으로 데이터를 추출하는 데 사용됩니다. UDM에 직접 매핑되지 않습니다. |
|
additional_string.value |
additional.fields.value.string_value , principal.location.country_or_region , target.location.country_or_region , src.ip , src.port , src.hostname , network.ip_protocol |
additional_string.key 와 함께 사용하여 additional_string 배열에서 값을 추출합니다. 값을 매핑하는 로직은 해당 key 에 따라 다릅니다. 예: - additional_string.key 이 intel:source:ip:ip2asn:start_ip , intel:source:ip:ip2asn:finish_ip , intel:destination:ip:ip2asn:start_ip 또는 intel:destination:ip:ip2asn:finish_ip 인 경우 해당 키를 사용하여 값을 additional.fields.value.string_value 에 매핑합니다. - additional_string.key 이 intel:source:ip:geoIP:country 인 경우 값을 principal.location.country_or_region 에 매핑합니다. - additional_string.key 이 intel:destination:ip:geoIP:country 인 경우 값을 target.location.country_or_region 에 매핑합니다. - additional_string.key 이 log:source:ip 인 경우 값을 src.ip 에 매핑합니다. - additional_string.key 이 log:source:port 인 경우 값을 정수로 변환한 후 src.port 에 매핑합니다. - additional_string.key 이 log:source:hostname 인 경우 값을 src.hostname 에 매핑합니다. - additional_string.key 이 log:cdh:input:protocol 인 경우 값을 대문자로 변환한 후 network.ip_protocol 에 매핑합니다. |
app_category |
security_result.category_details |
직접 매핑됩니다. |
confidence |
security_result.confidence |
다음 논리에 따라 매핑됩니다. - confidence 이 LOW 인 경우 LOW_CONFIDENCE 에 매핑됩니다.- confidence 이 MEDIUM 인 경우 MEDIUM_CONFIDENCE 에 매핑합니다.- confidence 이 HIGH 인 경우 HIGH_CONFIDENCE 에 매핑합니다. |
country |
principal.location.name |
직접 매핑되지만 raw.infobloxb1region 가 비어 있는 경우에만 매핑됩니다. |
device |
principal.ip , principal.asset.ip |
직접 매핑되지만 raw.dvc 가 비어 있는 경우에만 매핑됩니다. |
dhcp_fingerprint |
security_result.detection_fields.value |
dhcp_fingerprint 키로 직접 매핑됩니다. |
dns_view |
security_result.detection_fields.value |
dns_view 키로 직접 매핑됩니다. |
endpoint_groups |
security_result.detection_fields.value |
endpoint_groups 키로 직접 매핑됩니다. |
event_time |
metadata.event_timestamp.seconds |
ISO8601 타임스탬프로 파싱되고 초 값이 추출됩니다. timestamp 필드가 비어 있는 경우에만 사용됩니다. |
feed_name |
principal.resource.name |
feed_name 이 principal.resource.name 에 매핑됩니다. |
feed_type |
principal.resource.attribute.labels.value |
feed_type 키로 직접 매핑됩니다. |
mac_address |
principal.mac |
소문자로 변환한 후 직접 매핑됩니다. |
network |
principal.hostname , principal.asset.hostname |
직접 매핑되지만 raw.dvchost 과 raw.dvc 가 모두 비어 있는 경우에만 매핑됩니다. |
os_version |
principal.platform_version |
직접 매핑됩니다. |
policy_action |
security_result.action_details , security_result.action |
policy_action 이 security_result.action_details 에 직접 매핑됩니다.security_result.action 은 다음 로직에 따라 파생됩니다.- policy_action 이 Redirect 또는 Log 인 경우 ALLOW 에 매핑합니다.- policy_action 이 BLOCK 인 경우 BLOCK 에 매핑합니다. |
policy_name |
security_result.detection_fields.value |
policy_name 키로 직접 매핑됩니다. |
qname |
network.dns.questions.name |
직접 매핑됩니다. |
qtype |
network.dns.questions.type |
다음 논리에 따라 매핑됩니다. - qtype 이 A 이면 1로 매핑됩니다 (부호 없는 정수로 변환됨).- qtype 이 PTR 인 경우 12에 매핑합니다 (부호 없는 정수로 변환됨). |
raw.act |
security_result.action_details |
직접 매핑됩니다. |
raw.app |
network.application_protocol |
대문자로 변환한 후 직접 매핑됩니다. |
raw.deviceeventclassid |
metadata.product_event_type |
raw.name 와 연결되고 (- 로 구분됨) metadata.product_event_type 에 매핑됩니다. |
raw.devicevendor |
metadata.vendor_name |
직접 매핑됩니다. |
raw.deviceproduct |
metadata.product_name |
직접 매핑됩니다. |
raw.deviceversion |
metadata.product_version |
직접 매핑됩니다. |
raw.deviceseverity |
security_result.severity_details , security_result.severity |
raw.deviceseverity 이 security_result.severity_details 에 직접 매핑됩니다.security_result.severity 은 다음 로직에 따라 파생됩니다.- raw.deviceseverity 이 [0 , 1 , 2 , 3 ]에 있으면 LOW 에 매핑됩니다.- raw.deviceseverity 이 [4 , 5 , 6 ]에 있으면 MEDIUM 에 매핑합니다.- raw.deviceseverity 이 [7 , 8 ]에 있으면 HIGH 에 매핑합니다.- raw.deviceseverity 이 [9 , 10 ]에 있으면 CRITICAL 에 매핑합니다. |
raw.dvc |
principal.ip , principal.asset.ip |
직접 매핑됩니다. |
raw.dvchost |
principal.hostname , principal.asset.hostname |
raw.dvc 와 같지 않은 경우에만 직접 매핑됩니다. |
raw.infobloxb1connectiontype |
additional.fields.value.string_value |
infobloxb1connectiontype 키로 직접 매핑됩니다. |
raw.infobloxb1ophname |
observer.hostname , observer.asset.hostname |
직접 매핑됩니다. |
raw.infobloxb1ophipaddress |
observer.ip |
직접 매핑됩니다. |
raw.infobloxb1policyname |
security_result.detection_fields.value |
infobloxb1policyname 키로 직접 매핑됩니다. |
raw.infobloxdnsqclass |
dns_question.class , dns_answer.class |
dns_query_class_mapping.include 파일에 정의된 조회 테이블을 기반으로 dns_question.class 및 dns_answer.class 를 파생하는 데 사용됩니다. |
raw.infobloxdnsqtype |
dns_question.type , dns_answer.type |
dns_record_type.include 파일에 정의된 조회 테이블을 기반으로 dns_question.type 및 dns_answer.type 를 파생하는 데 사용됩니다. |
raw.infobloxdnsrcode |
network.dns.response_code |
dns_response_code.include 파일에 정의된 참고표를 기반으로 network.dns.response_code 를 파생하는 데 사용됩니다. |
raw.infobloxpolicyid |
security_result.detection_fields.value |
infobloxpolicyid 키로 직접 매핑됩니다. |
raw.msg |
metadata.description |
raw.msg 는 선행 및 후행 따옴표를 삭제한 후 metadata.description 에 직접 매핑됩니다. |
raw.name |
metadata.product_event_type |
raw.deviceeventclassid 와 연결되고 (- 로 구분됨) metadata.product_event_type 에 매핑됩니다. |
rcode |
security_result.detection_fields.value , network.dns.response_code |
rcode 은 키 rcode .로 security_result.detection_fields.value 에 직접 매핑됩니다. rcode 이 NXDOMAIN 인 경우 network.dns.response_code 은 3으로 설정됩니다 (부호 없는 정수로 변환됨). |
rdata |
network.dns.answers.data |
직접 매핑됩니다. |
rip |
target.ip , target.asset.ip |
직접 매핑됩니다. |
severity |
security_result.severity |
다음 논리에 따라 매핑됩니다. - severity 이 INFO (대소문자 구분 안 함)인 경우 INFORMATIONAL 에 매핑됩니다.- severity 이 HIGH 인 경우 HIGH 에 매핑합니다. |
tclass |
security_result.detection_fields.value |
tclass 키로 직접 매핑됩니다. |
threat_indicator |
security_result.detection_fields.value |
threat_indicator 키로 직접 매핑됩니다. |
timestamp |
metadata.event_timestamp.seconds |
ISO8601 타임스탬프로 파싱되고 초 값이 추출됩니다. |
user |
principal.user.user_display_name |
직접 매핑됩니다. |
user_groups |
security_result.detection_fields.value |
user_groups 키로 직접 매핑됩니다. |
해당 사항 없음 | principal.resource.resource_subtype |
feed_name 이 비어 있지 않으면 Feed 로 설정합니다. |
해당 사항 없음 | metadata.log_type |
BLOXONE 로 설정합니다. |
해당 사항 없음 | additional.fields.key |
해당 raw 필드에 따라 infobloxancount , infobloxarcount , infobloxb1connectiontype , infobloxnscount , intel:destination:ip:ip2asn:finish_ip , intel:destination:ip:ip2asn:start_ip , intel:source:ip:ip2asn:finish_ip 또는 intel:source:ip:ip2asn:start_ip 로 설정합니다. |
해당 사항 없음 | metadata.event_type |
has_principal 이 true 이면 STATUS_UPDATE 로 설정하고, 그렇지 않으면 GENERIC_EVENT 로 설정합니다. |
해당 사항 없음 | network.dns.questions.type |
A 레코드의 경우 1, PTR 레코드의 경우 12로 설정되며 부호 없는 정수로 변환됩니다. |
해당 사항 없음 | network.dns.answers.name , network.dns.answers.type , network.dns.answers.class |
DNS 응답 문자열을 파싱하여 raw.msg 에서 추출했습니다. |
해당 사항 없음 | intermediary.hostname , intermediary.ip , intermediary.asset.ip |
DNS 응답 문자열을 파싱하여 raw.msg 에서 추출했습니다. |
참고: 이 표에는 UDM에 매핑된 필드만 포함됩니다. 원시 로그의 일부 필드는 파서에서 내부적으로 사용될 수 있지만 최종 UDM 출력에 직접 반영되지는 않습니다.
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가로부터 답변을 받으세요.