收集 Cisco CloudLock CASB 記錄

剖析器版本:3.0

支援的服務:

本文說明如何使用 Cloud Storage,將 Cisco CloudLock CASB 記錄檔擷取至 Google Security Operations。Cloud Run 函式會定期輪詢 Cisco CloudLock API,並將事件、活動和實體資料寫入 Cloud Storage bucket,Google SecOps 則會透過 Cloud Storage V2 動態饋給擷取這些資料。

Cisco CloudLock 是雲端原生雲端存取安全性代理程式 (CASB),可提供雲端應用程式的瀏覽權限和控管功能。可協助組織找出影子 IT、強制執行資料遺失防護政策、偵測威脅,以及確保 SaaS 應用程式符合法規。

事前準備

請確認您已具備下列必要條件:

  • Google SecOps 執行個體
  • 已啟用 Cloud Storage API 的 Google Cloud 專案
  • 建立及管理 Cloud Storage bucket 的權限
  • 管理 Cloud Storage bucket 的 Identity and Access Management (IAM) 政策權限
  • 建立 Cloud Run 服務、Pub/Sub 主題和 Cloud Scheduler 工作的權限
  • Cisco CloudLock 管理控制台的特殊存取權
  • Cisco CloudLock API 基準網址 (由 Cisco CloudLock 支援團隊提供)

取得 Cisco CloudLock API 憑證

如要開始使用,請與 Cisco CloudLock 支援團隊聯絡,取得 CloudLock API 網址。API 基準網址是租戶專屬,不公開。在 CloudLock 應用程式中,前往「Settings」頁面的「Authentication & API」分頁,產生存取權杖。

  1. 登入 Cisco CloudLock 管理控制台。
  2. 依序前往「設定」>「驗證與 API」。
  3. 在「API」下方,按一下「Generate」建立存取權杖。
  4. 複製下列詳細資料,並存放在安全的地方:

    • API 存取權杖:點選「產生」後顯示的不記名權杖。
    • API 基準網址:由 Cisco CloudLock 支援團隊提供。格式為 https://{YourCloudlockAPIServer}。

驗證 API 存取權

  • 請先測試憑證,再繼續整合:

    CLOUDLOCK_API_TOKEN="your-api-token"
    CLOUDLOCK_API_BASE="https://your-cloudlock-api-server"
    
    curl -v -H "Authorization: Bearer ${CLOUDLOCK_API_TOKEN}" \
      "${CLOUDLOCK_API_BASE}/api/v2/incidents?limit=1"
    

成功的回應會傳回 HTTP 200,以及包含 items 陣列的 JSON 物件。如果收到 HTTP 401,請驗證 API 權杖。如果收到 HTTP 403,請確認帳戶具備必要權限。

建立 Cloud Storage bucket

  1. 前往 Google Cloud 控制台。
  2. 選取專案或建立新專案。
  3. 在導覽選單中,依序前往「Cloud Storage」>「Bucket」。
  4. 按一下「建立值區」。
  5. 提供下列設定詳細資料:

    設定 值
    為 bucket 命名 輸入全域不重複的名稱 (例如 cisco-cloudlock-logs)
    位置類型 請根據需求選擇 (單一區域、雙區域、多區域)
    位置 選取位置 (例如 us-central1)
    儲存空間級別 標準 (建議用於經常存取的記錄)
    存取控管 統一 (建議)
    保護工具 選用:啟用物件版本管理或資料保留政策
  6. 點選「建立」。

建立 Cloud Run 函式的服務帳戶

Cloud Run 函式需要具備權限的服務帳戶,才能寫入 Cloud Storage bucket,並由 Pub/Sub 叫用。

建立服務帳戶

  1. 在 Google Cloud 控制台,依序前往「IAM & Admin」(IAM 與管理) >「Service Accounts」(服務帳戶)。
  2. 按一下「Create Service Account」(建立服務帳戶)。
  3. 提供下列設定詳細資料:
    • 「Service account name」(服務帳戶名稱):輸入 cloudlock-data-export-sa。
    • 服務帳戶說明:輸入 Service account for Cloud Run function to collect Cisco CloudLock logs。
  4. 按一下「建立並繼續」。
  5. 在「將專案存取權授予這個服務帳戶」部分:
    1. 按一下「請選擇角色」。
    2. 搜尋並選取「Storage 物件管理員」。
    3. 點選「+ 新增其他角色」。
    4. 搜尋並選取「Cloud Run 叫用者」。
    5. 點選「+ 新增其他角色」。
    6. 搜尋並選取「Cloud Functions 叫用者」。
  6. 按一下「繼續」。
  7. 按一下「完成」。

這些角色適用於:

  • Storage 物件管理員:將記錄寫入 Cloud Storage bucket,並管理狀態檔案
  • Cloud Run 叫用者:允許 Pub/Sub 叫用函式
  • Cloud Functions 叫用者:允許叫用函式

授予 Cloud Storage bucket 的 IAM 權限

將 Cloud Storage bucket 的寫入權限授予服務帳戶:

  1. 依序前往「Cloud Storage」>「Buckets」(值區)。
  2. 按一下 bucket 名稱。
  3. 前往「權限」分頁。
  4. 按一下「授予存取權」。
  5. 提供下列設定詳細資料:
    • 新增主體:輸入服務帳戶電子郵件地址 (例如 cloudlock-data-export-sa@PROJECT_ID.iam.gserviceaccount.com)。
    • 指派角色:選取「Storage 物件管理員」。
  6. 按一下「儲存」。

建立 Pub/Sub 主題

建立 Pub/Sub 主題,Cloud Scheduler 會發布至該主題,Cloud Run 函式則會訂閱該主題。

  1. 在 Google Cloud 控制台,依序前往「Pub/Sub」>「Topics」(主題)。
  2. 按一下「建立主題」。
  3. 提供下列設定詳細資料:
    • 主題 ID:輸入 cloudlock-data-export-trigger。
    • 其他設定保留預設值。
  4. 點選「建立」。

建立 Cloud Run 函式來收集記錄

Cloud Run 函式會由 Cloud Scheduler 的 Pub/Sub 訊息觸發,從 Cisco CloudLock API 擷取記錄,並寫入 Cloud Storage。

  1. 前往 Google Cloud 控制台的「Cloud Run」。
  2. 按一下「Create service」(建立服務)。
  3. 選取「函式」(使用內嵌編輯器建立函式)。
  4. 在「設定」部分,提供下列設定詳細資料:

    設定 值
    服務名稱 cloudlock-data-export
    區域 選取與 Cloud Storage bucket 相符的區域 (例如 us-central1)
    執行階段 選取「Python 3.12」或更新版本
  5. 在「觸發條件 (選用)」部分:

    1. 按一下「+ 新增觸發條件」。
    2. 選取「Cloud Pub/Sub」。
    3. 在「Select a Cloud Pub/Sub topic」(選取 Cloud Pub/Sub 主題) 中,選擇主題 (cloudlock-data-export-trigger)。
    4. 按一下「儲存」。
  6. 在「Authentication」(驗證) 部分:

    1. 選取「需要驗證」。
    2. 查看 Identity and Access Management (IAM)。
  7. 向下捲動並展開「容器、網路、安全性」。

  8. 前往「安全性」分頁:

    • 服務帳戶:選取服務帳戶 (cloudlock-data-export-sa)。
  9. 前往「容器」分頁:

    1. 按一下「變數與密鑰」。
    2. 針對每個環境變數,按一下「+ 新增變數」:
    變數名稱 範例值 說明
    GCS_BUCKET cisco-cloudlock-logs Cloud Storage Bucket 名稱
    GCS_PREFIX cloudlock/ 記錄檔的前置字串
    STATE_KEY cloudlock/state.json 狀態檔案路徑
    CLOUDLOCK_API_TOKEN your-api-token API 不記名權杖
    CLOUDLOCK_API_BASE https://your-cloudlock-api-server CloudLock 支援團隊提供的 API 基準網址
  10. 在「變數與密鑰」分頁中,向下捲動至「要求」:

    • 「Request timeout」(要求逾時):輸入 600 秒 (10 分鐘)。
  11. 前往「容器」的「設定」分頁:

    • 在「Resources」(資源) 部分:
      • 「記憶體」:選取「512 MiB」或以上。
      • CPU:選取「1」。
    • 按一下「完成」。
  12. 向下捲動至「執行環境」:

    • 選取「預設」(建議)。
  13. 在「Revision scaling」(修訂版本資源調度) 部分:

    • 「Minimum number of instances」(執行個體數量下限):輸入 0。
    • 「執行個體數量上限」:輸入 100 (或依預期負載調整)。
  14. 點選「建立」。

  15. 等待服務建立完成 (1 至 2 分鐘)。

  16. 服務建立後,內嵌程式碼編輯器會自動開啟。

新增函式程式碼

  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()
      
      @functions_framework.cloud_event
      def main(cloud_event):
          """
          Cloud Run function triggered by Pub/Sub to fetch logs from Cisco CloudLock API and write to GCS.
      
          Args:
              cloud_event: CloudEvent object containing Pub/Sub message
          """
      
          # Get environment variables
          bucket_name = os.environ.get('GCS_BUCKET')
          prefix = os.environ.get('GCS_PREFIX', 'cloudlock/')
          state_key = os.environ.get('STATE_KEY', 'cloudlock/state.json')
          api_token = os.environ.get('CLOUDLOCK_API_TOKEN')
          api_base = os.environ.get('CLOUDLOCK_API_BASE')
      
          if not all([bucket_name, api_token, api_base]):
              print('Error: Missing required environment variables')
              return
      
          try:
              # Get GCS bucket
              bucket = storage_client.bucket(bucket_name)
      
              # Load state (last processed offset for each endpoint)
              state = load_state(bucket, state_key)
      
              print(f'Processing logs with state: {state}')
      
              # Create Authorization header
              headers = {
                  'Authorization': f'Bearer {api_token}',
                  'Content-Type': 'application/json'
              }
      
              # Fetch incidents data (using offset-based pagination)
              incidents_offset = state.get('incidents_offset', 0)
              incidents, new_incidents_offset = fetch_cloudlock_incidents(
                  http, api_base, headers, incidents_offset
              )
      
              if incidents:
                  upload_to_gcs_ndjson(bucket, prefix, 'incidents', incidents)
                  print(f'Uploaded {len(incidents)} incidents to GCS')
                  state['incidents_offset'] = new_incidents_offset
      
              # Fetch activities data (using time-based filtering with offset pagination)
              activities_last_time = state.get('activities_last_time')
              if not activities_last_time:
                  activities_last_time = (datetime.now(timezone.utc) - timedelta(hours=24)).isoformat()
      
              activities_offset = state.get('activities_offset', 0)
              activities, new_activities_offset, newest_activity_time = fetch_cloudlock_activities(
                  http, api_base, headers, activities_last_time, activities_offset
              )
      
              if activities:
                  upload_to_gcs_ndjson(bucket, prefix, 'activities', activities)
                  print(f'Uploaded {len(activities)} activities to GCS')
                  state['activities_offset'] = new_activities_offset
                  if newest_activity_time:
                      state['activities_last_time'] = newest_activity_time
      
              # Fetch entities data (using offset-based pagination)
              entities_offset = state.get('entities_offset', 0)
              entities, new_entities_offset = fetch_cloudlock_entities(
                  http, api_base, headers, entities_offset
              )
      
              if entities:
                  upload_to_gcs_ndjson(bucket, prefix, 'entities', entities)
                  print(f'Uploaded {len(entities)} entities to GCS')
                  state['entities_offset'] = new_entities_offset
      
              # Update consolidated state
              state['updated_at'] = datetime.now(timezone.utc).isoformat()
              save_state(bucket, state_key, state)
      
              print('CloudLock data export completed successfully')
      
          except Exception as e:
              print(f'Error processing logs: {str(e)}')
              raise
      
      def make_api_request(http, url, headers, retries=3):
          """Make API request with exponential backoff retry logic."""
          backoff = 1.0
          for attempt in range(retries):
              try:
                  response = http.request('GET', url, headers=headers)
      
                  if response.status == 200:
                      return response
                  elif response.status == 429:
                      # Rate limit - CloudLock enforces per-endpoint rate limits
                      retry_after = int(response.headers.get('Retry-After', str(int(backoff))))
                      print(f'Rate limited (429), waiting {retry_after} seconds')
                      time.sleep(retry_after)
                      backoff = min(backoff * 2, 60.0)
                  else:
                      print(f'API request failed with status {response.status}: {response.data.decode("utf-8")}')
                      if response.status in (401, 403):
                          return None
              except Exception as e:
                  print(f'Request attempt {attempt + 1} failed: {str(e)}')
                  if attempt < retries - 1:
                      wait_time = 2 ** attempt
                      time.sleep(wait_time)
                  else:
                      raise
      
          return None
      
      def fetch_cloudlock_incidents(http, api_base, headers, start_offset=0):
          """
          Fetch incidents data from Cisco CloudLock API using offset-based pagination.
      
          Endpoint: GET /api/v2/incidents
          Pagination: limit and offset query parameters.
          Response: JSON with 'items' array, 'total' count, and 'results' count.
          """
          url = f"{api_base}/api/v2/incidents"
      
          limit = 1000
          offset = start_offset
          all_data = []
      
          try:
              while True:
                  # Build URL with parameters
                  full_url = f"{url}?limit={limit}&offset={offset}"
      
                  print(f"Fetching incidents with offset: {offset}")
      
                  response = make_api_request(http, full_url, headers)
                  if not response:
                      break
      
                  data = json.loads(response.data.decode('utf-8'))
      
                  # CloudLock API returns items in 'items' array
                  batch_data = data.get('items', [])
      
                  if not batch_data:
                      print("No more incidents to fetch")
                      break
      
                  all_data.extend(batch_data)
      
                  # Check if we've reached the end
                  total = data.get('total', 0)
                  results = data.get('results', len(batch_data))
      
                  print(f"Fetched {results} incidents (total available: {total})")
      
                  if results < limit or offset + results >= total:
                      print("Reached end of incidents")
                      break
      
                  offset += limit
      
              print(f"Fetched {len(all_data)} total incidents")
              return all_data, offset
      
          except Exception as e:
              print(f"Error fetching incidents: {str(e)}")
              return [], start_offset
      
      def fetch_cloudlock_activities(http, api_base, headers, from_time, start_offset=0):
          """
          Fetch activities data from Cisco CloudLock API using time-based filtering and offset pagination.
      
          Endpoint: GET /api/v2/activities
          Pagination: limit and offset query parameters.
          Note: Client-side time filtering is applied since the API may not support time range parameters.
          """
          url = f"{api_base}/api/v2/activities"
      
          limit = 1000
          offset = start_offset
          all_data = []
          newest_time = None
      
          try:
              while True:
                  # Build URL with pagination
                  full_url = f"{url}?limit={limit}&offset={offset}"
      
                  print(f"Fetching activities with offset: {offset}")
      
                  response = make_api_request(http, full_url, headers)
                  if not response:
                      break
      
                  data = json.loads(response.data.decode('utf-8'))
                  batch_data = data.get('items', [])
      
                  if not batch_data:
                      print("No more activities to fetch")
                      break
      
                  # Filter activities by time (client-side filtering)
                  filtered_batch = []
                  for item in batch_data:
                      item_time = item.get('timestamp') or item.get('created_at')
                      if item_time and item_time >= from_time:
                          filtered_batch.append(item)
                          if not newest_time or item_time > newest_time:
                              newest_time = item_time
      
                  all_data.extend(filtered_batch)
      
                  results = data.get('results', len(batch_data))
                  total = data.get('total', 0)
      
                  print(f"Fetched {results} activities, {len(filtered_batch)} after time filter (total available: {total})")
      
                  if results < limit or offset + results >= total:
                      print("Reached end of activities")
                      break
      
                  offset += limit
      
              print(f"Fetched {len(all_data)} total activities")
              return all_data, offset, newest_time
      
          except Exception as e:
              print(f"Error fetching activities: {str(e)}")
              return [], start_offset, None
      
      def fetch_cloudlock_entities(http, api_base, headers, start_offset=0):
          """
          Fetch entities data from Cisco CloudLock API using offset-based pagination.
      
          Endpoint: GET /api/v2/entities
          Note: This endpoint requires the Entity Cache feature. If not enabled,
          use the incident entities endpoint (/api/v2/incidents/{id}/entities) as an alternative.
          """
          url = f"{api_base}/api/v2/entities"
      
          limit = 1000
          offset = start_offset
          all_data = []
      
          try:
              while True:
                  full_url = f"{url}?limit={limit}&offset={offset}"
      
                  print(f"Fetching entities with offset: {offset}")
      
                  response = make_api_request(http, full_url, headers)
                  if not response:
                      break
      
                  data = json.loads(response.data.decode('utf-8'))
                  batch_data = data.get('items', [])
      
                  if not batch_data:
                      print("No more entities to fetch")
                      break
      
                  all_data.extend(batch_data)
      
                  results = data.get('results', len(batch_data))
                  total = data.get('total', 0)
      
                  print(f"Fetched {results} entities (total available: {total})")
      
                  if results < limit or offset + results >= total:
                      print("Reached end of entities")
                      break
      
                  offset += limit
      
              print(f"Fetched {len(all_data)} total entities")
              return all_data, offset
      
          except Exception as e:
              print(f"Error fetching entities: {str(e)}")
              return [], start_offset
      
      def upload_to_gcs_ndjson(bucket, prefix, data_type, data):
          """Upload data to GCS bucket in NDJSON format (one JSON object per line)."""
          timestamp = datetime.now(timezone.utc).strftime('%Y/%m/%d/%H')
          filename = f"{prefix}{data_type}/{timestamp}/cloudlock_{data_type}_{int(datetime.now(timezone.utc).timestamp())}.jsonl"
      
          try:
              # Convert to NDJSON format
              ndjson_content = '\n'.join([json.dumps(item, separators=(',', ':')) for item in data])
      
              blob = bucket.blob(filename)
              blob.upload_from_string(
                  ndjson_content,
                  content_type='application/x-ndjson'
              )
      
              print(f"Successfully uploaded {filename} to GCS")
      
          except Exception as e:
              print(f"Error uploading to GCS: {str(e)}")
              raise
      
      def load_state(bucket, key):
          """Load state from GCS with separate tracking for each endpoint."""
          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: {str(e)}')
      
          print("No previous state found, starting fresh")
          return {}
      
      def save_state(bucket, key, state):
          """Save consolidated state to GCS."""
          try:
              blob = bucket.blob(key)
              blob.upload_from_string(
                  json.dumps(state, indent=2),
                  content_type='application/json'
              )
              print("Updated state successfully")
          except Exception as e:
              print(f"Error updating state: {str(e)}")
              raise
      
    • 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. 提供下列設定詳細資料:

    設定 值
    名稱 cloudlock-data-export-hourly
    區域 選取與 Cloud Run 函式相同的區域
    頻率 0 * * * * (每小時整點)
    時區 選取時區 (建議選取世界標準時間)
    目標類型 Pub/Sub
    主題 選取主題 (cloudlock-data-export-trigger)
    郵件內文 {} (空白 JSON 物件)
  4. 點選「建立」。

排程頻率選項

根據記錄量和延遲時間需求選擇頻率:

頻率 Cron 運算式 用途
每 5 分鐘 */5 * * * * 高處理量、低延遲
每 15 分鐘 */15 * * * * 中等音量
每小時 0 * * * * 標準 (建議)
每 6 小時 0 */6 * * * 低量、批次處理
每天 0 0 * * * 歷來資料集合

測試整合

  1. 在 Cloud Scheduler 控制台中找出工作。
  2. 按一下「強制執行」,手動觸發工作。
  3. 稍等幾秒鐘。
  4. 依序前往「Cloud Run」>「服務」。
  5. 按一下函式名稱 (cloudlock-data-export)。
  6. 點選「記錄」分頁標籤。
  7. 確認函式是否執行成功。尋找:

    Processing logs with state: {}
    Fetching incidents with offset: 0
    Fetched X incidents (total available: Y)
    Uploaded X incidents to GCS
    CloudLock data export completed successfully
    
  8. 依序前往「Cloud Storage」>「Buckets」(值區)。

  9. 點選 bucket 名稱 (cisco-cloudlock-logs)。

  10. 前往 cloudlock/ 前置字元資料夾。

  11. 確認 incidents/、activities/ 或 entities/ 子資料夾底下是否已建立新的 .jsonl 檔案。

如果記錄中顯示錯誤:

  • HTTP 401:檢查環境變數中的 API 權杖
  • HTTP 403:確認 CloudLock 帳戶具備必要權限
  • HTTP 429:頻率限制 - 函式會自動重試,並採用輪詢機制
  • 缺少環境變數:確認已設定所有必要變數
  • 實體空白:實體端點需要實體快取功能,請與 CloudLock 支援團隊聯絡,要求啟用這項功能

在 Google SecOps 中設定動態饋給,以便擷取 Cisco CloudLock 記錄

  1. 依序前往「設定」>「資料管理」>「動態饋給」。如果使用的是 SIEM 專用平台,請依序前往「設定」>「動態饋給」。
  2. 按一下「新增動態饋給」。
  3. 按一下「設定單一動態饋給」。
  4. 在「Feed name」(動態饋給名稱) 欄位中,輸入動態饋給名稱 (例如 Cisco CloudLock logs)。
  5. 選取「Google Cloud Storage V2」做為「來源類型」。
  6. 在「Log type」(記錄類型) 中選取「Cisco CloudLock」。
  7. 按一下「取得服務帳戶」。系統會顯示專屬服務帳戶電子郵件地址,例如:

    chronicle-12345678@chronicle-gcp-prod.iam.gserviceaccount.com
    
  8. 複製這個電子郵件地址,下一個步驟將會用到。

  9. 點選「下一步」。

  10. 指定下列輸入參數的值:

    • Storage bucket URL:輸入 Cloud Storage bucket URI,並加上前置字元路徑:

      gs://cisco-cloudlock-logs/cloudlock/
      
      • 取代:
        • cisco-cloudlock-logs:Cloud Storage bucket 名稱。
        • cloudlock/:儲存記錄的選用前置字元/資料夾路徑 (留空則為根目錄)。
    • 來源刪除選項:根據偏好選取刪除選項:

      • Never:轉移後一律不刪除任何檔案 (建議用於測試)。
      • 刪除已轉移的檔案:成功轉移後刪除檔案。
      • 刪除已轉移的檔案和空白目錄:成功轉移後,刪除檔案和空白目錄。
    • 檔案存在時間上限:納入過去幾天內修改過的檔案 (預設為 180 天)。

    • Asset namespace:資產命名空間。

    • 擷取標籤:要套用至這個動態饋給事件的標籤。

  11. 點選「下一步」。

  12. 在「完成」畫面中檢查新的新聞動態消息設定,然後按一下「提交」。

將 IAM 權限授予 Google SecOps 服務帳戶

Google SecOps 服務帳戶必須具備 Cloud Storage bucket 的「Storage 物件檢視者」角色。

  1. 依序前往「Cloud Storage」>「Buckets」(值區)。
  2. 按一下 bucket 名稱。
  3. 前往「權限」分頁。
  4. 按一下「授予存取權」。
  5. 提供下列設定詳細資料:
    • 新增主體:貼上 Google SecOps 服務帳戶電子郵件地址。
    • 「指派角色」:選取「Storage 物件檢視者」。
  6. 按一下「儲存」。

UDM 對應表

記錄欄位 UDM 對應 邏輯
created_at about.resource.attribute.creation_time 原始記錄中的 created_at 值會剖析為時間戳記,並對應至 about.resource.attribute.creation_time 欄位。
created_at about.resource.attribute.labels.key created_at 的值會指派給標籤鍵。
created_at about.resource.attribute.labels.value created_at 的值會指派給標籤值。
entity.id target.asset.product_object_id 原始記錄中的 entity.id 值會對應至 target.asset.product_object_id 欄位。
entity.ip target.ip 原始記錄中的 entity.ip 值會合併至 target.ip 欄位。
entity.mime_type target.file.mime_type 當 entity.origin_type 為「document」時,原始記錄中的 entity.mime_type 值會對應至 target.file.mime_type 欄位。
entity.name target.application 如果 entity.origin_type 為「app」,原始記錄中的 entity.name 值會對應至 target.application 欄位。
entity.name target.file.full_path 當 entity.origin_type 為「document」時,原始記錄中的 entity.name 值會對應至 target.file.full_path 欄位。
entity.origin_id target.resource.product_object_id 原始記錄中的 entity.origin_id 值會對應至 target.resource.product_object_id 欄位。
entity.origin_type target.resource.resource_subtype 原始記錄中的 entity.origin_type 值會對應至 target.resource.resource_subtype 欄位。
entity.owner_email target.user.email_addresses 如果原始記錄中的 entity.owner_email 值與電子郵件規則運算式相符,就會合併至 target.user.email_addresses 欄位。
entity.owner_email target.user.user_display_name 如果原始記錄中的 entity.owner_email 值與電子郵件規則運算式不符,則會對應至 target.user.user_display_name 欄位。
entity.owner_name target.user.user_display_name 當 entity.owner_email 與電子郵件規則運算式相符時,原始記錄中的 entity.owner_name 值會對應至 target.user.user_display_name 欄位。
entity.vendor.name target.platform_version 原始記錄中的 entity.vendor.name 值會對應至 target.platform_version 欄位。
id metadata.product_log_id 原始記錄中的 id 值會對應至 metadata.product_log_id 欄位。
incident_status metadata.product_event_type 原始記錄中的 incident_status 值會對應至 metadata.product_event_type 欄位。
policy.id security_result.rule_id 原始記錄中的 policy.id 值會對應至 security_result.rule_id 欄位。
policy.name security_result.rule_name 原始記錄中的 policy.name 值會對應至 security_result.rule_name 欄位。
嚴重性 security_result.severity_details 原始記錄中的 severity 值會對應至 security_result.severity_details 欄位。
updated_at about.resource.attribute.labels.key updated_at 的值會指派給標籤鍵。
updated_at about.resource.attribute.labels.value updated_at 的值會指派給標籤值。
updated_at about.resource.attribute.last_update_time 原始記錄中的 updated_at 值會剖析為時間戳記,並對應至 about.resource.attribute.last_update_time 欄位。
不適用 metadata.event_timestamp 衍生自 updated_at 欄位。系統會將值剖析為時間戳記並進行對應。
不適用 metadata.event_type 設為「GENERIC_EVENT」。
不適用 metadata.product_name 設為「CISCO_CLOUDLOCK_CASB」。
不適用 metadata.product_version 設為「Cisco」。
不適用 metadata.vendor_name 設為「CloudLock」。
不適用 security_result.alert_state 如果 severity 為「ALERT」,且 incident_status 不是「RESOLVED」或「DISMISSED」,則設為「ALERTING」。如果 severity 為「ALERT」,且 incident_status 為「RESOLVED」或「DISMISSED」,請設為「NOT_ALERTING」。
不適用 security_result.detection_fields.key 衍生自 matches 陣列,特別是每個比對物件的索引鍵。如果 severity 為「ALERT」,且 incident_status 為「NEW」,也請設為「true」。
不適用 security_result.detection_fields.value 衍生自 matches 陣列,具體來說是每個比對物件的值。如果 severity 為「ALERT」,且 incident_status 為「NEW」,也請設為「true」。
不適用 security_result.severity 如果 severity 為「INFO」,請設為「INFORMATIONAL」。如果 severity 為「CRITICAL」,則設為「CRITICAL」。衍生自 severity 欄位。
不適用 security_result.summary 設為「match count: 」,並串連 match_count 的值。
不適用 target.resource.resource_type 如果 entity.origin_type 為「document」,請設為「STORAGE_OBJECT」。
不適用 target.url 當 entity.origin_type 為「document」時,衍生自 entity.direct_url。

還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求解答。