Ubika WAF 로그 수집
이 문서에서는 Bindplane 에이전트를 사용하여 Ubika WAF 로그를 Google Security Operations에 수집하는 방법을 설명합니다.
Ubika WAF(이전 명칭: DenyAll)는 온프레미스 웹 애플리케이션 및 서비스에 HTTP 트래픽 검사, 봇 보호, API 보안을 제공하는 웹 애플리케이션 방화벽입니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Windows Server 2016 이상 또는
systemd가 설치된 Linux 호스트 - Bindplane 에이전트와 Ubika WAF 어플라이언스 간의 네트워크 연결
- 프록시 뒤에서 실행하는 경우 Bindplane 에이전트 요구사항에 따라 방화벽 포트가 열려 있는지 확인합니다.
- 관리자 권한으로 Ubika WAF 관리 콘솔에 대한 특별 액세스 권한
Bindplane 에이전트의 Google SecOps 사용자 인증 정보 가져오기
Google SecOps에 Bindplane 에이전트를 인증하려면 다음 방법 중 하나를 선택합니다.
- 새 배포: Chronicle API를 사용합니다(옵션 1).
- 기존 배포: 2027년 7월 20일에 Ingestion API가 중단될 때까지 데이터 수집 인증 파일(옵션 2)을 계속 사용합니다.
옵션 1: Chronicle API의 서비스 계정 만들기(권장)
- Google Cloud 콘솔에 로그인하고 Google SecOps 인스턴스에 연결된 Google Cloud 프로젝트를 선택합니다.
- IAM 및 관리자 > 서비스 계정으로 이동합니다.
- 서비스 계정 만들기를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 서비스 계정 이름: 계정 이름을 입력합니다(예:
bindplane-ingest). - 서비스 계정 설명: 설명을 입력합니다(예:
Bindplane agent log ingestion).
- 서비스 계정 이름: 계정 이름을 입력합니다(예:
- 만들고 계속하기를 클릭합니다.
- 이 서비스 계정에 프로젝트에 대한 액세스 권한 부여 섹션에서 역할 선택을 클릭하고 Chronicle 편집자를 선택합니다.
- 계속을 클릭한 다음 완료를 클릭합니다.
- 만든 서비스 계정을 클릭한 다음 키 탭으로 이동합니다.
- 키 추가 > 새 키 만들기를 클릭합니다.
- JSON을 선택하고 만들기를 클릭합니다. 키 파일이 컴퓨터에 다운로드됩니다.
- 키 파일을 Bindplane 수집기 디렉터리(Linux의 경우
/opt/observiq-otel-collector/ingestion-auth.json, Windows의 경우C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json)에ingestion-auth.json로 저장하거나config.yaml의creds_file_path를 업데이트하여 저장한 경로와 일치시킵니다. - IAM 및 관리자 > 설정으로 이동하여 프로젝트 번호를 복사합니다. 내보내기 도구 구성에 필요합니다.
옵션 2: 데이터 수집 인증 파일 다운로드(기존)
- Google SecOps 콘솔에 로그인합니다.
- 설정 > 데이터 관리 > 수집 에이전트로 이동합니다. SIEM 전용 플랫폼을 사용하는 경우 설정 > 수집 에이전트로 이동합니다.
- 데이터 수집 인증 파일을 다운로드합니다.
- Bindplane 에이전트가 설치될 시스템에 파일을 안전하게 저장합니다.
Google SecOps 고객 ID 가져오기
- Google SecOps 콘솔에 로그인합니다.
- 설정 > 관리 > 프로필로 이동합니다. SIEM 전용 플랫폼을 사용하는 경우 설정 > 프로필로 이동합니다.
조직 세부정보 섹션에서 고객 ID를 복사하여 저장합니다.
Bindplane 에이전트 설치
다음 안내에 따라 Windows 또는 Linux 운영체제에 Bindplane 에이전트를 설치합니다.
Windows 설치
- 관리자 권한으로 명령 프롬프트 또는 PowerShell을 엽니다.
다음 명령어를 실행합니다.
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet설치가 완료될 때까지 기다립니다.
다음을 실행하여 설치를 확인합니다.
sc query observiq-otel-collector서비스가 RUNNING으로 표시됩니다.
Linux 설치
- 루트 또는 sudo 권한으로 터미널을 엽니다.
다음 명령어를 실행합니다.
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh설치가 완료될 때까지 기다립니다.
다음을 실행하여 설치를 확인합니다.
sudo systemctl status observiq-otel-collector서비스가 active (running)으로 표시됩니다.
추가 설치 리소스
추가 설치 옵션 및 문제 해결은 Bindplane 에이전트 설치 가이드를 참조하세요.
syslog를 수집하고 Google SecOps로 전송하도록 Bindplane 에이전트 구성
구성 파일 찾기
Linux:
sudo nano /opt/observiq-otel-collector/config.yamlWindows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
구성 파일 설정
config.yaml의 전체 콘텐츠를 다음 구성으로 바꿉니다.receivers: tcplog: listen_address: "0.0.0.0:514" exporters: chronicle/ubika_waf: protocol: https # Region of your instance, for example us, europe, asia-southeast1 location: <LOCATION> # Project number of the Google Cloud project linked to the instance project: '<PROJECT_NUMBER>' compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: '<customer_id>' endpoint: chronicle.googleapis.com log_type: UBIKA_WAF raw_log_field: body service: pipelines: logs/ubika_waf_to_chronicle: receivers: - tcplog exporters: - chronicle/ubika_waf
구성 매개변수
다음 자리표시자를 바꿉니다.
수신자 구성:
listen_address: 리슨할 IP 주소 및 포트:0.0.0.0: 모든 인터페이스에서 수신 대기(권장)- 포트
514은 표준 syslog 포트입니다(Linux에서 루트 필요, 루트가 아닌 경우1514사용).
내보내기 도구 구성:
creds_file_path: 서비스 계정 JSON 키 파일의 전체 경로(옵션 1):- Linux:
/opt/observiq-otel-collector/ingestion-auth.json - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Linux:
customer_id: Google SecOps 콘솔에서 복사한 고객 IDlocation:<LOCATION>을 Google SecOps 인스턴스의 리전으로 바꿉니다(예:us,europe또는asia-southeast1). 내보내기 도구는 이 값으로chronicle.googleapis.com에 프리픽스를 추가합니다. 전체 목록은 리전 엔드포인트를 참조하세요.project:<PROJECT_NUMBER>를 IAM 및 관리자 > 설정의 프로젝트 번호로 바꿉니다.endpoint:chronicle.googleapis.com로 설정된 상태를 유지합니다.
기존 수집 API 내보내기 도구
옵션 2의 데이터 수집 인증 파일을 사용하는 경우
exporters블록을 다음으로 바꿉니다.creds_file_path을 데이터 수집 인증 파일의 경로로 설정하고 인스턴스가 미국 외부에 있는 경우malachiteingestion-pa.googleapis.com을 리전 엔드포인트(예:europe-malachiteingestion-pa.googleapis.com)로 바꿉니다.exporters: chronicle/ubika_waf: compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: UBIKA_WAF raw_log_field: body
구성 파일 저장
- 수정 후 파일을 저장합니다.
- Linux:
Ctrl+O,Enter,Ctrl+X를 차례로 누릅니다. - Windows: 파일 > 저장을 클릭합니다.
- Linux:
Bindplane 에이전트를 다시 시작하여 변경사항을 적용합니다.
Linux에서 Bindplane 에이전트를 다시 시작하려면 다음 명령어를 실행합니다.
sudo systemctl restart observiq-otel-collector서비스가 실행 중인지 확인합니다.
sudo systemctl status observiq-otel-collector로그에서 오류를 확인합니다.
sudo journalctl -u observiq-otel-collector -f
Windows에서 Bindplane 에이전트를 다시 시작하려면 다음 옵션 중 하나를 선택합니다.
관리자 권한으로 명령 프롬프트 또는 PowerShell을 실행합니다.
net stop observiq-otel-collector && net start observiq-otel-collector서비스 콘솔:
Win+R를 누르고services.msc를 입력한 다음 Enter 키를 누릅니다.- observIQ OpenTelemetry Collector를 찾습니다.
- 마우스 오른쪽 버튼을 클릭하고 다시 시작을 선택합니다.
서비스가 실행 중인지 확인합니다.
sc query observiq-otel-collector로그에서 오류를 확인합니다.
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
Ubika WAF syslog 전달 구성
- Ubika WAF 관리 콘솔에 로그인합니다.
- 관리 > 로그 > Syslog 구성으로 이동합니다.
- 추가를 클릭하여 새 syslog 대상을 만듭니다.
- 다음 구성 세부정보를 제공합니다.
- 시스템로그 서버: Bindplane 에이전트 호스트의 IP 주소를 입력합니다.
- 포트:
514를 입력합니다. - 프로토콜: TCP를 선택합니다.
- 형식: 기본 syslog 형식을 선택합니다.
- 전달할 로그 유형을 선택합니다.
- 보안 알림 로그
- 액세스 로그
- 감사 로그
- 시스템 이벤트 로그
- 저장을 클릭하여 구성을 적용합니다.
- Bindplane 에이전트 로그를 확인하여 로그가 전송되고 있는지 확인합니다.
UDM 매핑 테이블
| 로그 필드 | UDM 매핑 | 로직 |
|---|---|---|
| sqliFingerprint_label, eaNewRulesWarningMode_label, eaTotalScore_label, matching_part_key_label, matching_part_key_match_label, partKeyOperator_label, partKeyPattern_label, partValue_label, partValueMatch_label, partValueOperator_label, partValuePatternName_label, partValuePatternUid_label, partValuePatternVersion_label, scoringlistRuleId_label, scoringlistRuleWeight_label, ConfigurationUid_list, Matched_Rule_ID_list | additional.fields | eventt.tokens.sqliFingerprint, eventt.tokens.eaNewRulesWarningMode, eventt.tokens.eaTotalScore, matchingPart.partKey, matchingPart.partKeyMatch, matchingPart.partKeyOperator, matchingPart.partKeyPattern, matchingPart.partValue, matchingPart.partValueMatch, matchingPart.partValueOperator, matchingPart.partValuePatternName, matchingPart.partValuePatternUid, matchingPart.partValuePatternVersion, matchingPart.scoringlistRuleId, matchingPart.scoringlistRuleWeight, eventt.tokens.securityExceptionConfigurationUids, eventt.tokens.securityExceptionMatchedRuleUids의 라벨과 병합됨 |
| context.applianceName | intermediary.application | context.applianceName에서 직접 복사한 값 |
| inter_ip | intermediary.asset.ip | inter_ip에서 병합됨(IP인 경우 context.backendHost에서 파생됨) |
| context.backendHost | intermediary.hostname | IP가 아닌 경우 context.backendHost에서 설정합니다. |
| inter_ip | intermediary.ip | inter_ip에서 설정(IP인 경우 context.backendHost에서 파생됨) |
| context.applianceUid | intermediary.file.sha1 | context.applianceUid에서 직접 복사한 값 |
| has_principal, has_target, has_network, has_principal_user, has_target_resource | metadata.event_type | has_principal, has_target, has_network가 있으면 'NETWORK_HTTP'로 설정, has_principal, has_principal_user가 있으면 'USER_COMMUNICATION'으로 설정, has_principal이 있으면 'STATUS_UPDATE'로 설정, has_target_resource가 있으면 'USER_RESOURCE_ACCESS'로 설정, 그 밖의 경우에는 'GENERIC_EVENT'로 설정 |
| tokens.eventType, type, eventt.tokens.eventType, eventData.tokens.eventType | metadata.product_event_type | tokens.eventType의 값(설정된 경우), 그렇지 않으면 type, 그렇지 않으면 eventt.tokens.eventType, 그렇지 않으면 eventData.tokens.eventType |
| eventUid, logAlertUid, eventt.eventUid, tempData.uid, eventData.eventUid | metadata.product_log_id | eventUid의 값(설정된 경우), 그렇지 않으면 logAlertUid, 그렇지 않으면 eventt.eventUid, 그렇지 않으면 tempData.uid, 그렇지 않으면 eventData.eventUid |
| metadata.product_name | 'UBIKA_WAF'로 설정합니다. | |
| metadata.vendor_name | 'UBIKA_WAF'로 설정합니다. | |
| uri_protocol, request.protocol | network.application_protocol | uri_protocol == 'HTTP' 또는 request.protocol == 'HTTP'인 경우 'HTTP'로 설정됨 |
| uri_method, request.method | network.http.method | uri_method의 값(설정된 경우), 그렇지 않으면 request.method |
| uri_path, request.path, header.value | network.http.referral_url | uri_path의 값(설정된 경우), 그렇지 않으면 request.path, 그렇지 않으면 header.value(Referer인 경우) |
| uri_res_code | network.http.response_code | uri_res_code에서 정수로 변환됨 |
| user_agent, header.value | network.http.user_agent | 설정된 경우 user_agent의 값, 그렇지 않고 User-Agent인 경우 header.value |
| target_hostname, header.value, request.hostname, tempData.request.hostname | principal.asset.hostname | 설정된 경우 target_hostname의 값, IP가 아닌 호스트인 경우 header.value, IP가 아닌 경우 request.hostname, 그 밖의 경우에는 tempData.request.hostname |
| src_ip, request.ipSrc, source_ip | principal.asset.ip | src_ip, request.ipSrc, source_ip에서 병합됨(호스트 및 IP인 경우 header.value에서) |
| target_hostname, header.value, request.hostname, tempData.request.hostname | principal.hostname | 설정된 경우 target_hostname의 값, IP가 아닌 호스트인 경우 header.value, IP가 아닌 경우 request.hostname, 그 밖의 경우에는 tempData.request.hostname |
| src_ip, request.ipSrc, source_ip | principal.ip | src_ip, request.ipSrc, source_ip에서 병합됨(호스트 및 IP인 경우 header.value에서) |
| src_port, header.value | principal.port | 설정된 경우 src_port의 값, 그렇지 않고 X-Forwarded-Port인 경우 header.value를 정수로 변환한 값 |
| request.requestUid, tempData.request.requestUid | principal.user.userid | request.requestUid의 값(설정된 경우), 그렇지 않으면 tempData.request.requestUid |
| cookie_label, header_label, reverseProxyName_label, reverseProxyUid_label, tunnelName_label, tunnelUid_label, workflowName_label, workflowUid_label | security_result.about.resource.attribute.labels | request.cookies, request.headers, context.reverseProxyName, context.reverseProxyUid, context.tunnelName, context.tunnelUid, context.workflowName, context.workflowUid의 라벨과 병합됨 |
| vlan_label, riskLevel_label, riskLevelOWASP_label, logAlertUid_label, engine_name_label, resolveType_label, part_label, cwe_label, icxPolicyName_label, icxPolicyUid_label, icxRuleName_label, icxRuleUid_label, eaPolicyName_label, eaPolicyUid_label, eaRuleId_label, eaStaticPolicyUid_label, tag_label, geoipCode_label, geoipName_label, appliance_id_label, backendHost_label, reverseProxyName_label, reverseProxyUid_label, tunnelName_label, tunnelUid_label, workflowName_label, workflowUid_label, reason_label, timestampImport_label, matching_cwe_label, matching_part_label, match_riskLevel_label, match_riskLevelOWASP_label, partValue_label, partValueMatch_label | security_result.detection_fields | vlan, tokens.riskLevel, tokens.riskLevelOWASP, logAlertUid, eventt.tokens.engineName, eventt.tokens.resolveType, eventt.tokens.part, eventt.tokens.cwe, eventt.tokens.icxPolicyName, eventt.tokens.icxPolicyUid, eventt.tokens.icxRuleName, eventt.tokens.icxRuleUid, eventt.tokens.eaPolicyName, eventt.tokens.eaPolicyUid, eventt.tokens.eaRuleId, eventt.tokens.eaStaticPolicyUid, tempData.context.tags, tempData.context.geoipCode, tempData.context.geoipName, tempData.context.applianceUid, tempData.context.backendHost, tempData.context.reverseProxyName, tempData.context.reverseProxyUid, tempData.context.tunnelName, tempData.context.tunnelUid, tempData.context.workflowName, tempData.context.workflowUid, eventt.tokens.reason, tempData.timestampImport, matchingPart.cwe, matchingPart.part, matchingPart.riskLevel, matchingPart.riskLevelOWASP, matchingPart.partValue, matchingPart.partValueMatch의 라벨과 병합됨 |
| desc, tokens.customMessage, eventt.tokens.customMessage, eventData.tokens.customMessage | security_result.description | 설정된 경우 desc의 값, 그렇지 않으면 tokens.customMessage, 그렇지 않으면 eventt.tokens.customMessage, 그렇지 않으면 eventData.tokens.customMessage |
| tokens.severity, eventt.tokens.severity, severity_level | security_result.severity | 심각도가 1~3인 경우 INFORMATIONAL로 설정, 심각도가 4~5인 경우 CRITICAL로 설정, 심각도가 6~7인 경우 MEDIUM으로 설정, 그 외에는 UNKNOWN_SEVERITY로 설정 |
| tokens.reason, eventt.tokens.reason, eventData.tokens.reason | security_result.summary | tokens.reason의 값(설정된 경우), 그렇지 않으면 eventt.tokens.reason, 그렇지 않으면 eventData.tokens.reason |
| tokens.attackFamily, eventt.tokens.attackFamily, eventData.tokens.attackFamily | security_result.threat_name | tokens.attackFamily의 값(설정된 경우), 그렇지 않으면 eventt.tokens.attackFamily, 그렇지 않으면 eventData.tokens.attackFamily |
| source_ip | src.ip | source_ip에서 설정(호스트 및 IP인 경우 header.value에서 설정) |
| target_hostname | target.asset.hostname | target_hostname에서 직접 복사한 값 |
| request.ipDst, target_ip_label | target.asset.ip | request.ipDst, target_ip_label에서 병합됨 |
| tempData.request.path | target.file.full_path | tempData.request.path에서 직접 복사한 값 |
| target_hostname, header.value | target.hostname | 설정된 경우 target_hostname의 값이고, 그렇지 않으면 Host인 경우 header.value입니다. |
| request.ipDst, target_ip_label | target.ip | request.ipDst, target_ip_label에서 병합됨 |
| target_port, request.portDst, context.backendPort, tempData.request.portDst, tempData.context.backendPort | target.port | target_port의 값(설정된 경우), 그렇지 않으면 request.portDst, 그렇지 않으면 context.backendPort, 그렇지 않으면 tempData.request.portDst, 그렇지 않으면 tempData.context.backendPort(정수로 변환됨) |
| engineUid_label, engine_name_label, cwe_label, resolveType_label, part_label, matching_cwe_label, matching_part_label, match_riskLevel_label, match_riskLevelOWASP_label, matching_part_key_label, matching_part_key_match_label, partKeyOperator_label, partKeyPattern_label, partValue_label, partValueMatch_label, partValueOperator_label, partValuePatternName_label, partValuePatternUid_label, partValuePatternVersion_label, scoringlistRuleId_label, scoringlistRuleWeight_label | target.resource.attribute.labels | tokens.engineUid, tokens.engineName, tokens.cwe, tokens.resolveType, tokens.part, eventData.tokens.engineUid, eventData.tokens.engineName, eventData.tokens.cwe, eventData.tokens.resolveType, eventData.tokens.part, matchingPart.cwe, matchingPart.part, matchingPart.riskLevel, matchingPart.riskLevelOWASP, matchingPart.partKey, matchingPart.partKeyMatch, matchingPart.partKeyOperator, matchingPart.partKeyPattern, matchingPart.partValue, matchingPart.partValueMatch, matchingPart.partValueOperator, matchingPart.partValuePatternName, matchingPart.partValuePatternUid, matchingPart.partValuePatternVersion, matchingPart.scoringlistRuleId, matchingPart.scoringlistRuleWeight의 라벨과 병합됨 |
| target_path | target.url | target_path에서 직접 복사한 값 |
headers.value |
event.idm.read_only_udm.security_result.about.resource.attribute.labels |
변경 로그에서 매핑됨 |
key |
event.idm.read_only_udm.security_result.about.resource.attribute.labels |
변경 로그에서 매핑됨 |
X-Forwarded-Host |
event.idm.read_only_udm.security_result.about.resource.attribute.labels |
변경 로그에서 매핑됨 |
tokens.ipReputationIp |
event.idm.read_only_udm.principal.ip |
변경 로그에서 매핑됨 |
tokens.ipReputationIp |
event.idm.read_only_udm.principal.asset.ip |
변경 로그에서 매핑됨 |
tokens.matchingParts |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
request.body |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
unique_id1 |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
thread_id |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.ipReputationScore |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.eaTotalScore |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.eaPolicyUid |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.eaPolicyName |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.eaStaticPolicyUid |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.eaRuleId |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.eaNewRulesWarningMode |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
internal_timestamp |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.securityExceptionConfigurationUid |
event.idm.read_only_udm.additional.fields |
변경 로그에서 매핑됨 |
tokens.icxPolicyName |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
tokens.icxPolicyUid |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
tokens.icxRuleName |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
tokens.icxRuleUid |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
tokens.ipReputationThreats |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
message_component |
event.idm.read_only_udm.target.resource.attribute.labels |
변경 로그에서 매핑됨 |
변경 로그
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가에게 문의하여 답변을 받으세요.