Cloud and identity threat response
Detections from AWS, Azure and Google Cloud and from the identity provider are investigated and contained with the same playbooks, so a stolen key or a hijacked session is handled the same way in every cloud.
- −70%time to contain a compromised identity
- 1playbook for AWS, Azure and Google Cloud
- 100%of actions approved and logged
01Framing the project
Cloud attacks move through identities: a leaked access key, a consent grant, a sign-in from an impossible location, a role assumed from an unusual place. The team had a solid runbook for one cloud and nothing comparable for the other two, and each cloud logged these events in its own format.
Objectives and success criteria
- Investigate and contain an identity compromise the same way in every cloud.
- Build a cross-cloud timeline without hunting through consoles.
- Protect production workloads from containment mistakes.
Scope
- AWS CloudTrail and GuardDuty, Azure Activity and Entra ID logs, Google Cloud audit logs
- Detections for identity abuse
- Investigation and containment playbooks
- Okta for the identity provider side
- Cloud posture management
- Identity governance and access reviews
- Network detections
02Starting point
- Cloud-specific runbooks
- 1 of 3 clouds
- Format of identity events
- 3 different ones
- Time to build a cross-cloud timeline
- about 2 h, by hand
- Time to contain a compromised identity
- hours
The slowest step was understanding what an identity had done across clouds. Containment itself was quick once the picture was clear.
03Design and integration
- Phase 1
Collect and normalize
Logs from the three clouds and the identity providers reach the SIEM, mapped to one schema.
- Phase 2
Detect identity abuse
Rules cover impossible travel, new MFA methods, privilege escalation, access keys used from new locations and service accounts acting outside their pattern.
- Phase 3
Investigate
The playbook gathers what the identity did in the last hours across clouds: sign-ins, API calls, resources touched, and how that compares with its baseline.
- Phase 4
Contain
With approval where required, it revokes sessions, disables the user or key, removes risky role assignments and applies a restrictive policy on the resource.
- Phase 5
Recover
The playbook tracks the follow-up: rotate secrets, review what was accessed, restore access and write the case summary.
04Difficulties we solved
IAM roles, Entra ID and Google service accounts follow different identity models.
A common identity abstraction with one adapter per cloud, so playbooks reason about an identity and its permissions, not about a vendor object.
Containing a service account can stop a production workload.
Service accounts require their owner's approval and an impact check against the known dependencies. Break-glass accounts are excluded.
VPNs and corporate proxies triggered impossible-travel alerts all day.
Egress IP allow-lists and device context are part of the rule, which removed most of the noise before it reached an analyst.
05Results
| Measure | Before | After |
|---|---|---|
| Time to contain a compromised identity | hours | −70% |
| Playbooks to maintain | 3 (one per cloud) | 1 |
| Cross-cloud timeline | about 2 h, by hand | automatic |
| Actions approved and logged | partial | 100% |
The same logic now applies in the three clouds, and the approval on service accounts protects production from containment mistakes.
06Guardrails in production
- Break-glass accounts are excluded from automatic containment.
- Containing a service account needs its owner's approval, because it can stop a production workload.
- Automation runs under least-privilege roles, one per cloud.
- Every action is logged with its input, its approver and its result.
07Stack

- AWS GuardDuty
- Azure Activity Logs
- Defender for Cloud
- Google Cloud audit logs
Entra IDOkta
Splunk

Microsoft Sentinel
Cortex XSOAR
- Azure Logic Apps
Python