Aller au contenu
Skillpedia
Sécurité22k · #10314

google-cloud-scc-query

Ce qu’il fait

Cette skill récupère les constats de sécurité de Security Command Center de Google Cloud. Elle s'adresse aux équipes sécurité qui veulent voir les risques actuels sans rien modifier.

Quand l’utiliser

  • ✓Quand vous voulez consulter un constat de Security Command Center par son nom.
  • ✓Quand vous devez lister les constats d'un type, comme les vulnérabilités, les menaces ou les expositions externes.
  • ✓Quand vous voulez vérifier les détails des combinaisons toxiques ou des risques liés aux données sensibles.

Lien du skill

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-scc-query/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/google/skills/blob/main/skills/cloud/google-cloud-scc-query/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Liste les constats de vulnérabilité ouverts dans Security Command Center de mon organisation et dis-moi les plus graves.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Elle lance des commandes gcloud en lecture seule sur un périmètre parent, comme une organisation, un dossier ou un projet. Elle utilise des commandes de liste avec filtres pour obtenir les constats, car il n'existe pas de commande describe.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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 describe command (Invalid choice: 'describe'). To retrieve details for a specific finding by its name, always use gcloud scc findings list with a filter on name.

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

  1. Read-Only & Zero-Speculation (Parent Scope Required): Keep all executions strictly read-only. Every gcloud scc findings list or group command strictly requires an explicit {parent} scope (organizations/{id}, projects/{id}, or folders/{id}). If the parent scope is missing from the prompt and cannot be inferred from a full finding name, DO NOT run any gcloud commands (do not execute queries without parent, and never inspect gcloud config). Halt immediately before executing commands and ask the user for the parent resource scope.
  2. 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.
  3. 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.
  4. 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.
  5. 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).
  6. Parent Scope Resolution:
    • For listing and grouping, format the parent resource path as organizations/{org_id}, projects/{project_id}, or folders/{folder_id}.
    • For deep dive queries on a specific finding name, extract the {parent} resource prefix before /sources/...:
      • organizations/{org_id}/sources/... → {parent} is organizations/{org_id}
      • folders/{folder_id}/sources/... → {parent} is folders/{folder_id}
      • projects/{project_id}/sources/... → {parent} is projects/{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.

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
Questions fréquentes

Modifie-t-elle des constats ?

Non. Toutes les commandes qu'elle exécute sont en lecture seule.

Peut-elle fonctionner sans périmètre ?

Non. Elle a besoin d'un périmètre parent, comme une organisation, un dossier ou un projet, et en demande un s'il manque.

Comment obtenir le détail d'un constat ?

Elle utilise gcloud scc findings list avec un filtre sur le nom du constat, car il n'existe pas de commande describe.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
22k
Position au classement
#10314
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires