AI for Cloud Identity Threats: Impossible Travel to Token Theft

Most cloud breaches start with an account, not an exploit. AI and statistical models help by learning how each user and workload normally signs in, then flagging departures such as impossible travel, unfamiliar devices, anomalous token use or API calls from unusual places. Microsoft Entra ID Protection scores user and sign-in risk, and Amazon GuardDuty flags credential misuse in AWS.

Feb 27, 2025 - 16:08
Updated: 
101.7k

AI in Cybersecurity in Cybersecurity & Ethical Hacking · Explainer

Incident Response & Digital Forensics, SOC & Blue Team, Cloud & Container Security

AI for Cloud Identity Threats: Impossible Travel to Token Theft

Quick answer: Most cloud breaches start with an account, not an exploit. AI and statistical models help by learning how each user and workload normally signs in, then flagging departures such as impossible travel, unfamiliar devices, anomalous token use or API calls from unusual places. Microsoft Entra ID Protection scores user and sign-in risk, and Amazon GuardDuty flags credential misuse in AWS. These signals work best when they trigger an automatic action, such as forcing MFA or revoking sessions. They do not replace phishing-resistant MFA, short token lifetimes and least privilege, and stolen session tokens can still look normal.

Key takeaways

  • Identity is the main attack path in cloud environments, so identity signals matter most.
  • Models score risk from location, device, timing and behaviour baselines.
  • Token theft bypasses passwords and MFA, so detection must watch session use too.
  • Risk scores need policies: block, step-up MFA or revoke sessions.
  • False positives from VPNs and travel are common; tune before enforcing.

Table of Contents

Why Is Identity the Main Cloud Attack Path?

In cloud services, the control plane is reached through an identity. An attacker who holds a valid password, access key or session token can often do everything that identity is allowed to do. MITRE ATT&CK tracks this as T1078.004, Valid Accounts: Cloud Accounts. Because the login is technically valid, the defender has to spot that the behaviour around it is wrong.

Which Signals Do AI Models Use?

SignalWhat looks unusualCommon false positive
Impossible or atypical travelTwo sign-ins too far apart for the time between themCorporate VPN or mobile carrier egress
Unfamiliar sign-in propertiesNew device, browser, ASN or country for this userNew laptop, travel
Anonymous infrastructureTor or anonymising proxy addressesPrivacy tools used by staff
Leaked credentialsPassword found in breach or infostealer dataAlready rotated passwords
Anomalous API activityRare API calls, new regions, mass enumerationPlanned migrations

Models build a baseline per user, per tenant and sometimes per peer group, then score how far a new event departs from it.

What Do Entra ID Protection and GuardDuty Detect?

Microsoft documents a list of risk detections in Entra ID Protection, including atypical travel, anonymous IP address, unfamiliar sign-in properties, leaked credentials and anomalous token. They roll up into sign-in risk and user risk levels that Conditional Access can act on. Some detections run in real time and others offline.

On AWS, Amazon GuardDuty finding types include anomalous behaviour by IAM users and credential exfiltration findings, where instance credentials are used from outside AWS. Both vendors change detection names over time, so check the current docs.

Why Is Token Theft Harder to Catch?

After a user signs in with MFA, the service issues tokens. If malware or an adversary-in-the-middle phishing kit steals them, the attacker can replay them without a password or MFA prompt. ATT&CK covers this under T1528 and T1550.001. Replay from the same city or a residential proxy may look normal. Controls that help include token protection, which binds tokens to a device where supported, and Continuous Access Evaluation, which lets revocation take effect quickly.

How Should Risk Scores Drive Response?

Risk levelSuggested action
LowLog and include in weekly review
Medium sign-in riskRequire MFA step-up
High sign-in riskBlock and alert the SOC
High user riskRevoke sessions, reset password, review mailbox rules and app consents

A useful hunting query in Microsoft Sentinel lists risky sign-ins for review:

SigninLogs
| where RiskLevelDuringSignIn in ("medium", "high")
| project TimeGenerated, UserPrincipalName, IPAddress, Location, RiskEventTypes_V2
| order by TimeGenerated desc

Where Does Identity Detection Fall Short?

  • Service principals and access keys have thinner baselines than human users.
  • New tenants and new users have little history to learn from.
  • Attackers use residential proxies near the victim to avoid travel alerts.
  • Scores are only as good as log coverage; missing logs mean blind spots.

How Can a Team Start This Week?

  1. Turn on phishing-resistant MFA for admins, guided by CISA SCuBA baselines.
  2. Enable identity risk policies in report-only mode, review, then enforce.
  3. Enable GuardDuty in every AWS account and region you use.
  4. Remove long-lived access keys where roles can replace them.
  5. Keep sign-in logs for 180 days to meet CERT-In directions.

For posture issues behind these alerts, see how AI supports cloud posture management, and for the access model, zero trust explained. For hands-on practice, ask about cloud security training.

References

Frequently Asked Questions

It flags two sign-ins from the same account at locations too far apart to reach in the time between them, which can indicate shared or stolen credentials.

Not fully. Tokens are issued after MFA, so a stolen token can be replayed. Token binding, short lifetimes and quick revocation reduce that risk.

A Microsoft Entra feature that scores sign-in risk and user risk from documented detections and lets Conditional Access policies act on those scores.

Amazon GuardDuty analyses AWS logs and raises findings such as anomalous IAM behaviour and instance credentials used from outside AWS.

VPNs, mobile networks, travel and new devices all change sign-in properties, so models need tuning and report-only testing before enforcement.

Partly. Workload identities have fewer behaviour signals than people, so least privilege and key removal matter more for them.

CERT-In directions of April 2022 require service providers and organisations to keep ICT system logs for 180 days within India.

No. It is one layer that needs phishing-resistant MFA, least privilege, log coverage and a tested response process behind it.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.