Get the report
MoreComplete visibility for DevSecOps
Reduce downtime and move from reactive to proactive monitoring.
March 28, 2022
The news that hacking group Lapsus$ gained unauthorized access to Single Sign-On (SSO) provider Okta through a third-party support account sent chills through information security professionals everywhere. Organizations have adopted SSO identity providers to enable a modern workforce that is increasingly reliant on secure access to cloud-hosted applications to perform critical business functions.
Every organization should understand the risks associated with moving critical authentication services to 3rd party providers and ensure sufficient controls are implemented to minimize the risk to an acceptable level.
We have a few other thoughts on this matter, hold on while we find a soapbox…
The message we want to communicate is clear: If your organization uses a cloud-hosted SSO provider, you must have a monitoring, detection and response strategy tailored to your SSO infrastructure.
Look, we get it. The Sumo Logic Threat Labs and Global Operations Center (GOC) teams have been in your shoes before. We understand what it’s like to be caught without the right logs, struggled to interpret a new log source and spent countless hours pondering how to distill the nuanced signals of an intrusion. At Sumo Logic, one of our core values is “In it with our customers.” We will take it a step further and add “In it with our customers and the security community.” You need a strategy, and at the risk of sounding cliche, “the best time to start was yesterday, the next best time is now.”
The goal of this blog is to provide the building blocks for developing a strategy for monitoring, detecting and responding to activity within your SSO infrastructure. Let’s go!
If you are using Okta, OneLogin, Ping Identity, Microsoft Azure Active Directory (AD) or any other SSO identity provider and are not sending the logs to a SIEM or log management platform, stop reading this. Go and enable logging (make sure you double check the log levels) and forward them to your SIEM or log management system immediately.
Most identity providers will retain logs for some period of time but forwarding these critical events to a secure, long-term storage solution, like Sumo Logic Cloud SIEM or other relevant platforms, is highly recommended.
Before we dive into some of the attack paths we’ve observed and some useful and clever searches that can be used to monitor and investigate SSO logs, let's first discuss how an organization can actually detect a successful attack against its SSO infrastructure.
The first thing that should be acknowledged is this: there is no “smoking gun” search, alert or single detection that indicates an account has been compromised. Visibility into all things (increasingly cloud) and understanding how to baseline behavior and surface anomalies is critical for defenders.
To oversimplify our approach, we risk rate notable activity by each entity within a time window. This allows us to look for “clusters” of notable events that, when considered in aggregate, are more likely to identify malicious activity.
For example, observing a single SSO account with a password reset is a notable event, but when considered on its own, does not necessarily suggest a compromise has occurred. However, if we observe the same SSO account with anomalous MFA push notifications, a password reset, an MFA reset and some unusual SSO application access, well that is certainly more interesting.
Tip: Some events happen so infrequently, and with the potential to have significant security ramifications if missed, that we suggest setting up alerts or notifications to a group or distribution list of key stakeholders via email, Slack, Microsoft Teams or directly through your SIEM for immediate awareness. Notifying a group of stakeholders reduces the likelihood of a potentially critical event going unnoticed.
Some examples are below:
Below, we’ll attempt to walk through some of the attack paths an attacker might take to attack your organization via SSO. Remember that the below searches are best used for general SSO security monitoring, investigations or feeding an entity risk score for risk aggregation, like Sumo’s Cloud SIEM.
The searches we provide throughout the blog are based on Okta logs but can be easily updated for use against any SSO provider log.
An attacker that manages to compromise any SSO provider directly and subsequently uses that to access or manipulate customer environments would fall under a supply chain attack. Defenders should monitor for unusual or unexpected access from the SSO provider.
In the example below, we’ll use the Continuous Intelligence Platform™ (CIP) to search for any activity from Okta accounts that should be further investigated.
The next search (which we would advise be set up to generate an alert when seen) indicates that a session impersonation event has occurred. This should only occur if Okta administrative access has been requested by an organization.
An attacker might also reset user passwords or reset MFA. Looking for instances where unusual accounts are resetting passwords or MFA might warrant further analysis.
The attacks you are most likely to see are attacks against employee credentials, typically in the form of phishing, password spray attacks and MFA fatigue attacks.
Password spray attacks can take many forms—and security teams should keep an eye for the signs of an ongoing password spray attack.
General awareness - deviations in failed logins
It’s not a bad idea to keep an eye on spikes or baseline deviations in failed logins to your SSO provider. Establish a baseline of unique accounts with failed logins to your SSO and look for outliers.
This may help identify low and slow password spray attacks and provides a decent 10,000-foot view of attacks or probes against your SSO.
High volume password spray
One of our favorite ways to identify active password spray attacks is to look for a spike in SSO failed logins sourcing from the same ASN. Attackers can change the source of their password spray easily, so building your search around a source IP is too narrow. We’ve found grouping by the source ASN and putting a 30 or 60-minute time window around it is the sweet spot.
Another way to look at authentication failures:
Expanding the search to look for spikes in failed logins over a short time window (10 minutes) can also prove useful but can sometimes generate false positives. Think Monday morning when everyone is first logging in or after a holiday break and no one can remember their password.
Adding an additional layer of security on top of SSO is recommended, and the most common method for doing this is in the form of push notifications. Once valid credentials have been provided to the SSO platform, an MFA push notification will be sent to a pre-enrolled device that requires accepting or acknowledging the attempt to complete the login process.
Once an attacker has a username and password, they can attempt to initiate a logon with the hope that the victim unknowingly or unintentionally acknowledges the push notification. Believe us when we tell you that this happens more often than you think!
To increase their chance of success, attackers will flood or spam victims with push notifications. Okta published a great blog on this attack technique in early March 2022.
We’ve adapted their detection for use in Sumo’s CIP:
This search will identify instances where an account has been observed with a high number of push notifications sent with multiple failures with at least one successful login.
Once an attacker steals credentials and successfully gets a victim to accept a push notification, they have some form of access to the organization and its data. We’ve observed attackers performing a variety of actions following initial access, which we will discuss below.
Please note that any results that may return from the below searches do not indicate a compromise has occurred and should be considered in aggregate with other events of interest associated with the account in question.
If an attacker has managed to compromise an SSO account, they might reset the account password and update and take control of the victim’s MFA. The below CIP search is also looking at Okta data and identifying any accounts that have had both an MFA update and password reset event within a specified time window.
One of the behaviors that we often observe following initial access is the attacker exploring all of the applications the compromised account has access to. A user may have access to dozens of published applications, but usually, only access a small number of those apps daily.
The behavior of normal user application access looks very different than an attacker who has just gained access to a victim’s application portal SSO. Imagine the attacker drooling when they see SalesForce, GitHub, Confluence, Slack or PowerBI applications available for access! These applications are a goldmine and you can bet that an attacker will attempt to access as many of these applications as possible to discover what data they can steal.
User application access deviation
Let’s look for accounts that trigger a deviation for the number of distinct applications that are being accessed by an account. If a legitimate user normally accesses five apps a day, but we observe the account accessing 20 apps, that might be something worth noting.
Unauthorized app access attempts
An attacker that is engaging in discovery activity using compromised SSO credentials will likely attempt to access applications that the account does not have the authorization to access. These violations will often have an associated log event, which can be useful for defenders attempting to identify suspicious activity. We can use another CIP search to identify accounts that have attempted to access multiple applications that the account is not authorized to access.
Sumo Logic CIP makes easy work of slicing and dicing your SSO log data to identify potential signs of compromised credentials. Furthermore, Sumo Logic Cloud SIEM provides out-of-the-box security rules for normalized authentication log data and additional rules specific to SSO providers. Signals generated from these rules apply risk to entities, and Cloud SIEM automatically creates Insights if risk thresholds are exceeded. This provides customers with a powerful security solution they can easily adapt and custom tailor to their specific environment.
The searches shared above can be used to create dashboards for daily review, trigger email alerts based on various parameters to notify your security team of activity of interest, or best of all, send an event to Sumo Logic Cloud SIEM to contribute to an entity risk model.
To see for yourself, request a demo of Sumo Logic Cloud SIEM today or reach out directly to Sumo Logic.
Sumo Logic Threat Labs and Sumo Logic Global Operations Center (GOC) are two distinct organizations within Sumo Logic partnering to safeguard Sumo Logic's customers, their data, and their organizations from emerging threats, inject security DNA throughout Sumo Logic, and contribute to the broader security community. We do this by monitoring threat activity to produce and distribute actionable intelligence, detection content and security guidance.
Reduce downtime and move from reactive to proactive monitoring.
Build, run, and secure modern applications and cloud infrastructures.
Start free trial