Cloud security
Lessons on cloud configuration output: what a credential-report date, an S3 block level, a scanner FAIL, or a role scope does not prove.
- 26 lessons
- 4 h of reading
- 8 topics
Cloud breaches are rarely clever. They are usually a public bucket, a key in a repository, or a role that can do far more than its job needs. These tutorials show how the permission systems work and how to audit your own account with the provider’s CLI.
Use a sandbox account with billing alerts turned on. Every command here is read-only or applies to resources you created for the lesson.
Foundations
1 lesson
AWS IAM
5 lessons
- 01How AWS IAM policy evaluation works: explicit deny, allow, SCPs, and boundariesFollow the order AWS uses to decide whether a request is allowed, read a policy statement, and use the policy simulator to test a decision before it surprises you.12 min
- 02Least privilege in AWS with IAM Access Analyzer: unused access and generated policiesUse Access Analyzer to find resources shared outside your account, flag unused roles and permissions, and generate a policy from real CloudTrail activity.10 min
- 03How to secure the AWS root user: MFA, no access keys, and alertsLock down the AWS account root user with phishing-resistant MFA, delete its access keys, set alternate contacts, and alert on any root sign-in.9 min
- 04Find old and unused AWS access keys with the IAM credential reportGenerate the credential report, find keys older than 90 days or never used, rotate keys without downtime, and replace long-lived keys with roles.10 min
- 05AWS IAM roles and AssumeRole explained: trust policies and temporary credentialsUnderstand the two policies every role has, assume a role from the CLI, add an external ID and MFA condition, and read AssumeRole events in CloudTrail.10 min
S3 and storage
3 lessons
- 01S3 Block Public Access explained: the four settings and where to turn them onUnderstand each Block Public Access setting, enable it at the account level, and check buckets that still need a deliberate exception.9 min
- 02How to review an S3 bucket policy for public and cross-account accessRead a bucket policy line by line, spot Principal "*" and missing conditions, enforce TLS and organization-only access, and test with the policy checker.10 min
- 03Protect S3 data from deletion and ransomware: versioning, Object Lock, and KMSTurn on versioning, use Object Lock for immutable backups, pick SSE-S3 or SSE-KMS, and add MFA delete or a deny policy for deletions.10 min
Logging and detection
5 lessons
- 01How to set up AWS CloudTrail correctly: organization trail, validation, and protectionCreate a multi-region organization trail to a dedicated logging account, enable log file validation, protect the bucket, and decide which data events to add.10 min
- 02Investigating AWS CloudTrail logs: who did what, from where, with which credentialsRead a CloudTrail record field by field, follow an access key through its events, and answer the first questions of a cloud incident with the CLI and jq.11 min
- 03Find AWS security groups open to the internet on SSH, RDP, and databasesQuery security groups for 0.0.0.0/0 and ::/0 rules on sensitive ports, see which instances use them, and replace them with Session Manager or scoped rules.9 min
- 04What is IMDSv2 and how to enforce it on EC2Understand why the instance metadata service is a target for SSRF, how IMDSv2’s session tokens help, and how to require it on existing and new instances.9 min
- 05AWS Secrets Manager vs Parameter Store: storing application secrets safelyChoose between Secrets Manager and SSM Parameter Store SecureString, grant a role access to one secret, rotate a database password, and keep secrets out of code and environment files.9 min
Azure and Entra ID
5 lessons
- 01Microsoft Entra Conditional Access policies: a beginner walkthroughLearn how Conditional Access combines users, apps, conditions, and controls into if-then rules, and how to roll out MFA safely with report-only mode and break-glass accounts.11 min
- 02Reviewing Azure RBAC role assignments: scopes, Owner sprawl, and custom rolesUnderstand how Azure role assignments combine a principal, a role, and a scope, and list who holds Owner or User Access Administrator across your subscriptions.10 min
- 03Just-in-time admin access with Entra Privileged Identity Management (PIM)Replace standing administrator rights with eligible assignments that require activation, justification, MFA, and optional approval, and audit who activated what.9 min
- 04Azure Storage account security: public blob access, shared keys, and SAS tokensCheck whether storage accounts allow anonymous blob access or shared key authorization, understand SAS token risk, and lock accounts down with Entra ID authorization.10 min
- 05Azure Activity Log and Microsoft Defender for Cloud: what to collect and reviewLearn what the Activity Log records, how it differs from resource logs and Entra logs, and how to use Defender for Cloud recommendations and secure score to prioritize fixes.10 min
Google Cloud
1 lesson
Tools and posture
2 lessons
- 01Scanning your cloud account with Prowler: run, read, and prioritize findingsRun the open-source Prowler scanner against a sandbox AWS or Azure account with read-only access, read the output, and turn hundreds of findings into a short fix list.11 min
- 02Leaked cloud access key: a first-hour response checklistA calm, ordered checklist for when an access key or service account key shows up in a public repository: contain, scope with logs, remove persistence, and rotate.9 min
Reading output
4 lessons
- 01IAM: the report time is not last usedA credential report has a generated time for the file and a last-used value for each key. They are different clocks. Write both. A last-used date does not describe use after the report was generated.9 min
- 02S3: the block you read is that levelBlock Public Access can be set on the account and on a bucket. The setting you queried is the level in that response. Write the level. Do not describe the other level from a response that did not include it.9 min
- 03Prowler: FAIL is this check, not an incidentA FAIL row is one check against one resource in that scan. It is a configuration comparison. It is not an incident, and it does not describe a check id that is not on the row. Write the check, the resource, and the scan time.9 min
- 04Azure RBAC: the scope is this assignmentA role assignment has a role and a scope. The scope is where that assignment applies: a resource, a group, a subscription, or a management group. Write the scope on the row. Do not widen it.9 min