SBN

Identity crisis? Manageable. Identity attacks? Crisis!

Don’t let your employees fall prey to identity attacks

In the early internet days, logging in meant entering a username and password. If the password matched what the server had stored, you got in. Simple, right? But as online services grew, so did cyber threats. Passwords could be guessed, stolen, or reused, making accounts vulnerable. Even with more advanced protocols like OAuth, SAML, and OIDC, attackers have found ways to exploit identities.

An average organization uses more than 130 SaaS applications every year. That’s hundreds of thousands of login attempts from employees, not to mention the numerous online services that employees explore and have accounts in. Only about a third of SaaS apps have SSO options, which still leaves the majority difficult to manage by enterprises. Further, it is incredibly difficult to ascertain whether third-party services accessed by your employees are compromised or redirecting them to phishing logins. Consider the following commonly known identity attacks that enterprises might feel they are unable to prevent.

Password Spraying Attack

In password spraying, attackers attempt to gain access to accounts by trying a few commonly used passwords against many different usernames. Unlike traditional brute force attacks that target a single account with multiple password attempts, password spraying spreads the attempts across many accounts to avoid detection and lockouts. This method is particularly dangerous if employees use weak passwords, leading to unauthorized data access, identity theft, and further exploitation within the network.

Credential Stuffing Attack

Credential stuffing involves attackers using lists of previously breached username and password combinations to gain unauthorized access to accounts. Since many users reuse passwords across multiple services, attackers leverage these credentials to infiltrate various systems.

Cross-Tenant Impersonation Attack

This attack occurs when an attacker gains access to a SaaS application’s identity management system and modifies the authentication tenant URL to redirect to their own, albeit legitimate, tenant.

Cross-tenant impersonation refers to a situation where a user or entity from one tenant gains unauthorized access to resources or data belonging to another tenant. This can allow an attacker to exploit stolen data to pose as a user or administrator and carry out further nefarious ‘insider’ activities.

By doing this, the attacker intercepts all future login attempts to the web app, gaining unauthorized access to user credentials and subsequent sessions.

There are different variants of this attack specific to various authentication methods, such as SAML jacking. This attack is dangerous because it can lead to complete control over user accounts, allowing the attacker to access sensitive data, perform unauthorized actions, and potentially compromise the entire system, leading to severe security breaches and data loss.

Illicit Consent Grant Attack

This attack occurs when a SaaS application requests excessive permissions during the Single Sign-On (SSO) process, often through OAuth or similar protocols. Employees, believing the application is legitimate, grant these permissions, which provide full access to the Identity Provider (IdP) account and its resources. Once permissions are granted, the compromised / malicious application can access, steal, and manipulate sensitive information from the IdP account. This attack is particularly dangerous because it leverages the inherent trust and seamless integration of SSO, leading to unauthorized access to corporate resources and the potential misuse of both personal and organizational information. Enterprises must be vigilant and enforce strict policies to scrutinize and manage permissions requested by third-party applications to mitigate this risk.

Being a vicim of identity theft can be traumatising. Enterprises should create guardrails to prevent their employees from falling prey to such attacks as best practice.

With SquareX, employees can be guarded from these attacks easily. Using a full list of our fine grain identity properties, admins can create policies to scope the authentication methods that are permitted for the employee. Policies to validate the authenticity of the login page can also be created. Let’s look at some examples.

Block employees from accessing impersonated authentication tenants

One possible approach is for admins to create a whitelist of permitted login methods, as well as corresponding IDP tenant urls. For example, Dropbox uses OAuth for Google SSO. OAuth logins should always route users to a particular URL with the app’s client_id specified.

For OAuth methods like this, the client_id is included in the URL. To ensure employees don’t login to other client_ids when logging into Dropbox, a policy can be created to validate this. Leveraging SquareX’s AI generator, add the prompt “For dropbox.com, block login if client_id is not 801668726815.apps.googleusercontent.com”.

Watch a demo of a similar policy in action!

Block SaaS apps requesting risky permissions during authentication

Unfortunately, many 3rd party SaaS apps often request overly broad permissions, like full Google Drive access, when they only need specific file creation permissions. This becomes highly risky if the third party service gets compromised or if the app itself is deliberately malicious. SquareX allows you to define OAuth scopes to allow or block apps based on their requested permissions. As an example, admins can define what Google workspace permissions can be requested by applications. In this example, if an app requires full Google Drive access or the ability to modify Gmail, then the employee will be blocked from authorizing it.

Watch a video of this policy in action!

Set an enterprise-wide policy to use strong passwords only

Are all employees in your organization using strong passwords for daily web application logins? Can you accurately collect those datapoints, or enforce rules for them to do so?

If you are using a web proxy or an endpoint security solution, there’s a high chance that you won’t be able to enforce such a policy. Many sites encrypt the password before it is sent through the network, rendering the password data opaque to the security solutions.

Strong passwords help defend against brute force attacks and password spraying. With SquareX, admins can create a policy to enforce the use of strong passwords across the whole world wide web, amongst employees.

Watch a demo of a similar policy:

In a previous blog post, we looked at how admins can prevent their employees from reusing passwords. This is a neat way to ensure that when the passwords of a third party service gets leaked or stolen, attackers cannot get access to other web applications through credential stuffing.

10 Billion passwords leaked: What will hackers discover with yours?

SquareX can also be used to protect employees against evasion tactics used by AiTM (Adversary in the Middle) phishing pages. One such example was covered in a previous blog:

It only takes a minute to protect your employees from advanced Browser-in-the-Browser attacks

For more identity related demos, check out https://sqrx.com/identity-attacks

Interested in securing your enterprise with SquareX? Reach out to us for an obligation free pilot. Sign up here or drop us an email at [email protected]


Identity crisis? Manageable. Identity attacks? Crisis! was originally published in SquareX Labs on Medium, where people are continuing the conversation by highlighting and responding to this story.