收集 Symantec CloudSOC CASB 記錄

支援的國家/地區:

本文說明如何使用 Bindplane 代理程式,將 Symantec CloudSOC CASB 記錄檔擷取至 Google Security Operations。

Symantec CloudSOC 是一種雲端存取安全性代理程式 (CASB),可針對雲端應用程式活動、資料遺失防護政策違規事件、威脅偵測、內容檢查結果和使用者存取事件,產生系統記錄訊息。剖析器會從 JSON 格式和系統記錄格式的記錄檔中擷取欄位,並對應至統合資料模型 (UDM)。

事前準備

請確認您已完成下列事前準備事項:

  • Google SecOps 執行個體
  • Windows Server 2016 以上版本,或搭載 systemd 的 Linux 主機
  • Bindplane 代理程式與 Symantec CloudSOC 主機之間的網路連線
  • 如果透過 Proxy 執行,請確保防火牆通訊埠已根據 Bindplane 代理程式需求開啟
  • Symantec CloudSOC 主機的管理員存取權

取得 Google SecOps 擷取驗證檔案

  1. 登入 Google SecOps 控制台。
  2. 依序前往「SIEM 設定」>「收集代理程式」
  3. 下載擷取驗證檔案
  4. 將檔案安全地儲存在要安裝 Bindplane 的系統上。

取得 Google SecOps 客戶 ID

  1. 登入 Google SecOps 控制台。
  2. 依序前往「SIEM 設定」>「設定檔」
  3. 複製並儲存「機構詳細資料」部分中的客戶 ID

安裝 Bindplane 代理程式

請按照下列操作說明,在 Windows 或 Linux 作業系統上安裝 Bindplane 代理程式。

Windows 安裝

  1. 以管理員身分開啟「命令提示字元」或「PowerShell」
  2. 執行下列指令:

    msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
    
  3. 等待安裝完成。

  4. 執行下列指令,確認安裝成功:

    sc query observiq-otel-collector
    

    服務應顯示為「RUNNING」

Linux 安裝

  1. 開啟具有根層級或 sudo 權限的終端機。
  2. 執行下列指令:

    sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
    
  3. 等待安裝完成。

  4. 執行下列指令,確認安裝成功:

    sudo systemctl status observiq-otel-collector
    

    服務應顯示為有效 (執行中)

其他安裝資源

如需其他安裝選項和疑難排解資訊,請參閱 Bindplane 代理程式安裝指南

設定 Bindplane 代理程式,擷取系統記錄檔並傳送至 Google SecOps

找出設定檔

  • Linux:

    sudo nano /opt/observiq-otel-collector/config.yaml
    
  • Windows:

    notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
    

編輯設定檔

  • config.yaml 的所有內容替換為下列設定:

    receivers:
        udplog:
            listen_address: "0.0.0.0:514"
    
    exporters:
        chronicle/symantec_casb:
            compression: gzip
            creds_file_path: '/etc/bindplane-agent/ingestion-auth.json'
            customer_id: '<customer_id>'
            endpoint: malachiteingestion-pa.googleapis.com
            log_type: SYMANTEC_CASB
            raw_log_field: body
    
    service:
        pipelines:
            logs/symantec_casb_to_chronicle:
                receivers:
                    - udplog
                exporters:
                    - chronicle/symantec_casb
    

設定參數

替換下列預留位置:

  • 接收器設定:

    • listen_address:要接聽的 IP 位址和通訊埠:
      • 0.0.0.0,監聽所有介面 (建議)
      • 通訊埠 514 是標準的系統記錄通訊埠 (在 Linux 上需要根層級權限;非根層級權限請使用 1514)
  • 匯出工具設定:

    • creds_file_path:擷取驗證檔案的完整路徑:
      • Linux/etc/bindplane-agent/ingestion-auth.json
      • WindowsC:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
    • customer_id:從 Google SecOps 控制台複製的客戶 ID
    • endpoint:區域端點網址:
      • 美國malachiteingestion-pa.googleapis.com
      • 歐洲europe-malachiteingestion-pa.googleapis.com
      • 亞洲asia-southeast1-malachiteingestion-pa.googleapis.com
      • 如需完整清單,請參閱「區域端點

儲存設定檔

  • 編輯完成後,請儲存檔案:
    • Linux:依序按下 Ctrl+OEnterCtrl+X
    • Windows:依序點選「檔案」>「儲存」

重新啟動 Bindplane 代理程式,以套用變更

  • 如要在 Linux 中重新啟動 Bindplane 代理程式,請執行下列指令:

    sudo systemctl restart observiq-otel-collector
    
    1. 確認服務正在執行:

      sudo systemctl status observiq-otel-collector
      
    2. 檢查記錄中是否有錯誤:

      sudo journalctl -u observiq-otel-collector -f
      
  • 如要在 Windows 中重新啟動 Bindplane 代理程式,請選擇下列其中一個選項:

    • 以管理員身分開啟命令提示字元或 PowerShell:

      net stop observiq-otel-collector && net start observiq-otel-collector
      
    • 服務控制台:

      1. 按下 Win+R,輸入 services.msc,然後按下 Enter 鍵。
      2. 找出 observIQ OpenTelemetry Collector
      3. 按一下滑鼠右鍵,然後選取「重新啟動」
      4. 確認服務正在執行:

        sc query observiq-otel-collector
        
      5. 檢查記錄中是否有錯誤:

        type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
        

在 Symantec CloudSOC CASB 中設定 Syslog

  1. 登入 Symantec CloudSOC 主機。
  2. 執行下列指令,找出系統使用的記錄器:

    ls -d /etc/*syslog*
    
  3. 根據回覆前往對應部分:

    • syslog.conf:舊版系統記錄檔。
    • syslog-ng.conf:Syslog-ng。

舊版系統記錄設定

  1. 開啟 syslogd 檔案,通常位於 /etc/default 目錄中:

    vi /etc/default/syslogd
    
  2. 確認 SYSLOGD 值包含 -r 旗標:

    SYSLOGD="-r"
    
  3. 儲存檔案並結束編輯器。

  4. 開啟 services 檔案,通常位於 /etc 目錄中:

    vi /etc/services
    
  5. 編輯系統記錄服務的通訊埠值:

    syslog          514/udp
    
  6. 儲存檔案並結束編輯器。

  7. 開啟 syslog.conf 檔案,通常位於 /etc 目錄中:

    vi /etc/syslog.conf
    
  8. 更新設定,將所有記錄轉送至 Bindplane 代理程式:

    *.* @<BINDPLANE_IP>
    
    • <BINDPLANE_IP> 替換為 Bindplane 代理程式 IP 位址。
  9. 開啟 hosts 檔案,通常位於 /etc 目錄中:

    vi /etc/hosts
    
  10. 為 Bindplane 代理程式建立本機 DNS 項目:

    <BINDPLANE_IP>    bindplane_agent_host
    
  11. 儲存檔案並結束編輯器。

  12. 重新啟動 syslog daemon 服務。

Syslog-ng 設定

  1. 開啟 syslog-ng.conf 檔案,通常位於 /etc 目錄中:

    vi /etc/syslog-ng.conf
    
  2. 在檔案結尾新增下列程式碼:

    destination d_bindplane { udp("<BINDPLANE_IP>" port(514)); };
    log { source(s_src); destination(d_bindplane); };
    
    • <BINDPLANE_IP> 替換為 Bindplane 代理程式 IP 位址。
  3. 開啟 hosts 檔案,通常位於 /etc 目錄中:

    vi /etc/hosts
    
  4. 為 Bindplane 代理程式建立本機 DNS 項目:

    <BINDPLANE_IP>    bindplane_agent_host
    
  5. 儲存檔案並結束編輯器。

  6. 重新啟動 syslog-ng Daemon 服務。

UDM 對應表

記錄欄位 UDM 對應 邏輯
_domain target.hostname _domain 欄位的值
_domain target.asset.hostname _domain 欄位的值
_id metadata.product_log_id _id 欄位的值
actions_taken security_result.detection_fields[].value actions_taken 欄位的值。系統會動態產生鍵,格式為 Action_ + 索引。
activity_type metadata.product_event_type 如果 product_data.activity_type 為空,則為 activity_type 欄位的值;如果 product_data.activity_type 不為空,則為 product_data.activity_type 的值。
collector_device_ip principal.ip collector_device_ip 欄位的值 (如果不是 Unknown IP)。
collector_device_ip principal.asset.ip collector_device_ip 欄位的值 (如果不是 Unknown IP)。
collector_device_name principal.hostname collector_device_name 欄位的值。
collector_device_name principal.asset.hostname collector_device_name 欄位的值。
content_checks.dlp.raw_response.contentdetails[].contentBlockId security_result.detection_fields[].value content_checks.dlp.raw_response.contentdetails[].contentBlockId 的值。系統會動態產生鍵,格式為 contentBlockId_ + 索引。
content_checks.dlp.raw_response.contentdetails[].topLevelFileType security_result.detection_fields[].value content_checks.dlp.raw_response.contentdetails[].topLevelFileType 的值。系統會動態產生鍵,格式為 topLevelFileType_ + 索引。
content_checks.dlp.raw_response.requestid security_result.detection_fields[].value content_checks.dlp.raw_response.requestid 的值。金鑰為 Request ID
content_checks.dlp.raw_response.responseaction security_result.detection_fields[].value content_checks.dlp.raw_response.responseaction 的值。金鑰為 Response Action
content_checks.dlp.raw_response.violation[].name security_result.detection_fields[].value content_checks.dlp.raw_response.violation[].name 的值。系統會動態產生鍵,格式為 Violation_Policy_Name_ + 索引。
content_checks.dlp.raw_response.violation[].policyId security_result.detection_fields[].value content_checks.dlp.raw_response.violation[].policyId 的值。系統會動態產生鍵,格式為 Violation_Policy_ID_ + 索引。
content_checks.dlp.updated_timestamp additional.fields[].value.string_value content_checks.dlp.updated_timestamp 的值。金鑰為 Updated TimeStamp
content_checks.filename target.file.full_path content_checks.filename 的值。
content_checks.mimetype target.file.mime_type content_checks.mimetype 的值。
content_checks.risktype_list[] security_result.detection_fields[].value content_checks.risktype_list[] 的值。系統會動態產生鍵,格式為 RiskType_ + 索引。
content_checks.vba_macros.expressions[].values[].key security_result.detection_fields[].key content_checks.vba_macros.expressions[].values[].key 的值與索引串連。
content_checks.vba_macros.expressions[].values[].value security_result.detection_fields[].value content_checks.vba_macros.expressions[].values[].value 的值。
content_checks.vk_content_iq_violations[] security_result.detection_fields[].value content_checks.vk_content_iq_violations[] 的值。系統會動態產生鍵,格式為 content_violation_ + 索引。
content_checks.vk_dlp_policy_violations[] security_result.detection_fields[].value content_checks.vk_dlp_policy_violations[] 的值。系統會動態產生鍵,格式為 dlp_policy_violation_ + 索引。
content_checks.vk_encryption security_result.detection_fields[].value content_checks.vk_encryption 的值。金鑰為 vk_encryption
content_checks.vk_glba security_result.detection_fields[].value content_checks.vk_glba 的值。金鑰為 vk_glba
content_checks.vk_hipaa security_result.detection_fields[].value content_checks.vk_hipaa 的值。金鑰為 vk_hipaa
content_checks.vk_pci security_result.detection_fields[].value content_checks.vk_pci 的值。金鑰為 vk_pci
content_checks.vk_pii security_result.detection_fields[].value content_checks.vk_pii 的值。金鑰為 vk_pii
content_checks.vk_source_code security_result.detection_fields[].value content_checks.vk_source_code 的值。金鑰為 vk_source_code
content_checks.vk_vba_macros security_result.detection_fields[].value content_checks.vk_vba_macros 的值。金鑰為 vk_vba_macros
content_checks.vk_virus security_result.detection_fields[].value content_checks.vk_virus 的值。金鑰為 vk_virus
content_checks.violations security_result.detection_fields[].value content_checks.violations 的值。金鑰為 violations
created_timestamp additional.fields[].value.string_value created_timestamp 的值。金鑰為 Created TimeStamp
date metadata.event_timestamp.seconds date 欄位擷取的 Epoch 秒數。
device_ip target.ip device_ip 欄位的值 (如果不是 Unknown IP)。
device_ip target.asset.ip device_ip 欄位的值 (如果不是 Unknown IP)。
file_size target.file.size 如果前者為空值,則為 file_sizeproduct_data.file_size 的值。已轉換為無正負號整數。
file_url target.file.full_path product_data.file_url 的值。
group_name target.group.group_display_name 從「group_name」欄位擷取的顯示名稱。
hosts[] principal.ip 以半形逗號分隔的 hosts 欄位值。
inserted_timestamp additional.fields[].value.string_value inserted_timestamp 的值。金鑰為 Inserted TimeStamp
instance principal.hostname 如果 instance 欄位是陣列,則為第一個值;如果是字串,則為 instance 欄位的值。
instance principal.asset.hostname 如果 instance 欄位是陣列,則為第一個值;如果是字串,則為 instance 欄位的值。
ioi_code security_result.summary ioi_code 欄位的值。
_latency security_result.detection_fields[].value _latency 欄位的值。金鑰為 Latency
locations security_result.detection_fields[].value locations 欄位的值。金鑰為 Locations
log_name intermediary.asset.asset_id log_name 欄位擷取的記錄檔 ID,前置字串為 logid:
mailbox_owner target.user.userid product_data.mailbox owner 的值。
metadata.log_type metadata.log_type 硬式編碼為 SYMANTEC_CASB
metadata.product_name metadata.product_name 硬式編碼為 SYMANTEC_CASB
metadata.vendor_name metadata.vendor_name 硬式編碼為 SYMANTEC
msg metadata.description msg 欄位的值,或 msg 不存在時 message 欄位的值。
name security_result.detection_fields[].value name 欄位的值。金鑰為 Name
object_name security_result.detection_fields[].value object_name 欄位的值。金鑰為 Object Name
object_type target.resource.name object_type 欄位的值。
org_unit security_result.detection_fields[].value org_unit 欄位的值。金鑰為 org_unit ID
policy_action security_result.action_details policy_action 欄位的值。
policy_type security_result.detection_fields[].value policy_type 欄位的值。金鑰為 policy_type
policy_violated security_result.detection_fields[].value policy_violated 欄位的值。金鑰為 policy_violated
product_data._domain target.hostname product_data._domain 的值。
product_data._domain target.asset.hostname product_data._domain 的值。
product_data.activity_type metadata.product_event_type product_data.activity_type 的值。
product_data.file url target.file.full_path product_data.file url 的值。
product_data.file_size target.file.size product_data.file_size 的值。
product_data.group target.group.group_display_name product_data.group 的值。
product_data.location principal.location.country_or_region product_data.location 的值。
product_data.logon error security_result.summary product_data.logon error 的值。
product_data.mailbox owner target.user.userid product_data.mailbox owner 的值。
product_data.name target.file.full_path product_data.name 的值。
product_data.object_name target.file.full_path product_data.object_name 的值。
product_data.originatingserver product_data.service target.application product_data.service 的值。
product_data.site url target.url product_data.site url 的值。
product_data.target target.user.userid product_data.target 的值。
product_data.useragent network.http.user_agent product_data.useragent 的值。
product_name intermediary.application product_name 欄位的值。
product_uid metadata.product_name product_uid 欄位的值。
responsible_logs additional.fields[].value.string_value responsible_logs 欄位的值。金鑰為 responsible_logs
resource_id target.resource.product_object_id resource_id 欄位的值。
risks security_result.detection_fields[].value risks 欄位的值。金鑰為 Risks
security_result.action security_result.action 衍生自 product_data.logon error。如果 product_data.logon errorBlockedByConditionalAccess,請設為 BLOCK
security_result.severity security_result.severity 如果 severity 欄位是支援的嚴重程度之一,則為該欄位的大寫值。
security_result.severity_details security_result.severity_details 如果 severity 欄位的值不是支援的嚴重程度,
security_result.summary security_result.summary ioi_code 欄位的值,或 ioi_code 不存在時的值 product_data.logon error
service target.application 如果 product_data.service 為空,則 service 欄位的值。
site_url target.url product_data.site url 的值。
source principal.resource.attribute.labels[].value source 欄位的值。金鑰為 Source
sub_feature additional.fields[].value.string_value sub_feature 欄位的值。金鑰為 Sub Feature
target.application target.application 根據主體和目標的 product_data.activity_type 和存在狀態衍生而來。
target.resource.name target.resource.name 根據主體和目標的 product_data.activity_type 和存在狀態衍生而來。
threat_score security_result.detection_fields[].value threat_score 欄位的值。金鑰為 Threat Score
transaction_id security_result.detection_fields[].value transaction_id 欄位的值。金鑰為 Transaction ID
updated_timestamp additional.fields[].value.string_value 如果前者為空值,則為 updated_timestampcontent_checks.dlp.updated_timestamp 的值。金鑰為 Updated TimeStamp
user principal.user.userid user 欄位的值。
user_email target.user.userid user_email 欄位的值。
user_mail target.user.userid msg 欄位擷取的 user_mail 欄位值。
user_name principal.user.user_display_name user_name 欄位的值。
user_uid principal.user.useridtarget.user.userid user_uid 欄位的值。如果 product_data.activity_type 不是 InvalidLoginLogin,則會對應至 principal.user.userid,否則會對應至 target.user.userid
uuid intermediary.asset.product_object_id uuid 欄位的值。
version metadata.product_version version 欄位的值。
user", "user_mail", and "user_uid principal.user.email_addresses 從變更記錄對應
user_email", "mailbox_owner", "product_data.target", and "user_uid target.user.email_addresses 從變更記錄對應
__event_timestamp metadata.event_timestamp 從變更記錄對應
_elastic_timestamp", "created_timestamp", "inserted_timestamp", "updated_timestamp", "responsible_logs" and "sub_feature additional.fields 從變更記錄對應
threat_score", "locations", "transaction_id", "content_checks.dlp.raw_response.requestid", "content_checks.dlp.raw_response.responseaction", "org_unit", "policy_type", "content_checks.vk_pci", "content_checks.vk_vba_macros", "content_checks.vk_glba", "content_checks.vk_source_code", "content_checks.vk_pii", "content_checks.vk_virus", "content_checks.vk_hipaa", "content_checks.violations", "object_name", "multi_user", "risks", "name", "_latency", "content_checks.dlp.raw_response.warning", "content_checks.dlp.raw_response.violation", "content_checks.dlp.raw_response.contentdetails", "content_checks.vk_dlp_policy_violations", "content_checks.risktype_list", "content_checks.vk_content_iq_violations", "actions_taken", "__detect_source", "multi_facility", "content_checks.vba_macros.expressions" and "policy_violated security_result.detection_fields 從變更記錄對應
resource_id target.resource.id 從變更記錄對應

變更記錄

查看這個剖析器的變更記錄

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