How to Protect Idira Identity from Adversary-in-the-Middle Attacks and MFA (Multi Factor Authentication) Bypass
Objective
Adversary-in-the-Middle (AiTM) attacks enabled attackers to steal login credentials and session cookies to bypass multi-factor authentication. This article will go over configurations you can make in Idira Identity to protect against AiTM attacks and prevent unauthorized access.
Environment
Identity App Access Service
Procedure
What are Adversary-in-the-Middle Attacks and Why You Should Care
Adversary-in-the-Middle (AiTM) attacks are a type of cyberattack where an attacker sends a phishing link to a fake login page which proxies to the real login page. When the victim enters their login credential and completes a phishable MFA challenge, such as push notification, the AiTM proxy can intercept the username, password and session cookie.
With the stolen credentials, the attacker can:
-
Log into the victim’s account if there is no MFA challenge configured.
-
Attempt to use the stolen credentials on other websites.
-
Sell the credentials on the dark web.
With the stolen session cookie, the attacker can:
-
Bypass multi-factor authentication (MFA) and access the account without having to authenticate.
-
Sell cookies on the dark web.
How Session Cookies Can Be Stolen by AiTM Even When Multi-Factor Authentication Is Enabled
If the victim uses a phishable MFA factor on the fake login page, it can be intercepted and replayed just like the victim’s credentials, or processed by the victim when a push notification is approved. Once the authentication has been completed, the attacker can intercept the session cookie. The following table summarizes which MFA factors supported by Idira are phish-resistant and which are not.
|
Available second factor options |
Phish-resistant factors |
|
FIDO2 hard token |
Yes |
|
FIDO2 on-device authenticator |
Yes |
|
FIDO2- Passkey |
Yes |
|
Certificate based authentication |
Yes |
|
QR Code |
No |
|
Mobile Authenticator push notification with number matching |
No |
|
OTP |
No |
|
SMS |
No |
|
Phone call |
No |
|
|
No |
|
Security questions |
No |
How to Configure Idira Identity to Prevent Session Cookie Theft
To prevent session cookie theft, configure the following security layers:
-
Ask end users to pick a security image that can help lower the chance of phishing attacks, by identifying fake login pages that do not display the user’s security image.
-
Use passwordless authentication to help avoid password theft. Passwordless authentication options include certificate-based authentication, or using passwordless authentication profiles for portal login.
-
Use phish-resistant authentication factors for passwordless authentication.
-
Once registered, FIDO2 only works with the real Idira login page and not with a fraudulent login page. Please note that FIDO2 will only work with the browser profile that it was registered with. To work with other browsers on the same device, browsers on other devices or browser profiles, the FIDO2 factor will need to be registered with the other browsers and browser profiles.
-
Certificate-based authentication relies on the user’s device to verify the user and device identity, so malicious actors cannot access the User Portal or Idira managed resources without the user’s device.
-
Create Authentication Rules to restrict login conditions such as:
-
Use Secure Zones to activate IP whitelisting and only allow access from authorized IP addresses, like office locations and VPN IP ranges. This prevents attackers from accessing your tenant from unauthorized locations. Apply Secure Zones restrictions only at the application policy level to help re-evaluate the user and to avoid accidental lockout at the User Portal login if the network becomes unavailable.
-
Risk-based access policies are dynamic policies that evaluate the risk level of each login attempt and apply the appropriate level of authentication. For example, a risk-based access policy can require an additional factor of authentication if the user is logging in from an unfamiliar device or location or deny access if the risk level is too high.
-
Checking if client devices follow managed and compliant endpoint security policies. This stops attackers from reaching your tenant with unauthorized devices.
How to Stop Unauthorized Access to Web Applications if Session Cookies Have Been Stolen
Use application-level MFA, for security sensitive web applications. If a victim’s User Portal has been compromised, the application-level MFA adds an extra layer of authentication that cannot be bypassed with a stolen session cookie. Make sure to require a “something that you have” or “something you are” factor such as FIDO2 or certificate-based authentication. Add risk-based rules to application-level policies to help detect and prevent unauthorized access. Or turn on Continuous Authentication as another method of application-level MFA.
Security Awareness Training
Security awareness training is an essential component of preventing AiTM attacks, as it educates users on how to recognize and avoid phishing emails, malicious links, and other common attack vectors. By teaching users how to verify the identity of the sender, check the URL of the website, and use secure passwords and MFA, security awareness training can help reduce the risk of credential theft and session hijacking. Security awareness training can also increase the user's awareness of the signs of a compromised account, such as unusual login attempts, unauthorized transactions, or changed settings, and prompt them to report and resolve any incidents promptly.
How to Monitor and Be Alerted for Vulnerabilities and Suspicious Activities
To monitor and be alerted for suspicious activities, you need to use the following tools:
-
Use Security Insight Alerts to quickly identify vulnerabilities such as users without phishing-resistant factors and policies with one a single authentication factor.
-
The User Risk Behavior Risk Overview dashboard in the User Behavior Analytics portal quickly identifies high risk events. Administrators can drill down to see the details of events to help identify suspicious login location, client OS, client browser, or IP address when compared to historical data.
-
Create webhooks to send real-time risk alerts to Slack, Teams, PagerDuty or webhook endpoint.
-
The Idira Identity dashboard. The dashboard is a web-based interface that provides you with an overview of your tenant's health, performance, and security. You can use the dashboard to view the status of your tenant, the number of active users and sessions, the number of applications and devices, and the security alerts and events.
-
Optionally integrate the Idira Identity logs to a SIEM to correlate with other sources to help identify potential AiTM attacks.
-
The Idira Identity reports. The reports are a set of predefined or custom reports that provide you with detailed and aggregated information about your tenant. You can use the reports to analyze the trends and patterns of your tenant's usage, performance, and security.
Other Security Measures for Protecting Session Cookies
Besides AiTM attacks, malware is another way session cookies can be stolen.. Web browsers store HTTP cookies which include authentication cookies for websites and services. Those cookies can be extracted by malware and sent to the attacker. With Idira Endpoint Privilege Manager and Idira Secure Browser, you can keep your session cookies safe from cookie stealing malware.
Idira Endpoint Privilege Manager (EPM) is an endpoint agent that removes local admin rights from standard users, enforces least privilege, defends against ransomware, and stops credential theft. EPM prevents session cookie theft by blocking unknown processes from accessing the cookie storage of common browsers (Google Chrome, Mozilla Firefox, Opera, Microsoft Edge, and Internet Explorer) and browser memory.
Idira Secure Browser is a hardened web browser that provides additional security features for some Idira solutions and offers a unified experience for improved productivity. Secure Browser implements cookieless browsing which prevent malware from stealing cookies.