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.
Topic: AI in Cybersecurity in Cybersecurity & Ethical Hacking · Explainer
Also covers: Incident Response & Digital Forensics, SOC & Blue Team, Cloud & Container Security
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?
- Which Signals Do AI Models Use?
- What Do Entra ID Protection and GuardDuty Detect?
- Why Is Token Theft Harder to Catch?
- How Should Risk Scores Drive Response?
- Where Does Identity Detection Fall Short?
- How Can a Team Start This Week?
- References
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?
| Signal | What looks unusual | Common false positive |
|---|---|---|
| Impossible or atypical travel | Two sign-ins too far apart for the time between them | Corporate VPN or mobile carrier egress |
| Unfamiliar sign-in properties | New device, browser, ASN or country for this user | New laptop, travel |
| Anonymous infrastructure | Tor or anonymising proxy addresses | Privacy tools used by staff |
| Leaked credentials | Password found in breach or infostealer data | Already rotated passwords |
| Anomalous API activity | Rare API calls, new regions, mass enumeration | Planned 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 level | Suggested action |
|---|---|
| Low | Log and include in weekly review |
| Medium sign-in risk | Require MFA step-up |
| High sign-in risk | Block and alert the SOC |
| High user risk | Revoke 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?
- Turn on phishing-resistant MFA for admins, guided by CISA SCuBA baselines.
- Enable identity risk policies in report-only mode, review, then enforce.
- Enable GuardDuty in every AWS account and region you use.
- Remove long-lived access keys where roles can replace them.
- 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
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0