Sign in Start free

Blue teamFree course

Cloud Security Monitoring in Practice (AWS, Azure, Google Cloud)

Investigate a multi-cloud intrusion at Rimal from native logs: log coverage, CloudTrail, Entra ID, Azure Activity and Cloud Audit Logs in one schema, identity detections, IAM escalation paths, defence evasion and exfiltration, VPC flow logs, posture checks, GuardDuty, Security Hub, Defender for Cloud, Sentinel, Security Command Center and Google SecOps, cross-cloud correlation, response and SOC metrics.

  • Level Junior → Expert
  • Time 240 min
  • Modules 10
  • Exercises 25 with worked solutions
  • Includes Lab, 5-question quiz, references

What you'll learn

  • Check and protect log coverage across accounts, subscriptions and projects
  • Read and normalise CloudTrail, Entra ID, Azure Activity and Cloud Audit Logs
  • Detect identity attacks, privilege escalation, evasion and exfiltration
  • Use flow logs, posture checks and each provider's threat detection
  • Correlate a multi-cloud incident and respond per cloud

Each lesson is tagged Junior, Mid or Expert, so you can start where you are. Finish with the lab and the quiz; a score of 4 out of 5 marks the course complete in this browser.

The lessons below are in English for now, because they quote technical names, commands and log fields. An Arabic version is planned.

Course map

Each module moves from fundamentals to applied work to an expert challenge. Exercises have worked solutions: try first, then open the solution. 10 modules · 25 exercises · ~4 hours

  1. 0Start here: what the SOC watches in the cloudJuniorMidExpert20 min · 2 exercises
  2. 1Log coverage: turn it on, keep it, protect itJuniorMidExpert25 min · 3 exercises
  3. 2Reading cloud logs and normalising themJuniorMidExpert25 min · 3 exercises
  4. 3Identity attacks: the usual way inJuniorMidExpert30 min · 3 exercises
  5. 4IAM: privilege escalation pathsJuniorMidExpert25 min · 3 exercises
  6. 5Defence evasion and data exfiltrationJuniorMidExpert25 min · 3 exercises
  7. 6Network and workload signalsJuniorMidExpert20 min · 2 exercises
  8. 7Posture and the providers' own detectionJuniorMidExpert25 min · 2 exercises
  9. 8Correlation and responseJuniorMidExpert25 min · 3 exercises
  10. 9Enterprise cloud SOC; cheat sheet and assessmentJuniorMidExpert20 min · 1 exercises

No prior experience is needed. Module 0 covers the architecture, installation and configuration, and sets up the project you extend in every module. Each command is labelled with its impact (read-only, changes files, changes the system, uses the network). Work on a computer or virtual machine you control.

0

Start here: what the SOC watches in the cloud

Goal: Understand shared responsibility, the control plane, the equivalent log sources in AWS, Azure and Google Cloud, and the course investigation.

20 min

Every action is an API call

In the cloud, creating a server, opening a firewall, reading a database export or granting a role is an API call to the provider's control plane, and the provider can log every one of them. Cloud security monitoring is therefore mostly about identities and API activity: who called what, from where, and whether it succeeded, plus network flows and the managed threat detection each provider offers.

The provider secures its hardware and services; you secure your identities, configuration and data (shared responsibility). Attackers know this: most cloud intrusions use stolen credentials or misconfigurations, not exploits of the provider. Organisations also rarely use one cloud: identities in Entra ID, workloads in AWS, analytics in Google Cloud. The SOC must see all three as one picture.

CustomerProviderData, identities, accessyoushared toolsApplications and configurationyoushared toolsOperating system (IaaS)you-Network controlsyoushared toolsPhysical hosts, hypervisor-providerMost cloud breaches start withidentities and configuration:the customer's side.So the SOC watches the controlplane: every API call.
What you needAWSAzureGoogle Cloud
control-plane API activityCloudTrail (management events)Activity LogCloud Audit Logs: Admin Activity
data access (reads of objects, tables)CloudTrail data events, S3 access logsresource logs (Storage, Key Vault)Cloud Audit Logs: Data Access
identity sign-insCloudTrail ConsoleLogin, IAM Identity CenterEntra ID sign-in and audit logsCloud Identity / Workspace login audit
network flowsVPC Flow LogsVNet flow logsVPC Flow Logs
DNSRoute 53 Resolver query logsDNS security policy logsCloud DNS logging
managed threat detectionGuardDuty (Extended Threat Detection)Defender for CloudSecurity Command Center (Event Threat Detection)
posture and findings hubSecurity Hub (OCSF)Defender for CloudSecurity Command Center
SIEM (native)Security Lake + partnersMicrosoft Sentinel (Defender portal)Google SecOps
ProvidersAWSAWSAzureAzureGoogle CloudGoogle CloudCollectAmazon CloudWatchAmazon CloudWatchFluent BitFluent BitOpenTelemetryOpenTelemetryPostureCheckovCheckovTrivyTrivyTerraformTerraformIdentityKeycloakKeycloakVaultVaultSIEMMicrosoft SentinelMicrosoft SentinelSplunkSplunkElasticsearchElasticsearchDetect as codeGitHubGitHubGitHub ActionsGitHub ActionsRespondAWS LambdaAWS LambdaPagerDutyPagerDutyOpen sourceWazuhWazuhOpenSearchOpenSearchThe cloud monitoring toolchain: providers, collection, posture, identity, SIEM, detection as code, response and open-source options.

The investigation in this course

On 1 December, Rimal is attacked across all three clouds. You will find out how, using real-format logs: AWS CloudTrail records, Entra ID sign-in logs, Azure Activity Log entries, Google Cloud Audit Logs and VPC flow logs. You will check log coverage, normalise the logs, write detections, analyse IAM escalation paths and posture, correlate everything into one incident and plan the response.

SprayEntra ID, 9 users failSign-inkhalid, no MFAAWS keynew IP, escalationEvasionstop logging (denied)Exfiltrationpublic bucket, snapshotAzure + GCProle grant, data export
Staff and workloadsEntra ID identitiesAzureNEWAWS accountsprod, dev, sandboxAWSNEWAzure subscriptionsprod, HRAzureNEWGoogle Cloud projectsanalytics, MLGoogle CloudNEWLog archiveNormalised eventsIdentity detectionsIAM path analysisEvasion + exfil rulesFlow-log analyticsPosture (CSPM)Native detectionSIEM + correlationResponse automationMetrics + governanceStage 0: Rimal runs on three clouds; logs exist, but nobody looks at them together.
shell
cloudmon/
├── inventory.json, coverage.py            # module 1: are the logs on?
├── cloudtrail.json, entra_signins.json, azure_activity.json, gcp_audit.json
├── normalize.py → events.jsonl          # module 2
├── detect.py → alerts.json              # modules 3, 5
├── iam.json, iam_paths.py               # module 4
├── flowlogs.txt, flows.py               # module 6
├── config.json, posture.py              # module 7
└── correlate.py, respond.py, metrics.py # modules 8, 9

Quick check: An attacker logs in with a stolen access key and copies a database snapshot. Where is the evidence?

Exercise 1Junior

Map each to its Azure and Google Cloud equivalent: CloudTrail management events, GuardDuty, VPC Flow Logs.

Worked solution

CloudTrail management events → Azure Activity Log, Google Cloud Admin Activity audit logs. GuardDuty → Microsoft Defender for Cloud, Security Command Center (Event Threat Detection). VPC Flow Logs → Azure VNet flow logs, Google Cloud VPC Flow Logs.

Exercise 2Mid

Why are identity sign-in logs (Entra ID) often the most important cloud source, even for AWS and Google Cloud?

Worked solution

Many companies federate AWS and Google Cloud access through Entra ID (SSO), and staff use the same identity for email and cloud consoles. A compromised Entra ID account is often the first step into every cloud, so its sign-ins show the attack before any cloud API is called, as in this course's incident.

Tools in this course

AWS CloudTrail, GuardDuty, Security HubSecOps

API logs, managed threat detection, findings hub (OCSF).

Use it for: AWS accounts and organisations

Integrates with: Security Lake, EventBridge, SIEMs

Entra ID logs, Defender for CloudSecOps

Identity sign-ins, Activity Log, workload protection.

Use it for: Azure and Microsoft 365

Integrates with: Microsoft Sentinel

Cloud Audit Logs, Security Command CenterSecOps

Admin Activity and Data Access logs, threat detection, posture.

Use it for: Google Cloud organisations

Integrates with: Google SecOps

Microsoft SentinelSecOps

Cloud SIEM in the Defender portal (the Azure portal experience ends 31 March 2027).

Use it for: multi-cloud SIEM

Integrates with: AWS, GCP connectors, KQL

Project step 0

Set up the investigation

Goal: ~/cloudmon holds Rimal's inventory and the logs from 1 December in each provider's native format.

1

Log coverage: turn it on, keep it, protect it

Goal: Check every account, subscription and project for the logs that matter, central collection, retention and tamper protection.

25 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

2

Reading cloud logs and normalising them

Goal: Read a CloudTrail record, an Entra ID sign-in, an Azure Activity entry and a Cloud Audit Log entry, and map them all to one schema.

25 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

3

Identity attacks: the usual way in

Goal: Detect password spraying, impossible travel, sign-ins without MFA and credentials used from new places, including stolen instance credentials.

30 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

4

IAM: privilege escalation paths

Goal: Find permissions that let an identity make itself more powerful in AWS, Azure and Google Cloud, and detect their use.

25 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

5

Defence evasion and data exfiltration

Goal: Detect attempts to disable logging and detection, public exposure of data, sharing with external accounts and bulk downloads.

25 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

6

Network and workload signals

Goal: Read VPC flow logs, find internet-exposed services, crypto-mining and large uploads, and connect network signals to identities.

20 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

7

Posture and the providers' own detection

Goal: Check configuration against CIS benchmarks, and use GuardDuty, Security Hub, Defender for Cloud, Sentinel, Security Command Center and Google SecOps well.

25 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

8

Correlation and response

Goal: Join alerts from three clouds into one incident with a kill chain, then plan containment, eradication and recovery per cloud.

25 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

9

Enterprise cloud SOC; cheat sheet and assessment

Goal: Design multi-cloud monitoring at scale, manage detections as code, measure the SOC, and plan coverage for a new environment.

20 min

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

Quick reference (the cheat-sheet lessons and the PDF content)
1

Shared responsibility: what the SOC must watch

Junior

Whatever the model, identity and data are always yours. That is where most cloud breaches start.

Data and accessApplicationsIdentity and accountsOperating systemNetwork controlsHosts and virtualizationPhysical data centreIaaSYouYouYouYouSharedProviderProviderPaaSYouYouYouSharedProviderProviderProviderSaaSYouSharedSharedProviderProviderProviderProvider
2

Cloud log map

JuniorMid

Send all of it to a separate, locked-down logging account or subscription that production admins cannot delete.

NeedAWSAzureGoogle Cloud
Control-plane API callsCloudTrail (org trail)Activity LogCloud Audit Logs (Admin Activity)
Identity sign-insCloudTrail ConsoleLogin, IAM Identity CenterEntra ID sign-in + audit logsCloud Identity / Workspace logs
Data accessCloudTrail data events (S3, Lambda)Storage / Key Vault diagnostic logsData Access audit logs (off by default)
NetworkVPC Flow Logs, Route 53 resolver logsVNet flow logs, Azure FirewallVPC Flow Logs, Cloud DNS logs
Threat detectionGuardDutyDefender for CloudSecurity Command Center
Posture and configAWS Config, Security HubAzure Policy, Defender CSPMCloud Asset Inventory, SCC
3

Cloud attack chain

JuniorMid
1Initial accessleaked keys,phished admin2Discoverylist buckets,roles, VMs3Priv. escalationattach adminpolicy, pass role4Persistencenew keys, users,OAuth apps5Evasionstop logging,delete detector6Impactexfil, mining,ransom storage
4

Detections by provider (API / operation names)

MidExpert
Use caseAWS (CloudTrail)Azure (Activity / Entra)GCP (Audit Logs)
Logging disabledStopLogging, DeleteTrail, PutEventSelectorsDelete diagnostic settingDelete or update a log sink
Threat detection offDeleteDetector, UpdateDetectorDefender plan disabledSCC settings changed
New access keyCreateAccessKeyAdd credentials to app / service principalCreateServiceAccountKey
Admin rights grantedAttachUserPolicy AdministratorAccess, PutRolePolicyAdd member to role (Global Administrator)SetIamPolicy with roles/owner
Console login without MFAConsoleLogin with MFAUsed = NoSign-in with single-factor authLogin without 2-step verification
Storage made publicPutBucketPolicy, PutBucketAcl, DeletePublicAccessBlockBlob container access level publicSetIamPolicy allUsers on a bucket
Snapshot shared outModifySnapshotAttribute, ModifyImageAttributeDisk export / SAS URL generatedImage or snapshot IAM to external
Crypto-miningRunInstances large GPU types in odd regionsNew VMs or GPU quota requestsNew GPU instances in unused regions
Illicit consentn/aConsent to application (high-privilege scopes)OAuth grant to unverified app
Root / break-glass useuserIdentity.type = RootBreak-glass account sign-inSuper admin sign-in

Junior: first questions on a cloud alert

  1. Which identity? Human, role, service principal or key?
  2. From where? IP, ASN, region, user agent
  3. Is this normal for that identity in the last 30 days?
  4. What else did it do in the same session?

Expert: high-value hunts

  • Access keys used from two countries within an hour
  • Roles assumed by identities that never did before
  • API calls with AccessDenied bursts (permission probing)
  • Instance metadata credentials used outside the instance
5

Native findings to triage first (AWS GuardDuty examples)

JuniorMid

Defender for Cloud and Security Command Center raise equivalent alerts with their own names.

Finding typeMeans
UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWSInstance role credentials stolen and used elsewhere
Stealth:IAMUser/CloudTrailLoggingDisabledSomeone turned off the audit trail
CryptoCurrency:EC2/BitcoinTool.B!DNSAn instance is talking to mining infrastructure
Policy:S3/BucketBlockPublicAccessDisabledPublic-access block removed from a bucket
6

Queries

MidExpert

Field names follow the native schemas. Adapt them if your SIEM normalizes cloud logs.

CloudWatch Logs Insights · logging tampering
fields eventTime, eventName, userIdentity.arn,
       sourceIPAddress, awsRegion
| filter eventName in ["StopLogging", "DeleteTrail",
    "UpdateTrail", "PutEventSelectors", "DeleteDetector"]
| sort eventTime desc
Athena · console logins without MFA
SELECT eventtime, useridentity.arn, sourceipaddress
FROM cloudtrail_logs
WHERE eventname = 'ConsoleLogin'
  AND json_extract_scalar(additionaleventdata,
      '$.MFAUsed') = 'No'
ORDER BY eventtime DESC;
GCP Logging · owner role granted
protoPayload.methodName="SetIamPolicy"
protoPayload.serviceData.policyDelta.bindingDeltas.role="roles/owner"
protoPayload.serviceData.policyDelta.bindingDeltas.action="ADD"
KQL · Entra ID · illicit consent
AuditLogs
| where OperationName == "Consent to application"
| extend User = tostring(
           InitiatedBy.user.userPrincipalName)
| extend App = tostring(
           TargetResources[0].displayName)
| project TimeGenerated, User, App, Result
KQL · Global Administrator added
AuditLogs
| where OperationName == "Add member to role"
| where TargetResources has "Global Administrator"
| extend Actor = tostring(
           InitiatedBy.user.userPrincipalName)
| project TimeGenerated, Actor, TargetResources
7

Identity attacks in the cloud

JuniorMid
AttackWhat you seeResponse
MFA fatigueMany MFA push denials, then one approvalRevoke sessions; switch to number matching or FIDO2
Token theft (AiTM phishing)Sign-in from a new IP reusing a session, no MFA promptRevoke refresh tokens; require compliant device
Illicit consent grantNew app with Mail.Read, Files.ReadWrite.AllRemove the app and its grants; block user consent
Password sprayFailures across many users from a few IPsBlock IPs; enforce MFA and smart lockout
Leaked access keyKey used from an unknown IP or regionDeactivate the key; review everything it did

SaaS: Microsoft 365 / Google Workspace

  • New inbox rules forwarding outside the company
  • Mass file downloads from SharePoint, OneDrive or Drive
  • eDiscovery or content searches by unusual admins
  • External sharing links created in bulk
  • Admin role granted to a new account

Cloud logging pitfalls

  • Data-access logs (S3 data events, GCP Data Access) are off by default
  • Trails enabled in one region only
  • Logs stored in the same account an attacker controls
  • Retention shorter than your detection time
  • No alert when a log source goes silent
8

Landing-zone logging architecture

MidExpert

Logs flow one way, into an account production admins cannot touch. An attacker with admin in production still cannot erase the trail.

Organization / tenant rootguardrails: SCP, PolicyProductionworkloads, dataDevelopmentsandbox, CIShared servicesnetwork, identityLog archive accountwrite-only for workloadsimmutable, 1 year+ retentionSecurity tooling accountGuardDuty / Defender admin, SIEMSOC / SIEMalerts, hunting, casesall logs
9

Cloud incident response

MidExpert

Contain the identity first, then the resource. A deleted VM cannot be investigated.

DetectGuardDuty / SIEMScope identitywhat it touchedContaindisable keys, revokePreservesnapshots, log copyEradicateremove persistenceRecoverredeploy from IaC
10

Containment by provider

MidExpert
ProviderFast containment
AWSDeactivate access keys; attach a deny-all policy; revoke role sessions; isolate with a no-traffic security group; SCP deny at org level
AzureDisable the user, revoke sessions (Revoke-MgUserSignInSession); remove role assignments; NSG deny-all; disable the service principal
GCPDisable the service account and delete its keys; remove IAM bindings; VPC firewall deny; Organization Policy constraints
11

Posture quick wins

JuniorMid

Check monthly

  • Org-wide CloudTrail / Activity Log / audit logs to a separate log account
  • No root or global admin for daily work; FIDO2 on break-glass
  • Block public storage at the account or org level
  • IMDSv2 required on all AWS instances
  • Workload identity instead of long-lived keys
  • Guardrails: SCPs, Azure Policy, Org Policy
  • Benchmark with CIS Foundations; for KSA, map to NCA CCC
12

Cloud severity guide

Junior
SeverityExample
CriticalLogging disabled, root used, admin policy attached by an unknown identity
HighBucket made public with sensitive data; access key used from a new country
MediumNew OAuth app with broad scopes; GPU instances in an unused region
LowSingle failed console login; config drift on a dev account
Try it free threatai.net/ir-playbook includes a cloud account takeover playbook with containment steps and notification deadlines.

Key terms

Control plane
The provider's management API; every change to cloud resources is a logged call to it.
CloudTrail / Activity Log / Cloud Audit Logs
The control-plane logs of AWS, Azure and Google Cloud.
Log archive
A separate, protected account that stores logs the workloads cannot change.
OCSF
Open Cybersecurity Schema Framework: a common schema for security events and findings.
Privilege escalation path
Permissions that let an identity give itself more permissions.
CSPM
Cloud security posture management: continuous checks of configuration against benchmarks.

Hands-on lab

Premium This part is included in the Premium and Pro plans. Sign in or see the plans to continue.

Knowledge check

Answer all five questions, then check your answers. Each answer comes with a short explanation.

1An attacker copies data with a stolen access key. The best evidence is in:
2Entra ID sign-ins show 9 users failing from one IP, then one success. This is:
3Which permission lets an AWS user rewrite its own policy?
4A StopLogging call failed with AccessDenied. Severity?
5First response step for a compromised identity used in three clouds:

Further reading

Put it into practice

Use these ThreatAI tools to apply what you learned to your own environment.