Akeyless Vault 로그 수집
이 문서에서는 직접 수집 또는 Bindplane을 사용하여 Akeyless Vault 로그를 Google Security Operations에 수집하는 방법을 설명합니다. 파서는 먼저 키-값 또는 JSON 형식일 수 있는 로그 메시지를 일관된 구조로 정규화합니다. 그런 다음 관련 필드를 추출하여 통합 데이터 모델 (UDM) 스키마에 매핑하고 IP 주소의 존재 여부와 실행된 작업을 기반으로 이벤트 유형을 분류합니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Akeyless Vault에 대한 액세스 권한 관리
Google SecOps 수집 인증 파일 가져오기
- Google SecOps 콘솔에 로그인합니다.
- SIEM 설정 > 수집 에이전트로 이동합니다.
- 수집 인증 파일을 다운로드합니다.
Google SecOps 고객 ID 가져오기
- Google SecOps 콘솔에 로그인합니다.
- SIEM 설정 > 프로필로 이동합니다.
- 조직 세부정보 섹션에서 고객 ID를 복사하여 저장합니다.
Akeyless Vault에서 Google SecOps로 직접 수집하기 위한 로그 전달 구성
- Akeyless Gateway 웹 UI에 로그인합니다.
- 로그 전달로 이동합니다.
- 사용 설정을 선택합니다.
- 다음 구성 세부정보를 제공합니다.
- 로그 형식: JSON을 선택합니다.
- 감사 로그 서버:
https://audit.akeyless.io/
을 입력합니다. - Service(서비스): Google Chronicle을 선택합니다.
- 서비스 계정 키: 서비스 계정 사용자 인증 정보를 보유한 JSON 파일을 제공합니다.
- 고객 ID: Google SecOps 고유 식별자를 입력합니다.
- 리전: Google SecOps가 프로비저닝된 리전을 입력합니다.
- 로그 유형: AKEYLESS_VAULT를 입력합니다.
- 변경사항 저장을 클릭합니다.
선택사항: Bindplane을 통해 Syslog 수집
Windows Bindplane 설치
- 명령 프롬프트 또는 PowerShell을 관리자로 엽니다.
다음 명령어를 실행합니다.
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
Linux Bindplane 설치
- 루트 또는 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: 'AKEYLESS_VAULT' 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
를 업데이트합니다.
Bindlane 에이전트를 다시 시작하여 변경사항을 적용합니다.
Linux에서 Bindplane 에이전트를 다시 시작하려면 다음 명령어를 실행합니다.
sudo systemctl restart bindplane-agent
Windows에서 Bindplane 에이전트를 다시 시작하려면 서비스 콘솔을 사용하거나 다음 명령어를 입력하면 됩니다.
net stop BindPlaneAgent && net start BindPlaneAgent
Akeyless Vault에서 Bindplane으로 Syslog 전달 구성
- Akeyless Gateway 웹 UI에 로그인합니다.
- 로그 전달로 이동합니다.
- 사용 설정을 선택합니다.
- 다음 구성 세부정보를 제공합니다.
- 로그 형식: JSON을 선택합니다.
- 감사 로그 서버:
https://audit.akeyless.io/
을 입력합니다. - 서비스: 시스템 로그를 선택합니다.
- Syslog Network(Syslog 네트워크): UDP를 선택합니다. (Bindplane 에이전트 구성에 따라 다른 옵션을 선택할 수 있습니다.)
- Syslog 호스트: Bindplane 에이전트 IP 주소를 입력합니다.
- Syslog Formatter(Syslog 포맷터): Text(텍스트)를 선택합니다.
- (선택사항) TLS: TLS 체크박스를 선택하고 TLS 인증서를 업로드합니다.
- 변경사항 저장을 클릭합니다.
UDM 매핑 테이블
로그 필드 | UDM 매핑 | 논리 |
---|---|---|
access_id | read_only_udm.metadata.product_log_id | access_id 필드에서 직접 매핑됩니다. 없는 경우 정규식 access_id:\s+(?<accessid>[\w-]+) 을 사용하여 message 필드에서 추출됩니다. |
account_id | read_only_udm.target.user.userid | account_id 필드에서 직접 매핑됩니다. |
action | read_only_udm.security_result.action_details | action 필드에서 직접 매핑됩니다. |
구성요소 | read_only_udm.target.resource.name | component 필드에서 직접 매핑됩니다. |
기간 | read_only_udm.network.session_duration.seconds | duration 필드에서 직접 매핑되고 정수로 변환됩니다. |
remote_addr | read_only_udm.principal.ip | remote_addr 필드에서 추출하여 쉼표로 분할하고 principal.ip 배열에 추가합니다. |
request_parameters.access_type | read_only_udm.target.resource.attribute.labels.value (키가 'access_type'인 경우) | request_parameters.access_type 필드에서 직접 매핑됩니다. 없는 경우 정규식 access_type:\s+(?<accesstype>[\S]+) 을 사용하여 message 필드에서 추출됩니다. |
request_parameters.comment | read_only_udm.target.resource.attribute.labels.value (키가 'comment'인 경우) | request_parameters.comment 필드에서 직접 매핑됩니다. |
request_parameters.operation | read_only_udm.target.resource.attribute.labels.value (키가 'operation'인 경우) | request_parameters.operation 필드에서 직접 매핑됩니다. |
request_parameters.product | read_only_udm.target.resource.attribute.labels.value (키가 'product'인 경우) | request_parameters.product 필드에서 직접 매핑됩니다. 없는 경우 정규식 product:\s+(?<product>[\w\s]+) 을 사용하여 message 필드에서 추출됩니다. |
request_parameters.token_id | read_only_udm.target.resource.attribute.labels.value (키가 'token_id'인 경우) | request_parameters.token_id 필드에서 직접 매핑됩니다. |
request_parameters.transaction_type | read_only_udm.target.resource.attribute.labels.value (키가 'transaction_type'인 경우) | request_parameters.transaction_type 필드에서 직접 매핑되고 문자열로 변환됩니다. 없는 경우 정규식 transaction_type:\s+(?<transactiontype>[\S]+) 을 사용하여 message 필드에서 추출됩니다. |
request_parameters.unique_id | read_only_udm.target.resource.attribute.labels.value (키가 'unique_id'인 경우) | request_parameters.unique_id 필드에서 직접 매핑됩니다. 없는 경우 정규식 unique_id:\s+(?<uniqueid>[\w-]+) 을 사용하여 message 필드에서 추출됩니다. |
request_parameters.universal_identity_rotate_type | read_only_udm.target.resource.attribute.labels.value (키가 'universal_identity_rotate_type'인 경우) | request_parameters.universal_identity_rotate_type 필드에서 직접 매핑됩니다. |
request_parameters.user_agent | read_only_udm.target.resource.attribute.labels.value (키가 'user_agent'인 경우) | request_parameters.user_agent 필드에서 직접 매핑됩니다. |
줄이는 것을 | severity 필드에서 직접 매핑됩니다. |
|
상태 | read_only_udm.network.http.response_code | status 필드에서 직접 매핑되고 정수로 변환됩니다. |
타임스탬프 | read_only_udm.metadata.event_timestamp | 로그 항목 timestamp 필드에서 직접 매핑됩니다. |
read_only_udm.metadata.log_type | AKEYLESS_VAULT 로 하드코딩되었습니다. |
|
read_only_udm.metadata.event_type | ip_present 이 true이면 STATUS_UPDATE 로 설정하고 그렇지 않으면 GENERIC_EVENT 로 기본 설정됩니다. |
|
read_only_udm.metadata.vendor_name | 정규식 CEF:0|%{DATA:device_vendor}|%{DATA:device_product}|%{DATA:device_version}|%{DATA:device_event_class_id}\s+%{WORD}\[%{INT}\]:\s+%{GREEDYDATA:kv_data} 을 사용하여 message 필드에서 추출됩니다. |
|
read_only_udm.metadata.product_name | 정규식 CEF:0|%{DATA:device_vendor}|%{DATA:device_product}|%{DATA:device_version}|%{DATA:device_event_class_id}\s+%{WORD}\[%{INT}\]:\s+%{GREEDYDATA:kv_data} 을 사용하여 message 필드에서 추출됩니다. |
|
read_only_udm.metadata.product_version | 정규식 CEF:0|%{DATA:device_vendor}|%{DATA:device_product}|%{DATA:device_version}|%{DATA:device_event_class_id}\s+%{WORD}\[%{INT}\]:\s+%{GREEDYDATA:kv_data} 을 사용하여 message 필드에서 추출됩니다. |
|
read_only_udm.metadata.product_event_type | 정규식 <%{INT}>%{TIMESTAMP_ISO8601:time}\s+%{DATA}\s+(?P<product_event_type>[\w-]+)\[%{INT}\]:\s+(?P<time2>\d{1,2}-%{MONTH}-\d{1,4}\s+\d{1,2}:\d{1,2}:\d{1,2}.\d+)\s+%{WORD}\s+%{WORD:severity}\s+CEF:0|%{DATA:device_vendor}|%{DATA:device_product}|%{DATA:device_version}|%{DATA:device_event_class_id}\s+%{WORD}\[%{INT}\]:\s+%{GREEDYDATA:kv_data} 을 사용하여 message 필드에서 추출됩니다. |
|
read_only_udm.target.namespace | 정규식 namespace:\s+(?<namespace>[\S]+) 을 사용하여 message 필드에서 추출됩니다. |
|
read_only_udm.security_result.severity | severity 필드에서 매핑됨: Info ~INFORMATIONAL , Error ~ERROR , Warning ~MEDIUM , 그 외에는 UNKNOWN_SEVERITY |
|
read_only_udm.network.http.method | action 필드에서 매핑됨: get ~GET , put ~Authentication ~PUT , post ~POST , delete ~DELETE |
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가로부터 답변을 받으세요.