Imperva FlexProtect 로그 수집
이 문서에서는 Bindplane을 사용하여 Imperva FlexProtect 로그를 Google Security Operations에 수집하는 방법을 설명합니다. 파서는 먼저 수신 로그를 정리하고 사전 처리한 다음 공통 이벤트 형식 (CEF) 데이터를 추출하려고 시도합니다. 'src', 'sip'과 같은 특정 필드의 존재 여부에 따라 UDM 이벤트 유형을 할당하고 관련 CEF 필드를 UDM 스키마에 매핑한 후 추가 맞춤 필드로 출력을 보강합니다. Imperva FlexProtect는 하이브리드 클라우드 환경 전반에서 Imperva 보안 솔루션 (SecureSphere, Cloud WAF, Bot Protection)을 유연하게 배포할 수 있도록 지원합니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Windows 2016 이상 또는
systemd
가 설치된 Linux 호스트 - 프록시 뒤에서 실행하는 경우 Bindplane 에이전트 요구사항에 따라 방화벽 포트가 열려 있는지 확인합니다.
- Imperva FlexProtect 관리 콘솔 또는 개별 제품 콘솔에 대한 권한 액세스
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_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_FLEXPROTECT' 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
Imperva FlexProtect에서 Syslog 전달 구성
SecureSphere 구성요소 (온프레미스/클라우드)
- Imperva SecureSphere 관리 콘솔에 로그인합니다.
- 구성 > 작업 세트로 이동합니다.
- 추가를 클릭하여 새 작업 세트를 만듭니다.
작업 추가를 클릭하고 다음 구성 세부정보를 제공합니다.
- 이름: 설명이 포함된 이름을 입력합니다 (예:
Google SecOps Syslog
). - 작업 유형: Syslog를 선택합니다.
- 호스트: Bindplane 에이전트 IP 주소를 입력합니다.
- 포트: Bindplane 에이전트 포트 번호 (기본값
514
)를 입력합니다. - 프로토콜: UDP 또는 TCP를 선택합니다.
- Syslog 로그 수준: DEBUG를 선택합니다.
- Syslog Facility(Syslog 기능): LOCAL0을 선택합니다.
- 형식: CEF (Common Event Format)를 선택합니다.
- 이름: 설명이 포함된 이름을 입력합니다 (예:
작업 구성을 저장하고 관련 보안 정책에 적용합니다.
Cloud WAF/Incapsula 구성요소
- Imperva Cloud Console에 로그인합니다.
- 로그 > 로그 설정으로 이동합니다.
- syslog 대상 구성:
- 호스트: Bindplane 에이전트 IP 주소를 입력합니다.
- 포트: Bindplane 에이전트 포트 번호 (기본값
514
)를 입력합니다. - 프로토콜: UDP 또는 TCP를 선택합니다.
- 형식: CEF를 선택합니다.
UDM 매핑 테이블
로그 필드 | UDM 매핑 | 논리 |
---|---|---|
act | read_only_udm.security_result.action_details | act 필드에서 직접 매핑됩니다. |
앱 | read_only_udm.network.application_protocol | app 필드에서 직접 매핑됩니다. |
ccode | read_only_udm.principal.location.country_or_region | ccode 필드에서 직접 매핑됩니다. |
cicode | read_only_udm.principal.location.city | cicode 필드에서 직접 매핑됩니다. |
cn1 | read_only_udm.network.http.response_code | 정수로 변환된 후 cn1 필드에서 직접 매핑됩니다. |
cs1 | read_only_udm.additional.fields.value.string_value | cs1 필드에서 직접 매핑됩니다. |
cs2 | read_only_udm.additional.fields.value.string_value | cs2 필드에서 직접 매핑됩니다. |
cs3 | read_only_udm.additional.fields.value.string_value | cs3 필드에서 직접 매핑됩니다. |
cs4 | read_only_udm.additional.fields.value.string_value | cs4 필드에서 직접 매핑됩니다. |
cs5 | read_only_udm.additional.fields.value.string_value | cs5 필드에서 직접 매핑됩니다. |
cs6 | read_only_udm.additional.fields.value.string_value | cs6 필드에서 직접 매핑됩니다. |
cs7 | read_only_udm.additional.fields.value.string_value | cs7 필드에서 직접 매핑됩니다. |
cs8 | read_only_udm.additional.fields.value.string_value | cs8 필드에서 직접 매핑됩니다. |
cs9 | read_only_udm.additional.fields.value.string_value | cs9 필드에서 직접 매핑됩니다. |
cpt | read_only_udm.principal.port | 정수로 변환된 후 cpt 필드에서 직접 매핑됩니다. |
고객 | read_only_udm.principal.user.user_display_name | Customer 필드에서 직접 매핑됩니다. |
deviceExternalId | read_only_udm.about.asset.asset_id | 이 값은 'Incapsula.SIEMintegration:'과 deviceExternalId 필드를 연결하여 파생됩니다. |
deviceFacility | read_only_udm.principal.location.city | deviceFacility 필드에서 직접 매핑됩니다. |
dproc | read_only_udm.target.process.command_line | dproc 필드에서 직접 매핑됩니다. |
end | read_only_udm.security_result.detection_fields.value | end 필드에서 직접 매핑됩니다. |
fileId | read_only_udm.network.session_id | fileId 필드에서 직접 매핑됩니다. |
filePermission | read_only_udm.about.resource.attribute.permissions.name | filePermission 필드에서 직접 매핑됩니다. |
in | read_only_udm.network.received_bytes | in 필드에서 직접 매핑됩니다. |
qstr | read_only_udm.security_result.detection_fields.value | qstr 필드에서 직접 매핑됩니다. |
요청 | read_only_udm.target.url | request 필드에서 직접 매핑됩니다. |
requestClientApplication | read_only_udm.network.http.user_agent | requestClientApplication 필드에서 직접 매핑됩니다. |
requestMethod | read_only_udm.network.http.method | requestMethod 필드에서 직접 매핑됩니다. |
siteid | read_only_udm.security_result.detection_fields.value | siteid 필드에서 직접 매핑됩니다. |
SIP | read_only_udm.target.ip | sip 필드에서 직접 매핑됩니다. |
sourceServiceName | read_only_udm.principal.application | sourceServiceName 필드에서 직접 매핑됩니다. |
spt | read_only_udm.target.port | 정수로 변환된 후 spt 필드에서 직접 매핑됩니다. |
src | read_only_udm.principal.ip | src 필드에서 직접 매핑됩니다. |
시작 | read_only_udm.security_result.detection_fields.value | start 필드에서 직접 매핑됩니다. |
suid | read_only_udm.principal.user.userid | suid 필드에서 직접 매핑됩니다. |
ver | read_only_udm.network.tls.version | ver 필드에서 직접 매핑됩니다. |
read_only_udm.about.asset.asset_id | 이 값은 'Incapsula.SIEMintegration:'과 deviceExternalId 필드를 연결하여 파생됩니다. |
|
read_only_udm.additional.fields.key | 값은 필드의 라벨을 기반으로 파서 로직에 의해 결정됩니다. 예를 들면 다음과 같습니다. - cs1Label 은 'Cap Support'에 매핑됩니다. - cs2Label 은 'Javascript Support'에 매핑됩니다. - cs3Label 은 'CO Support'에 매핑됩니다. - cs4Label 은 'VID'에 매핑됩니다. - cs5Label 은 'clappsig'에 매핑됩니다. - cs6Label 은 'clapp'에 매핑됩니다. - cs7Label 은 'latitude'에 매핑됩니다. - cs8Label 은 'longitude'에 매핑됩니다. - cs9Label 은 'Rule name'에 매핑됩니다. |
|
read_only_udm.metadata.event_timestamp.nanos | collection_time.nanos 필드에서 직접 매핑됩니다. |
|
read_only_udm.metadata.event_timestamp.seconds | collection_time.seconds 필드에서 직접 매핑됩니다. |
|
read_only_udm.metadata.event_type | 이 값은 src 및 sip 필드의 존재 여부에 따라 결정됩니다. - 두 필드가 모두 있는 경우 값은 'NETWORK_HTTP'로 설정됩니다. - src 만 있는 경우 값은 'USER_UNCATEGORIZED'로 설정됩니다. - 그렇지 않으면 값이 'GENERIC_EVENT'로 설정됩니다. |
|
read_only_udm.metadata.product_event_type | 이 값은 '[', 색인 4의 CEF 헤더 필드에서 가져온 숫자 값, '] - ', 색인 4의 CEF 헤더 필드에서 가져온 텍스트 설명을 연결하여 파생됩니다. | |
read_only_udm.metadata.product_name | 값은 'SIEMintegration'으로 정적으로 설정됩니다. | |
read_only_udm.metadata.product_version | 값은 '1'로 정적으로 설정됩니다. | |
read_only_udm.metadata.vendor_name | 값은 'Incapsula'로 정적으로 설정됩니다. | |
read_only_udm.security_result.detection_fields.key | 값은 처리되는 해당 필드에 따라 'siteid', 'event_start_time', 'event_end_time' 또는 'qstr'로 정적으로 설정됩니다. | |
read_only_udm.security_result.severity | 값은 'LOW'로 정적으로 설정됩니다. | |
read_only_udm.target.port | 정수로 변환된 후 spt 필드에서 직접 매핑됩니다. |
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가로부터 답변을 받으세요.