Darktrace 로그 수집
이 문서에서는 Bindplane 에이전트를 사용하여 Darktrace 로그를 Google Security Operations에 수집하는 방법을 설명합니다. 이 파서는 먼저 syslog 메시지에서 공통 필드를 추출한 다음 조건부 논리를 사용하여 CEF 및 JSON 형식의 Darktrace 로그를 모두 처리합니다. 추출된 필드를 통합 데이터 모델 (UDM) 스키마에 매핑하여 보안 컨텍스트로 데이터를 보강하고 다운스트림 분석을 위해 이벤트 분류를 표준화합니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Windows 2016 이상 또는 systemd가 있는 Linux 호스트
- 프록시 뒤에서 실행하는 경우 방화벽 포트가 열려 있음
- Darktrace에 대한 액세스 권한 관리
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: tcplog: # Replace the port and IP address as required listen_address: `0.0.0.0:10282` 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: DARKTRACE raw_log_field: body service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - tcplog exporters: - chronicle/chronicle_w_labels
인프라에 필요한 대로 포트와 IP 주소를 바꿉니다.
<customer_id>
를 실제 고객 ID로 바꿉니다.Google SecOps 수집 인증 파일 가져오기 섹션에서 인증 파일이 저장된 경로로
/path/to/ingestion-authentication-file.json
를 업데이트합니다.
Bindlane 에이전트를 다시 시작하여 변경사항을 적용합니다.
Linux에서 Bindplane 에이전트를 다시 시작하려면 다음 명령어를 실행합니다.
sudo systemctl restart bindplane-agent
Windows에서 Bindplane 에이전트를 다시 시작하려면 서비스 콘솔을 사용하거나 다음 명령어를 입력하면 됩니다.
net stop BindPlaneAgent && net start BindPlaneAgent
Darktrace에서 Syslog 구성
- Darktrace 웹 UI에 로그인합니다.
- 관리자 > 시스템 구성으로 이동합니다.
- 알림 설정 확인을 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- CEF Syslog Alerts(CEF Syslog 알림): True(참)를 선택합니다.
- CEF Syslog Server: Bindplane IP 주소를 입력합니다.
- CEF Syslog Server Port: Bindplane 포트 번호 (예:
10282
)를 입력합니다. - CEF Syslog TCP Alert: True를 선택합니다.
- 저장을 클릭합니다.
UDM 매핑 테이블
로그 필드 | UDM 매핑 | 논리 |
---|---|---|
darktraceUrl | security_result.url_back_to_product | 값은 darktraceUrl 필드에서 가져옵니다. |
darktrace_host | observer.hostname | IP 주소가 아닌 경우 값은 darktrace_host 필드에서 가져옵니다. |
darktrace_ip | observer.ip | 값은 darktrace_ip 필드에서 가져옵니다. |
darktrace_user | observer.user.userid | 값은 darktrace_user 필드에서 가져옵니다. |
description | security_result.summary, metadata.description | 값은 description 필드에서 가져옵니다. |
device.customFields.DT-AUTO.macaddress | principal.mac | 값은 device.customFields.DT-AUTO.macaddress 필드에서 가져옵니다. |
device.did | principal.asset.asset_id | 값은 device.did 필드에서 가져와 문자열로 변환되고 Device ID: 이 앞에 붙습니다. |
device.firstSeen | principal.asset.first_seen_time | 값은 device.firstSeen 필드에서 가져와 문자열로 변환되고 밀리초 단위의 UNIX 타임스탬프로 파싱됩니다. |
device.hostname | principal.hostname, principal.asset.hostname | 값은 device.hostname 필드에서 가져옵니다. |
device.ip | principal.ip, principal.asset.ip | 값이 IP 주소 형식과 일치하면 device.ip 필드에서 가져옵니다. |
device.ips.0.subnet | additional.fields.subnet | 값은 device.ips.0.subnet 필드에서 가져오고 subnet 이 접두사로 붙습니다. |
device.ips.ip | principal.ip, principal.asset.ip | 값은 목록에 있는 각 IP 주소의 device.ips.ip 필드에서 가져옵니다. |
device.lastSeen | principal.asset.last_discover_time | 값은 device.lastSeen 필드에서 가져와 문자열로 변환되고 밀리초 단위의 UNIX 타임스탬프로 파싱됩니다. |
device.macaddress | principal.mac | 값은 device.macaddress 필드에서 가져옵니다. |
device.objecttype | principal.asset.type | 값이 device 인 경우 UDM 필드가 WORKSTATION 로 설정됩니다. |
device.sid | principal.resource.attribute.labels.sid | 값은 device.sid 필드에서 가져와 문자열로 변환됩니다. |
device.typelabel | principal.resource.attribute.labels.typelabel | 값은 device.typelabel 필드에서 가져옵니다. |
device.typename | principal.resource.attribute.labels.typename | 값은 device.typename 필드에서 가져옵니다. |
dst | target.ip, target.asset.ip | 값은 dst 필드에서 가져옵니다. |
dpt | target.port | 값은 dpt 필드에서 가져와 정수로 변환됩니다. |
dvc | principal.ip, principal.asset.ip | dvc 값이 IP 주소인 경우 UDM 필드에 추가됩니다. |
dvchost | principal.hostname, principal.asset.hostname | 값은 dvchost 필드에서 가져옵니다. |
endpoint | target.url | 값은 endpoint 필드에서 가져옵니다. |
event_time | metadata.event_timestamp | 값은 event_time 필드에서 가져와 ISO8601 타임스탬프로 파싱됩니다. |
externalId | metadata.product_log_id | 값은 externalId 필드에서 가져옵니다. |
incidentEventUrl | principal.url | 값은 incidentEventUrl 필드에서 가져옵니다. |
ip | principal.ip, principal.asset.ip | 값이 IP 주소 형식과 일치하면 ip 필드에서 가져옵니다. |
issue_msg | security_result.summary | 값은 issue_msg 필드에서 가져옵니다. |
메시지 | security_result.description | 값은 message 필드에서 가져옵니다. |
method | network.http.method | 값은 method 필드에서 가져옵니다. |
model.description | metadata.description | 값은 model.description 필드에서 가져옵니다. |
model.name | metadata.product_event_type | 값은 model.name 필드에서 가져옵니다. |
model.now.category | security_result.severity | 값이 critical 인 경우 UDM 필드가 CRITICAL 로 설정됩니다. 값이 Informational 인 경우 UDM 필드가 INFORMATIONAL 로 설정됩니다. 값이 Suspicious 인 경우 UDM 필드가 HIGH 로 설정되고 카테고리가 NETWORK_SUSPICIOUS 로 설정됩니다. |
model.now.description | metadata.description | 값은 model.now.description 필드에서 가져옵니다. |
model.now.message | security_result.description | 값은 model.now.message 필드에서 가져옵니다. |
model.now.name | metadata.product_event_type | 값은 model.now.name 필드에서 가져옵니다. |
model.now.pid | principal.process.pid | 값은 model.now.pid 필드에서 가져와 문자열로 변환됩니다. |
model.now.uuid | principal.user.userid | 값은 model.now.uuid 필드에서 가져오고 이벤트 유형은 USER_UNCATEGORIZED 로 설정됩니다. |
model.pid | principal.process.pid | 값은 model.pid 필드에서 가져와 문자열로 변환됩니다. |
model.then.description | principal.resource.attribute.labels.Model Then Description | 값은 model.then.description 필드에서 가져옵니다. |
model.then.name | principal.resource.attribute.labels.Model Then Name | 값은 model.then.name 필드에서 가져옵니다. |
model.then.pid | principal.resource.attribute.labels.Model Then Pid | 값은 model.then.pid 필드에서 가져와 문자열로 변환됩니다. |
model.then.uuid | principal.resource.attribute.labels.Model Then UUID | 값은 model.then.uuid 필드에서 가져옵니다. |
model.uuid | principal.user.userid | 값은 model.uuid 필드에서 가져오고 이벤트 유형은 USER_UNCATEGORIZED 로 설정됩니다. |
relatedBreaches.0.modelName | security_result.description | 값은 relatedBreaches.0.modelName 필드에서 가져옵니다. |
점수 | security_result.priority, security_result.priority_details | 값이 0.8~1이면 우선순위가 HIGH_PRIORITY 로 설정됩니다. 값이 0.5~0.79이면 우선순위가 MEDIUM_PRIORITY 로 설정됩니다. 값이 0~0.49이면 우선순위가 LOW_PRIORITY 로 설정됩니다. 우선순위 세부정보는 Score : 로 설정되고 그 뒤에 score 값이 문자열로 변환되어 옵니다. |
줄이는 것을 | security_result.severity | 값이 2인 경우 UDM 필드가 MEDIUM 로 설정됩니다. 값이 2보다 큰 경우 UDM 필드가 HIGH 로 설정됩니다. |
shost | principal.hostname, principal.asset.hostname | 값은 shost 필드에서 가져옵니다. |
smac | principal.mac | 값은 smac 필드에서 가져옵니다. |
src | principal.ip, principal.asset.ip | 값은 src 필드에서 가져옵니다. |
상태 | network.http.response_code | 값은 status 필드에서 가져와 문자열로 변환됩니다. |
요약 | metadata.description | 값은 summary 필드에서 가져옵니다. |
시간 | 값은 time 필드에서 가져와 문자열로 변환되고 밀리초 단위의 UNIX 타임스탬프로 파싱됩니다. |
|
타임스탬프 | 값은 timestamp 필드에서 가져오며 ISO8601 타임스탬프 또는 밀리초 단위의 UNIX 타임스탬프로 파싱됩니다. |
|
제목 | security_result.summary | 값은 title 필드에서 가져옵니다. |
triggeredComponents.ip | intermediary.ip | 값이 IP 주소 형식과 일치하면 triggeredComponents.ip 필드에서 가져옵니다. |
triggeredComponents.port | intermediary.port | 값은 triggeredComponents.port 필드에서 가져와 정수로 변환됩니다. |
사용자 이름 | principal.user.userid | 값은 username 필드에서 가져옵니다. |
metadata.vendor_name | DARKTRACE 로 설정합니다. |
|
metadata.product_name | DCIP 로 설정합니다. |
|
metadata.log_type | DARKTRACE 로 설정합니다. |
|
network.ip_protocol | issue_msg 에 UDP 이 포함되지 않으면 TCP 로 설정합니다. 그렇지 않으면 UDP 로 설정합니다. |
|
security_result.action | status 이 401 이면 BLOCK 로 설정하고, 그렇지 않으면 ALLOW 로 설정합니다. |
|
security_result.severity | INFORMATIONAL 로 설정합니다. |
|
network.application_protocol | method 이 비어 있지 않으면 HTTP 로 설정합니다. |
|
metadata.event_type | method 이 비어 있지 않으면 NETWORK_HTTP 로 설정합니다. description 에 logged into \\\\S+ over ssh 이 포함된 경우 USER_LOGIN 로 설정됩니다. target_ip 이 비어 있지 않으면 NETWORK_CONNECTION 로 설정합니다. 그렇지 않으면 STATUS_UPDATE 로 설정합니다. |
|
extensions.auth.type | description 에 logged into \\\\S+ over ssh 이 포함된 경우 MACHINE 로 설정됩니다. |
|
security_result.category | issue_msg 에 Exfiltration 이 포함된 경우 DATA_EXFILTRATION 로 설정됩니다. issue_msg 에 Compromise 이 포함된 경우 NETWORK_MALICIOUS 로 설정됩니다. 그렇지 않으면 NETWORK_SUSPICIOUS 로 설정합니다. |
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가로부터 답변을 받으세요.