Evaluates Google Cloud workloads and provides actionable recommendations for identity management, access control, permissions and roles, network and perimeter security, data security and encryption, security logging and threat detection, software supply chain hardening, AI security, data privacy, regulatory compliance, and cloud sovereignty. The recommendations are aligned with the Security, Privacy, and Compliance pillar of the Google Cloud Well-Architected Framework (WAF). Use when the user asks about firewall rules, zero trust, shared responsibility and shared fate, audit logging, security monitoring, threat mitigation, shift-left CI/CD security, Secure AI Framework (SAIF), data residency, or hardening Google Cloud resources. Don't use for other Well-Architected Framework pillars (Cost Optimization, Operational Excellence, Reliability, Performance Optimization, or Sustainability).
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.
The Security, Privacy, and Compliance pillar of the Google Cloud Well-Architected Framework provides design principles and recommendations for building a robust security posture by integrating security into every layer of the architecture of your cloud workloads. It helps you maintain the confidentiality and integrity of data and systems while ensuring compliance and privacy. It provides a structured approach to risk management, threat defense, and identity control, enabling you to operate cloud workloads securely and at scale.
When this skill is activated, follow these steps to evaluate and improve the security posture of the specified Google Cloud workload:
The recommendations in the security pillar of the Well-Architected Framework are aligned with the following core principles:
Implement security by design: Choose system components that help to secure your workloads, build a layered security approach, and use hardened and attested infrastructure and services. Google Cloud encrypts data at rest and in transit by default; layer customer-managed or customer-supplied encryption keys (CMEK or CSEK) in Cloud KMS, VPC Service Controls perimeters, and Sensitive Data Protection for sensitive workloads. Grounding document: https://docs.cloud.google.com/architecture/framework/security/implement-security-by-design.md.txt
Implement zero trust: Apply a never trust, always verify approach. Authenticate and authorize every user, device, and workload request explicitly using identity, MFA, and device/location context; enforce least privilege and separation of duties; segment networks and private service paths; and continuously monitor network flows and audit logs. Grounding document: https://docs.cloud.google.com/architecture/framework/security/implement-zero-trust.md.txt
Implement shift-left security: Implement security controls early in the software development lifecycle. Avoid security defects before system changes are made. Detect and fix security bugs early, fast, and reliably after the system changes are committed. Google Cloud supports this principle through products like Cloud Build, Binary Authorization, and Artifact Registry. Grounding document: https://docs.cloud.google.com/architecture/framework/security/implement-shift-left-security.md.txt
Implement preemptive cyber defense: Apply the Defender's Advantage framework for cyber defense (Intelligence, Detect and Respond, Validate, Hunt, and Mission Control) based on your current cloud maturity, resource topology, and specific threat landscape. Validate and improve your defenses continuously. Grounding document: https://docs.cloud.google.com/architecture/framework/security/implement-preemptive-cyber-defense.md.txt
Use AI securely and responsibly: Apply Google's Secure AI Framework (SAIF) alongside AI governance principles (fairness, transparency, accountability, privacy, and security).
Use AI for security: Enhance threat detection and response with AI, simplify security for experts and non-experts, automate time-consuming security tasks with AI, incorporate AI into risk management and governance processes, and implement secure development practices for AI systems. Grounding document: https://docs.cloud.google.com/architecture/framework/security/use-ai-for-security.md.txt
Meet regulatory, compliance, and privacy needs: Identify and mitigate organizational risks, automate implementation of compliance requirements and monitor compliance, manage operational and software sovereignty, and control data residency, classify confidential data, and protect sensitive data. Grounding document: https://docs.cloud.google.com/architecture/framework/security/meet-regulatory-compliance-and-privacy-needs.md.txt
Shared responsibilities and shared fate on Google Cloud: Understand the division between security of the cloud (owned by Google: physical security of data centers, hardware, hypervisors, core networking, and storage, and inherited controls like default encryption) and security in the cloud (owned by you: data, access policies, and workload-specific configurations shaped by your requirements and industry regulations), reinforced by Google's active Shared Fate partnership (attested blueprints and Risk Protection Program). Customer operational responsibility varies by service model—it is greater in IaaS (such as patching guest OSs on Compute Engine VMs) than in managed PaaS or serverless services (such as Cloud Run). Grounding document: https://docs.cloud.google.com/architecture/framework/security/shared-responsibility-shared-fate.md.txt
The following are examples of Google Cloud products and features that are relevant to security:
Identity and access management
Network and perimeter security
Data security
Security operations (SecOps)
Automation and supply chain
Ask appropriate questions to understand the security-related requirements and constraints of the workload and the user's organization. Choose questions from the following list:
Security by design:
Zero trust:
Shift-left security:
Preemptive cyber defense:
Security of AI workloads:
AI for security:
Regulatory compliance and privacy:
Use the following checklist to evaluate the architecture's alignment with security recommendations:
Security by design:
Zero trust:
Shift-left security:
Preemptive cyber defense:
AI security and governance:
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-waf-security in Claude Code or $google-cloud-waf-security in Codex.
The description says when to use it:
Use when the user asks about firewall rules, zero trust, shared responsibility and shared fate, audit logging, security monitoring, threat mitigation, shift-left CI/CD security, Secure AI Framework (SAIF), data residency, or hardening…
Copy the google-cloud-waf-security 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-waf-security .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-waf-security 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-waf-security .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-waf-security 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-waf-security ships 2 files, 20.0 KB in total. Select a file to load it from GitHub.