WatchGuard EDR 로그 수집

다음에서 지원:

이 문서에서는 Cloud Storage V2를 사용하여 WatchGuard EDR 로그를 Google Security Operations로 수집하는 방법을 설명합니다.

WatchGuard EDR(이전 명칭: Panda Adaptive Defense)은 지능형 위협 보호, 행동 분석, 위협 추적을 제공하는 클라우드 관리형 엔드포인트 감지 및 대응 플랫폼입니다. WatchGuard Cloud API는 탐지, 공격 지표, 위협 인텔리전스 로그를 포함한 보안 이벤트 데이터에 대한 프로그래매틱 액세스를 제공합니다.

시작하기 전에

다음 기본 요건이 충족되었는지 확인합니다.

  • Google SecOps 인스턴스
  • Cloud Storage API가 사용 설정된 Google Cloud 프로젝트
  • Cloud Storage 버킷을 만들고 관리할 수 있는 권한
  • Cloud Storage 버킷에서 Identity and Access Management(IAM) 정책을 관리할 수 있는 권한
  • Cloud Run 서비스, Pub/Sub 주제, Cloud Scheduler 작업을 만들 수 있는 권한
  • 관리자 권한으로 WatchGuard Cloud 콘솔에 대한 권한 있는 액세스
  • WatchGuard Cloud API 키 또는 OAuth2 사용자 인증 정보

Cloud Storage 버킷 만들기

  1. Google Cloud 콘솔로 이동합니다.
  2. 프로젝트를 선택하거나 새 프로젝트를 만듭니다.
  3. 탐색 메뉴에서 Cloud Storage > 버킷으로 이동합니다.
  4. 버킷 만들기를 클릭합니다.
  5. 다음 구성 세부정보를 제공합니다.

    설정 값
    버킷 이름 지정 전역적으로 고유한 이름(예: watchguard-edr-logs)을 입력합니다.
    위치 유형 필요에 따라 선택(리전, 이중 리전, 멀티 리전)
    위치 위치를 선택합니다(예: us-central1).
    스토리지 클래스 표준(자주 액세스하는 로그에 권장)
    액세스 제어 균일(권장)
    보호 도구 선택사항: 객체 버전 관리 또는 보관 정책 사용 설정
  6. 만들기를 클릭합니다.

WatchGuard EDR API 사용자 인증 정보 수집

API 사용자 인증 정보 가져오기

  1. 관리자로 WatchGuard Cloud 콘솔에 로그인합니다.
  2. 관리 > 관리 액세스로 이동합니다.
  3. API 액세스를 클릭하거나 API 키 관리 섹션으로 이동합니다.
  4. API 키 생성을 클릭합니다.
  5. API 키의 이름을 입력합니다(예: Google SecOps Integration).
  6. 다음 세부정보를 복사하여 안전한 위치에 저장합니다.

    • API 키 ID: API 액세스 키
    • API 비밀번호: API 비밀번호 키
    • 계정 ID: WatchGuard Cloud 계정 ID

API 기준 URL 확인

WatchGuard Cloud API 기준 URL은 데이터 센터 리전에 따라 다릅니다.

리전 API 기준 URL
미국 https://api.usa.cloud.watchguard.com
EU https://api.eu.cloud.watchguard.com

테스트 API 액세스

  • 통합을 진행하기 전에 사용자 인증 정보를 테스트합니다.

    # Replace with your actual credentials
    WG_API_KEY="your-api-key-id"
    WG_API_SECRET="your-api-secret"
    WG_ACCOUNT_ID="your-account-id"
    WG_BASE_URL="https://api.usa.cloud.watchguard.com"
    
    # Get access token
    TOKEN=$(curl -s -X POST "${WG_BASE_URL}/oauth/token" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "grant_type=client_credentials&client_id=${WG_API_KEY}&client_secret=${WG_API_SECRET}&scope=api-access" \
      | jq -r '.access_token')
    
    # Test API access - list indicators
    curl -s -X GET "${WG_BASE_URL}/rest/aether/v1/accounts/${WG_ACCOUNT_ID}/indicators?$top=1" \
      -H "Authorization: Bearer ${TOKEN}"
    

Cloud Run Functions의 서비스 계정 만들기

Cloud Run 함수에는 Cloud Storage 버킷에 쓰고 Pub/Sub에서 호출할 수 있는 권한이 있는 서비스 계정이 필요합니다.

서비스 계정 만들기

  1. Google Cloud 콘솔에서 IAM 및 관리자 > 서비스 계정으로 이동합니다.
  2. 서비스 계정 만들기를 클릭합니다.
  3. 다음 구성 세부정보를 제공합니다.
    • 서비스 계정 이름: watchguard-edr-logs-collector-sa을 입력합니다.
    • 서비스 계정 설명: Service account for Cloud Run function to collect WatchGuard EDR logs을 입력합니다.
  4. 만들고 계속하기를 클릭합니다.
  5. 이 서비스 계정에 프로젝트에 대한 액세스 권한 부여 섹션에서 다음 역할을 추가합니다.
    1. 역할 선택을 클릭합니다.
    2. 스토리지 객체 관리자를 검색하고 선택합니다.
    3. + 다른 역할 추가를 클릭합니다.
    4. Cloud Run 호출자를 검색하여 선택합니다.
    5. + 다른 역할 추가를 클릭합니다.
    6. Cloud Functions 호출자를 검색하여 선택합니다.
  6. 계속을 클릭합니다.
  7. 완료를 클릭합니다.

이러한 역할은 다음 작업에 필요합니다.

  • 스토리지 객체 관리자: Cloud Storage 버킷에 로그를 쓰고 상태 파일을 관리합니다.
  • Cloud Run 호출자: Pub/Sub가 함수를 호출하도록 허용
  • Cloud Functions 호출자: 함수 호출 허용

Cloud Storage 버킷에 대한 IAM 권한 부여

서비스 계정에 Cloud Storage 버킷에 대한 쓰기 권한을 부여합니다.

  1. Cloud Storage > 버킷으로 이동합니다.
  2. 버킷 이름(예: watchguard-edr-logs)을 클릭합니다.
  3. 권한 탭으로 이동합니다.
  4. 액세스 권한 부여를 클릭합니다.
  5. 다음 구성 세부정보를 제공합니다.
    • 주 구성원 추가: 서비스 계정 이메일(예: watchguard-edr-logs-collector-sa@PROJECT_ID.iam.gserviceaccount.com)을 입력합니다.
    • 역할 할당: 스토리지 객체 관리자를 선택합니다.
  6. 저장을 클릭합니다.

Pub/Sub 주제 만들기

Cloud Scheduler가 게시하고 Cloud Run 함수가 구독할 Pub/Sub 주제를 만듭니다.

  1. Google Cloud 콘솔에서 Pub/Sub > 주제로 이동합니다.
  2. 주제 만들기를 클릭합니다.
  3. 다음 구성 세부정보를 제공합니다.
    • 주제 ID: watchguard-edr-logs-trigger를 입력합니다.
    • 다른 설정은 기본값으로 둡니다.
  4. 만들기를 클릭합니다.

로그를 수집하는 Cloud Run 함수 만들기

Cloud Run 함수는 Cloud Scheduler의 Pub/Sub 메시지에 의해 트리거되어 WatchGuard Cloud API에서 로그를 가져와 Cloud Storage에 기록합니다.

  1. Google Cloud 콘솔에서 Cloud Run으로 이동합니다.
  2. 서비스 만들기를 클릭합니다.
  3. 함수(인라인 편집기를 사용하여 함수 만들기)를 선택합니다.
  4. 구성 섹션에서 다음 구성 세부정보를 제공합니다.

    설정 값
    서비스 이름 watchguard-edr-logs-collector
    리전 Cloud Storage 버킷과 일치하는 리전(예: us-central1)을 선택합니다.
    런타임 Python 3.12 이상을 선택합니다.
  5. 트리거(선택사항) 섹션에서 다음을 수행합니다.

    1. + 트리거 추가를 클릭합니다.
    2. Cloud Pub/Sub를 선택합니다.
    3. Cloud Pub/Sub 주제 선택에서 watchguard-edr-logs-trigger 주제를 선택합니다.
    4. 저장을 클릭합니다.
  6. 인증 섹션에서 다음을 구성합니다.

    1. 인증 필요를 선택합니다.
    2. Identity and Access Management(IAM)를 확인합니다.
  7. 아래로 스크롤하고 컨테이너, 네트워킹, 보안을 펼칩니다.

  8. 보안 탭으로 이동합니다.

    • 서비스 계정: 서비스 계정 watchguard-edr-logs-collector-sa를 선택합니다.
  9. 컨테이너 탭으로 이동합니다.

    1. 변수 및 보안 비밀을 클릭합니다.
    2. 각 환경 변수에 대해 + 변수 추가를 클릭합니다.
    변수 이름 예시 값 설명
    GCS_BUCKET watchguard-edr-logs Cloud Storage 버킷 이름
    GCS_PREFIX watchguard 로그 파일의 프리픽스
    STATE_KEY watchguard/state.json 상태 파일 경로
    WG_API_KEY your-api-key-id WatchGuard Cloud API 키 ID
    WG_API_SECRET your-api-secret WatchGuard Cloud API 비밀번호
    WG_ACCOUNT_ID your-account-id WatchGuard Cloud 계정 ID
    WG_API_BASE https://api.usa.cloud.watchguard.com WatchGuard Cloud API 기준 URL
    MAX_RECORDS 5000 실행당 최대 레코드 수
    PAGE_SIZE 1000 페이지당 레코드 수
    LOOKBACK_HOURS 24 초기 대상 기간
  10. 변수 및 보안 비밀 섹션에서 요청으로 아래로 스크롤합니다.

    • 요청 제한 시간: 600초(10분)를 입력합니다.
  11. 설정 탭으로 이동합니다.

    • 리소스 섹션에서 다음을 수행합니다.
      • 메모리: 512MiB 이상을 선택합니다.
      • CPU: 1 선택
  12. 버전 확장 섹션에서 다음을 수행합니다.

    • 최소 인스턴스 수: 0를 입력합니다.
    • 최대 인스턴스 수: 100을 입력합니다(또는 예상 부하에 따라 조정).
  13. 만들기를 클릭합니다.

  14. 서비스가 생성될 때까지 기다립니다(1~2분).

  15. 서비스가 생성되면 인라인 코드 편집기가 자동으로 열립니다.

함수 코드 추가

  1. 진입점 필드에 main을 입력합니다.
  2. 인라인 코드 편집기에서 다음 두 파일을 만듭니다.

    • main.py:

      import functions_framework
      from google.cloud import storage
      import json
      import os
      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', 'watchguard')
      STATE_KEY = os.environ.get('STATE_KEY', 'watchguard/state.json')
      WG_API_KEY = os.environ.get('WG_API_KEY')
      WG_API_SECRET = os.environ.get('WG_API_SECRET')
      WG_ACCOUNT_ID = os.environ.get('WG_ACCOUNT_ID')
      WG_API_BASE = os.environ.get('WG_API_BASE', 'https://api.usa.cloud.watchguard.com')
      MAX_RECORDS = int(os.environ.get('MAX_RECORDS', '5000'))
      PAGE_SIZE = int(os.environ.get('PAGE_SIZE', '1000'))
      LOOKBACK_HOURS = int(os.environ.get('LOOKBACK_HOURS', '24'))
      
      def parse_datetime(value: str) -> datetime:
        """Parse ISO datetime string to datetime object."""
        if value.endswith("Z"):
          value = value[:-1] + "+00:00"
        return datetime.fromisoformat(value)
      
      def get_access_token():
        """
        Obtain OAuth2 access token using client credentials grant.
        """
        api_base = WG_API_BASE.rstrip('/')
        token_url = f"{api_base}/oauth/token"
      
        headers = {
          'Content-Type': 'application/x-www-form-urlencoded',
          'Accept': 'application/json'
        }
      
        body = (
          f"grant_type=client_credentials"
          f"&client_id={WG_API_KEY}"
          f"&client_secret={WG_API_SECRET}"
          f"&scope=api-access"
        )
      
        backoff = 1.0
        for attempt in range(3):
          response = http.request('POST', token_url, body=body, headers=headers)
      
          if response.status == 429:
            retry_after = int(response.headers.get('Retry-After', str(int(backoff))))
            print(f"Rate limited (429) on token request. Retrying after {retry_after}s...")
            time.sleep(retry_after)
            backoff = min(backoff * 2, 30.0)
            continue
      
          if response.status != 200:
            raise RuntimeError(f"Failed to get access token: {response.status} - {response.data.decode('utf-8')}")
      
          data = json.loads(response.data.decode('utf-8'))
          return data['access_token']
      
        raise RuntimeError("Failed to get access token after 3 retries")
      
      @functions_framework.cloud_event
      def main(cloud_event):
        """
        Cloud Run function triggered by Pub/Sub to fetch WatchGuard EDR
        security event logs and write to GCS.
      
        Args:
          cloud_event: CloudEvent object containing Pub/Sub message
        """
      
        if not all([GCS_BUCKET, WG_API_KEY, WG_API_SECRET, WG_ACCOUNT_ID]):
          print('Error: Missing required environment variables')
          return
      
        try:
          bucket = storage_client.bucket(GCS_BUCKET)
      
          # Load state
          state = load_state(bucket, STATE_KEY)
      
          # Determine time window
          now = datetime.now(timezone.utc)
          last_time = None
      
          if isinstance(state, dict) and state.get("last_event_time"):
            try:
              last_time = parse_datetime(state["last_event_time"])
              # Overlap by 2 minutes to catch any delayed events
              last_time = last_time - timedelta(minutes=2)
            except Exception as e:
              print(f"Warning: Could not parse last_event_time: {e}")
      
          if last_time is None:
            last_time = now - timedelta(hours=LOOKBACK_HOURS)
      
          print(f"Fetching logs from {last_time.isoformat()} to {now.isoformat()}")
      
          # Get access token
          token = get_access_token()
      
          # Fetch logs from multiple endpoints
          all_records = []
          newest_event_time = None
      
          for endpoint_type in ['indicators', 'threats']:
            records, newest_time = fetch_logs(
              token=token,
              endpoint_type=endpoint_type,
              start_time=last_time,
              end_time=now,
              page_size=PAGE_SIZE,
              max_records=MAX_RECORDS,
            )
            all_records.extend(records)
            if newest_time:
              if newest_event_time is None or parse_datetime(newest_time) > parse_datetime(newest_event_time):
                newest_event_time = newest_time
      
          if not all_records:
            print("No new log records found.")
            save_state(bucket, STATE_KEY, now.isoformat())
            return
      
          # Write to GCS as NDJSON
          timestamp = now.strftime('%Y%m%d_%H%M%S')
          object_key = f"{GCS_PREFIX}/logs_{timestamp}.ndjson"
          blob = bucket.blob(object_key)
      
          ndjson = '\n'.join([json.dumps(record, ensure_ascii=False) for record in all_records]) + '\n'
          blob.upload_from_string(ndjson, content_type='application/x-ndjson')
      
          print(f"Wrote {len(all_records)} records to gs://{GCS_BUCKET}/{object_key}")
      
          # Update state with newest event time
          if newest_event_time:
            save_state(bucket, STATE_KEY, newest_event_time)
          else:
            save_state(bucket, STATE_KEY, now.isoformat())
      
          print(f"Successfully processed {len(all_records)} records")
      
        except Exception as e:
          print(f'Error processing logs: {str(e)}')
          raise
      
      def load_state(bucket, key):
        """Load state from GCS."""
        try:
          blob = bucket.blob(key)
          if blob.exists():
            state_data = blob.download_as_text()
            return json.loads(state_data)
        except Exception as e:
          print(f"Warning: Could not load state: {e}")
      
        return {}
      
      def save_state(bucket, key, last_event_time_iso: str):
        """Save the last event timestamp to GCS state file."""
        try:
          state = {'last_event_time': last_event_time_iso}
          blob = bucket.blob(key)
          blob.upload_from_string(
            json.dumps(state, indent=2),
            content_type='application/json'
          )
          print(f"Saved state: last_event_time={last_event_time_iso}")
        except Exception as e:
          print(f"Warning: Could not save state: {e}")
      
      def fetch_logs(token: str, endpoint_type: str, start_time: datetime, end_time: datetime, page_size: int, max_records: int):
        """
        Fetch security event logs from WatchGuard Cloud API
        with OData-style pagination and rate limiting.
      
        Args:
          token: OAuth2 access token
          endpoint_type: API endpoint type (indicators, threats)
          start_time: Start time for log query
          end_time: End time for log query
          page_size: Number of records per page
          max_records: Maximum total records to fetch
      
        Returns:
          Tuple of (records list, newest_event_time ISO string)
        """
        api_base = WG_API_BASE.rstrip('/')
        endpoint = f"{api_base}/rest/aether/v1/accounts/{WG_ACCOUNT_ID}/{endpoint_type}"
      
        headers = {
          'Authorization': f'Bearer {token}',
          'Accept': 'application/json',
          'User-Agent': 'GoogleSecOps-WatchGuardEDRCollector/1.0'
        }
      
        records = []
        newest_time = None
        page_num = 0
        skip = 0
        backoff = 1.0
      
        start_iso = start_time.strftime('%Y-%m-%dT%H:%M:%SZ')
        end_iso = end_time.strftime('%Y-%m-%dT%H:%M:%SZ')
      
        while True:
          page_num += 1
      
          if len(records) >= max_records:
            print(f"Reached max_records limit ({max_records}) for {endpoint_type}")
            break
      
          url = f"{endpoint}?$top={min(page_size, max_records - len(records))}&$skip={skip}&$filter=date ge {start_iso} and date le {end_iso}&$orderby=date asc"
      
          try:
            response = http.request('GET', url, headers=headers)
      
            # Handle rate limiting with exponential backoff
            if response.status == 429:
              retry_after = int(response.headers.get('Retry-After', str(int(backoff))))
              print(f"Rate limited (429). Retrying after {retry_after}s...")
              time.sleep(retry_after)
              backoff = min(backoff * 2, 30.0)
              continue
      
            backoff = 1.0
      
            if response.status != 200:
              print(f"HTTP Error: {response.status}")
              response_text = response.data.decode('utf-8')
              print(f"Response body: {response_text}")
              return records, newest_time
      
            data = json.loads(response.data.decode('utf-8'))
      
            page_results = data.get('value', data.get('data', []))
      
            if not page_results:
              print(f"No more results (empty page) for {endpoint_type}")
              break
      
            print(f"{endpoint_type} page {page_num}: Retrieved {len(page_results)} events")
      
            # Add endpoint type for identification
            for event in page_results:
              event['_wg_log_type'] = endpoint_type
      
            records.extend(page_results)
      
            # Track newest event time
            for event in page_results:
              try:
                event_ts = event.get('date') or event.get('timestamp') or event.get('createdAt')
                if event_ts:
                  event_time = str(event_ts)
                  if newest_time is None or parse_datetime(event_time) > parse_datetime(newest_time):
                    newest_time = event_time
              except Exception as e:
                print(f"Warning: Could not parse event time: {e}")
      
            # Check for more results
            if len(page_results) < page_size:
              print(f"No more pages for {endpoint_type} (last page not full)")
              break
      
            skip += len(page_results)
      
          except Exception as e:
            print(f"Error fetching {endpoint_type} logs: {e}")
            return records, newest_time
      
        print(f"Retrieved {len(records)} total {endpoint_type} records from {page_num} pages")
        return records, newest_time
      
    • requirements.txt:

      functions-framework==3.*
      google-cloud-storage==2.*
      urllib3>=2.0.0
      
  3. 배포를 클릭하여 함수를 저장하고 배포합니다.

  4. 배포가 완료될 때까지 기다립니다(2~3분).

Cloud Scheduler 작업 만들기

Cloud Scheduler는 정기적으로 Pub/Sub 주제에 메시지를 게시하여 Cloud Run 함수를 트리거합니다.

  1. Google Cloud 콘솔에서 Cloud Scheduler로 이동합니다.
  2. 작업 만들기를 클릭합니다.
  3. 다음 구성 세부정보를 제공합니다.

    설정 값
    이름 watchguard-edr-logs-collector-hourly
    리전 Cloud Run 함수와 동일한 리전 선택
    주파수 0 * * * *(매시간 정각)
    시간대 시간대 선택(UTC 권장)
    타겟 유형 Pub/Sub
    주제 watchguard-edr-logs-trigger 주제를 선택합니다.
    메일 본문 {}(빈 JSON 객체)
  4. 만들기를 클릭합니다.

일정 빈도 옵션

로그 볼륨 및 지연 시간 요구사항에 따라 빈도를 선택합니다.

빈도 크론 표현식 사용 사례
5분마다 */5 * * * * 대용량, 짧은 지연 시간
15분마다 */15 * * * * 검색량 보통
1시간마다 0 * * * * 표준(권장)
6시간마다 0 */6 * * * 소량, 일괄 처리
매일 0 0 * * * 이전 데이터 수집

통합 테스트

  1. Cloud Scheduler 콘솔에서 작업을 찾습니다.
  2. 강제 실행을 클릭하여 작업을 수동으로 트리거합니다.
  3. 몇 초 동안 기다립니다.
  4. Cloud Run > 서비스로 이동합니다.
  5. watchguard-edr-logs-collector를 클릭합니다.
  6. 로그 탭을 클릭합니다.
  7. 함수가 성공적으로 실행되었는지 확인합니다. 다음 항목을 찾습니다.

    Fetching logs from YYYY-MM-DDTHH:MM:SS+00:00 to YYYY-MM-DDTHH:MM:SS+00:00
    indicators page 1: Retrieved X events
    threats page 1: Retrieved X events
    Wrote X records to gs://watchguard-edr-logs/watchguard/logs_YYYYMMDD_HHMMSS.ndjson
    Successfully processed X records
    
  8. Cloud Storage > 버킷으로 이동합니다.

  9. 버킷 이름(watchguard-edr-logs)을 클릭합니다.

  10. watchguard/ 폴더로 이동합니다.

  11. 현재 타임스탬프로 새 .ndjson 파일이 생성되었는지 확인합니다.

로그에 오류가 표시되는 경우:

  • HTTP 401: 환경 변수에서 API 사용자 인증 정보 확인
  • HTTP 403: WatchGuard Cloud 콘솔에서 API 키에 필요한 권한이 있는지 확인합니다.
  • HTTP 429: 비율 제한 - 함수가 백오프를 사용하여 자동으로 재시도합니다.
  • 환경 변수 누락: 모든 필수 변수가 설정되어 있는지 확인합니다.

WatchGuard EDR 로그를 수집하도록 Google SecOps에서 피드 구성

  1. 설정 > 데이터 관리 > 피드로 이동합니다. SIEM 전용 플랫폼을 사용하는 경우 설정 > 피드로 이동합니다.
  2. 새 피드 추가를 클릭합니다.
  3. 단일 피드 구성을 클릭합니다.
  4. 피드 이름 필드에 피드 이름을 입력합니다(예: WatchGuard EDR Logs).
  5. 소스 유형으로 Google Cloud Storage V2를 선택합니다.
  6. 로그 유형으로 WatchGuard EDR을 선택합니다.
  7. 서비스 계정 가져오기를 클릭합니다. 고유한 서비스 계정 이메일이 표시됩니다. 예를 들면 다음과 같습니다.

    chronicle-12345678@chronicle-gcp-prod.iam.gserviceaccount.com
    
  8. 이 이메일 주소를 복사합니다.

  9. 다음을 클릭합니다.

  10. 다음 입력 파라미터의 값을 지정합니다.

    • 스토리지 버킷 URL: 프리픽스 경로가 있는 Cloud Storage 버킷 URI를 입력합니다.

      gs://watchguard-edr-logs/watchguard/
      
      • 다음과 같이 바꿉니다.
        • watchguard-edr-logs: Cloud Storage 버킷 이름입니다.
        • watchguard: 로그가 저장되는 선택적 프리픽스/폴더 경로입니다(루트의 경우 비워 둠).
    • 소스 삭제 옵션: 환경설정에 따라 삭제 옵션을 선택합니다.

      • 삭제 안함: 전송 후 파일을 삭제하지 않습니다(테스트에 권장).
      • 전송된 파일 삭제: 전송이 완료된 후 파일을 삭제합니다.
      • 전송된 파일 및 빈 디렉터리 삭제: 전송이 완료된 후 파일과 빈 디렉터리를 삭제합니다.

    • 최대 파일 기간: 지난 며칠 동안 수정된 파일을 포함합니다(기본값은 180일).

    • 애셋 네임스페이스: 애셋 네임스페이스

    • 수집 라벨: 이 피드의 이벤트에 적용할 라벨입니다.

  11. 다음을 클릭합니다.

  12. 확정 화면에서 새 피드 구성을 검토한 다음 제출을 클릭합니다.

Google SecOps 서비스 계정에 IAM 권한 부여

Google SecOps 서비스 계정에는 Cloud Storage 버킷에 대한 스토리지 객체 뷰어 역할이 필요합니다.

  1. Cloud Storage > 버킷으로 이동합니다.
  2. 버킷 이름을 클릭합니다.
  3. 권한 탭으로 이동합니다.
  4. 액세스 권한 부여를 클릭합니다.
  5. 다음 구성 세부정보를 제공합니다.
    • 주 구성원 추가: Google SecOps 서비스 계정 이메일을 붙여넣습니다.
    • 역할 할당: 스토리지 객체 뷰어를 선택합니다.
  6. 저장을 클릭합니다.

UDM 매핑 테이블

로그 필드 UDM 매핑 로직
about.asset.asset_id device_vendor.device_product:deviceExternalId로 설정합니다.
about.file.full_path 비어 있지 않은 경우 filePath의 값, 그렇지 않고 file_is_not_hash인 경우 _hash의 값, 그렇지 않고 file_is_not_hash인 경우 fileHash의 값
about.file.size 0보다 큰 경우 fsize의 값
about.hostname dvchost의 값
about.ip IP 확인 후 dvc 배열에서 병합됨
about.mac 유효한 MAC인 경우 dvcmac의 값, 슬롯이 없는 경우 dvc_mac의 값
about.nat_ip deviceTranslatedAddress의 값
about.process.command_line 제목의 값(없는 경우 Emne, 없는 경우 경로)
about.process.pid dvcpid의 값
about.resource.attribute.permissions filePermission의 값
about.resource.attribute.labels resource_Type_label의 값
additional.fields additional_eventId, additional_devicePayloadId 등 다양한 additional_* 라벨에서 병합되었습니다.
metadata.collected_timestamp ISO 형식인 경우 alertDateTime의 값, 그렇지 않고 ISO 형식인 경우 AlertDate의 값, 그렇지 않고 ISO 형식인 경우 Received의 값, 그렇지 않고 ISO 형식인 경우 Generated의 값
metadata.description 메시지의 값
metadata.event_timestamp ISO 형식인 경우 날짜의 값
metadata.event_type file_full_path가 비어 있지 않으면 'PROCESS_UNCATEGORIZED'로 설정되고, LogSpyware 또는 LogPredictiveMachineLearning에 event_name이 있으면 'SCAN_UNCATEGORIZED'로 설정되고, has_principal이 true이면 'STATUS_UPDATE'로 설정되고, 그 밖의 경우에는 'GENERIC_EVENT'로 설정됩니다.
metadata.product_event_type huntingRule의 값(비어 있지 않은 경우), ThreatType의 값, device_event_class_id - event_name의 값, device_event_class_id의 값, event_name의 값
metadata.product_log_id pandaAlertId의 값(비어 있지 않은 경우) 또는 externalId의 값
metadata.product_name JSON의 경우 'ALERTS'로 설정하고, 그렇지 않으면 device_product에서 설정합니다.
metadata.product_version device_version의 값
metadata.url_back_to_product directLink의 값입니다.
metadata.vendor_name JSON의 경우 'WATCHGUARD'로 설정하고, 그렇지 않으면 device_vendor에서 설정합니다.
network.application_protocol 비어 있지 않은 경우 app_protocol_output의 값
network.direction deviceDirection == 0인 경우 'INBOUND'로 설정되고, == 1인 경우 'OUTBOUND'로 설정됩니다.
network.http.method requestMethod의 값입니다.
network.http.user_agent requestClientApplication의 값
network.ip_protocol 비어 있지 않은 경우 ip_protocol_out의 값
network.received_bytes 0보다 크고 정수인 경우 in의 값
network.sent_bytes 0보다 크고 정수인 경우 out의 값
principal.administrative_domain 비어 있지 않은 경우 sntdom의 값, 그렇지 않으면 Domain의 값, 그렇지 않으면 Domene의 값
principal.application sourceServiceName의 값입니다.
principal.asset.asset_id MUID의 값(비어 있지 않은 경우)
principal.asset.hostname 비어 있지 않은 경우 machineName의 값, 그렇지 않으면 HostName의 값, 그렇지 않으면 SourceMachineName의 값, 그렇지 않으면 MachineName의 값
principal.asset.ip 비어 있지 않은 경우 HostIp에서 병합되고, 그렇지 않으면 SourceIP, 그렇지 않으면 MachineIP입니다.
principal.asset.product_object_id ClientId의 값
principal.group.group_display_name 비어 있지 않은 경우 Group_name의 값, 그렇지 않으면 Gruppenavn
principal.hostname 비어 있지 않은 경우 machineName의 값, 비어 있지 않은 경우 temp_dhost의 값, IP 검증이 실패한 경우 shost의 값, Device_name의 값, Enhetsnavn의 값
principal.ip 유효한 IP인 경우 principal_ip의 값, 그렇지 않고 유효한 IP인 경우 src의 값
principal.mac 유효한 MAC인 경우 smac의 값
principal.nat_ip 유효한 IP인 경우 sourceTranslatedAddress의 값
principal.nat_port 0보다 큰 경우 sourceTranslatedPort의 값
principal.port 정수이고 0이 아닌 경우 spt의 값
principal.process.command_line sproc의 값
principal.process.pid spid의 값
principal.user.attribute.roles spriv의 값입니다.
principal.user.user_display_name {로 시작하지 않는 경우 suser의 값, 그렇지 않으면 SourceUserName의 값, 그렇지 않고 비어 있지 않은 경우 CustomerName의 값
principal.user.userid contents.0.LoggedUser의 값이 비어 있지 않고 event_type을 USER_UNCATEGORIZED로 설정하는 경우 contents.0.LoggedUser의 값, 그렇지 않으면 temp_duid의 값, 그렇지 않으면 User의 값, 그렇지 않으면 Bruker의 값
security_result.action 작업이 수락/알림이거나 결과가 REDIRECTED_USER_MAY_PROCEED이거나 categoryOutcome이 Success이거나 cs2가 Allow인 경우 'ALLOW'로 설정하고, 작업이 거부/차단이거나 결과가 BLOCKED이거나 categoryOutcome이 Failure이거나 cs2가 Denied인 경우 'BLOCK'으로 설정하고, 결과가 Failure인 경우 'FAIL'로 설정합니다.
security_result.action_details act의 값, 그렇지 않으면 Action_Taken의 값
security_result.attack_details.tactics 비어 있지 않은 경우 tactics_data에서 병합됨
security_result.attack_details.techniques 비어 있지 않은 경우 technique_data에서 병합됨
security_result.category_details 고양이의 값
security_result.description 비어 있지 않은 경우 msg_data_2의 값, 그렇지 않으면 THRuleName의 값, 그렇지 않으면 Type의 값, 그렇지 않으면 Scan_Type의 값
security_result.detection_fields operation_label, operasjon_label, permission_label, tillatelse_label, infection_channel_label, spyware_Grayware_Type_label, threat_probability_label에서 병합됨
security_result.rule_name mwProfile의 값
security_result.severity 심각도가 1이면 'INFORMATIONAL', 2이면 'LOW', 3이면 'MEDIUM', 4이면 'HIGH', 5이면 'CRITICAL'로 설정됩니다. 그 외의 경우 심각도가 0/1/2이면 LOW, 3/4/5/INFO이면 MEDIUM, 6/7/SEVERE이면 HIGH, 8/9/10/VERY-HIGH이면 CRITICAL로 설정됩니다.
security_result.summary appcategory의 값, 그렇지 않으면 Result
security_result.threat_name 비어 있지 않은 경우 Spyware의 값, 그렇지 않은 경우 Virus_Malware_Name, 그렇지 않은 경우 Unknown_Threat
src.file.full_path oldFilePath의 값
src.file.size 0보다 큰 경우 oldFileSize의 값
target.administrative_domain dntdom의 값
target.application destinationServiceName의 값
target.file.full_path ItemPath의 값
target.file.md5 소문자 변환이 성공하면 ItemHash의 값
target.hostname 비어 있지 않은 경우 temp_dhost의 값
target.ip 유효한 IP인 경우 dst_ip의 값
target.mac 유효한 MAC인 경우 dmac의 값
target.nat_ip 유효한 IP인 경우 destination_translated_address의 값
target.nat_port destinationTranslatedPort의 값(정수인 경우)
target.port 정수이고 범위 내에 있는 경우 dpt의 값
target.process.command_line dproc의 값
target.process.file.full_path 비어 있지 않은 경우 contents.0.ChildPath의 값, 그렇지 않으면 file_full_path의 값
target.process.file.md5 소문자 변환이 성공한 경우 contents.0.ChildMd5의 값
target.process.file.names 비어 있지 않은 경우 file_name에서 병합됨
target.process.parent_process.file.full_path contents.0.ParentPath의 값
target.process.parent_process.file.md5 소문자 변환이 성공한 경우 contents.0.ParentMd5의 값
target.process.parent_process.file.names 비어 있지 않은 경우 parent_file_name에서 병합됨
target.process.parent_process.pid contents.0.ParentPID의 값
target.process.pid dpid의 값입니다.
target.resource.attribute.labels DriveType_label, ServiceLevel_label의 값
target.url 요청의 값
target.user.user_display_name temp_duser의 값
target.user.userid 비어 있지 않은 경우 temp_duid의 값

변경 로그

이 파서의 변경 로그 보기

도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가에게 문의하여 답변을 받으세요.