Cybersecurity-Mastery

Cloud Security — Track

Provider-specific and provider-agnostic security for modern cloud-native systems.

Your progress in this track

Set up the lab environment below once, then work the lessons — each one is hands-on-first.

Lab Environment

Set up once, then use it for every chapter in the Cloud Security part. Everything runs locally and isolated — you never touch a system you don't own.

Cloud, locally: LocalStack emulates AWS APIs so you can create, misconfigure, attack and fix cloud resources with zero cost and zero blast radius.

What you get

TargetHow to reach it
LocalStackhttp://localhost:4566 — emulated AWS (IAM, S3, EC2 metadata, Lambda)

Provision it — save this as docker-compose.yml and run docker compose up -d (or import the equivalent spec into CyberForge):

yaml
# cloud-lab/docker-compose.yml  —  Cloud Security part environment
services:
  localstack:
    image: localstack/localstack
    ports: ["4566:4566"]
    environment:
      - SERVICES=iam,s3,ec2,lambda,sts,logs
    networks: [labnet]

networks:
  labnet:
    driver: bridge

Attacker box. Drive it with the AWS CLI pointed at LocalStack: aws --endpoint-url http://localhost:4566 s3 ls. Attack tooling: pacu, prowler, scoutsuite, cloudsplaining all work against the emulated endpoint or a real free-tier account you own.

Verify it works

  • curl http://localhost:4566/_localstack/health returns running services.
  • aws --endpoint-url http://localhost:4566 iam list-users succeeds.

Notes

  • For behaviours LocalStack can't emulate (GuardDuty, real IMDS), use a free-tier account you own and delete resources after.

Teardown. docker compose down stops it; add -v to also drop volumes. Snapshot before big changes so you can revert.

Safety. Keep intentionally-vulnerable targets on an isolated/internal network. Never expose them to the internet or attack anything outside this lab.

Lessons

#LessonDifficultyHands-onWhat you'll do
1Cloud Security Fundamentals🟢 Beginner~48mShared responsibility, cloud-native threat models, the control plane and blast radius.
2AWS Security🟡 Intermediate~96mIAM, organisations, VPC, GuardDuty, S3 exposure and common AWS attack paths.
3Azure Security🟡 Intermediate~84mEntra ID, RBAC, management groups, Defender and Azure-specific privilege escalation.
4GCP Security🟡 Intermediate~72mIAM, org policy, service accounts, VPC-SC and GCP privilege-escalation chains.
5Cloud Identity and Access Management🟠 Advanced~72mPolicy evaluation, trust relationships, privilege escalation and least-privilege design.
6Cloud Networking Security🟡 Intermediate~48mVPCs, security groups, private endpoints, egress control and network segmentation.
7Cloud Container and Registry Security🟠 Advanced~60mManaged Kubernetes, registry trust, IRSA/workload identity and runtime protection.
8Managed Kubernetes Security🟠 Advanced~72mEKS/AKS/GKE hardening, node identity, admission control and multi-tenant isolation.
9Infrastructure as Code Security🟡 Intermediate~60mTerraform/CloudFormation scanning, drift, module trust and policy as code.
10Cloud Security Posture Management🟡 Intermediate~48mMisconfiguration detection, benchmarks, guardrails and remediation automation.
11Cloud Detection and Monitoring🟠 Advanced~72mCloudTrail/Activity logs, threat detection services and cloud-native SIEM.
12Cloud Incident Response🟠 Advanced~72mCloud evidence acquisition, containment via API, credential invalidation and forensics.
13Serverless and PaaS Security🟡 Intermediate~48mFunction isolation, event-source trust, secrets and cold-path telemetry gaps.
14Multi-Cloud and Hybrid Security🟠 Advanced~48mIdentity federation, consistent policy, cross-cloud blast radius and tooling.

14 lessons.

← Repository home · Full contents · Labs campaign

Cybersecurity-Mastery — interactive security learning · runs locally