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)。
    ストレージ クラス Standard(頻繁にアクセスされるログに推奨)
    アクセス制御 均一(推奨)
    保護ツール 省略可: オブジェクトのバージョニングまたは保持ポリシーを有効にする
  6. [作成] をクリックします。

WatchGuard EDR API 認証情報を収集する

API 認証情報を取得する

  1. 管理者として WatchGuard Cloud コンソールにログインします。
  2. [管理] > [マネージド アクセス] に移動します。
  3. [API アクセス] をクリックするか、API キー管理セクションに移動します。
  4. [API キーを生成] をクリックします。
  5. API キーの名前(例: Google SecOps Integration)を入力します。
  6. 次の詳細情報をコピーして安全な場所に保存します。

    • API キー ID: API アクセスキー
    • API Secret: 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 functions の関数には、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. [Storage オブジェクト管理者] を検索して選択します。
    3. [+ 別のロールを追加] をクリックします。
    4. [Cloud Run 起動元] を検索して選択します。
    5. [+ 別のロールを追加] をクリックします。
    6. [Cloud Functions 起動元] を検索して選択します。
  6. [続行] をクリックします。
  7. [完了] をクリックします。

これらのロールは、次の操作に必要です。

  • Storage オブジェクト管理者: 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)を入力します。
    • ロールを割り当てる: [Storage オブジェクト管理者] を選択します。
  6. [保存] をクリックします。

Pub/Sub トピックの作成

Cloud Scheduler がパブリッシュし、Cloud Run functions の関数がサブスクライブする 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 Secret
    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 1 回の実行あたりの最大レコード数
    PAGE_SIZE 1000 1 ページあたりのレコード数
    LOOKBACK_HOURS 24 最初のルックバック期間
  10. [変数とシークレット] セクションで、[リクエスト] まで下にスクロールします。

    • リクエストのタイムアウト: 「600」秒(10 分)と入力します。
  11. [設定] タブに移動します。

    • [リソース] セクションで、次の操作を行います。
      • メモリ: 512 MiB 以上を選択します。
      • CPU: [1] を選択します。
  12. [リビジョン スケーリング] セクションで、次の操作を行います。

    • [インスタンスの最小数]: 「0」と入力します。
    • [インスタンスの最大数]: 「100」と入力します(または、予想される負荷に基づいて調整します)。
  13. [作成] をクリックします。

  14. サービスが作成されるまで待ちます(1 ~ 2 分)。

  15. サービスが作成されると、インライン コードエディタが自動的に開きます。

関数コードを追加する

  1. [エントリ ポイント] フィールドに「main」と入力します。
  2. インライン コードエディタで、次の 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 functions の関数と同じリージョンを選択します。
    周波数 0 * * * *(1 時間ごと、毎正時)
    タイムゾーン タイムゾーンを選択(UTC を推奨)
    ターゲット タイプ Pub/Sub
    トピック トピック watchguard-edr-logs-trigger を選択します。
    メッセージ本文 {}(空の JSON オブジェクト)
  4. [作成] をクリックします。

スケジュール頻度のオプション

ログの量とレイテンシの要件に基づいて頻度を選択します。

頻度 CRON 式 ユースケース
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: API キーに WatchGuard Cloud コンソールで必要な権限があることを確認します。
  • HTTP 429: レート制限 - 関数はバックオフを使用して自動的に再試行します。
  • 環境変数が設定されていない: 必要な変数がすべて設定されていることを確認します。

WatchGuard EDR のログを取り込むように Google SecOps でフィードを構成する

  1. [設定] > [データ マネジメント] > [フィード] に移動します。SIEM のみのプラットフォームを使用している場合は、[設定] > [フィード] に移動します。
  2. [Add New Feed] をクリックします。
  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: ログが保存されるオプションの接頭辞 / フォルダパス(ルートの場合は空のままにします)。
    • Source deletion option: 必要に応じて削除オプションを選択します。

      • なし: 転送後にファイルを削除しません(テストにおすすめ)。
      • 転送されたファイルを削除する: 転送が完了した後にファイルを削除します。
      • 転送されたファイルと空のディレクトリを削除する: 転送が成功した後にファイルと空のディレクトリを削除します。

    • ファイルの最長存続期間: 過去数日間に変更されたファイルを含めます(デフォルトは 180 日)。

    • Asset namespace: アセットの名前空間。

    • Ingestion labels: このフィードのイベントに適用されるラベル。

  11. [次へ] をクリックします。

  12. [Finalize] 画面で新しいフィードの設定を確認し、[送信] をクリックします。

Google SecOps サービス アカウントに IAM 権限を付与する

Google SecOps サービス アカウントには、Cloud Storage バケットに対する Storage オブジェクト閲覧者のロールが必要です。

  1. [Cloud Storage] > [バケット] に移動します。
  2. バケット名をクリックします。
  3. [権限] タブに移動します。
  4. [アクセス権を付与] をクリックします。
  5. 次の構成情報を指定します。
    • プリンシパルを追加: Google SecOps サービス アカウントのメールアドレスを貼り付けます。
    • ロールを割り当てる: [Storage オブジェクト閲覧者] を選択します。
  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 fsize の値(0 より大きい場合)
about.hostname dvchost の値
about.ip IP 検証後に dvc 配列から統合
about.mac 有効な MAC の場合は dvcmac の値、スロットが存在しない場合は dvc_mac の値
about.nat_ip deviceTranslatedAddress の値
about.process.command_line Subject の値(存在しない場合は Emne、それ以外の場合は Path)
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 msg からの値
metadata.event_timestamp ISO 形式の場合の日付の値
metadata.event_type file_full_path が空でない場合は「PROCESS_UNCATEGORIZED」に設定します。それ以外の場合、event_name が LogSpyware または LogPredictiveMachineLearning にある場合は「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 sourceTranslatedPort の値(0 より大きい場合)
principal.port spt の値(整数で 0 以外の場合)
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 に設定します。それ以外の場合は temp_duid、それ以外の場合は User、それ以外の場合は Bruker
security_result.action act が accept/notified、outcome が REDIRECTED_USER_MAY_PROCEED、categoryOutcome が Success、cs2 が Allow の場合は「ALLOW」に設定されます。act が deny/blocked、outcome が BLOCKED、categoryOutcome が Failure、cs2 が Denied の場合は「BLOCK」に設定されます。outcome が 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 cat からの値
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 oldFileSize の値(0 より大きい場合)
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 が空でない場合は、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 のプロフェッショナルから回答を得ることができます。