Remediates Google Cloud Security Command Center findings, including IAM permission fixes, cloud resource misconfigurations, vulnerabilities, and Toxic Combinations. Use when asked to fix, remediate, or mitigate a Security Command Center finding or address attack paths. Don't use for general IAM policy querying without a Security Command Center finding. For runtime threat detections, this skill provides containment and investigation guidance rather than automated configuration fixes.
Written by Google and published in google/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
A unified remediation skill for Google Cloud Security Command Center findings. It handles both single-domain findings and multi-domain Toxic Combinations.
Security Command Center remediations modify infrastructure, access policies, or workload deployments.
Mandatory Consent Gate: NEVER execute mutating gcloud, terraform, or
API commands without first presenting a structured remediation plan and the
exact command/config diff to the user. STOP after presenting the plan and
ALWAYS ask: "Do you approve executing this remediation plan?" before
execution. Automatic mutation of security policies or resource
configurations can cause unintended outages, lockouts, or compliance
violations.
Confirm the Target Project: Before executing, confirm that the active
gcloud account and project match the project of the finding's resource.
Every mutating command MUST specify the target explicitly, with --project
or a full resource path, rather than relying on the default gcloud
project.
Verification & Rollback Required: Every proposed remediation plan MUST explicitly include, for each mutating step:
gcloud ... describe or list), andUse the commands from the loaded playbook where they exist. If the playbook lacks a verification or rollback command for a step, derive the command and label it as not sourced from a playbook.
Dependency & Impact Checks: Every remediation plan MUST state what could break as a result of each change and ask the user to confirm nothing depends on it. For example:
CRITICAL WORKFLOW RULE: Do NOT execute any mutating commands in the same turn that you present the remediation plan. You MUST end your turn immediately after asking for approval and wait for the user's next message.
Narrowly Scoped Changes: Always propose the narrowest possible fix that resolves the finding. When more than one fix would work, prefer reversible changes over irreversible ones (for example, disable a key before deleting it), resource-level changes over project, folder, or organization-level changes, and changes that affect only the finding's resource over changes that affect other resources. Do not bundle fixes for unrelated issues noticed along the way; mention them to the user separately.
Do not load all reference playbooks into memory at once. Analyze the Security
Command Center finding's category, findingClass, or attack path, then read
ONLY the relevant reference document(s).
Match on the finding's category first, and fall back to findingClass
only when no category matches. Routing on findingClass alone misroutes IAM
findings: Security Health Analytics IAM findings are MISCONFIGURATION class,
and IAM recommender findings are Vulnerability class, so neither would ever
reach the IAM playbook.
| Match On | Values | Target Reference Playbook |
|---|---|---|
category |
PRIMITIVE_ROLES_USED, |
references/remediation_iam.md |
: (Security Health : OVER_PRIVILEGED_SERVICE_ACCOUNT_USER, : : |
||
: Analytics) : ADMIN_SERVICE_ACCOUNT, : : |
||
: : SERVICE_ACCOUNT_ROLE_SEPARATION, : : |
||
: : KMS_ROLE_SEPARATION, : : |
||
: : USER_MANAGED_SERVICE_ACCOUNT_KEY, : : |
||
: : SERVICE_ACCOUNT_KEY_NOT_ROTATED : : |
||
category |
IAM_ROLE_HAS_EXCESSIVE_PERMISSIONS, |
references/remediation_iam.md |
: (IAM recommender) : UNUSED_IAM_ROLE, : : |
||
: : SERVICE_AGENT_GRANTED_BASIC_ROLE, : : |
||
: : SERVICE_AGENT_ROLE_REPLACED_WITH_BASIC_ROLE : : |
||
category |
PUBLIC_BUCKET_ACL, PUBLIC_IP_ADDRESS, |
references/remediation_misconfig.md |
: (Security Health : OPEN_FIREWALL, OPEN_SSH_PORT, : : |
||
: Analytics) : OPEN_RDP_PORT, KMS_KEY_NOT_ROTATED : : |
||
category |
OS_VULNERABILITY, SOFTWARE_VULNERABILITY, |
references/remediation_vuln.md |
: : GKE_RUNTIME_OS_VULNERABILITY (CVEs, OS : : |
||
| : : patch, container base image upgrade, : : | ||
| : : vulnerable package, GKE node pool upgrade). : : | ||
| : : Note: Web Security Scanner (WSS) findings : : | ||
| : : fall through to no match below. : : | ||
findingClass |
TOXIC_COMBINATION — attack path |
Sequential Load: Identify each exposed facet in the attack path and load |
| : : exposure, multi-domain attack vector : the matching reference playbooks sequentially. : | ||
| no match | Any other category or finding class | See Findings Without Dedicated Playbooks below. Do not force a finding |
| : : : into a playbook that does not cover it. : |
When presented with Security Command Center findings that do not have automated configuration remediation playbooks—such as runtime threat detections (e.g., Cloud Run Threat Detection, Agent Platform Threat Detection, Event Threat Detection, Container Threat Detection):
google-cloud-scc-query skill. Verify the finding name,
affected resource (resourceName), category, and attack exposure score.goog-terraform-provisioned label). If it is, draft the
change to the Terraform configuration rather than a gcloud command.
Otherwise, draft the exact CLI (gcloud) or IAM binding change needed to
close the exposure without disrupting business workloads.Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /google-cloud-scc-remediation in Claude Code or $google-cloud-scc-remediation in Codex.
The description says when to use it:
Use when asked to fix, remediate, or mitigate a Security Command Center finding or address attack paths.
Copy the google-cloud-scc-remediation folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .claude/skills
cp -r /tmp/google-skills/skills/cloud/google-cloud-scc-remediation .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if google-cloud-scc-remediation does not appear.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .agents/skills
cp -r /tmp/google-skills/skills/cloud/google-cloud-scc-remediation .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for google-cloud-scc-remediation and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
google-cloud-scc-remediation ships 5 files, 34.0 KB in total. Select a file to load it from GitHub.