Cloud Identity Forensics

Azure and Entra ID ForensicsIdentity Evidence in Cloud Breach Investigations

In a cloud environment, identity is the perimeter and identity logs are the crime scene. Entra ID records who authenticated, from where, under what policy, and what changed in the directory afterward. Those records have short default retention, which is why cloud identity evidence is preserved in the first hours or not at all.

Updated August 2026 · Reviewed by Elite Digital Forensics examiners · Nationwide breach response

7 to 30 daysCommon default retention for Entra ID sign in and audit log data depending on license tier.
90 daysDefault retention for Azure activity log events describing control plane operations on resources.
Consent persistsAn attacker consented application keeps access through password resets and multifactor changes.

Quick answer

Entra ID forensics reconstructs a cloud intrusion from identity records: sign in logs showing every authentication and its conditional access result, audit logs showing directory changes such as new authentication methods and role assignments, consent grants showing applications given standing access, and Azure activity logs showing what was done to resources. Default retention is short, commonly 7 to 30 days for identity logs, so exporting to a log analytics workspace or an evidence store is the first preservation step.

Common questions, answered in one line

QuestionOne line answer
How long are Entra ID sign in logs kept?Commonly 7 days on lower tiers and 30 days with premium licensing unless exported.
Can we see which resources an intruder touched?Yes, through Azure activity logs for control plane operations, retained about 90 days by default.
Does resetting the password evict the attacker?No. Sessions, refresh tokens, and consented applications must be addressed separately.
What is the most common cloud persistence?Added authentication methods, consented OAuth applications, and new privileged role assignments.
Do conditional access records help?Yes. They show which policy applied and whether it blocked, granted, or was not evaluated.
Can logs be extended retroactively?No. Diagnostic export must be configured before the events occur.

Key terms defined

TermWhat it means
Entra IDMicrosoft cloud identity service, formerly Azure Active Directory, that authenticates users to Microsoft 365 and Azure resources.
Sign in logRecord of each authentication attempt with user, application, address, device, conditional access outcome, and risk state.
Audit logRecord of directory changes such as user creation, role assignment, and authentication method registration.
Conditional accessPolicy engine that evaluates conditions before allowing a sign in, with per attempt results recorded in the sign in log.
Service principalThe identity an application uses. Attacker created or hijacked service principals are a common durable backdoor.
Activity logAzure subscription record of control plane operations performed against resources.

The Azure and Entra ID sources that carry the evidence

Cloud investigations differ from endpoint work in one crucial respect: you cannot image the provider. Everything depends on logs the provider chose to record and the tenant chose to retain, which makes source inventory the first analytical task.

SourceWhat it provesDefault retention
Interactive sign in logsWho authenticated, from where, on what device, under which policyRoughly 7 days without premium licensing, 30 days with it
Non interactive and service principal sign insToken based and application authentications that bypass user promptsSame tiered window as interactive sign ins
Directory audit logsRole assignments, new users, authentication method changes, policy editsRoughly 7 to 30 days by tier
Consent and application grantsApplications granted standing access to mail, files, or directory dataRecorded in audit logs, so subject to the same window
Azure activity logControl plane operations against subscriptions and resourcesAbout 90 days unless exported
Resource diagnostic logsData plane activity such as storage access, only if enabledOnly what the tenant configured in advance
Identity protection risk eventsRisky sign in and risky user detections with reasoningTier dependent, generally aligned with sign in log retention

Export architecture decides the ceiling

Tenants that stream identity logs to a log analytics workspace, a storage account, or a SIEM have a year or more of history available when an incident is discovered. Tenants relying on portal defaults typically have days. Since discovery frequently lags intrusion by months, that configuration choice usually determines whether root cause can be established at all.

Attacker techniques and the artifacts each one leaves

Cloud intrusions follow recognizable patterns. Knowing the artifact each technique produces lets an examiner search precisely rather than trawling millions of authentication records.

Token theft and replay

A sign in with multifactor recorded as satisfied from an unfamiliar address and device, with no corresponding user prompt.

MFA method injection

An audit record showing a new phone, app, or key registered on the account shortly after a successful sign in.

Illicit consent grant

A consent event tying a new application to broad mail or file permissions, often with an innocuous display name.

Service principal abuse

New credentials added to an existing application, giving non interactive access that no user password reset affects.

Role escalation

Audit entries assigning privileged directory roles, sometimes to a newly created account with a plausible name.

Federation and policy tampering

Changes to federation settings, trusted domains, or conditional access exclusions that quietly disable protection.

Correlating identity with endpoint and data layers

Identity evidence establishes access. It does not by itself establish what data was reached. A complete finding correlates the Entra ID timeline with mailbox audit records, storage access logs, and endpoint telemetry so that each authenticated session is tied to the operations it performed.

Identity logs expire in days, not months

If a cloud tenant compromise is suspected, we can preserve identity and activity records before the default window closes.

What to export first, in order

Preservation in a cloud tenant is a sequence of exports, each with its own expiry pressure. The order below reflects which sources disappear soonest and which carry the most analytical weight.

  1. Interactive and non interactive sign in logs for the full available window, tenant wide rather than only for suspected accounts.
  2. Directory audit logs, capturing authentication method changes, role assignments, and application consents.
  3. Application and service principal inventory with credentials, permissions, and creation dates.
  4. Conditional access policy configuration as it existed at the time, plus any change history.
  5. Azure activity logs for every subscription in scope, along with any enabled resource diagnostic logs.
  6. Unified audit log content for mailbox and file activity tied to the affected identities.
  7. A documented snapshot of tenant configuration, including licensing, so the examiner can state what was and was not being recorded.

Containment steps that do not destroy evidence

Revoke sessions and refresh tokens, disable rather than delete suspicious accounts, and export application and rule definitions before removing them. Deleting an attacker created service principal without capturing it first removes the clearest proof of the persistence mechanism.

What matters most

  • Export configuration made before the incident, which sets the ceiling on how far back the investigation can see.
  • Tenant wide scoping, since attacker activity rarely stays confined to the account that was reported.
  • Non interactive sign ins, which are frequently overlooked and are where token replay appears.
  • Application and service principal review, because consented access survives every credential reset.
  • Correlation with data layer logs, since identity records alone do not establish what was accessed.

Common misconceptions

Microsoft keeps all our logs indefinitely

Identity log retention is measured in days to weeks by tier, and expired data cannot be recovered.

Conditional access means we cannot be compromised

Policy gaps, excluded accounts, and legacy protocol paths are routinely exploited, and the logs show it.

Multifactor satisfied means the real user signed in

Replayed session tokens present as fully satisfied authentications from the provider perspective.

We disabled the account, so it is contained

Refresh tokens and consented applications can continue functioning until explicitly revoked.

When this applies, and when it does not

This applies when

  • Unusual sign in activity, unfamiliar applications, or unexpected role assignments appear in your tenant.
  • A mailbox or file compromise needs to be traced back to the authentication that enabled it.
  • A carrier, regulator, or customer requires an independent cloud intrusion analysis.
  • You need to know whether an intruder retains access to the tenant.

This does not apply when

  • The environment is entirely on premises with no cloud identity component.
  • All identity log retention has expired and no export was ever configured, which sharply limits findings.
  • The question concerns a single endpoint with no tenant involvement.
  • The issue is a licensing or billing dispute rather than a security event.

Cloud identity log retention compared

Log typeDefault windowExtension pathInvestigative value
Entra ID sign in logsAbout 7 to 30 days by tierDiagnostic settings to a log analytics workspace or storageHighest for access and session bounding
Entra ID audit logsAbout 7 to 30 days by tierSame diagnostic export pathHighest for persistence and privilege change
Azure activity logAbout 90 daysExport to workspace, storage, or event hubHigh for resource level actions
Resource diagnostic logsOnly if configuredMust be enabled per resource in advanceEssential for data plane access questions
Microsoft SentinelConfigurable, commonly 90 days interactiveLong term and archive tiersBest consolidated timeline source when present

How Elite Digital Forensics helps

We investigate cloud tenant compromises for businesses, outside counsel, and carriers. Our examiners preserve identity evidence before it expires, reconstruct every unauthorized session, and identify the persistence that would otherwise survive remediation.

Emergency identity preservation

Tenant wide export of sign in, audit, consent, and activity records with documented methodology and hashing.

Intrusion timeline reconstruction

A bounded account by account timeline of unauthorized authentication and directory change.

Persistence hunting

Review of applications, service principals, authentication methods, and role assignments for attacker controlled access.

Data access correlation

Linking identity sessions to mailbox, file, and storage operations to establish what was actually reached.

Configuration and readiness review

Assessment of diagnostic export, conditional access, and consent policy so the next incident is investigable.

Expert reporting and testimony

Findings written for counsel, carriers, and regulators, supported by court qualified examiners.

Problems we solve

  • You see suspicious sign ins but cannot tell what the intruder did afterward.
  • Remediation has been performed twice and the intruder keeps returning.
  • A regulator or carrier wants an independent determination of cloud tenant compromise scope.
  • You need to know whether an unfamiliar application has standing access to your data.
  • Your identity logs are about to expire and nothing has been exported.

Talk with a forensic examiner about your incident

Consultations are confidential. We work directly with affected businesses, with outside counsel, and with cyber insurance carriers and brokers nationwide.

About Elite Digital Forensics

Elite Digital Forensics is an independent digital forensics firm serving businesses, attorneys, and insurers nationwide. Our examiners include former law enforcement forensic examiners who have testified as court qualified expert witnesses in state and federal proceedings. We do not sell security software and we do not manage client networks, so our findings carry no conflict of interest when the question is whether an environment was adequately secured.

Every engagement follows documented chain of custody, defensible acquisition methods, and reporting written for attorney review, insurer submission, regulator response, or courtroom use. Work performed at the direction of counsel is generally treated as attorney work product prepared in anticipation of litigation. Call (833) 292-3733 or request a confidential consultation.

Frequently asked questions

How long does Microsoft keep Entra ID sign in logs?

Retention depends on licensing and commonly runs from about 7 days at lower tiers to 30 days with premium licensing. Longer history requires diagnostic settings that stream logs to a log analytics workspace, storage account, or SIEM, and that configuration cannot be applied retroactively.

Can you prove what an attacker accessed in Azure?

Identity logs establish authentication and directory change. Proving what data was reached requires the Azure activity log for control plane operations plus resource level diagnostic logs for data plane access, and the latter only exist if they were enabled in advance.

Why does the intruder keep getting back in after we reset passwords?

The usual causes are an attacker registered authentication method, a consented OAuth application, added credentials on a service principal, or a valid refresh token that was never revoked. Each of these survives a password reset and has to be identified and removed individually.

What is an illicit consent grant?

It is an attack in which a user is persuaded to approve an application that requests broad permissions to mail, files, or directory data. Once consented, the application holds access independent of the user password and multifactor settings, which makes it a durable and frequently missed backdoor.

Do we need Microsoft Sentinel to investigate a cloud breach?

It is not required, but tenants that stream identity and activity logs into Sentinel or an equivalent platform routinely have a year or more of searchable history. Without that, the investigation is limited to whatever remains inside the short default retention windows.

What should we export first if we only have a few hours?

Interactive and non interactive sign in logs tenant wide, directory audit logs, the application and service principal inventory with permissions and credentials, and conditional access configuration. Those four cover access, persistence, and the policy context needed to interpret both.

References and authoritative sources

  1. Microsoft Entra ID, How long does Microsoft keep activity report data — https://learn.microsoft.com/entra/identity/monitoring-health/reference-reports-data-retention
  2. Microsoft, Azure Monitor Activity Log — https://learn.microsoft.com/azure/azure-monitor/essentials/activity-log
  3. Microsoft Sentinel, Log retention plans and data management — https://learn.microsoft.com/azure/sentinel/log-plans
  4. Microsoft Purview, Manage audit log retention policies — https://learn.microsoft.com/purview/audit-log-retention-policies
  5. CISA, Implementing Phishing Resistant MFA — https://www.cisa.gov/resources-tools/resources/implementing-phishing-resistant-mfa
  6. NIST SP 800-61 Rev. 3, Incident Response Recommendations (April 2025) — https://csrc.nist.gov/pubs/sp/800/61/r3/final

#DigitalForensics #ComputerForensics #CellPhoneForensics #ExpertWitness #DigitalForensicExperts #EliteDigitalForensics #ForensicInvestigation #DataBreachResponse #DataBreachInvestigation #IncidentResponse #CyberForensics #Azure #EntraID #CloudForensics #IdentitySecurity

This content is for educational and informational purposes only and does not constitute legal advice. Elite Digital Forensics provides independent digital forensic services and expert witness testimony; we do not provide legal representation. Every case is fact specific; outcomes depend on the evidence, jurisdiction, and counsel. Retain qualified legal counsel for advice about your matter.

Assistant Icon Elite Digital Forensics Assistant
πŸ‘‹ Live Chat Now!
Free Virtual Consultation 24/7
Chat Now!

By submitting this form, you consent to be contacted by email, text, or phone. Your information is kept secure and confidential. Reply Stop to opt out at anytime.Β 

IMPORTANT: Please remember to check your spam or junk folder