Loading...
Loading...
Queries and retrieves active security findings, external exposures, toxic combinations, vulnerabilities, threats, and sensitive data risks from Google Cloud Security Command Center. 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.
npx skill4agent add google/skills google-cloud-scc-querygcloud[!IMPORTANT] There is NOcommand (gcloud scc findings describe). To retrieve details for a specific finding by its name, always useInvalid choice: 'describe'with a filter ongcloud scc findings list.name
gcloud scc findings listgroup{parent}organizations/{id}projects/{id}folders/{id}gcloudgcloud config[]PERMISSION_DENIEDIAM_PERMISSION_DENIEDorganizations/{org_id}projects/{project_id}folders/{folder_id}{parent}/sources/...organizations/{org_id}/sources/...{parent}organizations/{org_id}folders/{folder_id}/sources/...{parent}folders/{folder_id}projects/{project_id}/sources/...{parent}projects/{project_id}/locations/{location}/{parent}useume-central2gcloud scc findings--location={location}globaluseume-central2useume-central2gcloud config set api_endpoint_overrides/securitycenter https://securitycenter.{LOCATION}.rep.googleapis.com/eugcloud config set api_endpoint_overrides/securitycenter https://securitycenter.eu.rep.googleapis.com/gcloud config unset api_endpoint_overrides/securitycenter/locations/{location}/organizations/{org_id}/sources/{source_id}/locations/{location}/findings/{finding_id}folders/{folder_id}/sources/{source_id}/locations/{location}/findings/{finding_id}projects/{project_id}/sources/{source_id}/locations/{location}/findings/{finding_id}{parent}/sources/...organizations/{org_id}{location}/locations/{location}/euusme-central2global--location={location}--filter="name=\"{finding_name}\""gcloud scc findings listname--field-mask--location={location}globalgcloud scc findings list {parent} \
--location={location} \
--filter="name=\"{finding_name}\"" \
--format="json" --limit=1--field-mask--location={location}globalgcloud scc findings list {parent} \
--location={location} \
--filter="{filter_expression}" \
--field-mask="finding.name,finding.parentDisplayName,finding.findingClass,finding.category,finding.state,finding.eventTime,finding.severity,finding.resourceName" \
--format="json" --order-by="severity,event_time desc" --limit=100| Intent / Target Finding Class | |
|---|---|
| All Active Findings | |
| Vulnerabilities | `state="ACTIVE" AND |
| : : findingClass="VULNERABILITY"` : | |
| Misconfigurations | `state="ACTIVE" AND |
| : : findingClass="MISCONFIGURATION"` : | |
| Toxic Combinations | `state="ACTIVE" AND |
| : : findingClass="TOXIC_COMBINATION"` : | |
| External Exposures | `state="ACTIVE" AND |
| : : findingClass="EXTERNAL_EXPOSURE"` : | |
| Threats | |
| Observations | `state="ACTIVE" AND |
| : : findingClass="OBSERVATION"` : | |
| Sensitive Data Risks | `state="ACTIVE" AND |
| : : findingClass="SENSITIVE_DATA_RISK"` : | |
| Chokepoints | `state="ACTIVE" AND |
| : : findingClass="CHOKEPOINT"` : | |
| Posture Violations | `state="ACTIVE" AND |
| : : findingClass="POSTURE_VIOLATION"` : | |
| Secrets | |
| SCC Errors | `state="ACTIVE" AND |
| : : findingClass="SCC_ERROR"` : | |
| Specific Category | |
gcloud scc findings group--location={location}global--group-byresource_namecategorystateparentgcloud scc findings group {parent} \
--location={location} \
--group-by="{group_by_field}" \
--filter="state=\"ACTIVE\"" \
--format="json"TOXIC_COMBINATIONattackExposurescore > 0attackExposureResultVULNERABILITYexploitationActivityobservedInTheWildzeroDayupstreamFixAvailablevulnerabilityvulnerability.cve.idvulnerability.cve.cvssv3.baseScorevulnerability.cve.cvssv3.attackVectorvulnerability.cve.exploitationActivityvulnerability.cve.observedInTheWildvulnerability.cve.zeroDayvulnerability.cve.upstreamFixAvailablevulnerability.offendingPackage.packageNamevulnerability.offendingPackage.packageVersionvulnerability.fixedPackage.packageVersionvulnerability.securityBulletin.suggestedUpgradeVersion