Imperva CEF 로그 수집
이 문서에서는 Bindplane 에이전트를 사용하여 Imperva CEF 로그를 Google Security Operations로 수집하는 방법을 설명합니다.
파서는 CEF(Common Event Format)의 Imperva syslog 형식 로그에서 필드를 추출합니다. grok 또는 kv를 사용하여 CEF 메시지를 파싱한 후 이러한 값을 통합 데이터 모델(UDM)에 매핑합니다. 또한 이벤트 소스 및 유형의 기본 메타데이터 값을 설정합니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Windows 2016 이상 또는 Linux 호스트(
systemd포함) - 프록시 뒤에서 실행하는 경우 Bindplane 에이전트 요구사항에 따라 방화벽 포트가 열려 있는지 확인합니다.
- Imperva 관리 콘솔 또는 어플라이언스에 대한 권한 있는 액세스
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
Linux 설치
- 루트 또는 sudo 권한으로 터미널을 엽니다.
다음 명령어를 실행합니다.
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
추가 설치 리소스
추가 설치 옵션은 Bindplane 에이전트 설치 가이드를 참조하세요.
Syslog를 수집하고 Google SecOps로 전송하도록 Bindplane 에이전트 구성
구성 파일에 액세스합니다.
config.yaml파일을 찾습니다. 일반적으로 Linux의/opt/observiq-otel-collector/디렉터리 또는 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: 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 # 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: chronicle.googleapis.com # Add optional ingestion labels for better organization log_type: 'IMPERVA_CEF' raw_log_field: body ingestion_labels: service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - udplog exporters: - chronicle/chronicle_w_labels- 인프라에서 필요한 대로 포트와 IP 주소를 바꿉니다.
<LOCATION>을 Google SecOps 인스턴스의 리전(예:us,europe또는asia-southeast1)으로 바꿉니다. 내보내기 도구는 이 값으로chronicle.googleapis.com에 프리픽스를 추가합니다.<PROJECT_NUMBER>를 IAM 및 관리자 > 설정의 프로젝트 번호로 바꿉니다.<CUSTOMER_ID>를 실제 고객 ID로 바꿉니다./path/to/ingestion-authentication-file.json을 1단계에서 서비스 계정 키 파일(옵션 1)이 저장된 파일 경로로 업데이트합니다.
기존 수집 API 내보내기 도구
옵션 2의 데이터 수집 인증 파일을 사용하는 경우
exporters블록을 다음으로 바꿉니다.creds_file_path를 데이터 수집 인증 파일의 경로로 설정하고 인스턴스가 미국 외부에 있는 경우malachiteingestion-pa.googleapis.com를 리전 엔드포인트(예:europe-malachiteingestion-pa.googleapis.com)로 바꿉니다.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: 'IMPERVA_CEF' raw_log_field: body ingestion_labels:
Bindplane 에이전트를 다시 시작하여 변경사항을 적용합니다.
Linux에서 Bindplane 에이전트를 다시 시작하려면 다음 명령어를 실행합니다.
sudo systemctl restart observiq-otel-collectorWindows에서 Bindplane 에이전트를 다시 시작하려면 서비스 콘솔을 사용하거나 다음 명령어를 입력합니다.
net stop observiq-otel-collector && net start observiq-otel-collector
syslog를 통해 CEF를 전송하도록 Imperva WAF Gateway(SecureSphere) 구성
MX 콘솔에서 작업 세트를 만듭니다.
- 정책 > 작업 세트로 이동합니다.
- 새로 만들기를 클릭하고 이름을 지정합니다(예:
Google SecOps CEF).
CEF syslog 작업 인터페이스를 추가합니다.
- 사용 가능한 작업 인터페이스에서 시스템 로그를 열고 필요에 따라 다음 중 하나 이상을 추가합니다.
- CEF 표준을 사용하여 시스템 로그(syslog)에 보안 이벤트 로깅
- CEF 표준을 사용하여 시스템 로그(syslog)에 네트워크 보안 이벤트 로깅
- CEF 표준을 사용하여 시스템 로그(syslog)에 시스템 이벤트 로깅
- CEF 표준을 사용하여 시스템 로그(syslog)에 맞춤 보안 이벤트 기록
- 사용 가능한 작업 인터페이스에서 시스템 로그를 열고 필요에 따라 다음 중 하나 이상을 추가합니다.
작업 인터페이스 파라미터 구성:
- Syslog 호스트: Bindplane 에이전트 IP 주소를 입력합니다. 기본이 아닌 포트를 사용하려면
:PORT를 추가합니다(지정하지 않으면 기본값은 514). 예를 들면10.0.0.10:514입니다. - 시설 / 로그 수준: 정책 요구사항에 따라 설정합니다.
- 메시지: 커스텀 매핑이 없는 한 CEF의 공급업체 기본값을 그대로 둡니다.
- Syslog 호스트: Bindplane 에이전트 IP 주소를 입력합니다. 기본이 아닌 포트를 사용하려면
작업 세트를 정책에 연결합니다.
- 보안/네트워크 보안 이벤트의 경우 관련 정책을 열고 후속 조치를 작업 세트로 설정합니다.
- 시스템 이벤트: 시스템 이벤트 정책을 만들거나 확인하고 후속 작업을 작업 세트로 설정하여 해당 이벤트도 CEF를 통해 전송되도록 합니다.
(선택사항) 게이트웨이별 대상 구성:
- 서로 다른 게이트웨이 그룹이 서로 다른 시스템로그 서버로 전송해야 하는 경우 각 게이트웨이 그룹 > 외부 로거를 구성하고 정책에서 '게이트웨이 구성이 있는 경우 사용'을 사용 설정합니다.
UDM 매핑 테이블
| 로그 필드 | UDM 매핑 | 로직 |
|---|---|---|
act |
security_result.action |
파생됨. act가 '허용됨', '알림'이거나 'REQ_PASSED' 또는 'REQ_CACHED'로 시작하는 경우 action는 '허용'입니다. act가 'deny', 'blocked'이거나 'REQ_BLOCKED' 또는 'REQ_CHALLENGE'로 시작하는 경우 action는 'BLOCK'입니다. act가 정규식 (?i)REQ_BAD과 일치하면 action는 'FAIL'입니다. 그렇지 않으면 action은 'UNKNOWN_ACTION'입니다. 그런 다음 security_result.action가 action 값으로 설정됩니다. |
act |
security_result.action_details |
파생됨. act 값을 기반으로 자세한 설명이 생성됩니다. 예: 'REQ_CACHED_FRESH: 데이터 센터의 캐시에서 응답이 반환됨', 'REQ_BLOCKED: 요청이 차단됨' |
app |
network.application_protocol |
대문자로 변환된 후 직접 매핑됩니다. |
cs1 |
security_result.detection_fields.value |
cs1가 비어 있지 않거나 '해당 사항 없음'이 아닌 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cs1Label 값으로 설정됩니다. |
cs1Label |
security_result.detection_fields.key |
cs1가 비어 있지 않거나 '해당 사항 없음'이 아닌 경우 조건부로 매핑됩니다. security_result.detection_fields.value는 cs1 값으로 설정됩니다. |
cs2 |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cs2Label 값으로 설정됩니다. |
cs2Label |
security_result.detection_fields.key |
cs2가 비어 있지 않으면 조건부로 매핑됩니다. security_result.detection_fields.value는 cs2 값으로 설정됩니다. |
cs3 |
security_result.detection_fields.value |
비어 있지 않거나 '-'가 아닌 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cs3Label 값으로 설정됩니다. |
cs3Label |
security_result.detection_fields.key |
cs3가 비어 있지 않거나 '-'가 아닌 경우 조건부로 매핑됩니다. security_result.detection_fields.value는 cs3 값으로 설정됩니다. |
cs4 |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cs4Label 값으로 설정됩니다. |
cs4Label |
security_result.detection_fields.key |
cs4가 비어 있지 않으면 조건부로 매핑됩니다. security_result.detection_fields.value는 cs4 값으로 설정됩니다. |
cs5 |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cs5Label 값으로 설정됩니다. |
cs5Label |
security_result.detection_fields.key |
cs5가 비어 있지 않으면 조건부로 매핑됩니다. security_result.detection_fields.value는 cs5 값으로 설정됩니다. |
cs6 |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cs6Label 값으로 설정됩니다. |
cs6Label |
security_result.detection_fields.key |
cs6가 비어 있지 않으면 조건부로 매핑됩니다. security_result.detection_fields.value는 cs6 값으로 설정됩니다. |
cs7 |
principal.location.region_latitude |
cs7Label가 'latitude'인 경우 조건부로 매핑됩니다. |
cs8 |
principal.location.region_longitude |
cs8Label가 'longitude'인 경우 조건부로 매핑됩니다. |
cn1 |
security_result.detection_fields.value |
비어 있지 않고 cn1Label가 비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key는 cn1Label 값으로 설정됩니다. |
cn1Label |
security_result.detection_fields.key |
cn1 및 cn1Label가 비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.value는 cn1 값으로 설정됩니다. |
fileType |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key가 'fileType'으로 설정됩니다. |
filePermission |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key이 'filePermission'으로 설정됩니다. |
request |
target.url |
직접 매핑됩니다. |
requestClientApplication |
network.http.user_agent |
비어 있지 않은 경우 조건부로 매핑됩니다. CEF 페이로드의 requestContext 또는 requestClientApplication 키-값 쌍에서 추출된 user_agent 필드에서 매핑된 값을 덮어씁니다. |
requestMethod |
network.http.method |
직접 매핑됩니다. |
siteid |
security_result.detection_fields.value |
비어 있지 않은 경우 조건부로 매핑됩니다. security_result.detection_fields.key은 'siteid'로 설정됩니다. |
sourceServiceName |
target.hostname |
직접 매핑됩니다. dhost 값이 있는 경우 해당 값을 덮어씁니다. |
src |
principal.ip |
직접 매핑됩니다. |
start |
metadata.event_timestamp.seconds |
grok 패턴을 사용하여 추출되고 타임스탬프로 변환됩니다. deviceReceiptTime가 없는 경우 대체로 사용됩니다. deviceReceiptTime 및 start가 모두 비어 있으면 로그 타임스탬프가 사용됩니다. |
suid |
principal.user.userid |
비어 있지 않은 경우 조건부로 매핑됩니다. |
| 해당 사항 없음 | metadata.event_type |
'NETWORK_HTTP'로 하드코딩됩니다. |
| 해당 사항 없음 | metadata.log_type |
최상위 log_type 필드에서 직접 매핑됩니다. |
| 해당 사항 없음 | metadata.product_event_type |
비어 있지 않은 경우 csv.event_id에서 매핑됩니다. |
| 해당 사항 없음 | metadata.product_name |
'웹 애플리케이션 방화벽'으로 하드코딩됩니다. |
| 해당 사항 없음 | metadata.vendor_name |
'Imperva'로 하드코딩됩니다. |
kv.act |
event.idm.read_only_udm.security_result.action_details |
변경 로그에서 매핑됨 |
kv.sourceServiceName |
event.idm.read_only_udm.target.resource.name |
변경 로그에서 매핑됨 |
cicode |
event.idm.read_only_udm.principal.location.city |
변경 로그에서 매핑됨 |
ccode |
event.idm.read_only_udm.principal.location.country_or_region |
변경 로그에서 매핑됨 |
Customer |
event.idm.read_only_udm.network.organization_name |
변경 로그에서 매핑됨 |
tls_cipher |
event.idm.read_only_udm.network.tls.cipher |
변경 로그에서 매핑됨 |
cpt |
event.idm.read_only_udm.target.port |
변경 로그에서 매핑됨 |
fileId |
event.idm.read_only_udm.target.resource.product_object_id |
변경 로그에서 매핑됨 |
dproc |
event.idm.read_only_udm.security_result.category_details |
변경 로그에서 매핑됨 |
deviceFacility |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
deviceExternalId |
event.idm.read_only_udm.security_result.detection_fields |
변경 로그에서 매핑됨 |
end |
event.idm.read_only_udm.metadata.collected_timestamp |
변경 로그에서 매핑됨 |
변경 로그
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가에게 문의하여 답변을 받으세요.