收集 Symantec CloudSOC CASB 記錄
本文說明如何使用 Bindplane 代理程式,將 Symantec CloudSOC CASB 記錄檔擷取至 Google Security Operations。
Symantec CloudSOC 是雲端存取安全性代理程式 (CASB),可針對雲端應用程式活動、違反資料遺失防護政策、威脅偵測、內容檢查結果和使用者存取事件,產生系統記錄訊息。剖析器會從 JSON 和 syslog 格式的記錄中擷取欄位,並對應至統合式資料模型 (UDM)。
事前準備
請確認您符合下列必要條件:
- Google SecOps 執行個體
- Windows Server 2016 以上版本,或搭載
systemd的 Linux 主機 - Bindplane 代理程式與 Symantec CloudSOC 主機之間的網路連線
- 如果是在 Proxy 後方執行,請確認防火牆通訊埠已按照 Bindplane 代理程式規定開啟
- Symantec CloudSOC 主機的管理員權限
取得 Bindplane 代理程式的 Google SecOps 憑證
如要向 Google SecOps 驗證 Bindplane 代理程式,請選擇下列其中一種方法:
- 新部署作業:使用 Chronicle API (選項 1)。
- 舊版部署作業:在 2027 年 7 月 20 日停用 Ingestion API 前,請繼續使用擷取驗證檔案 (選項 2)。
方法 1:為 Chronicle API 建立服務帳戶 (建議)
- 登入 Google Cloud 控制台,選取連結至 Google SecOps 執行個體的 Google Cloud 專案。
- 依序前往 「IAM & Admin」(IAM 與管理) >「Service Accounts」(服務帳戶)。
- 按一下「建立服務帳戶」。
- 提供下列設定詳細資料:
- 「Service account name」(服務帳戶名稱):輸入帳戶名稱 (例如
bindplane-ingest)。 - 「服務帳戶說明」:輸入說明 (例如
Bindplane agent log ingestion)。
- 「Service account name」(服務帳戶名稱):輸入帳戶名稱 (例如
- 點按「Create and continue」(建立並繼續)。
- 在「將專案存取權授予這個服務帳戶」部分,按一下「選取角色」,然後選取「Chronicle 編輯者」。
- 依序點選「繼續」和「完成」。
- 按一下您建立的服務帳戶,然後前往「金鑰」分頁。
- 依序點選「新增金鑰」>「建立新的金鑰」。
- 選取「JSON」,然後按一下「建立」。金鑰檔案會下載到電腦。
- 將金鑰檔案儲存為 Bindplane 收集器目錄中的
ingestion-auth.json(Linux 上的/opt/observiq-otel-collector/ingestion-auth.json或 Windows 上的C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json),或更新config.yaml中的creds_file_path,使其與儲存路徑相符。 - 依序前往「IAM & Admin」(IAM 與管理) >「Settings」(設定),然後複製「Project number」(專案編號)。匯出工具設定時會用到。
方法 2:下載擷取驗證檔案 (舊版)
- 登入 Google SecOps 控制台。
- 依序前往「SIEM Settings」 > 「Collection Agents」。
- 下載擷取驗證檔案。
- 將檔案安全地儲存在要安裝 Bindplane 代理程式的系統上。
取得 Google SecOps 客戶 ID
- 登入 Google SecOps 控制台。
- 依序前往「SIEM 設定」 > 「設定檔」。
複製並儲存「機構詳細資料」部分的客戶 ID。
安裝 Bindplane 代理程式
請按照下列操作說明,在 Windows 或 Linux 作業系統上安裝 Bindplane 代理程式。
Windows 安裝
- 以管理員身分開啟「命令提示字元」或「PowerShell」。
執行下列指令:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet等待安裝完成。
執行下列指令,確認安裝成功:
sc query observiq-otel-collector服務應顯示為「RUNNING」。
Linux 安裝
- 開啟具有 root 或 sudo 權限的終端機。
執行下列指令:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh等待安裝完成。
執行下列指令,確認安裝成功:
sudo systemctl status observiq-otel-collector服務應顯示為「active (running)」。
其他安裝資源
如需其他安裝選項和疑難排解資訊,請參閱 Bindplane 代理程式安裝指南。
設定 Bindplane 代理,擷取系統記錄檔並傳送至 Google SecOps
找出設定檔
Linux:
sudo nano /opt/observiq-otel-collector/config.yamlWindows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
編輯設定檔
將
config.yaml的全部內容替換為下列設定:receivers: udplog: listen_address: "0.0.0.0:514" exporters: chronicle/symantec_casb: protocol: https # Region of your instance, for example us, europe, asia-southeast1 location: <LOCATION> # Project number of the Google Cloud project linked to the instance project: '<PROJECT_NUMBER>' compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: '<customer_id>' endpoint: chronicle.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是標準 syslog 通訊埠 (在 Linux 上需要根目錄;非根目錄請使用1514)
匯出工具設定:
creds_file_path:服務帳戶 JSON 金鑰檔案的完整路徑 (選項 1):- Linux:
/opt/observiq-otel-collector/ingestion-auth.json - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Linux:
customer_id:從 Google SecOps 控制台複製的客戶 IDlocation:將<LOCATION>替換為 Google SecOps 執行個體的區域 (例如us、europe或asia-southeast1)。匯出工具會在這個值前面加上chronicle.googleapis.com。如需完整清單,請參閱「區域性端點」。project:依序前往「IAM 與管理」>「設定」,然後將<PROJECT_NUMBER>替換為專案編號。endpoint:維持設為chronicle.googleapis.com。
舊版 Ingestion API 匯出工具
如果您使用方式 2 的擷取驗證檔案,請將
exporters區塊替換成下列內容。將creds_file_path設為擷取驗證檔案的路徑。如果執行個體位於美國境外,請將malachiteingestion-pa.googleapis.com替換為區域端點 (例如europe-malachiteingestion-pa.googleapis.com)。exporters: chronicle/symantec_casb: compression: gzip creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: SYMANTEC_CASB raw_log_field: body
儲存設定檔
- 編輯完畢後,請儲存檔案:
- Linux:依序按下
Ctrl+O、Enter和Ctrl+X - Windows:依序點選「檔案」 > 「儲存」
- Linux:依序按下
重新啟動 Bindplane 代理程式,套用變更
如要在 Linux 重新啟動 Bindplane 代理程式,請執行下列指令:
sudo systemctl restart observiq-otel-collector確認服務正在執行:
sudo systemctl status observiq-otel-collector查看記錄檔是否有錯誤:
sudo journalctl -u observiq-otel-collector -f
如要在 Windows 中重新啟動 Bindplane 代理程式,請選擇下列任一選項:
以管理員身分開啟命令提示字元或 PowerShell:
net stop observiq-otel-collector && net start observiq-otel-collector服務控制台:
- 按下
Win+R,輸入services.msc,然後按下 Enter 鍵。 - 找出「observIQ OpenTelemetry Collector」。
- 按一下滑鼠右鍵,然後選取「重新啟動」。
確認服務是否正在執行:
sc query observiq-otel-collector檢查記錄是否有錯誤:
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
- 按下
在 Symantec CloudSOC CASB 中設定系統記錄
- 登入 Symantec CloudSOC 主機。
執行下列指令,找出系統使用的記錄器:
ls -d /etc/*syslog*根據回覆前往對應部分:
- syslog.conf:舊版 Syslog。
- syslog-ng.conf:Syslog-ng。
舊版 syslog 設定
開啟
syslogd檔案,通常位於/etc/default目錄:vi /etc/default/syslogd確認
SYSLOGD值包含-r旗標:SYSLOGD="-r"儲存檔案並結束編輯器。
開啟
services檔案,通常位於/etc目錄中:vi /etc/services編輯系統記錄服務的通訊埠值:
syslog 514/udp儲存檔案並結束編輯器。
開啟
syslog.conf檔案,通常位於/etc目錄中:vi /etc/syslog.conf更新設定,將所有記錄轉送至 Bindplane 代理程式:
*.* @<BINDPLANE_IP>- 將
<BINDPLANE_IP>替換為 Bindplane 代理程式 IP 位址。
- 將
開啟
hosts檔案,通常位於/etc目錄中:vi /etc/hosts為 Bindplane 代理建立本機 DNS 項目:
<BINDPLANE_IP> bindplane_agent_host儲存檔案並結束編輯器。
重新啟動 syslog daemon 服務。
Syslog-ng 設定
開啟
syslog-ng.conf檔案,通常位於/etc目錄:vi /etc/syslog-ng.conf在檔案結尾新增下列程式碼:
destination d_bindplane { udp("<BINDPLANE_IP>" port(514)); }; log { source(s_src); destination(d_bindplane); };- 將
<BINDPLANE_IP>替換為 Bindplane 代理程式 IP 位址。
- 將
開啟
hosts檔案,通常位於/etc目錄中:vi /etc/hosts為 Bindplane 代理建立本機 DNS 項目:
<BINDPLANE_IP> bindplane_agent_host儲存檔案並結束編輯器。
重新啟動 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_size 的值,如果前者為空白,則為 product_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 欄位的值,或 message 欄位的值 (如果沒有 msg)。 |
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 error 為 BlockedByConditionalAccess,請設為 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_timestamp 的值,如果前者為空白,則為 content_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.userid或target.user.userid |
user_uid 欄位的值。如果 product_data.activity_type 不是 InvalidLogin 或 Login,則對應至 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 專家尋求解答。