AI Protection 可監控模型、資料和 AI 相關基礎架構,協助您保護 AI 資產和工作流程。如要開始偵測支援資源中的威脅和安全漏洞,請設定 AI Protection 所需的偵測服務和存取角色。
偵測服務
AI Protection 採用下列服務和功能。AI Protection 會自動啟用部分服務和功能,但其他服務和功能必須手動設定。
- AI Discovery 服務
- 風險引擎建立的攻擊路徑模擬 (Premium 和 Enterprise (已淘汰) 服務級別)
- Cloud 稽核記錄
- Cloud Monitoring
- Compliance Manager
- Event Threat Detection (Premium 和 Enterprise (已淘汰) 服務級別)
- Agent Platform Threat Detection (Premium 和 Enterprise (已淘汰) 服務級別)
- Model Armor
- Notebook Security Scanner (預先發布版):在 Enterprise (已淘汰) 服務級別中自動啟用。
- Sensitive Data Protection (Premium 和 Enterprise (已淘汰) 服務級別)
- Agent Platform Vulnerability Assessment:新啟用 AI Protection (Premium 和 Enterprise (已淘汰) 服務級別) 時,會自動啟用這項功能。
您必須為 AI Protection 設定下列必要服務:
- AI Protection 的法規遵循管理工具架構
- Model Armor
- App Hub (Model Context Protocol (MCP) 伺服器庫存的必要項目)
如要進一步瞭解各項服務和功能,請參閱「AI Protection 的偵測服務」。
事前準備
- 取得組織或專案 ID。
- 如要建立及授予角色,請確認您具備必要權限,例如 Identity and Access Management (IAM) 角色管理員 (
roles/iam.roleAdmin) 和組織管理員 (roles/resourcemanager.organizationAdmin) 或專案 IAM 管理員 (roles/resourcemanager.projectIamAdmin) 角色。詳情請參閱「IAM 角色和權限索引」。
必要的角色
完成「事前準備」中的步驟後,請按照下列任一節的步驟,設定 AI Protection 存取權所需的角色:
預先定義的角色
如要取得設定 AI 防護及查看 AI 安全性資訊主頁資料所需的權限,請要求管理員授予您組織或專案的下列 IAM 角色:
-
設定 AI 防護功能及查看資訊主頁資料:安全中心管理員 (
roles/securitycenter.admin) -
僅查看 AI 安全性資訊主頁資料:安全中心管理員檢視者 (
roles/securitycenter.adminViewer)
如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
您可以使用下列 Google Cloud CLI 指令,將上述角色指派給使用者:
使用 gcloud CLI 指派角色
如要將 Security Center 管理員角色授予使用者,請執行下列指令:
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \ --member=user:USER_EMAIL_ID \ --role=roles/securitycenter.admin如要將 Security Center 管理員檢視者角色授予使用者,請執行下列指令:
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \ --member=user:USER_EMAIL_ID \ --role=roles/securitycenter.adminViewer更改下列內容:
- RESOURCE_TYPE:
organizations或projects - RESOURCE_ID:組織或專案 ID
- USER_EMAIL_ID:需要存取權的使用者電子郵件地址
- RESOURCE_TYPE:
自訂角色
為遵循最小權限原則,您可以建立自訂 IAM 角色,只授予檢視者或管理員存取權所需的權限。
本文說明如何建立及授予 AI Protection 的自訂角色。
設定檢視權限
具備檢視權限的使用者可以查看 AI Protection 資訊主頁和資料。如要設定檢視權限,請建立自訂 AIP Viewer 角色,然後將該角色授予使用者。
建立 AIP 檢視者自訂角色
建立自訂角色,並加入唯讀存取 AI Protection 所需的所有權限。
控制台
- 前往 Google Cloud 控制台的「Roles」(角色) 頁面。
- 按一下「建立角色」。
- 在「Title」(名稱)欄位中,輸入
AIP Viewer。 - 系統會自動填入「ID」欄位。您可以視需要將其變更為
aip.viewer。 - 在「Description」(說明) 欄位輸入
Grants permissions required to view the AI Security dashboard and data。 - 將「Role launch stage」(角色推出階段) 設為「General Availability」(正式發布)。
- 按一下「Add permissions」。
篩選並選取下列各項權限:
- 資產探索和雲端連線 (
cloudasset.*):cloudasset.assets.exportResourcecloudasset.assets.searchAllIamPoliciescloudasset.assets.searchAllResourcescloudasset.assets.searchEnrichmentResourceOwnerscloudasset.othercloudconnections.getcloudasset.othercloudconnections.list
- 法規遵循摘要 (
cloudsecuritycompliance.*):cloudsecuritycompliance.controlComplianceSummaries.listcloudsecuritycompliance.frameworkComplianceReports.get
- 監控 (
monitoring.*):monitoring.timeSeries.list
- 資源管理 (
resourcemanager.*):resourcemanager.organizations.getresourcemanager.projects.get
- Security Command Center 管理 (
securitycentermanagement.*):securitycentermanagement.securityCommandCenter.get
- Security Command Center 檢視者 (
securitycenter.*):securitycenter.assets.groupsecuritycenter.assets.listsecuritycenter.attackpaths.listsecuritycenter.complianceReports.aggregatesecuritycenter.findings.groupsecuritycenter.findings.listsecuritycenter.issues.getsecuritycenter.issues.groupsecuritycenter.issues.listsecuritycenter.issues.listFilterValuessecuritycenter.simulations.getsecuritycenter.sources.getsecuritycenter.sources.listsecuritycenter.userinterfacemetadata.getsecuritycenter.valuedresources.list
- 資產探索和雲端連線 (
按一下「新增」。
點選「建立」。
gcloud
- 在終端機執行下列
gcloud指令,建立角色:
gcloud iam roles create aip.viewer \
--RESOURCE_TYPE=RESOURCE_ID \
--title="AIP Viewer" \
--description="Grants permissions required to view AIP dashboard and data." \
--permissions="cloudasset.assets.exportResource,cloudasset.assets.searchAllIamPolicies,cloudasset.assets.searchAllResources,cloudasset.assets.searchEnrichmentResourceOwners,cloudasset.othercloudconnections.get,cloudasset.othercloudconnections.list,cloudsecuritycompliance.controlComplianceSummaries.list,cloudsecuritycompliance.frameworkComplianceReports.get,monitoring.timeSeries.list,resourcemanager.organizations.get,resourcemanager.projects.get,securitycentermanagement.securityCommandCenter.get,securitycenter.assets.group,securitycenter.assets.list,securitycenter.attackpaths.list,securitycenter.complianceReports.aggregate,securitycenter.findings.group,securitycenter.findings.list,securitycenter.issues.get,securitycenter.issues.group,securitycenter.issues.list,securitycenter.issues.listFilterValues,securitycenter.simulations.get,securitycenter.sources.get,securitycenter.sources.list,securitycenter.userinterfacemetadata.get,securitycenter.valuedresources.list" \
更改下列內容:
RESOURCE_TYPE:organization或project。RESOURCE_ID:組織 ID 或專案 ID。#### 將檢視權限授予使用者
建立 AIP Viewer 自訂角色後,請將該角色授予需要檢視者權限的使用者。
控制台
- 前往 Google Cloud 控制台的「IAM」(身分與存取權管理) 頁面。
- 點選「授予存取權」。
- 在「新增主體」欄位中,輸入使用者的電子郵件地址。
- 在「Select a role」(請選取角色) 下拉式選單中,搜尋並選取「AIP Viewer」自訂角色。
- 按一下「儲存」。
gcloud
- 在終端機執行下列
gcloud指令:
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="RESOURCE_TYPE/RESOURCE_ID/roles/aip.viewer"
更改下列內容:
RESOURCE_TYPE:organizations或projects。RESOURCE_ID:組織或專案 ID。USER_EMAIL:使用者的電子郵件地址。
設定管理員存取權
管理員存取權可讓使用者管理 AI 防護功能。
如要設定管理員存取權,請先建立 AIP Essentials 自訂角色。接著,您會將該角色和必要的預先定義角色授予使用者。
建立 AIP Essentials 自訂角色
建立自訂角色,並加入 AI Protection 所需的基本支援權限。
控制台
- 前往 Google Cloud 控制台的「Roles」(角色) 頁面。
- 按一下「建立角色」。
- 在「Title」(名稱)欄位中,輸入
AIP Essentials。 - 系統會自動填入「ID」欄位。您可以視需要將其變更為
aip.essentials。 - 在「Description」(說明) 欄位輸入
Grants supporting permissions required to view AIP dashboard and data。 - 將「Role launch stage」(角色推出階段) 設為「General Availability」(正式發布)。
- 按一下「Add permissions」。
篩選並選取下列各項權限:
- 資產探索和雲端連線 (
cloudasset.*):cloudasset.assets.searchEnrichmentResourceOwnerscloudasset.othercloudconnections.getcloudasset.othercloudconnections.list
- 資源管理 (
resourcemanager.*):resourcemanager.organizations.getresourcemanager.projects.get
- Security Command Center 管理 (
securitycentermanagement.*):securitycentermanagement.securityCommandCenter.get
- Security Command Center 檢視者 (
securitycenter.*):securitycenter.assets.groupsecuritycenter.assets.listsecuritycenter.attackpaths.listsecuritycenter.complianceReports.aggregatesecuritycenter.findings.groupsecuritycenter.findings.listsecuritycenter.simulations.getsecuritycenter.userinterfacemetadata.getsecuritycenter.valuedresources.list
- 資產探索和雲端連線 (
按一下「新增」。
點選「建立」。
gcloud
- 在終端機執行下列
gcloud指令,建立角色:
gcloud iam roles create aip.essentials \
--RESOURCE_TYPE=RESOURCE_ID \
--title="AIP Essentials" \
--description="Grants supporting permissions required to view AIP dashboard and data." \
--permissions="cloudasset.assets.searchEnrichmentResourceOwners,cloudasset.othercloudconnections.get,cloudasset.othercloudconnections.list,resourcemanager.organizations.get,resourcemanager.projects.get,securitycentermanagement.securityCommandCenter.get,securitycenter.assets.group,securitycenter.assets.list,securitycenter.attackpaths.list,securitycenter.complianceReports.aggregate,securitycenter.findings.group,securitycenter.findings.list,securitycenter.simulations.get,securitycenter.userinterfacemetadata.get,securitycenter.valuedresources.list" \
更改下列內容:
RESOURCE_TYPE:organization或project。RESOURCE_ID:組織或專案 ID。
將管理員存取權授予使用者
建立 AIP Essentials 自訂角色後,請將該角色和必要的預先定義的角色,一併授予需要管理員存取權的使用者。
控制台
- 前往 Google Cloud 控制台的「IAM」(身分與存取權管理) 頁面。
- 點選「授予存取權」。
- 在「新增主體」欄位中,輸入使用者的電子郵件地址。
- 在「Select a role」(選取角色) 下拉式選單中,搜尋並新增下列各個角色:
Model Armor Admin(roles/modelarmor.admin)Model Armor Floor Settings Admin(roles/modelarmor.floorSettingsAdmin)Cloud Security Compliance Admin(roles/cloudsecuritycompliance.admin)Security Center Findings Viewer(roles/securityCenter.findingsViewer)Monitoring Viewer(roles/monitoring.viewer)Cloud Asset Viewer(roles/cloudasset.viewer)- 您建立的自訂 AIP Essentials 角色。
- 按一下「儲存」。
gcloud
- 在終端機中執行下列指令,每個角色各執行一次:
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="roles/modelarmor.admin"
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="roles/modelarmor.floorSettingsAdmin"
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="roles/cloudsecuritycompliance.admin"
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="roles/securityCenter.findingsViewer"
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="roles/monitoring.viewer"
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="roles/cloudasset.viewer"
gcloud RESOURCE_TYPE add-iam-policy-binding RESOURCE_ID \
--member="user:USER_EMAIL" \
--role="RESOURCE_TYPE/RESOURCE_ID/roles/aip.essentials"
更改下列內容:
RESOURCE_TYPE:organizations或projects。RESOURCE_ID:組織或專案 ID。USER_EMAIL:使用者的電子郵件地址。
支援的地區
如要查看支援 AI Protection 的區域清單,請參閱「區域端點」。
服務帳戶的存取權
請確認組織政策未封鎖下列各節提及的任何服務帳戶。
設定 AI Protection
新啟用 Security Command Center 時,系統預設會啟用 AI Protection。不過,如果您在 AI Protection 推出前就啟用了任何 Security Command Center 級別,則必須手動啟用這項功能。
如要在組織或專案層級啟用 AI Protection,請完成下列步驟:
標準
- 如果貴組織或專案未啟用 Security Command Center,請啟用 Security Command Center Standard。
- 如要查看 AI 安全性資訊主頁,請依序前往「風險總覽」>「AI 安全性」。
Premium
- 如果尚未在組織或專案中啟用 Security Command Center,請參閱啟用 Security Command Center Premium 的操作說明。
- 如果先前已啟用 Premium,請前往「AI Protection」資訊卡,依序點選「設定」>「管理設定」,啟用 AI Protection。
- 如要探索想保護的 AI 資源,請啟用機密資料探索功能。
- 如要查看 AI 安全性資訊主頁,請依序前往「Risk Overview」(風險總覽) >「AI Security」(AI 安全性)。
完成新手上路流程後,如果重要服務遭到停用,資訊主頁會提供特定服務的操作說明,以及設定位置。詳情請參閱「設定 AI Protection 的 Google Cloud 服務」。
設定完所有必要服務後,AI 安全性資訊主頁可能需要一段時間,才會顯示 AI 資產的資料。
企業版
- 如果尚未在組織中啟用 Security Command Center,請按照操作說明啟用 Security Command Center Enterprise。
- 請按照 SCC 設定指南中的指引,設定 AI Protection 並驗證依附服務。
- 展開「Review security capabilities」(查看安全功能) 摘要面板。
- 在「AI 防護」面板中,按一下「設定」。
- 請按照指示,檢查 AI Protection 的必要和依附服務是否已啟用並正確設定。詳情請參閱「設定 AI Protection 的Google Cloud 服務」。
如要探索想保護的 AI 資源,請啟用探索功能:
如果已開啟設定指南:
- 展開「資料安全性」面板。
- 在「機密資料探索」資訊卡上,按一下「設定」,然後按照指示操作。
如果尚未開啟設定指南:
- 前往控制台的「Enable discovery」(啟用探索功能) 頁面:
- 按照操作說明在機構中啟用預設探索設定。
啟用並設定所有必要服務後,AI Security 資訊主頁可能需要一段時間,才會顯示 AI 資產的資料。
手動設定服務
啟用 AI Protection 後,請完成下列各節,手動設定功能。
設定 AI Discovery 服務
Security Command Center 會在 Security Command Center Enterprise 新進人員訓練期間,自動啟用 AI Discovery 服務。確認 Security Command Center Enterprise 組織或專案服務帳戶具備 Monitoring 檢視者 (roles/monitoring.viewer) IAM 角色。
前往 Google Cloud 控制台的「IAM」(身分與存取權管理) 頁面。
點選「授予存取權」。
在「New principals」(新增主體) 欄位中,輸入 Security Command Center Enterprise 組織或專案服務帳戶。服務帳戶的格式為
service-org-ORG_ID@security-center-api.gserviceaccount.com或service-project-PROJECT_NUMBER@security-center-api.gserviceaccount.com。將 ORG_ID 替換為組織 ID,或將 PROJECT_NUMBER 替換為專案編號。在「Select a role」(請選擇角色) 欄位中,選取「Monitoring Viewer」(Monitoring 檢視者)。
按一下「儲存」。
設定 Model Armor
- 為每個使用生成式 AI 活動的專案啟用
modelarmor.googleapis.com服務。詳情請參閱「開始使用 Model Armor」。 - 調整下列設定,定義大型語言模型 (LLM) 提示和回覆的安全設定:
- Model Armor 範本:建立 Model Armor 範本。這些範本會定義要偵測的風險類型,例如敏感資料、提示詞注入和越獄偵測。並定義這些篩選器的最低門檻。
- 篩選器:Model Armor 使用各種篩選器來識別風險,包括惡意網址偵測、提示詞注入和越獄偵測,以及 Sensitive Data Protection。
- 底限設定:調整專案層級底限設定,為所有 Gemini 模型建立預設防護機制。
設定 Notebook Security Scanner
- 進階服務級別:為組織或專案啟用 Notebook Security Scanner 服務。詳情請參閱「啟用 Notebook Security Scanner」。
- 在所有包含 Notebook 的專案中,將 Dataform 檢視者角色 (
roles/dataform.viewer) 授予notebook-security-scanner-prod@system.gserviceaccount.com。
設定 Sensitive Data Protection
為專案啟用 dlp.googleapis.com API,並設定 Sensitive Data Protection 掃描機密資料。
-
啟用 Data Loss Prevention API (如果尚未啟用)。
啟用 API 所需的角色
您必須具備
serviceusage.services.enable權限,才能啟用 API。如果您建立了專案,可能已透過擁有者角色 (roles/owner) 取得這項權限。否則,您可以透過 Service Usage 管理員角色 (roles/serviceusage.serviceUsageAdmin) 取得這項權限。瞭解如何授予角色。 將
DLP Reader和DLP Data Profiles Admin角色授予 AI Protection 使用者。設定 Sensitive Data Protection,掃描機密資料。
設定 Agent Platform 安全漏洞評估
Agent Platform Vulnerability Assessment 可找出透過 Gemini Enterprise Agent Platform 部署的代理工作負載中,有哪些軟體安全漏洞 (CVE)。新啟用 AI Protection 時,系統會預設啟用 Agent Platform 安全漏洞評估。
現有客戶可以在「AI Protection settings」(AI 防護設定) 頁面啟用掃描器,該頁面僅在組織或專案檢視畫面中提供。
在 Google Cloud 控制台,依序前往「設定」>「管理設定」,位於「AI 防護」資訊卡。
在「Vulnerability Assessment for Agent Platform」(代理程式平台安全漏洞評估) 部分,按一下「Manage settings」(管理設定)。
為組織或專案啟用服務。
設定 App Hub 的 MCP 伺服器庫存
如要在 AI 安全性資訊主頁查看 Model Context Protocol (MCP) 伺服器,您必須在託管 MCP 伺服器的各項專案中啟用 App Hub API (apphub.googleapis.com)。
詳情請參閱「設定 App Hub」。
選用:設定其他高價值資源
如要建立資源值設定,請按照「建立資源值設定」中的步驟操作。
定義代理資源範圍
如要將資源價值設定範圍限定為代理資源,例如代理或 Model Context Protocol (MCP) 伺服器,請從「Select resource type」(選取資源類型) 選單中選取代理資源類型 (例如 aiplatform.googleapis.com/ReasoningEngine),或指定標籤或標記,用於識別組織或專案中的代理資源。
下次執行攻擊路徑模擬時,系統會涵蓋高價值資源集,並產生攻擊路徑。
後續步驟
- 進一步瞭解 AI Protection
- 查看 AI 安全性
- 使用資訊主頁資料評估風險
- 瞭解資料落地設定的影響
- 設定 Model Armor
- 瞭解 Agent Platform Threat Detection