google-cloud-scc-query
它能做什么
这个技能从 Google Cloud Security Command Center 获取安全发现项。它适用于希望查看当前风险、又不想更改任何内容的安全团队。
适用场景
- ✓当你想按名称查找某个 Security Command Center 发现项的时候。
- ✓当你需要列出漏洞、威胁或外部暴露等类型的发现项的时候。
- ✓当你想查看有毒组合或敏感数据风险的详细信息的时候。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-scc-query/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出我组织的 Security Command Center 中未解决的漏洞发现项,并告诉我最严重的几项。”
每周 5 个新技能,1 分钟读完。
工作原理
它会针对父级范围(例如组织、文件夹或项目)运行只读的 gcloud 命令。由于没有 describe 命令,它会使用带过滤器的 list 命令来获取发现项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Security Command Center Query Skill on Google Cloud
Provides guidelines and read-only gcloud CLI command patterns for querying and
retrieving security findings, external exposures, toxic combinations,
vulnerabilities, threats, and sensitive data risks from Security Command Center
on Google Cloud.
[!IMPORTANT] There is NO
gcloud scc findings describecommand (Invalid choice: 'describe'). To retrieve details for a specific finding by its name, always usegcloud scc findings listwith a filter onname.
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Core Execution Rules
- Read-Only & Zero-Speculation (Parent Scope Required): Keep all
executions strictly read-only. Every
gcloud scc findings listorgroupcommand strictly requires an explicit{parent}scope (organizations/{id},projects/{id}, orfolders/{id}). If the parent scope is missing from the prompt and cannot be inferred from a full finding name, DO NOT run anygcloudcommands (do not execute queries without parent, and never inspectgcloud config). Halt immediately before executing commands and ask the user for the parent resource scope. - Bounded Execution & No Runaway Loops:
- Limit tool calls to what is strictly necessary to complete the query (typically 1 call for direct queries, or 2 calls for List → Deep Dive workflows).
- If a command fails due to permission/auth errors, or if a specific
finding query returns
[], halt immediately. Do not attempt blind brute-force retries with different flags, and never search the local workspace for credentials.
- Immediate Halt on Errors: If any command fails with
PERMISSION_DENIED,IAM_PERMISSION_DENIED, credential expiration, or network timeouts, halt immediately and report the verbatim error message. Do not search the workspace for credentials or run diagnostic loops. - Ambiguous or Multiple Findings: If multiple finding names are provided when a single finding report is requested, or if listing returns multiple findings, do not investigate all of them or unilaterally pick one. Halt immediately without running queries and ask the user to clarify which specific finding name they want details for. If zero findings are returned from a query, report that no active findings exist and halt immediately.
- Do Not Query Attack Path Resources: Analyze only the data present in the Security Command Center finding JSON payload. Do not run commands to describe, verify, or query underlying Google Cloud resources (such as VMs, Cloud Storage buckets, service accounts, or IAM policies).
- Parent Scope Resolution:
- For listing and grouping, format the parent resource path as
organizations/{org_id},projects/{project_id}, orfolders/{folder_id}. - For deep dive queries on a specific finding name, extract the
{parent}resource prefix before/sources/...:organizations/{org_id}/sources/...→{parent}isorganizations/{org_id}folders/{folder_id}/sources/...→{parent}isfolders/{folder_id}projects/{project_id}/sources/...→{parent}isprojects/{project_id}Extract the parent prefix regardless of whether the finding resource name is global (4-segment) or location-qualified (5-segment with/locations/{location}/). Execute the deep dive query using the extracted{parent}. Do not reject or halt on project- or folder-level findings.
- For listing and grouping, format the parent resource path as
Data Residency & Regional Endpoints
When Data Residency (DRZ) is enabled, findings are stored and accessible only
within their designated regional location (us, eu, or me-central2).
Queries across different locations do not return findings from other regions.
1. Location Parameterization
All gcloud scc findings commands require specifying the target location via
--location={location}:
- Default:
global(used when data residency is not enabled or for global findings). - **Supported Regiona
常见问题
它会更改任何发现项吗?
不会。它运行的每条命令都是只读的。
它可以不指定范围运行吗?
不可以。它需要组织、文件夹或项目等父级范围,如果缺少,它会询问。
如何查看某一个发现项的详细信息?
它使用 gcloud scc findings list 并按发现项的名称过滤,因为没有 describe 命令。
详情
作者的原始描述
Queries and retrieves active security findings, external exposures, toxic combinations, vulnerabilities, threats, and sensitive data risks from Security Command Center on Google Cloud. Use when retrieving details for a security finding by its name, validating finding scope (e.g., verifying findingClass is TOXIC_COMBINATION, VULNERABILITY, EXTERNAL_EXPOSURE, or THREAT), or fetching finding details for triage. Don't use to draft remediations, apply patches, or execute configurations.
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10314
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。