1Password 감사 이벤트 로그 수집
파서 버전: 2.0
이 문서에서는 Cloud Storage V2를 사용하여 1Password 감사 이벤트 로그를 Google Security Operations에 수집하는 방법을 설명합니다.
1Password는 팀이 사용자 인증 정보, 보안 비밀, 민감한 정보를 안전하게 저장, 공유, 관리할 수 있도록 지원하는 비밀번호 관리 플랫폼입니다. 1Password Events API를 사용하면 1Password Business 계정에서 수행된 관리 및 정책 작업이 캡처된 감사 이벤트 데이터에 액세스할 수 있습니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스
- Cloud Storage API가 사용 설정된 Google Cloud 프로젝트
- Cloud Storage 버킷을 만들고 관리할 수 있는 권한
- Cloud Storage 버킷에서 Identity and Access Management(IAM) 정책을 관리할 수 있는 권한
- Cloud Run 서비스, Pub/Sub 주제, Cloud Scheduler 작업을 만들 수 있는 권한
- 1Password Business 계정
- 1Password 계정의 소유자 또는 관리자 역할
Cloud Storage 버킷 만들기
- Google Cloud 콘솔로 이동합니다.
- 프로젝트를 선택하거나 새 프로젝트를 만듭니다.
- 탐색 메뉴에서 Cloud Storage > 버킷으로 이동합니다.
- 버킷 만들기를 클릭합니다.
다음 구성 세부정보를 제공합니다.
설정 값 버킷 이름 지정 전역적으로 고유한 이름(예: onepassword-audit-secops-logs)을 입력합니다.위치 유형 필요에 따라 선택(리전, 이중 리전, 멀티 리전) 위치 위치를 선택합니다(예: us-central1).스토리지 클래스 표준(자주 액세스하는 로그에 권장) 액세스 제어 균일(권장) 보호 도구 선택사항: 객체 버전 관리 또는 보관 정책 사용 설정 만들기를 클릭합니다.
1Password 사용자 인증 정보 수집
이벤트 보고 통합 설정
- 1Password.com에서 계정에 로그인합니다.
- 사이드바에서 통합을 선택합니다.
- 이전에 다른 통합을 설정한 경우 통합 페이지에서 디렉터리를 선택합니다.
- 이벤트 보고 섹션에서 기타를 선택합니다.
- 이름 필드에 통합 이름을 입력합니다(예:
Google SecOps Audit Events). - 통합 추가를 클릭합니다.
Bearer 토큰 만들기
1Password는 Bearer 토큰 설정으로 바로 진행됩니다.
다음 구성 세부정보를 제공합니다.
- 토큰 이름: 설명이 포함된 이름(예:
SecOps GCS Collector - Audit Events)을 입력합니다. - 만료일: 토큰이 만료되는 시점을 선택합니다(30일, 90일, 180일). 기본값은 사용 안함입니다.
- 보고할 이벤트: 토큰이 액세스할 수 있는 이벤트를 선택합니다. 기본적으로 모든 이벤트 유형이 선택되어 있습니다. 감사 이벤트를 선택한 상태로 유지하고 로그인 시도 및 항목 사용을 선택 해제하여 토큰의 범위가 감사 이벤트로만 지정되도록 합니다.
- 토큰 이름: 설명이 포함된 이름(예:
토큰 발급을 클릭합니다.
토큰 저장 페이지에서 1Password에 저장을 클릭하고 토큰을 저장할 보관함을 선택한 다음 저장을 클릭합니다. 토큰이 API 사용자 인증 정보 항목으로 저장됩니다.
통합 세부정보 보기를 클릭하여 통합이 활성 상태인지 확인합니다.
Events API 기준 URL 확인
기준 URL은 1Password 계정을 호스팅하는 서버에 따라 다릅니다.
| 계정이 호스팅되는 위치 | Events API 기준 URL은 다음과 같습니다. |
|---|---|
1password.com |
https://events.1password.com |
ent.1password.com |
https://events.ent.1password.com |
1password.ca |
https://events.1password.ca |
1password.eu |
https://events.1password.eu |
테스트 API 액세스
통합을 진행하기 전에 사용자 인증 정보를 테스트합니다.
# Replace with your actual bearer token and base URL BEARER_TOKEN="<your-bearer-token>" API_BASE="https://events.1password.com" # Test API access using the introspect endpoint curl -v \ -H "Authorization: Bearer $BEARER_TOKEN" \ "$API_BASE/api/v2/auth/introspect"
성공 응답은 토큰이 액세스할 수 있는 이벤트 유형(예: ["auditevents"])을 나열하는 features 필드가 있는 JSON 객체를 반환합니다.
Cloud Run 함수의 서비스 계정 만들기
Cloud Run 함수에는 Cloud Storage 버킷에 쓰고 Pub/Sub에서 호출할 수 있는 권한이 있는 서비스 계정이 필요합니다.
서비스 계정 만들기
- Google Cloud 콘솔에서 IAM 및 관리자 > 서비스 계정으로 이동합니다.
- 서비스 계정 만들기를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 서비스 계정 이름:
onepassword-audit-collector-sa을 입력합니다. - 서비스 계정 설명:
Service account for Cloud Run function to collect 1Password Audit Events logs을 입력합니다.
- 서비스 계정 이름:
- 만들고 계속하기를 클릭합니다.
- 이 서비스 계정에 프로젝트에 대한 액세스 권한 부여 섹션에서 다음 역할을 추가합니다.
- 역할 선택을 클릭합니다.
- 스토리지 객체 관리자를 검색하고 선택합니다.
- + 다른 역할 추가를 클릭합니다.
- Cloud Run 호출자를 검색하여 선택합니다.
- + 다른 역할 추가를 클릭합니다.
- Cloud Functions 호출자를 검색하여 선택합니다.
- 계속을 클릭합니다.
- 완료를 클릭합니다.
이러한 역할은 다음 작업에 필요합니다.
- 스토리지 객체 관리자: Cloud Storage 버킷에 로그를 쓰고 상태 파일을 관리합니다.
- Cloud Run 호출자: Pub/Sub가 함수를 호출할 수 있도록 허용합니다.
- Cloud Functions 호출자: 함수 호출을 허용합니다.
Cloud Storage 버킷에 대한 IAM 권한 부여
서비스 계정에 Cloud Storage 버킷에 대한 쓰기 권한을 부여합니다.
- Cloud Storage > 버킷으로 이동합니다.
- 버킷(
onepassword-audit-secops-logs)을 클릭합니다. - 권한 탭으로 이동합니다.
- 액세스 권한 부여를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 주 구성원 추가:
onepassword-audit-collector-sa@PROJECT_ID.iam.gserviceaccount.com를 입력합니다. - 역할 할당: 스토리지 객체 관리자를 선택합니다.
- 주 구성원 추가:
- 저장을 클릭합니다.
Pub/Sub 주제 만들기
Cloud Scheduler가 게시하고 Cloud Run 함수가 구독할 Pub/Sub 주제를 만듭니다.
- Google Cloud 콘솔에서 Pub/Sub > 주제로 이동합니다.
- 주제 만들기를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 주제 ID:
onepassword-audit-trigger를 입력합니다. - 다른 설정은 기본값으로 둡니다.
- 주제 ID:
- 만들기를 클릭합니다.
로그를 수집하는 Cloud Run 함수 만들기
Cloud Run 함수는 Cloud Scheduler의 Pub/Sub 메시지에 의해 트리거되어 1Password Events API에서 감사 이벤트 로그를 가져와 Cloud Storage에 기록합니다.
- Google Cloud 콘솔에서 Cloud Run으로 이동합니다.
- 서비스 만들기를 클릭합니다.
- 함수(인라인 편집기를 사용하여 함수 만들기)를 선택합니다.
구성 섹션에서 다음 구성 세부정보를 제공합니다.
설정 값 서비스 이름 onepassword-audit-collector리전 Cloud Storage 버킷과 일치하는 리전(예: us-central1)을 선택합니다.런타임 Python 3.12 이상을 선택합니다. 트리거(선택사항) 섹션에서 다음을 수행합니다.
- + 트리거 추가를 클릭합니다.
- Cloud Pub/Sub를 선택합니다.
- Cloud Pub/Sub 주제 선택에서
onepassword-audit-trigger를 선택합니다. - 저장을 클릭합니다.
인증 섹션에서 다음을 구성합니다.
- 인증 필요를 선택합니다.
- Identity and Access Management(IAM)를 확인합니다.
컨테이너, 네트워킹, 보안으로 스크롤하여 펼칩니다.
보안 탭으로 이동합니다.
- 서비스 계정:
onepassword-audit-collector-sa를 선택합니다.
- 서비스 계정:
컨테이너 탭으로 이동합니다.
- 변수 및 보안 비밀을 클릭합니다.
- 각 환경 변수에 대해 + 변수 추가를 클릭합니다.
변수 이름 예시 값 설명 GCS_BUCKETonepassword-audit-secops-logsCloud Storage 버킷 이름 GCS_PREFIXonepassword-audit로그 파일의 프리픽스 STATE_KEYonepassword-audit-state.json로그 프리픽스 외부의 상태 파일 경로 OP_API_BASEhttps://events.1password.com1Password Events API 기준 URL OP_BEARER_TOKEN<your-bearer-token>1Password Events API Bearer 토큰 MAX_RECORDS10000실행당 최대 레코드 수 PAGE_SIZE1000페이지당 레코드(최대 1,000개) LOOKBACK_HOURS24초기 대상 기간(시간) 변수 및 보안 비밀 섹션에서 요청으로 이동합니다.
- 요청 제한 시간:
600초(10분)를 입력합니다.
- 요청 제한 시간:
설정 탭으로 이동합니다.
- 리소스 섹션에서 다음을 수행합니다.
- 메모리: 512MiB 이상을 선택합니다.
- CPU: 1 선택
- 리소스 섹션에서 다음을 수행합니다.
버전 확장 섹션에서 다음을 수행합니다.
- 최소 인스턴스 수:
0를 입력합니다. - 최대 인스턴스 수:
100을 입력합니다(또는 예상 부하에 따라 조정).
- 최소 인스턴스 수:
만들기를 클릭합니다.
서비스가 생성될 때까지 기다립니다(1~2분).
서비스가 생성되면 인라인 코드 편집기가 자동으로 열립니다.
함수 코드 추가
- 진입점 필드에 main을 입력합니다.
인라인 코드 편집기에서 다음 두 파일을 만듭니다.
첫 번째 파일 - main.py:
import functions_framework from google.cloud import storage from google.cloud.exceptions import NotFound import json import os import re import urllib3 from datetime import datetime, timezone, timedelta import time # Initialize HTTP client with timeouts http = urllib3.PoolManager( timeout=urllib3.Timeout(connect=5.0, read=30.0), retries=False, ) # Initialize Storage client storage_client = storage.Client() # Environment variables GCS_BUCKET = os.environ.get('GCS_BUCKET') GCS_PREFIX = os.environ.get('GCS_PREFIX', 'onepassword-audit') # STATE_KEY must stay OUTSIDE GCS_PREFIX. The feed ingests every object under # its bucket URI and, with a deletion option selected, deletes what it # transferred. A state file inside the prefix is ingested as log data and then # deleted, which drops the cursor and replays the whole lookback window. STATE_KEY = os.environ.get('STATE_KEY', 'onepassword-audit-state.json') API_BASE = os.environ.get('OP_API_BASE') BEARER_TOKEN = os.environ.get('OP_BEARER_TOKEN') MAX_RECORDS = int(os.environ.get('MAX_RECORDS', '10000')) # The Events API accepts a limit from 1 to 1000. PAGE_SIZE = int(os.environ.get('PAGE_SIZE', '1000')) LOOKBACK_HOURS = int(os.environ.get('LOOKBACK_HOURS', '24')) # 1Password Events API v2 audit events endpoint AUDIT_EVENTS_PATH = '/api/v2/auditevents' class FetchError(Exception): """Raised when the 1Password Events API call fails. State must never be written on a failed fetch. Saving a rejected cursor back would wedge the collector: every later run would fail on page 1, ingest nothing, and still report success. """ def parse_datetime(value: str) -> datetime: """Parse a 1Password `timestamp` into an aware datetime. The API returns RFC 3339 with either a numeric offset and whole seconds (2023-03-15T16:33:50-03:00) or Z with nanosecond precision (2025-10-31T13:45:49.203617068Z). Fractional digits are trimmed to microseconds because fromisoformat accepts at most six. """ text = str(value).strip() if text.endswith('Z'): text = text[:-1] + '+00:00' text = re.sub(r'\.(\d{6})\d+', r'.\1', text) dt = datetime.fromisoformat(text) if dt.tzinfo is None: dt = dt.replace(tzinfo=timezone.utc) return dt.astimezone(timezone.utc) @functions_framework.cloud_event def main(cloud_event): """Fetch 1Password audit events and write them to Cloud Storage as NDJSON.""" if not all([GCS_BUCKET, API_BASE, BEARER_TOKEN]): # Raise rather than return: a bare return acks the Pub/Sub message and # reports the run as successful, silently discarding the schedule tick. raise RuntimeError('Missing required environment variables ' '(GCS_BUCKET, OP_API_BASE, OP_BEARER_TOKEN)') bucket = storage_client.bucket(GCS_BUCKET) state = load_state(bucket, STATE_KEY) now = datetime.now(timezone.utc) print('--- Processing endpoint: auditevents ---') saved_cursor = state.get('cursor_auditevents') seen_uuids = set(state.get('seen_uuids', [])) # If the cursor is gone, resume from the last event actually written instead # of replaying a blind 24 hours. LOOKBACK_HOURS applies only on a cold start. if saved_cursor: start_time = None elif state.get('last_event_time'): start_time = parse_datetime(state['last_event_time']) print(f'No cursor found. Resuming from the last recorded event at {start_time.isoformat()}') else: start_time = now - timedelta(hours=LOOKBACK_HOURS) print(f'Cold start. Fetching from {start_time.isoformat()}') records, last_cursor = fetch_endpoint( api_base=API_BASE, path=AUDIT_EVENTS_PATH, bearer_token=BEARER_TOKEN, saved_cursor=saved_cursor, start_time=start_time, page_size=PAGE_SIZE, max_records=MAX_RECORDS, ) # The cursor path can re-deliver events, so filter by uuid before writing. fresh = [r for r in records if str(r.get('uuid', '')) not in seen_uuids] print(f'Fetched {len(records)} records, {len(fresh)} new after deduplication') if fresh: timestamp = now.strftime('%Y%m%dT%H%M%SZ') object_key = f'{GCS_PREFIX}/auditevents_{timestamp}.ndjson' blob = bucket.blob(object_key) ndjson = '\n'.join( json.dumps(r, ensure_ascii=False) for r in fresh ) + '\n' blob.upload_from_string( ndjson, content_type='application/x-ndjson' ) print(f'Wrote {len(fresh)} auditevents records ' f'to gs://{GCS_BUCKET}/{object_key}') # State is written only after any data is durably uploaded. new_state = dict(state) if last_cursor: new_state['cursor_auditevents'] = last_cursor newest = None for record in records: stamp = record.get('timestamp') if not stamp: continue try: parsed = parse_datetime(stamp) except ValueError: continue if newest is None or parsed > newest: newest = parsed if newest: new_state['last_event_time'] = newest.isoformat() # Retain the uuids of the newest batch so a cursor reset does not # re-ingest the events that straddle the resume point. new_state['seen_uuids'] = sorted( {str(r.get('uuid', '')) for r in records if r.get('uuid')} ) new_state['last_run'] = now.isoformat() save_state(bucket, STATE_KEY, new_state) print(f'Successfully processed {len(fresh)} records') def load_state(bucket, key): """Read the collector state from Cloud Storage. Only a missing object is treated as a cold start. Any other error is raised: swallowing it would drop the cursor and replay the lookback window. """ blob = bucket.blob(key) try: return json.loads(blob.download_as_text()) except NotFound: print('No state file found. Starting from the lookback window.') return {} def save_state(bucket, key, state: dict): """Write the collector state to Cloud Storage. Failures are raised, not logged. If the state write fails after the data was uploaded, the next run resumes from the stale cursor and duplicates it. """ blob = bucket.blob(key) blob.upload_from_string( json.dumps(state, indent=2), content_type='application/json', ) print(f"Saved state: cursor={state.get('cursor_auditevents')!r} " f"last_event_time={state.get('last_event_time')}") def fetch_endpoint(api_base, path, bearer_token, saved_cursor, start_time, page_size, max_records): """Fetch events from the 1Password Events API v2 audit events endpoint. The API uses cursor-based pagination with POST requests. The first request sends a ResetCursor object with an optional start_time and limit. Subsequent requests send the cursor returned by the previous response. The cursor is a persistent checkpoint and stays valid across runs. Args: api_base: Events API base URL path: Endpoint path bearer_token: JWT bearer token saved_cursor: Cursor from the previous run, or None start_time: Lower bound used only when there is no cursor page_size: Max events per page (1 to 1000) max_records: Max total events per run Returns: Tuple of (records list, cursor to persist). Raises: FetchError: on any API or transport failure, so that a rejected cursor is never written back to the state file. """ url = f'{api_base.rstrip("/")}{path}' headers = { 'Authorization': f'Bearer {bearer_token}', 'Content-Type': 'application/json', 'Accept': 'application/json', } records = [] cursor = saved_cursor page_num = 0 backoff = 1.0 rate_limit_retries = 0 MAX_RATE_LIMIT_RETRIES = 5 while True: page_num += 1 if len(records) >= max_records: print(f'Reached max_records limit ({max_records})') break if cursor: # Continuing cursor: resume from the last position. body = json.dumps({'cursor': cursor}) else: # ResetCursor: first request, or the cursor was lost. reset = {'limit': page_size} if start_time: reset['start_time'] = start_time.strftime('%Y-%m-%dT%H:%M:%SZ') body = json.dumps(reset) try: response = http.request( 'POST', url, body=body, headers=headers, ) except Exception as e: raise FetchError(f'Request to {url} failed: {e}') from e # Documented limits are 600 requests per minute and 30,000 per hour. if response.status == 429: rate_limit_retries += 1 if rate_limit_retries > MAX_RATE_LIMIT_RETRIES: raise FetchError('Rate limited repeatedly; giving up without saving state') raw_retry_after = response.headers.get('Retry-After') try: retry_after = int(raw_retry_after) if raw_retry_after else int(backoff) except (TypeError, ValueError): retry_after = int(backoff) print(f'Rate limited (429). Retrying after {retry_after}s...') time.sleep(retry_after) backoff = min(backoff * 2, 60.0) continue backoff = 1.0 rate_limit_retries = 0 if response.status != 200: body_text = response.data.decode('utf-8') # A 400 or 401 here may mean the saved cursor was rejected. Raising # leaves the previous state intact so the run can be retried, rather # than persisting a cursor that stalls every future run. raise FetchError(f'HTTP {response.status} from the Events API: {body_text}') try: data = json.loads(response.data.decode('utf-8')) except json.JSONDecodeError as e: raise FetchError(f'Malformed JSON response from the Events API: {e}') from e page_items = data.get('items', []) cursor = data.get('cursor') has_more = data.get('has_more', False) if page_items: print(f'Page {page_num}: Retrieved ' f'{len(page_items)} events') records.extend(page_items) if not has_more: print('No more pages (has_more=false)') break if not cursor: print('No cursor returned, stopping') break if not page_items: # has_more can be true while a page is empty. Stop rather than spin. print('Empty page with has_more=true; resuming on the next run') break print(f'Retrieved {len(records)} total records ' f'from {page_num} pages') return records, cursor두 번째 파일 - requirements.txt:
functions-framework==3.* google-cloud-storage==2.* urllib3>=2.0.0
배포를 클릭하여 함수를 저장하고 배포합니다.
배포가 완료될 때까지 기다립니다(2~3분).
Cloud Scheduler 작업 만들기
Cloud Scheduler는 정기적으로 Pub/Sub 주제에 메시지를 게시하여 Cloud Run 함수를 트리거합니다.
- Google Cloud 콘솔에서 Cloud Scheduler로 이동합니다.
- 작업 만들기를 클릭합니다.
다음 구성 세부정보를 제공합니다.
설정 값 이름 onepassword-audit-collector-hourly리전 Cloud Run 함수와 동일한 리전 선택 주파수 0 * * * *(매시간 정각)시간대 시간대 선택(UTC 권장) 타겟 유형 Pub/Sub 주제 onepassword-audit-trigger선택메일 본문 {}(빈 JSON 객체)만들기를 클릭합니다.
일정 빈도 옵션
로그 볼륨 및 지연 시간 요구사항에 따라 빈도를 선택합니다.
| 빈도 | 크론 표현식 | 사용 사례 |
|---|---|---|
| 5분마다 | */5 * * * * |
대용량, 짧은 지연 시간 |
| 15분마다 | */15 * * * * |
검색량 보통 |
| 1시간마다 | 0 * * * * |
표준(권장) |
| 6시간마다 | 0 */6 * * * |
소량, 일괄 처리 |
| 매일 | 0 0 * * * |
이전 데이터 수집 |
통합 테스트
- Cloud Scheduler 콘솔에서
onepassword-audit-collector-hourly를 찾습니다. - 강제 실행을 클릭하여 작업을 수동으로 트리거합니다.
- 몇 초 동안 기다립니다.
- Cloud Run > 서비스로 이동합니다.
onepassword-audit-collector을 클릭합니다.- 로그 탭을 클릭합니다.
함수가 성공적으로 실행되었는지 확인합니다. 다음 항목을 찾습니다.
--- Processing endpoint: auditevents --- Page 1: Retrieved X events Fetched X records, Y new after deduplication Wrote Y auditevents records to gs://onepassword-audit-secops-logs/onepassword-audit/auditevents_YYYYMMDDTHHMMSSZ.ndjson Saved state: cursor='...' last_event_time=YYYY-MM-DDTHH:MM:SS+00:00 Successfully processed Y recordsCloud Storage > 버킷으로 이동합니다.
onepassword-audit-secops-logs을 클릭합니다.onepassword-audit/폴더로 이동합니다.현재 타임스탬프로 새
.ndjson파일이 생성되었는지 확인합니다.
로그에 오류가 표시되는 경우:
- HTTP 401:
OP_BEARER_TOKEN환경 변수에서 Bearer 토큰을 확인합니다. 토큰이 만료되었을 수 있습니다. - HTTP 429: 비율 제한 함수는 백오프를 사용하여 자동으로 재시도합니다. 1Password Events API는 분당 600개, 시간당 30,000개의 요청을 허용합니다.
- 누락된 환경 변수: Cloud Run 함수 구성에 필요한 모든 변수가 설정되어 있는지 확인합니다.
- 반환된 레코드 없음: 인트로스펙트 엔드포인트를 사용하여 Bearer 토큰에 감사 이벤트에 대한 액세스 권한이 있는지 확인합니다.
- 동일한 이벤트가 반복적으로 도착함:
STATE_KEY가 피드가 읽는 프리픽스 내에 있지 않은지 확인합니다. 피드에서 상태 파일을 삭제하면 커서가 손실되고 수집기가 마지막으로 기록된 이벤트부터 다시 읽습니다.
Google SecOps 서비스 계정 검색
Google SecOps는 고유한 서비스 계정을 사용하여 Cloud Storage 버킷에서 데이터를 읽습니다. 이 서비스 계정에 버킷에 대한 액세스 권한을 부여해야 합니다.
서비스 계정 이메일 가져오기
- 설정 > 데이터 관리 > 피드로 이동합니다. SIEM 전용 플랫폼을 사용하는 경우 설정 > 피드로 이동합니다.
- 새 피드 추가를 클릭합니다.
- 단일 피드 구성을 클릭합니다.
- 피드 이름 필드에 피드 이름을 입력합니다(예:
1Password Audit Events Logs). - 소스 유형으로 Google Cloud Storage V2를 선택합니다.
- 로그 유형으로 1Password 감사 이벤트를 선택합니다.
- 서비스 계정 가져오기를 클릭합니다.
고유한 서비스 계정 이메일이 표시됩니다. 예를 들면 다음과 같습니다.
chronicle-12345678@chronicle-gcp-prod.iam.gserviceaccount.com다음 단계에서 사용할 수 있도록 이 이메일 주소를 복사합니다.
다음을 클릭합니다.
다음 입력 파라미터의 값을 지정합니다.
스토리지 버킷 URL: 프리픽스 경로가 있는 Cloud Storage 버킷 URI를 입력합니다.
gs://onepassword-audit-secops-logs/onepassword-audit/소스 삭제 옵션: 환경설정에 따라 삭제 옵션을 선택합니다.
- 파일 삭제 안함: 소스에서 파일을 삭제하지 않습니다(테스트에 권장).
전송된 파일 및 빈 디렉터리 삭제: 가져오기가 완료된 후 소스에서 파일과 빈 디렉터리를 삭제합니다.
최대 파일 기간: 지난 며칠 동안 수정된 파일을 포함합니다(기본값은 180일).
애셋 네임스페이스: 애셋 네임스페이스
수집 라벨: 이 피드의 이벤트에 적용할 라벨입니다.
다음을 클릭합니다.
확정 화면에서 새 피드 구성을 검토한 다음 제출을 클릭합니다.
Google SecOps 서비스 계정에 IAM 권한 부여
Google SecOps 서비스 계정에는 Cloud Storage 버킷에 대한 두 가지 역할이 필요합니다. 로그 객체를 읽기 위한 스토리지 객체 뷰어와 버킷 메타데이터를 읽기 위한 버킷 수준 역할입니다.
- Cloud Storage > 버킷으로 이동합니다.
onepassword-audit-secops-logs을 클릭합니다.- 권한 탭으로 이동합니다.
- 액세스 권한 부여를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 주 구성원 추가: Google SecOps 서비스 계정 이메일을 붙여넣습니다.
- 역할 할당: 다음을 모두 선택합니다.
- 스토리지 객체 뷰어: 로그 객체를 읽습니다.
- 스토리지 기존 버킷 리더: 버킷 메타데이터를 읽습니다. 전송된 파일 및 빈 디렉터리 삭제 삭제 옵션을 선택한 경우 대신 스토리지 기존 버킷 작성자를 선택합니다. 이 역할은 삭제 권한도 부여합니다.
저장을 클릭합니다.
UDM 매핑 테이블
| 로그 필드 | UDM 매핑 | 로직 |
|---|---|---|
additional_action |
additional.fields |
병합됨 |
aux_id_label |
additional.fields |
병합됨 |
aux_info_list |
additional.fields |
병합됨 |
object_type_label |
additional.fields |
병합됨 |
EventTime |
metadata.event_timestamp |
yyyy-MM-dd HH:mm:ss(으)로 파싱됨 |
expiry |
metadata.event_timestamp |
yyyy-MM-ddTHH:mm:ssZZZZZZZZZZ(으)로 파싱됨 |
item.session.login_time |
metadata.event_timestamp |
yyyy-MM-ddTHH:mm:ssZZZZZZZZZZ(으)로 파싱됨 |
item.timestamp |
metadata.event_timestamp |
ISO8601(으)로 파싱됨 |
has_principal |
metadata.event_type |
매핑됨: true → USER_UNCATEGORIZED, true → STATUS_UPDATE |
item.session.uuid |
network.session_id |
직접 매핑됨 |
deviceUuid |
principal.asset.asset_id |
직접 매핑됨 |
session_ip |
principal.asset.ip |
병합됨 |
item.actor_details.email |
principal.email |
직접 매핑됨 |
session_ip |
principal.ip |
병합됨 |
item.location.city |
principal.location.city |
직접 매핑됨 |
item.location.country |
principal.location.country_or_region |
직접 매핑됨 |
item.location.region |
principal.location.name |
직접 매핑됨 |
item.location.latitude |
principal.location.region_latitude |
직접 매핑됨 |
item.location.longitude |
principal.location.region_longitude |
직접 매핑됨 |
uuid_label |
principal.resource.attribute.labels |
병합됨 |
item.actor_details.name |
principal.user.user_display_name |
직접 매핑됨 |
item.actor_details.uuid |
principal.user.userid |
직접 매핑됨 |
actor_uuid_label |
security_result.about.resource.attribute.labels |
병합됨 |
aux_uid_label |
security_result.about.resource.attribute.labels |
병합됨 |
object_id_label |
security_result.about.resource.attribute.labels |
병합됨 |
item.session.device_uuid |
target.resource.product_object_id |
직접 매핑됨 |
| 해당 사항 없음 | metadata.event_type |
상수: USER_UNCATEGORIZED |
| 해당 사항 없음 | metadata.product_name |
상수: ONEPASSWORD_AUDIT_EVENTS |
| 해당 사항 없음 | metadata.vendor_name |
상수: ONEPASSWORD |
변경 로그
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가에게 문의하여 답변을 받으세요.