Entra ID & AiTM Detection · T1078 / Identity Risk

Entra ID Identity Protection Risk Levels & Risk Detections in Sign-In Logs

Direct Answer (Key Forensic Takeaway)

Microsoft Entra ID embeds automated threat intelligence verdicts directly inside Sign-In JSON exports via riskLevelDuringSignIn, riskLevelAggregated, and riskEventTypes_v2—surfacing anonymousIPAddress, unfamiliarFeatures, impossibleTravel, and AiTM token anomalies. AuditVane rule AV-006 automatically elevates medium and high risk sign-ins for immediate review.

Architecture & Telemetry Context

Before running a single external IP reputation lookup, check what Microsoft’s own threat intelligence already flagged inside your exported Entra Sign-In JSON. Entra ID Identity Protection continuously scores authentications against Tor/proxy exits, leaked credential dumps, and AiTM phishing fingerprints—storing those risk flags right inside each sign-in event.

Knowing how to read `riskLevelDuringSignIn` vs. `riskLevelAggregated`, `riskState`, and `riskEventTypes_v2` separates noisy low-confidence alerts from urgent live takeovers.

Pay close attention to the distinction between `riskLevelDuringSignIn` (computed synchronously in real time at the millisecond of login) and `riskLevelAggregated` (which merges real-time risk with asynchronous offline detections computed minutes or hours later, such as impossible travel, malware-linked IPs, or confirmed AiTM token anomalies).

Even in tenants holding Entra ID P1 (which lacks automated risk-based Conditional Access blocking included in P2), Entra still logs many risk detections in JSON—meaning P1 organizations often show `riskLevelDuringSignIn: "high"` alongside `status.errorCode: 0` unless an analyst checks the logs!

1. RAW TELEMETRY Entra ID & AiTM Detection T1078 / Identity Risk 2. CLIENT-SIDE PARSE AuditVane Engine riskLevelDuringSignIn riskEventTyp 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for riskLevelDuringSignIn riskEventTypes_v2 Entra (T1078 / Identity Risk)
AdSense-Ready In-Article Placement

Real-Time vs. Offline Entra Risk Detections

Risk Field / TimingWhen It UpdatesKey Forensic Consideration
riskLevelDuringSignInSynchronously at login timeCan read "none" on brand-new proxy before offline models score it
riskLevelAggregatedReal-time + offline (minutes to hours later)Always re-export logs slightly later if initial risk was "none"
riskState = confirmedCompromisedAdmin or automated Identity Protection verdictPassword + token revocation mandatory
Entra P1 vs. Entra P2P1 logs basic detections; P2 adds full offline + Risk CAP1 tenants MUST actively monitor logs since CA cannot auto-block by Risk

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
riskLevelDuringSignInReal-time risk score evaluated at loginFlagged High by AuditVane AV-006 if medium/high
riskLevelAggregatedCombined real-time + offline delayed scoreOften rises to high after offline AiTM correlation
riskStateatRisk, confirmedCompromised, dismissed, remediatedatRisk requires immediate analyst review
riskEventTypes_v2: anonymizedIPAddressTor, anonymous VPN, or proxy exit IPStrong AiTM & credential-stuffing indicator
riskEventTypes_v2: unfamiliarFeaturesAnomalous IP, ASN, browser, & device mixClassic post-phish session replay signature
riskEventTypes_v2: mcasImpossibleTravelDefender for Cloud Apps rapid geo-velocityCross-check ASN & UserAgent (AV-003/AV-009)

Entra Sign-In Risk Detections Array

{
  "createdDateTime": "2026-12-02T14:11:18Z",
  "userPrincipalName": "hr.lead@contoso-demo.invalid",
  "ipAddress": "194.26.135.210",
  "riskLevelDuringSignIn": "high",
  "riskLevelAggregated": "high",
  "riskState": "atRisk",
  "riskEventTypes_v2": ["anonymizedIPAddress", "unfamiliarFeatures"],
  "status": { "errorCode": 0 }
}

Both real-time and aggregated risk read high, riskState sits atRisk, and riskEventTypes_v2 specifies anonymizedIPAddress + unfamiliarFeatures—yet errorCode is 0 because existing CA policies did not block medium/high sign-in risk.

Query Risky Users & Detections via Microsoft Graph & KQL

Connect-MgGraph -Scopes "IdentityRiskEvent.Read.All","IdentityRiskyUser.Read.All"
Get-MgRiskDetection -Filter "riskLevel eq 'high'" -Top 100 | Format-Table ActivityDateTime, UserPrincipalName, RiskEventType, IpAddress, DetectionTimingType

// Sentinel KQL:
SigninLogs | where RiskLevelDuringSignIn in ("high","medium") or RiskLevelAggregated in ("high","medium")
| project TimeGenerated, UserPrincipalName, IPAddress, RiskLevelDuringSignIn, RiskLevelAggregated, RiskEventTypes_V2, ResultType

Sample Risk Detection Query Output

ActivityDateTime     UserPrincipalName             RiskEventType        IpAddress       DetectionTimingType
----------------     -----------------             -------------        ---------       -------------------
2026-12-02T14:11:18Z hr.lead@contoso-demo.invalid  anonymizedIPAddress  194.26.135.210  realtime

Real-World Incident Walkthrough

An organization licensed on Microsoft 365 Business Premium (Entra ID P1) exports Sign-In JSON during an email fraud investigation. Because P1 doesn’t auto-remediate high-risk sign-ins via Conditional Access, the attacker logged straight in with `errorCode: 0`.

Loading the JSON into AuditVane triggers `AV-006` immediately on three rows carrying `riskLevelDuringSignIn: "high"` and `riskEventTypes_v2: ["anonymizedIPAddress", "unfamiliarFeatures"]`—pinpointing the exact compromise window in one click.

Step-by-Step Triage, Containment & Verification

  1. Drop Entra Sign-In JSON exports into AuditVane and click AV-006 detections to isolate medium and high risk authentications.
  2. Open the Event Inspector to inspect `riskEventTypes_v2` and `riskState` alongside `userAgent` and `deviceDetail`.
  3. Prioritize any `riskLevelDuringSignIn: high` or `confirmedCompromised` event that returned `errorCode: 0`.
  4. Revoke user sessions (`Revoke-MgUserSignInSession`), reset credentials, and inspect Exchange/SharePoint UAL logs.
  5. Only click "Dismiss user risk" or "Confirm user safe" in Entra Protection after verbally verifying the sign-in with the employee—dismissing resets Identity Protection risk scores.
  6. On Entra ID P2 tenants, configure Risk-Based Conditional Access requiring Password Change + MFA on High User Risk and Phishing-Resistant MFA on Medium/High Sign-In Risk.

How to Verify Containment Completed Cleanly

  • All atRisk and high riskLevelDuringSignIn users triaged and confirmed.
  • Compromised accounts explicitly marked Confirm compromised (or remediated) rather than dismissed prematurely.
  • Sign-in risk Conditional Access policies enabled where Entra P2 is licensed.

Analyst Blind Spots, Licensing Quirks & False Positives

Clicking "Confirm user safe" prematurely in Entra ID Identity Protection clears `atRisk` status and tells Microsoft’s ML models that the attacker IP/behavior was benign—always confirm with the real employee first.

Remember that `Entra ID P1` / Business Premium tenants do NOT support Risk-Based Conditional Access policies, making active log inspection via Sentinel or AuditVane essential.

Frequently Asked Questions

Why does riskLevelAggregated sometimes differ from riskLevelDuringSignIn?

Offline threat intelligence detections (such as delayed AiTM correlation, impossible travel, or leaked credential matches) update riskLevelAggregated asynchronously after login.

What does riskState = confirmedCompromised mean?

Either an analyst or Identity Protection marked the identity confirmed breached—requiring credential reset and token revocation before resuming access.

Does AuditVane flag Identity Protection risk levels automatically?

Yes, rule AV-006 flags both medium and high riskLevelDuringSignIn and riskLevelAggregated entries.

What triggers anonymizedIPAddress?

Microsoft detects known Tor nodes, commercial anonymous VPN endpoints, and abused proxy infrastructure.

Related Forensics Guides