Interactive vs. Non-Interactive Entra ID Sign-In Logs in Breach Investigations
Entra Interactive Sign-In logs record moments when a user actively enters a password or completes MFA, whereas Non-Interactive Sign-In logs capture silent OAuth refresh-token renewals by apps, scripts, and stolen AiTM sessions. Checking only Interactive logs often hides weeks of silent attacker mailbox access after an initial cookie replay.
Why This Artifact Matters in M365 Incident Response
One of the sharpest investigative traps in Microsoft Entra ID happens when a SOC analyst opens Entra ID -> Monitoring & health -> Sign-in logs, filters by the suspected employee over the past 7 days, sees only clean corporate office logins on the default Interactive tab, and closes the incident as a false positive.
Meanwhile, on the very next tab over—"User sign-ins (non-interactive)"—the attacker’s stolen refresh token is quietly minting fresh Exchange Online and Microsoft Graph access tokens every 60 minutes from a foreign VPS.
Whenever an OAuth client (Outlook, Teams, a browser with ESTSAUTHPERSISTENT, or an attacker script holding a stolen refresh token) trades an existing refresh token for a new short-lived access token, Entra ID logs that event exclusively in Non-Interactive User Sign-Ins (`isInteractive: false` in JSON, `AADNonInteractiveUserSignInLogs` in Sentinel).
Because Interactive sign-ins only happen when refresh tokens expire or Conditional Access forces re-authentication, an attacker who hijacked a long-lived session on Day 1 can operate for weeks entirely inside Non-Interactive telemetry—leaving zero Interactive footprint.
Step-by-Step Attack Reconstruction Timeline
Two weeks after a phishing campaign hit a sales organization, one rep’s account sends fraudulent invoices. Checking Interactive Sign-Ins over the past 7 days shows zero anomalies—the initial AiTM phishing happened 16 days prior.
When the DFIR responder exports both Interactive AND Non-Interactive Sign-In JSON via Microsoft Graph and drops them together into AuditVane, `isInteractive: false` rows immediately reveal silent hourly token refreshes from `194.26.135.210` (`axios/1.7.7`) running uninterrupted for 16 straight days.
Non-Interactive Token Refresh JSON Record from Stolen AiTM Session
{
"id": "nonint-7741",
"isInteractive": false,
"createdDateTime": "2026-12-08T03:40:12Z",
"userPrincipalName": "hr.lead@contoso-demo.invalid",
"appDisplayName": "Office 365 Exchange Online",
"resourceDisplayName": "Office 365 Exchange Online",
"ipAddress": "194.26.135.210",
"userAgent": "axios/1.7.7",
"sessionId": "d91c4e12-8b30-4f88-a2b1-901234abcdef",
"status": { "errorCode": 0 }
}
Notice `"isInteractive": false` and the 03:40 AM timestamp days after the original login—showing silent refresh-token renewal by `axios/1.7.7` reusing the same `sessionId`.
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
isInteractive = true (SigninLogs) | User actively typed password, FIDO2, or MFA prompt | Captures initial breach, AiTM lure & password sprays |
isInteractive = false (Non-Interactive) | Silent refresh token exchanged for access token | Reveals multi-day/week dwell time & cookie replay |
Service Principal Sign-Ins | Daemon app-only secret/certificate auth | Tracks compromised Enterprise Apps & Automation |
Managed Identity Sign-Ins | Azure VM/Function identity token fetches | Detects cloud VM pivot & lateral movement |
sessionId across both tabs | Shared session GUID linking Interactive -> Non-Interactive | Traces silent refreshes back to exact origin login |
status.errorCode = 70043 / 700082 | Token rejected due to CA frequency or revocation | Shows attacker retrying a killed stolen token |
Export Both Interactive & Non-Interactive Entra Sign-Ins via Microsoft Graph
Connect-MgGraph -Scopes "AuditLog.Read.All"
$upn = "hr.lead@domain.com"
$allSignIns = Get-MgAuditLogSignIn -Filter "userPrincipalName eq '$upn' and (signInEventTypes/any(t: t eq 'interactiveUser') or signInEventTypes/any(t: t eq 'nonInteractiveUser'))" -Top 1000
@{ value = $allSignIns } | ConvertTo-Json -Depth 10 | Out-File .\Entra_Interactive_Plus_NonInteractive.json -Encoding utf8
Sample Graph Query Breakdown
Interactive records exported: 42
Non-Interactive records exported: 618
Combined Entra JSON ready for AuditVane multi-rule triage.
Entra ID Sign-In Log Streams Compared
| Entra Sign-In Stream | Portal Tab / Sentinel Table | Why You Must Export It |
|---|---|---|
| Interactive User Sign-Ins | User sign-ins (interactive) / SigninLogs | Shows initial login, MFA prompt & phishing capture |
| Non-Interactive User Sign-Ins | User sign-ins (non-interactive) / AADNonInteractiveUserSignInLogs | Proves ongoing stolen cookie / refresh token reuse |
| Service Principal Sign-Ins | Service principal sign-ins / AADServicePrincipalSignInLogs | Catches rogue OAuth app secret usage (AV-005) |
| Managed Identity Sign-Ins | Managed identities / AADManagedIdentitySignInLogs | Catches Azure compute resource token abuse |
Step-by-Step Triage, Containment & Verification
- Never rely solely on the default Interactive Sign-ins blade when investigating suspected breaches.
- Use Microsoft Graph `Get-MgAuditLogSignIn` (filtering for both `interactiveUser` and `nonInteractiveUser`) or download both tabs in Entra Portal.
- Load all exported JSON files together into AuditVane so `AV-003`, `AV-006`, and `AV-009` evaluate Non-Interactive refreshes automatically.
- Check `isInteractive: false` rows in the Event Inspector and pivot on `sessionId` back to the original interactive login.
- Configure Azure Monitor Diagnostic Settings to archive `NonInteractiveUserSignInLogs` alongside `SigninLogs` into Sentinel or Storage.
How to Verify Containment Completed Cleanly
- Both Interactive and Non-Interactive sign-in tabs exported for the full 30-day Entra window.
- Every suspicious Non-Interactive IP correlated by sessionId.
- Zero active Non-Interactive errorCode 0 refreshes after Revoke-MgUserSignInSession.
Analyst Blind Spots, Licensing Quirks & False Positives
Remember that in Microsoft Graph v1.0, calling `Get-MgAuditLogSignIn` without explicitly filtering `signInEventTypes` returns Interactive sign-ins ONLY! Always include `nonInteractiveUser` in your `$filter` string.
Because Outlook and Teams refresh tokens constantly in the background, Non-Interactive logs can be 10x larger than Interactive logs—filter by target user or suspicious IPs when exporting.
Frequently Asked Questions
Does AuditVane parse Non-Interactive Entra Sign-In JSON exports?
Yes! AuditVane accepts Interactive, Non-Interactive, and Service Principal Entra JSON exports identically and merges them with Purview CSVs.
Why does Get-MgAuditLogSignIn skip Non-Interactive logs by default?
Microsoft Graph defaults to interactiveUser unless you explicitly specify `signInEventTypes/any(t: t eq 'nonInteractiveUser')` in the OData filter.
Can Conditional Access stop a stolen Non-Interactive refresh token?
Yes—Continuous Access Evaluation (CAE) and Sign-In Frequency Conditional Access rules force token re-evaluation when IP location, risk, or session revocation changes.
How long are Non-Interactive Sign-In logs retained?
30 days on Entra ID P1/P2 (same as Interactive logs) unless streamed to Sentinel or Storage.