Cloud Security Engineer Training
From shared responsibility fundamentals to advanced DevSecOps — IAM, VPC security, data encryption, threat detection, and compliance across AWS, Azure, and GCP. Every lab uses free tiers.
The shared responsibility model defines which security tasks the cloud provider handles and which fall to you. IaaS (EC2/Azure VMs): provider owns hardware, hypervisor, global network. You own: OS patching, firewall rules, application code, data. PaaS (RDS/App Service): provider takes the OS and runtime too. You own: app code and data. SaaS (Microsoft 365): provider handles almost everything. You own: user management, access controls, data classification.
Most cloud breaches do not exploit provider infrastructure — they exploit customer misconfigurations. S3 buckets left public, IAM roles with wildcard permissions, unencrypted databases, open security groups. These are your responsibility, not the provider's.
pip install prowler prowler awsCategorise every finding: customer responsibility vs. acceptable risk for a test account.
pip install scoutsuite scout aws --report-dir ./reportReview the HTML report IAM, S3, EC2, and Logging sections.
The most important cloud architecture security principle is account isolation. Workloads in separate AWS accounts cannot interact unless explicitly configured to do so. A compromised credential in dev cannot reach production if they are in separate accounts. Running everything in one account means one compromised IAM key can affect everything.
AWS Organizations + Service Control Policies (SCPs) enforce security guardrails across all accounts — regardless of IAM permissions. An SCP that denies CloudTrail deletion cannot be bypassed even by an account administrator. This is the cloud equivalent of a hardware security control.
Security account: Centralised CloudTrail, Config, VPC Flow Logs from ALL accounts. Security Hub + GuardDuty master. Only SOC team has access.
Log archive account: S3 with Object Lock (WORM). Even admins in other accounts cannot delete these logs. Immutable evidence.
Environment accounts (Dev / Staging / Production): Each in its own account. Production is the most restricted. SCPs prevent non-approved actions regardless of IAM.
Cloud attacks rarely use malware. An attacker with valid IAM credentials uses legitimate AWS APIs to enumerate, escalate privileges, persist, and exfiltrate. No exploit. No EDR alert. The attack logs like a legitimate user — just with unusual timing, scope, or volume. This is why detection in cloud is API-log-based, not endpoint-based.
Discovery: ListBuckets, DescribeInstances, ListUsers, GetAccountAuthorizationDetails — an attacker maps your entire environment in minutes with one API call per service.
Privilege Escalation: iam:PassRole + ec2:RunInstances → launch EC2 with admin role → SSH in → full admin API access. Multiple escalation paths exist for common misconfigured permission combinations.
Persistence: CreateAccessKey on existing admin users · New backdoor IAM users · Lambda triggers · Modified role trust policies.
Exfiltration: Cross-account S3 replication · RDS snapshot sharing to attacker account · Secrets Manager export · Direct API reads of sensitive data.
Impact: Cryptomining (attacker spins GPU instances, you pay) · S3 ransomware (delete + re-upload encrypted) · Data destruction · Persistent access for future campaigns.
Twitch (2021): Misconfigured server → S3 access → source code + $125M creator data exfiltrated.
Uber (2022): Contractor social-engineered → MFA fatigue attack → AWS, GCP, GitHub access. CISO sentenced to prison.
LastPass (2022): Developer endpoint compromised → S3 access → customer vault backups stolen.
Cloudflare (2023): Okta tokens reused → contained in 24h. The reference case for defence in depth working.