跳到正文
Skillpedia
安全22k · #10315

google-cloud-scc-remediation

它能做什么

这个技能规划如何修复 Google Cloud 标记出的安全问题。它适用于希望每个发现项都有谨慎且经过批准的修复方案的安全和云团队。

适用场景

  • ✓当你想修复 Google Cloud 上的 Security Command Center 发现项的时候。
  • ✓当你需要缓解攻击路径或有毒组合的时候。
  • ✓当你希望在任何更改之前,有一份包含验证和回滚步骤的修复计划的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/google/skills/blob/main/skills/cloud/google-cloud-scc-remediation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请修复 Security Command Center 中关于我公开存储桶的发现项,并先给我看计划。”

每周 5 个新技能,1 分钟读完。

工作原理

它会给出结构化的修复计划,包括确切的命令或配置差异,并等待你的批准。你同意后,它会在明确指定目标项目的情况下进行更改,并包含验证和回滚步骤。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Google Cloud Security Command Center Remediation

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Overview

A unified remediation skill for Google Cloud Security Command Center findings. It handles both single-domain findings and multi-domain Toxic Combinations.

1. Safety & Consent Gate

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:

    • the mutating remediation command(s),
    • the verification check command(s) (gcloud ... describe or list), and
    • the rollback command(s) that undo the change, or an explicit statement that the step cannot be undone (for example, service account key deletion).

    Use 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:

    • IAM role changes or revocations: you MUST explicitly advise the user to verify cross-project dependencies and CI/CD pipeline workflows that rely on the existing permissions before revoking a project-level role binding.
    • Firewall rule changes: other traffic the same rule allows (such as web traffic on ports 80 or 443).
    • External IP removal: inbound access and outbound internet access for the VM.
    • Public Access Prevention on a bucket: sites or users that legitimately read it publicly.
  • 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.

    • If there is no interactive user (for example, a scheduled or pipeline run), stop at the plan and never execute.
    • If the user approves only part of the plan, or the plan changes after approval, present the updated plan and ask for approval again before executing.
  • 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.

2. Intent Router & Progressive Disclosure

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

常见问题

它会不经询问就更改我的资源吗?

不会。它总是先展示计划,并在运行任何更改前请你批准。

它涵盖 IAM 修复吗?

涵盖。它处理 IAM 权限修复、错误配置、漏洞和有毒组合。

它如何避免更改错误的项目?

在运行更改前,它会确认当前账户和项目与发现项的资源相符。

详情

作者的原始描述

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.

repo: google/skills

热度

GitHub 星标
22k
排名
#10315
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能