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

SOC Investigation

This creates an interesting investigation scenario: Why does the identity provider record an authentication event when the user's browser history does not show the expected activity?
Browser history and authentication logs record different aspects of user activity. Browser history records browsing activity available to the local browser profile, while Okta System Logs record authentication and identity-related events received by the identity platform.
A mismatch between the two does not automatically prove compromise. Browser history may be unavailable, cleared, synchronized differently, or incomplete. Authentication can also occur through applications, background processes, embedded browsers, and other clients that do not produce conventional browsing history.
However, when the mismatch is accompanied by an unfamiliar IP address, unexpected device, unusual session activity, or suspicious MFA behaviour, it can indicate potential account compromise or session abuse.
Investigation objectives:
Identify successful Okta authentication events without corresponding browser activity.
Determine whether authentication originated from the user's expected device.
Investigate possible session-cookie or token abuse.
Correlate browser history with Okta, endpoint, DNS, proxy, and network logs.
Distinguish legitimate authentication workflows from suspicious activity.
Consider the following scenario:
An employee reports that they did not access Microsoft 365 or any other corporate application during a particular period.
However, Okta records a successful authentication for that employee.
The SOC analyst checks the user's browser history and cannot find any corresponding website visit.
This creates two separate evidence sources:
| Evidence source | What it records |
|---|---|
| Okta System Log | Authentication attempts, outcomes, identity events, and available session context |
| Browser history | Websites and pages recorded by the browser profile |
| Endpoint telemetry | Processes, network connections, browser execution, and device activity |
| DNS logs | Domain-resolution activity |
| Proxy logs | Web requests and network destinations, where traffic is monitored |
The absence of a browser-history entry does not mean that authentication never happened. Equally, an Okta success event does not establish that the account owner personally performed the authentication.
The investigation must determine how the authentication occurred and whether it can be attributed to the legitimate user.
Example:
| Attribute | Observation |
|---|---|
| User | employee@company.com |
| Okta result | SUCCESS |
| Application | Microsoft 365 |
| Source IP | Unfamiliar external IP |
| Browser history | No corresponding application visit |
| User confirmation | User denies the activity |
Possible explanations include:
Authentication using an existing session.
Access through an embedded browser or application client.
Authentication through a different browser profile.
Browser history deletion.
Authentication from another device.
Stolen credentials or session-token abuse.
The analyst should establish whether the event represents a new interactive authentication, an application SSO event, or activity associated with an existing session.
Example:
A user's browser history contains an entry for a corporate application, but no corresponding Okta authentication event is found during the same period.
Possible explanations include:
An existing authenticated session was reused.
The application uses a separate authentication provider.
The browser restored a previously opened page.
The application was accessed through a cached session.
Relevant Okta events are missing from the SIEM ingestion pipeline.
The event falls outside the investigated time range.
This scenario requires checking whether the application actually relies on Okta for that particular authentication flow.
Example:
| Attribute | Browser evidence | Okta evidence |
|---|---|---|
| Browser | Chrome | Firefox |
| Operating system | Windows | Linux |
| IP address | Corporate network | External hosting provider |
| Location | London | Different country |
| Time | 10:15 UTC | 10:16 UTC |
This combination is suspicious, particularly when the user confirms that they were using only their corporate workstation.
Potential explanations include:
Account compromise.
Authentication from a second device.
Stolen session credentials.
Remote access through an unfamiliar environment.
Incorrect or incomplete browser and network attribution.
The analyst should not assume that the browser and Okta events represent the same session until they have been correlated.
Some applications can authenticate through background requests, embedded browser components, or application clients.
For example, a desktop application may use an existing authentication session or request an access token without creating a conventional browser-history entry.
Therefore, an Okta authentication event without a visible website visit may be legitimate.
The analyst should examine the application, authentication method, client information, and available endpoint telemetry before classifying the activity.
Start by locating the user's successful authentication events in Okta System Logs.
Review relevant event types, including:
user.session.start
user.authentication.sso
user.authentication.auth_via_mfa
user.authentication.verify
Examine the following attributes where available:
| Field | Investigation purpose |
|---|---|
actor.alternateId | Identify the user |
client.ipAddress | Identify the source IP |
client.userAgent.rawUserAgent | Review browser and client information |
client.userAgent.browser | Identify browser |
client.userAgent.os | Identify operating system |
client.device | Review device classification |
outcome.result | Determine authentication outcome |
outcome.reason | Review event outcome details |
authenticationContext.externalSessionId | Correlate related session activity |
authenticationContext.rootSessionId | Correlate root session activity |
target | Identify relevant applications or objects |
Not all fields are present in every event. Validate the event payload before relying on a particular attribute.
Build a timeline around the suspicious sign-in.
For example:
| Time (UTC) | Evidence | Observation |
|---|---|---|
| 10:10 | Browser history | Last known application visit |
| 10:14 | Okta System Log | Successful authentication |
| 10:15 | Endpoint telemetry | Browser process active |
| 10:16 | Proxy logs | Request to unfamiliar domain |
| 10:20 | Okta System Log | Application session activity |
Use a consistent time zone and account for clock differences between endpoints and log sources.
The objective is to determine whether the authentication event aligns with activity on the expected device.
On Windows systems, Chromium-based browsers commonly maintain browsing history in a SQLite database named:
HistoryTypical Chrome profile location:
%LOCALAPPDATA%\Google\Chrome\User Data\Default\HistoryTypical Microsoft Edge profile location:
%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\HistoryInvestigators should collect browser artefacts using approved forensic procedures and preserve the original evidence.
Review:
Visited URLs.
Visit timestamps.
Browser profile information.
Download history.
Relevant authentication and identity-provider URLs.
Evidence of history deletion, where available.
Important: Browser history is not a complete record of all network activity. It does not reliably capture background requests, every redirect, API calls, or activity performed by other applications.
Compare the browser evidence with the authentication event.
| Attribute | Browser evidence | Okta evidence |
|---|---|---|
| User | Local browser profile owner | Okta account |
| Browser | Browser artefacts | User-Agent |
| Operating system | Endpoint operating system | User-Agent OS |
| Network | Proxy or endpoint IP context | Source IP |
| Time | Browser visit timestamp | Authentication timestamp |
| Application | Visited application URL | Authentication target |
Investigate inconsistencies such as:
Authentication from an IP address not associated with the endpoint.
Different browser families.
Unexpected operating systems.
Authentication outside the user's normal activity period.
A successful login with no corresponding endpoint network activity.
A mismatch becomes more meaningful when several independent evidence sources support it.
One important hypothesis is that an attacker may have obtained an existing authentication token or session cookie.
In this situation, an attacker may access an application without repeating the complete interactive authentication process.
Investigate:
Session creation and subsequent application activity.
Unusual changes in source IP or network location.
Authentication events involving unfamiliar devices.
Suspicious browser extensions or malware activity.
Unexpected access to sensitive applications.
Available token and session revocation events.
Do not assume that every successful SSO event represents a fresh password and MFA authentication.
Use additional security telemetry to determine whether the user's endpoint actually initiated the activity.
Endpoint investigation:
Identify browser processes active around the authentication timestamp.
Review process creation and parent-child relationships.
Examine network connections made by the browser.
Check for unfamiliar browser extensions.
Investigate suspicious scripts or processes interacting with browser data.
Network investigation:
Review DNS requests.
Examine proxy and secure web gateway logs.
Identify the source device associated with the suspicious connection.
Check whether the destination domain matches the application involved in the Okta event.
Contact the user through an established identity verification process.
Ask whether they:
Accessed the application at the recorded time.
Used a different device or browser.
Connected through a VPN.
Used a mobile application or desktop client.
Received unexpected MFA prompts.
Shared credentials or approved an unexpected authentication request.
User confirmation is supporting evidence, not definitive proof. A compromised account may also result in misleading user responses if the user is unaware of the activity.
This investigation does not have fixed malware IOCs. It relies on behavioural anomalies and correlation between independent evidence sources.
| Investigation indicator | Potential significance |
|---|---|
| Successful Okta login without expected browser activity | Authentication through another client, device, or session |
| Browser history with no matching Okta event | Existing session, alternate identity provider, or missing telemetry |
| Different source IP between endpoint and Okta | Possible remote authentication or network-routing difference |
| Unfamiliar User-Agent | New browser or potentially manipulated client information |
| New device associated with successful authentication | Possible account compromise |
| Session activity from unexpected networks | Possible session misuse |
| Unexpected MFA activity | Possible social engineering or authentication compromise |
| Suspicious browser extension | Potential credential or session theft |
index=oktalog
| spath
| search outcome.result="SUCCESS"
| eval user='actor.alternateId'
| eval src_ip='client.ipAddress'
| eval user_agent='client.userAgent.rawUserAgent'
| eval browser='client.userAgent.browser'
| eval os='client.userAgent.os'
| eval event_id=eventType
| table _time user event_id src_ip browser os user_agent
| sort -_timeUse this query to establish the authentication timeline and identify the attributes associated with successful events.
index=oktalog
| spath
| search outcome.result="SUCCESS"
| eval user='actor.alternateId'
| eval src_ip='client.ipAddress'
| stats dc(src_ip) as unique_ips
values(src_ip) as source_ips
count as total_events
by user
| where unique_ips > 1
| sort -unique_ipsThis identifies accounts with successful authentication activity from multiple source IPs during the selected time range.
index=oktalog
| spath
| search outcome.result="SUCCESS"
| eval user='actor.alternateId'
| eval browser='client.userAgent.browser'
| eval os='client.userAgent.os'
| stats count as total_events
dc(user) as affected_users
values(user) as users
by browser os
| sort -total_eventsInvestigate uncommon combinations, especially when associated with unfamiliar source IP addresses or unexpected user activity.
index=oktalog
| spath
| search eventType IN (
"user.session.start",
"user.authentication.sso",
"user.authentication.auth_via_mfa",
"user.authentication.verify",
"user.session.end"
)
| eval user='actor.alternateId'
| eval src_ip='client.ipAddress'
| eval session_id='authenticationContext.externalSessionId'
| eval root_session_id='authenticationContext.rootSessionId'
| table _time user eventType outcome.result src_ip session_id root_session_id
| sort -_timeUse this query to reconstruct the authentication sequence and identify related session activity.
For a mature SOC environment, correlate:
Okta authentication events.
Browser history artefacts.
EDR process and network telemetry.
DNS logs.
Proxy or secure web gateway logs.
A useful detection should identify successful authentication events from an unexpected source and then determine whether the expected endpoint generated corresponding network activity.
Do not create a high-severity alert solely because browser history lacks an entry. Missing browser history is a weak signal unless supported by additional evidence.
Enable comprehensive Okta System Log collection.
Forward endpoint and network telemetry to the SIEM.
Establish normal user authentication baselines.
Monitor unexpected device, IP, and browser changes.
Investigate suspicious session activity and possible token misuse.
Enable appropriate phishing-resistant MFA methods.
Restrict access to sensitive applications through risk-based access policies.
Preserve browser and endpoint forensic evidence before making changes.
Revoke suspicious sessions and reset credentials when compromise is confirmed or strongly suspected.
Investigate persistence, MFA changes, and additional account activity after suspected compromise.
SOC Recommendation: Treat browser-history and authentication-log mismatches as investigation triggers rather than standalone compromise indicators. The strongest conclusion comes from correlating identity-provider events with endpoint, browser, network, and session evidence.
Continue reading
Incident Investigation
Identity Compromise / Session Hijacking

Incident Investigation
Investigation

Incident Investigation
Homograph attacks

3 entries, most recent posts.
Vishing

Identity Theft and Data Extortion

AI-Assisted Autonomous Intrusions
