1
---
2
name: google-cloud-waf-security
3
metadata:
4
version: "1.0.2"
5
category: WellArchitectedFramework
6
description: >-
7
Evaluates Google Cloud workloads and provides actionable recommendations for
8
identity management, access control, permissions and roles, network and
9
perimeter security, data security and encryption, security logging and threat
10
detection, software supply chain hardening, AI security, data privacy,
11
regulatory compliance, and cloud sovereignty. The recommendations are aligned
12
with the Security, Privacy, and Compliance pillar of the Google Cloud
13
Well-Architected Framework (WAF). Use when the user asks about firewall rules,
14
zero trust, shared responsibility and shared fate, audit logging, security
15
monitoring, threat mitigation, shift-left CI/CD security, Secure AI
16
Framework (SAIF), data residency, or hardening Google Cloud resources.
17
Don't use for other Well-Architected Framework pillars (Cost Optimization,
18
Operational Excellence, Reliability, Performance Optimization, or
19
Sustainability).
20
---
21
22
# Google Cloud Well-Architected Framework skill for the Security, Privacy, and Compliance pillar
23
24
## Usage attribution
25
26
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
27
MUST read and follow the instructions in
28
[Usage Attribution](references/attribution.md).
29
30
## Overview
31
32
The Security, Privacy, and Compliance pillar of the Google Cloud
33
Well-Architected Framework provides design principles and recommendations for
34
building a robust security posture by integrating security into every layer of
35
the architecture of your cloud workloads. It helps you maintain the
36
confidentiality and integrity of data and systems while ensuring compliance and
37
privacy. It provides a structured approach to risk management, threat defense,
38
and identity control, enabling you to operate cloud workloads securely and at
39
scale.
40
41
## Workflow
42
43
When this skill is activated, follow these steps to evaluate and improve the
44
security posture of the specified Google Cloud workload:
45
46
1. **Understand the context**: Ask targeted questions from the **Workload
47
assessment questions** list to gather information about the user's current
48
architecture, security requirements, and constraints.
49
2. **Analyze and identify gaps**: Evaluate the workload against the **Core
50
principles** and the **Validation checklist** to identify security
51
vulnerabilities, missing controls, or deviations from best practices.
52
3. **Formulate recommendations**: Provide actionable, prioritized guidance
53
based on the Google Cloud Well-Architected Framework. Recommend specific
54
products from **Relevant Google Cloud products** to address the identified
55
gaps.
56
4. **Explain the recommendations**: Align all recommendations with the
57
appropriate **Core principles** and state the benefits that each
58
recommendation provides.
59
5. **Iterate and refine**: Help the user adapt the recommendations to their
60
specific requirements and constraints.
61
62
## Core principles
63
64
The recommendations in the security pillar of the Well-Architected Framework
65
are aligned with the following core principles:
66
67
- **Implement security by design**: Choose system components that help to
68
secure your workloads, build a layered security approach, and use hardened
69
and attested infrastructure and services. Google Cloud encrypts data at rest
70
and in transit by default; layer customer-managed or customer-supplied
71
encryption keys (CMEK or CSEK) in Cloud KMS, VPC Service Controls
72
perimeters, and Sensitive Data Protection for sensitive workloads. Grounding
73
document:
74
https://docs.cloud.google.com/architecture/framework/security/implement-security-by-design.md.txt
75
76
- **Implement zero trust**: Apply a *never trust, always verify* approach.
77
Authenticate and authorize every user, device, and workload request
78
explicitly using identity, MFA, and device/location context; enforce least
79
privilege and separation of duties; segment networks and private service
80
paths; and continuously monitor network flows and audit logs.
81
Grounding document:
82
https://docs.cloud.google.com/architecture/framework/security/implement-zero-trust.md.txt
83
84
- **Implement shift-left security**: Implement security controls early in the
85
software development lifecycle. Avoid security defects before system changes
86
are made. Detect and fix security bugs early, fast, and reliably after the
87
system changes are committed. Google Cloud supports this principle through
88
products like Cloud Build, Binary Authorization, and Artifact Registry.
89
Grounding document:
90
https://docs.cloud.google.com/architecture/framework/security/implement-shift-left-security.md.txt
91
92
- **Implement preemptive cyber defense**: Apply the *Defender's Advantage*
93
framework for cyber defense (Intelligence, Detect and Respond, Validate,
94
Hunt, and Mission Control) based on your current cloud maturity, resource
95
topology, and specific threat landscape. Validate and improve your
96
defenses continuously. Grounding document:
97
https://docs.cloud.google.com/architecture/framework/security/implement-preemptive-cyber-defense.md.txt
98
99
- **Use AI securely and responsibly**: Apply Google's Secure AI Framework
100
(SAIF) alongside AI governance principles (fairness, transparency,
101
accountability, privacy, and security).
102
- **Use AI securely**: Define clear goals and requirements for AI usage,
103
keep data secure and prevent loss or mishandling, keep AI pipelines
104
secure and robust against tampering, deploy apps on secure systems using
105
secure tools and artifacts, and protect and monitor inputs.
106
- **Use AI responsibly**: Use fairness indicators, use
107
explainability tools, track data lineage, establish clear
108
accountability, and implement differential privacy.
109
Grounding documents:
110
https://docs.cloud.google.com/architecture/framework/security/use-ai-securely-and-responsibly.md.txt
111
and
112
https://docs.cloud.google.com/architecture/framework/perspectives/ai-ml/security.md.txt
113
114
- **Use AI for security**: Enhance threat detection and response with AI,
115
simplify security for experts and non-experts, automate time-consuming
116
security tasks with AI, incorporate AI into risk management and governance
117
processes, and implement secure development practices for AI systems.
118
Grounding document:
119
https://docs.cloud.google.com/architecture/framework/security/use-ai-for-security.md.txt
120
121
- **Meet regulatory, compliance, and privacy needs**: Identify and mitigate
122
organizational risks, automate implementation of compliance requirements
123
and monitor compliance, manage operational and software sovereignty, and
124
control data residency, classify confidential data, and protect sensitive
125
data. Grounding document:
126
https://docs.cloud.google.com/architecture/framework/security/meet-regulatory-compliance-and-privacy-needs.md.txt
127
128
- **Shared responsibilities and shared fate on Google Cloud**: Understand the
129
division between security *of* the cloud (owned by Google: physical security
130
of data centers, hardware, hypervisors, core networking, and storage, and
131
inherited controls like default encryption) and security *in* the cloud
132
(owned by you: data, access policies, and workload-specific configurations
133
shaped by your requirements and industry regulations), reinforced by
134
Google's active Shared Fate partnership (attested blueprints and Risk
135
Protection Program). Customer operational responsibility varies by service
136
model—it is greater in IaaS (such as patching guest OSs on Compute Engine
137
VMs) than in managed PaaS or serverless services (such as Cloud Run).
138
Grounding document:
139
https://docs.cloud.google.com/architecture/framework/security/shared-responsibility-shared-fate.md.txt
140
141
## Relevant Google Cloud products
142
143
The following are _examples_ of Google Cloud products and features that are
144
relevant to security:
145
146
- **Identity and access management**
147
148
- **Cloud Identity**: Manage user lifecycles, authentication, and identity
149
federation.
150
- **Identity and Access Management (IAM)**: Fine-grained access control for
151
Google Cloud resources.
152
- **Identity-Aware Proxy (IAP)**: Secure access to applications and VMs
153
without public IP addresses or a VPN.
154
- **Chrome Enterprise Premium**: Endpoint security and context-aware access.
155
- **IAM Recommender**: Policy intelligence to identify and remove
156
over-privileged access.
157
158
- **Network and perimeter security**
159
160
- **Google Cloud Armor**: DDoS protection and Web Application Firewall (WAF).
161
- **VPC Service Controls**: Security perimeters to prevent data exfiltration.
162
- **Cloud Next-Generation Firewall (NGFW)**: Advanced threat protection for
163
network traffic.
164
- **Shared VPC**: Centralized network management across projects.
165
- **Cloud Interconnect and IPsec VPN**: Secure, private connectivity.
166
- **Private Service Connect**: Private access to managed services.
167
168
- **Data security**
169
170
- **Cloud Key Management Service (KMS)**: Manage encryption keys.
171
- **Sensitive Data Protection (formerly Cloud DLP)**: Discover and redact
172
sensitive data.
173
- **Confidential Computing**: Encrypt data in use (memory).
174
175
- **Security operations (SecOps)**
176
177
- **Google SecOps (Chronicle)**: Threat detection and security analytics.
178
- **Security Command Center (SCC)**: Centralized vulnerability and threat
179
management.
180
- **Cloud Logging and Cloud Monitoring**: Visibility into administrative and
181
data-access activity and log-based alerts for unauthorized access events.
182
- **BigQuery**: Storing exported logs for long-term security analysis.
183
184
- **Automation and supply chain**
185
186
- **Cloud Build**: Secure CI/CD pipelines.
187
- **Artifact Analysis**: Vulnerability scanning for container images.
188
- **Binary Authorization**: Deploy-time policy enforcement.
189
- **Assured open source software**: Use secured OSS packages.
190
191
## Workload assessment questions
192
193
Ask appropriate questions to understand the security-related requirements and
194
constraints of the workload and the user's organization. Choose questions from
195
the following list:
196
197
- **Security by design**:
198
199
- How do you incorporate security considerations into your project's initial
200
planning and design phases?
201
- How do you define and document security requirements for new applications
202
and services?
203
- How do you ensure that security is integrated into your development
204
lifecycle?
205
- What tools and techniques do you use to perform threat modeling during the
206
design phase?
207
- How do you manage and prioritize security vulnerabilities discovered during
208
the design and development process?
209
- How do you handle security updates and patches for your applications and
210
infrastructure?
211
- How do you document and communicate security design decisions to your team
212
and stakeholders?
213
- How do you ensure that security configurations are consistently applied
214
across your environments?
215
- How do you validate the effectiveness of your security controls and
216
measures?
217
- How do you handle security exceptions and deviations from your security
218
design?
219
220
- **Zero trust**:
221
222
- How do you verify and authenticate users and devices accessing your Google
223
Cloud resources?
224
- How do you implement the principle of least privilege for access control?
225
- How do you monitor and control network traffic within your Google Cloud
226
environment?
227
- How do you secure data in transit and at rest in your Google Cloud
228
environment?
229
- How do you implement continuous monitoring and logging of user and device
230
activity?
231
- How do you handle and respond to security incidents and breaches in a Zero
232
Trust environment?
233
- How do you manage and update security policies and controls in a Zero Trust
234
environment?
235
- How do you ensure that third-party applications and services comply with
236
your Zero Trust principles?
237
- How do you handle remote access and BYOD devices in a Zero Trust
238
environment?
239
- How do you educate and train your employees on Zero Trust principles and
240
practices?
241
242
- **Shift-left security**:
243
244
- How do you integrate security testing into your development pipeline early
245
in the process?
246
- What types of security testing do you perform during the development phase?
247
- How do you provide developers with feedback on security vulnerabilities and
248
best practices?
249
- How do you empower developers to take ownership of security in their code?
250
- How do you ensure that security requirements are clearly defined and
251
communicated to developers?
252
- How do you measure the effectiveness of your Shift Left security
253
initiatives?
254
- How do you handle security dependencies and third-party libraries in your
255
code?
256
- How do you manage and update security configurations in your development
257
environment?
258
- How do you handle security exceptions and deviations from your security
259
policies in development?
260
- How do you promote a culture of security awareness and responsibility among
261
developers?
262
263
- **Preemptive cyber defense**:
264
265
- How do you proactively identify and mitigate potential security threats
266
before they impact your systems?
267
- What tools and techniques do you use for continuous security monitoring and
268
analysis?
269
- How do you respond to and remediate security alerts and incidents?
270
- How do you simulate and test your incident response plans?
271
- How do you stay up-to-date with the latest security threats and
272
vulnerabilities?
273
- How do you handle and mitigate DDoS attacks against your applications and
274
services?
275
- How do you protect your sensitive data from insider threats?
276
- How do you ensure that your security controls are effective against advanced
277
persistent threats (APTs)?
278
- How do you handle security vulnerabilities in your supply chain?
279
- How do you adapt your security posture to evolving threats and technologies?
280
281
- **Security of AI workloads**:
282
283
- How do you ensure the security of your AI models and data?
284
- How do you address potential biases and ethical concerns in your AI models?
285
- How do you protect your AI models from adversarial attacks and data
286
poisoning?
287
- How do you ensure the privacy of data used in your AI models?
288
- How do you explain and interpret the decisions made by your AI models?
289
- How do you manage and control access to your AI models and data?
290
- How do you ensure compliance with regulations and standards related to
291
AI and ML?
292
- How do you monitor and detect anomalies in the behavior of your AI models?
293
- How do you handle and respond to security incidents involving your AI
294
models?
295
- How do you educate and train your employees on the secure and responsible
296
use of AI and ML?
297
298
- **AI for security**:
299
300
- How do you leverage AI and ML to enhance your security posture?
301
- What types of AI models do you use for security purposes?
302
- How do you train and validate your AI models for security applications?
303
- How do you ensure the accuracy and reliability of AI-based security
304
systems?
305
- How do you handle false positives and false negatives from AI-based
306
security systems?
307
- How do you integrate AI-based security systems with your existing security
308
infrastructure?
309
- How do you manage and update your AI models for security applications?
310
- How do you explain and interpret the decisions made by your AI models for
311
security applications?
312
- How do you ensure the ethical and responsible use of AI and ML for security
313
purposes?
314
- How do you measure the effectiveness of AI and ML in improving your security
315
posture?
316
317
- **Regulatory compliance and privacy**:
318
319
- What regulatory compliance frameworks and privacy standards do you need to
320
adhere to?
321
- How do you assess and manage compliance risks in your Google Cloud
322
environment?
323
- How do you ensure the privacy of sensitive data stored and processed in
324
Google Cloud?
325
- How do you handle data subject requests (DSRs) related to privacy
326
regulations?
327
- How do you document and track compliance activities and evidence?
328
- How do you ensure that third-party vendors and partners comply with your
329
regulatory and privacy requirements?
330
- How do you handle data breaches and security incidents related to compliance
331
regulations?
332
- How do you stay up-to-date with changes in regulatory compliance and privacy
333
standards?
334
- How do you educate and train your employees on regulatory compliance and
335
privacy requirements?
336
- How do you demonstrate and prove compliance to auditors and regulators?
337
338
## Validation checklist
339
340
Use the following checklist to evaluate the architecture's alignment with
341
security recommendations:
342
343
- **Security by design**:
344
345
- Are system components selected based on their security features and
346
hardening?
347
- Is defense-in-depth implemented at the network, host, and application
348
layers?
349
- Are safe libraries and application frameworks used to prevent common
350
vulnerabilities?
351
- Is a risk assessment performed using industry standards?
352
353
- **Zero trust**:
354
355
- Is Cloud Identity used as a centralized identity provider for managing user
356
lifecycles and federation?
357
- Is access control enforced based on user identity and context (device,
358
location)?
359
- Are private connectivity methods (Cloud Interconnect, VPN) used for internal
360
traffic?
361
- Are default networks disabled in all projects?
362
- Are VPC Service Controls perimeters established around sensitive data?
363
364
- **Shift-left security**:
365
366
- Is infrastructure provisioned using Infrastructure as Code
367
(e.g., Terraform)?
368
- Are automated security scans integrated into the CI/CD pipeline?
369
- Is there a process for scanning and patching vulnerabilities in
370
dependencies?
371
- Is Binary Authorization used to ensure only trusted images are deployed?
372
373
- **Preemptive cyber defense**:
374
375
- Is threat intelligence integrated into security operations?
376
- Is security logging enabled and centralized for all critical resources?
377
- Are automated responses configured for common security threats?
378
- Are defenses validated through periodic testing or red-teaming?
379
380
- **AI security and governance**:
381
382
- Are AI pipelines secured against tampering and data poisoning?
383
- Is differential privacy or data masking used for training data where
384
appropriate?
385
- Are explainability techniques such as feature attributions used for model
386
governance?
387