Incident Investigation
Session Cookie Theft Investigation: Detecting Account Takeover Without a New Login
Identity Compromise / Session Hijacking

Multiple failed login attempts followed by a successful login can indicate a brute-force attack, password guessing, credential stuffing, or an employee repeatedly entering an incorrect password. The successful authentication makes the sequence particularly important because it may indicate that an attacker eventually obtained valid credentials. However, this pattern alone does not confirm a compromise. A SOC analyst must investigate the source IP address, targeted account, authentication method, device information, login location, and activity following the successful authentication. The objective is to determine whether the event represents legitimate user behaviour, suspicious authentication activity, or a confirmed account compromise.

Imagine a SOC analyst receives an alert showing that an account experienced 18 failed login attempts within five minutes, followed by a successful login from the same IP address.
At first, the activity might resemble an employee who repeatedly entered an incorrect password. However, the analyst notices that the successful login occurred from an unfamiliar location and was followed by access to sensitive resources.
The sequence raises an important question: did the legitimate user finally authenticate, or did an attacker eventually guess or obtain the correct credentials?
This is a common authentication investigation scenario in a Security Operations Centre (SOC).
Failed logins are normal in many environments. What matters is the pattern, the context, and the activity that follows.
Multiple failed authentication attempts followed by a successful login can be associated with several different scenarios.
An attacker repeatedly tries different password combinations against an account or authentication service.
If one attempt succeeds, the attacker may have discovered a valid password. The risk increases when the account has excessive privileges or lacks appropriate authentication protections.
An attacker attempts a small number of commonly used passwords against many accounts to avoid triggering account-specific lockout thresholds.
Investigators may observe failures across multiple users, sometimes followed by a successful login for one account.
An attacker uses username-password combinations obtained from previous data breaches or other sources.
Because some users reuse passwords across services, previously exposed credentials may work against another account.
An employee may mistype a password several times before entering it correctly. Expired passwords, saved credentials, or an application repeatedly attempting authentication can also generate failures.
An attacker may already possess a valid password and use several failed attempts while testing access, followed by a successful authentication.
The distinction is important: the same alert pattern can represent different underlying causes. Analysts must use supporting evidence before classifying the incident.
A suspicious authentication sequence can be understood through the following stages.
Stage 1: Repeated authentication failures
The account or service records multiple unsuccessful login attempts. These may originate from one IP address, several addresses, or different devices.
Stage 2: Pattern development
The analyst or detection rule identifies a concentration of failures within a defined time window.
Stage 3: Successful authentication
A subsequent login succeeds. This could be a legitimate user or an attacker using a valid password or another authentication method.
Stage 4: Post-authentication activity
The authenticated session may access email, applications, files, administrative tools, or other resources.
Stage 5: Impact assessment
The investigation determines whether the session was legitimate, whether an account was compromised, and whether any unauthorised activity occurred.
A successful login should therefore be treated as a point requiring further investigation, not automatic proof that an attack succeeded.
A structured investigation should establish who authenticated, where the attempts originated, why they failed, and what happened after the successful login.
Review the detection details and establish:
Username and account type.
Number of failed attempts.
Time between the first failure and successful login.
Source IP addresses.
Authentication protocol or application.
Device and user-agent information, where available.
Successful login timestamp.
Any associated security alerts.
Check whether the alert was generated by a SIEM correlation rule, identity protection service, endpoint product, or cloud security platform.
Investigate the source IP using approved threat-intelligence and reputation tools.
Check whether it is associated with known malicious activity, hosting infrastructure, a VPN, a proxy, or a corporate network.
Consider whether the IP has attempted to authenticate against other accounts.
Important: A suspicious reputation score or a foreign IP address does not independently prove malicious activity. VPNs, mobile networks, shared corporate gateways, and legitimate travel can produce unfamiliar source locations.
Determine whether the failures target a single account or multiple accounts.
Look for:
A high volume of failures in a short period.
Repeated attempts from one source.
Attempts distributed across many IP addresses.
Similar password-spray patterns against multiple users.
Repeated failures against privileged accounts.
Authentication attempts outside the user's normal activity window.
Compare the pattern with the organisation's authentication baseline and existing detection thresholds.
Examine the successful authentication event in detail.
Determine whether the source IP, device, user agent, authentication method, and location are consistent with the user's normal behaviour.
Review multifactor authentication results, conditional access decisions, and risk indicators where the identity platform provides them.
A successful password authentication does not necessarily mean multifactor authentication was completed, nor does it establish that the account owner initiated the session.
This is one of the most important stages of the investigation.
Look for activity such as:
Access to sensitive files or mailboxes.
Unusual downloads or data access.
New mailbox forwarding rules.
Changes to authentication methods.
Creation of new application consent grants.
Privilege escalation or administrative changes.
Additional failed and successful logins.
Unexpected access to other systems.
Correlate timestamps across identity, endpoint, email, and cloud audit logs.
If no suspicious activity is identified, document the evidence and limitations rather than assuming the account is either compromised or completely safe.
Use the combined evidence to classify the incident.
Likely legitimate activity: The user confirms the attempts, the device and location are expected, and the surrounding activity matches normal behaviour.
Suspicious authentication: The login pattern is unusual, but evidence is insufficient to establish whether the successful session was malicious.
Confirmed compromise: There is reliable evidence of unauthorised access, such as a confirmed attacker-controlled session, unauthorised account changes, or malicious post-login activity.
The classification should reflect the evidence available at the time and be updated as the investigation progresses.
If compromise is confirmed or strongly suspected, follow the organisation's incident response procedures.
Actions may include:
Revoking active sessions and refresh tokens where supported.
Resetting compromised credentials.
Reviewing and removing unauthorised authentication methods.
Enforcing multifactor authentication.
Blocking confirmed malicious infrastructure.
Disabling or restricting the account when necessary.
Investigating other accounts targeted by the same source.
Coordinate with the identity and infrastructure teams to ensure that containment does not unintentionally disrupt critical services.
For Windows environments, authentication investigations may involve several Security event IDs.
| Event ID | Meaning | Investigation value |
|---|---|---|
| 4624 | Successful logon | Identify the successful session and its logon details |
| 4625 | Failed logon | Investigate failed authentication attempts and failure reasons |
| 4648 | Logon using explicit credentials | Investigate activity involving explicitly supplied credentials |
| 4672 | Special privileges assigned to a new logon | Identify sessions associated with special privileges |
| 4768 | Kerberos authentication ticket requested | Investigate Kerberos authentication activity |
| 4769 | Kerberos service ticket requested | Examine service-ticket activity following authentication |
| 4771 | Kerberos pre-authentication failed | Investigate certain failed Kerberos authentication attempts |
| 4776 | NTLM credential validation | Investigate NTLM authentication validation activity |
Event availability depends on the system, authentication method, audit policy, and log source.
These events provide evidence, but none independently confirms an account compromise. Correlate them with the relevant user, source, host, timestamps, and surrounding activity.
The following examples illustrate how an analyst could begin investigating the sequence. Field names and syntax may need to be adapted to the organisation's data model.
index=wineventlog (EventCode=4624 OR EventCode=4625)
| eval Result=if(EventCode=4624,"Success","Failure")
| table _time host user src_ip EventCode Result Logon_Type
| sort 0 _timeThis query provides a chronological view of Windows successful and failed logon events where the relevant fields are extracted.
index=wineventlog EventCode=4625
| stats count as FailedAttempts
dc(user) as TargetedUsers
values(user) as Users
by src_ip
| sort - FailedAttemptsThis helps identify sources associated with a high number of failed logons or attempts against multiple users.
A high count may indicate suspicious activity, but shared gateways, scanners, and misconfigured applications must also be considered.
For Microsoft Entra ID sign-in data available in the SigninLogs table:
SigninLogs
| where TimeGenerated > ago(24h)
| project TimeGenerated,
UserPrincipalName,
IPAddress,
ResultType,
AppDisplayName,
Location,
UserAgent
| order by TimeGenerated descThis provides a starting point for reviewing recent sign-in events. In this table, successful and failed outcomes can be distinguished using ResultType; confirm the schema and outcome conventions in your environment.
To investigate a particular account, add a filter for its UserPrincipalName and correlate the relevant events around the alert time.
Investigation tip: Start with the alert's exact time window, then expand the search to earlier and later activity. The objective is to reconstruct the sequence rather than simply count failures.
| Evidence source | What to investigate |
|---|---|
| Authentication logs | Repeated failures followed by a successful login |
| Source IP information | Reputation, network ownership, VPN or proxy context, and other targeted accounts |
| Device information | Unfamiliar devices, operating systems, and user agents |
| Identity protection | Risk detections and unusual sign-in indicators |
| Multifactor authentication logs | Unexpected approvals, failed challenges, or changes to authentication methods |
| Cloud audit logs | Unusual access, mailbox changes, and application permissions |
| Endpoint telemetry | Suspicious activity following the successful authentication |
The strongest evidence comes from correlating several sources. A successful login following repeated failures is an important signal, but context determines whether it represents an attack.
The following techniques may be relevant when supported by the investigation evidence.
| Technique | ID | Relevance |
|---|---|---|
| Brute Force | T1110 | Repeated password attempts against an account or service |
| Password Guessing | T1110.001 | Attempts using guessed passwords |
| Password Spraying | T1110.003 | A small set of passwords attempted against multiple accounts |
| Credential Stuffing | T1110.004 | Testing previously exposed username-password combinations |
| Valid Accounts | T1078 | Use of legitimate credentials to access systems |
| External Remote Services | T1133 | Relevant when compromised credentials are used through external remote-access services |
Do not assign all these techniques to every incident. Select the techniques that match the observed behaviour and available evidence.
Enable multifactor authentication. Use phishing-resistant methods where feasible, particularly for privileged and high-risk accounts.
Apply intelligent lockout and rate-limiting controls. Reduce repeated password attempts without creating unnecessary disruption for legitimate users.
Monitor authentication patterns. Detect concentrated failures, password spraying, unusual successful logins, and attempts against privileged accounts.
Use conditional access. Apply risk-based access controls where supported, taking account of device compliance, authentication strength, and sign-in risk.
Protect privileged accounts. Separate administrative accounts from everyday accounts and enforce strong authentication requirements.
Block legacy authentication where possible. Older authentication methods may not support modern protections and can increase exposure.
Investigate successful logins after suspicious failures. Correlate the authentication sequence with subsequent account activity instead of treating the successful event as an isolated log entry.
Improve user reporting. Encourage employees to report unexpected authentication prompts and repeated login notifications.
Authentication logs are most useful when they are analysed as a sequence of events rather than individual records.
A failed login may be harmless. A successful login may also be legitimate. But a pattern of repeated failures followed by an unexpected success deserves investigation because it may indicate that an attacker obtained valid access.
SOC analysts should combine identity telemetry, source reputation, user context, multifactor authentication records, and post-login activity to determine what happened.
Detection engineering should also account for attacks distributed across multiple IP addresses and accounts, not just a high number of failures from a single source.
Multiple failed logins followed by a successful login can indicate brute-force activity, password spraying, credential stuffing, or legitimate user error. The successful event makes the sequence important, but it does not independently prove compromise.
A reliable investigation establishes the authentication pattern, validates the source, examines the successful session, checks for post-login activity, and applies proportionate containment where necessary.
The key lesson: Do not stop investigating when the login succeeds. Determine who gained access, whether the session was legitimate, and what happened next.
Microsoft Learn — Windows logon auditing and Microsoft Entra sign-in logs.
MITRE ATT&CK — Brute Force and Valid Accounts techniques.
CISA — Identity security and multifactor authentication guidance.
Continue reading
Incident Investigation
Identity Compromise / Session Hijacking

Incident Investigation
SOC Investigation

Incident Investigation
Investigation

3 entries, most recent posts.
Vishing

Identity Theft and Data Extortion

AI-Assisted Autonomous Intrusions
