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

In 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
Out of scope
  • 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

  1. Phase 1

    Collect and normalize

    Logs from the three clouds and the identity providers reach the SIEM, mapped to one schema.

  2. 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.

  3. 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.

  4. 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.

  5. 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

Difficulty

IAM roles, Entra ID and Google service accounts follow different identity models.

What we did

A common identity abstraction with one adapter per cloud, so playbooks reason about an identity and its permissions, not about a vendor object.

Difficulty

Containing a service account can stop a production workload.

What we did

Service accounts require their owner's approval and an impact check against the known dependencies. Break-glass accounts are excluded.

Difficulty

VPNs and corporate proxies triggered impossible-travel alerts all day.

What we did

Egress IP allow-lists and device context are part of the rule, which removed most of the noise before it reached an analyst.

05Results

MeasureBeforeAfter
Time to contain a compromised identityhours−70%
Playbooks to maintain3 (one per cloud)1
Cross-cloud timelineabout 2 h, by handautomatic
Actions approved and loggedpartial100%

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

Clouds
  • AWS CloudTrail
  • AWS GuardDuty
  • Azure Activity Logs
  • Defender for Cloud
  • Google Cloud audit logs
Identity
  • Entra ID
  • Okta
SIEM
  • Splunk
  • IBM QRadar
  • Microsoft Sentinel
Orchestration
  • Cortex XSOAR
  • Azure Logic Apps
  • Python

Related use cases

Want this result on your stack?

Book a call and leave with where I would start.