GCP Pse
GCP Pse
Google Cloud
Professional Cloud
Security Engineer
Learn by Doing
https://cloud.google.com/certification/guides/cloud-security-engineer
Languages: English
Low latency
Disaster recovery
VPC
Hybrid Connectivity
Data Loss
Regulatory compliance
Your app, data will be deployed in same infra where these amazing
app is hosted.
IAM
Identity & access management
Storage Data
Google By default encrypt all data with Google managed encryption key
CMEK, CSEK
Data in Transit
Google encrypt all traffic which goes beyond physical boundary of Google.
To Inspect
To Redact
To Transform
Subnet
Firewall rules
Ingress/Egress Traffic
Cloud Armor
Operations
Logging, Monitoring, trace, Profiling
Resource hierarchy
Google Service
Groups Different Account
Cloud
Identity
Cloud
Google
Identity
Workspace
Domain
Issue :
Personal ID – Not Organization specific
If Employee left organization
Subscription – Free/Paid
For Paid start with 14 Days Free Trial
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
GCDS doesn't migrate any content (such as email messages, calendar events, or files) to your
Google Account
You use GCDS to synchronize your Google users, groups, and shared contacts to match the
information in your LDAP server.
LDAP
GCDS Cloud Identity
Microsoft AD 10,679
https://tools.google.com/dlpage/dirsync/thankyou.html
Google authentication
Credential stored at google server
Identity
Provider +
User Service
Provider
Identity
Provider
User
Service
Provider
https://admin.google.com/
BY ANKIT MISTRY
Fine-grained access control and visibility for centrally managing cloud resources.
Not recommended
Owner Editor Reader
Does not follow principal of least privilege
BY ANKIT MISTRY
BY ANKIT MISTRY
1. Part – I
1. at Project level – Compute Admin
2. at org level – Editor
2. Part – II
1. Provide 2 role at same level
BY ANKIT MISTRY
Types of Service
Account
Built-in SA -
Google Managed Compute Engine & User created
Service Account App Engine default custom SA
service accounts
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
Service Account can be used as identity for Compute Engine, App Engine
iam.serviceAccounts.actAs Permission
How to Do?
Provide user Service Account Token Creator role
BY ANKIT MISTRY
Cloud VPN
123.52.36.47 123.52.36.2
123.52.36.3
123.52.36.4
123.52.36.5 123.52.36.0 24
123.52.36.6
123.52.36.7
123.52.36.8
123.52.36.9 123.52.36.0/24
123.52.36.10
123.52.36.11
0.0.0.0/0 0 bits are fixed 32 bits are variable Total IP address – 232
= 4,294,967,296
Virtual version of a physical network Subnets are used for segregate resources
Placeholder to keep all your resources VPC must have minimum one subnet
Max 5 networks per project Subnet belongs to one single region in GCP
No IP Assigned
Subnet-1 Subnet-2
DB
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
BY ANKIT MISTRY
R
INTERNET
E
W
A
L DB
Common port/protocol
22 – SSH, 3389 - RDP
ICMP – ping
80 - HTTP/HTTPS
INTERNET
10.0.0.1 10.0.0.2
Internel IP
DB
VPC1
123.52.36.52
10.10.0.25
External IP
External IP
123.52.37.52
VPC2
Internal Static IP
• Static
• Ephemeral Constant – Can be exposed to outside
External
• Static
• Ephemeral
BY ANKIT MISTRY
BY ANKIT MISTRY
ServiceP1
ServiceP2
Use case
Project 1 (Ecommerce App) wants to
communicate to Project 2 (ML Services App)
for Some services like Sentiment Analysis
Org1 Org2
Project2
VM2
create peering
With IAP you can guard access to your applications and VMs.
IAP can protect access to applications hosted on Google Cloud, other clouds, and on-premises.
App
User IAP
Engine/VM
3. Remove external IP
4. Step - 2
6. Step - 2
Dedicated
Direct
Interconnect
Partner
Carrier
Interconnect
Cloud VPN securely connects your peer network to your Virtual Private Cloud (VPC) network through an IPsec VPN
It works between
Google cloud & datacenter
Traffic is encrypted by one VPN gateway and then decrypted by the other VPN gateway.
SLA : Your Datacenter & Google VPC SLA : Your Datacenter & Google VPC
Phonebook of internet
google.com -> 172.217.12.142
BY ANKIT MISTRY
PII data
Person’s name, Credit Card Number, SSN
DLP work upon Free form Text, Structured & Unstructured data (image)
De-identification of Jobs
Identification : De–Identification :
Find Sensitive Data Remove Sensitive Data
SSN
Built-IN STORED
Age
US_SOCIAL_SECURITY_NUMBER,
Custom Infotype
EMAIL_ADDRESS
BY ANKIT MISTRY
Cloud KMS
Envelope Encryption
File Server
Database File
Cipher Text :
Plain Text : Encryption
Algorithm x3qHS1QusMZg0H
I am Learning GCP
ZYMd/7LQFWeok=
Key2
Symmetric Key Encryption Decryption
Asymmetric Key Encryption
© ANKIT MISTRY – GOOGLE CLOUD
When Encryption
Data at Rest
Data Situated at GCS, Database
Data in Motion
Data transfer from one network to another
Within GCP or Outside of GCP
Data in Use
Data situated in RAM.
Memory Store, In memory Data Processing
Keys
Envelope Encryption
Client Side
Encryption that occurs before data is sent to Cloud Storage - GCP.
Server Side
By Default Encryption
To generate keys,
gsutil -o 'GSUtil:encryption_key='keys
Disaster System
Last Backup happens Recovered
Your can be at
On-premise
Google Cloud
Other Public Cloud
Services :
SQL instances
Cloud Storage – blob file
Cloud native Services
© ANKIT MISTRY – GOOGLE CLOUD
Data at On-Premises
Cloud Storage
gsutil -m cp -r [SOURCE_DIRECTORY] gs://[BUCKET_NAME]
Cloud Interconnect
Transfer Services
Transfer Appliance
Upload to GCS
Scheduled backup
Fully managed - No server management Install Logging agent to collect log from GCE – VM
Log can stored, search, analyze Cloud Storage, BigQuery, Pubsub etc…
It works with
Container Registry
Artifact Registry
Works with
GKE
Cloud Run
Forseti Security is a collection of community-driven, open-source tools to help you improve the
security of your Google Cloud Platform (GCP) environments.
systematically monitor your GCP resources to ensure that access controls are set as you
intended
Scanner
Enforcer
Explain
Notification
https://forsetisecurity.org/docs/latest/concepts/architecture.html
CLEAR_TEXT_PASSWORD
INVALID_HEADER
MIXED_CONTENT
OUTDATED_LIBRARY
Standard tier
Premium tier
https://cloud.google.com/security-command-center/docs/concepts-security-command-center-
overview