Skip to main content

How fake login pages get past two-step login

A fake page on a domain like yourcompany-login.com can pass your login to the real site as you type, code included, and keep the session the real site hands back. The criminal then uses that session with no code needed. This is an adversary-in-the-middle (AiTM) attack. We find the lookalike it runs on and get it taken down.

A common assumption

“We use two-step login everywhere, so a stolen password is useless.”

A stolen password on its own, yes. A stolen session is different: the login has already happened.

Already happening?

Report a live attack

Free to report. No account needed. One of our team calls you back, usually the same working day.

Check for lookalike domains

Checks 150+ lookalikes of your domain in a couple of minutes. No account, no card. We email the report to a work address, not Gmail or Outlook.com.

Out of hours, email security@defenddomain.com.

What two-step login protects, and where it stops

Two-step login (MFA) adds a second check when someone logs in. After that, the site gives the browser a session cookie, and whoever holds that cookie is logged in.

What two-step login does well

  • Stops logins with a reused or leaked password
  • Blocks most automated password guessing
  • Adds a check that a plain fake page cannot get past

What it cannot do

  • Protect the session cookie once the login has finished
  • Tell a relay page from a real user when codes or app prompts are used
  • Warn anyone that a lookalike of your domain is being set up
  • Get a fake page taken down

We watch the web addresses a relay page has to run on, so the page is found and reported whichever second step your people use.

The attack

  1. Your customer

    Opens yourcompany-login.com

    Types password and code

  2. Criminal’s relay page

    Fake site with a valid padlock

    Passed on

  3. Your real site

    yourcompany.com sees a normal login

Password, two-step code and login session taken

What we do

  1. DefendDomain alert

    Lookalike, new certificate or relayed login page

    You confirm

  2. Evidence sent

    Registrar, host and browser warning lists

    They act

  3. Your customer

    Sees a browser warning, then the site goes offline

We chase automatically until it is offline.

Example. The attack on the left, what we do about it on the right. yourcompany-login.com is a placeholder.

How a relay page takes a logged-in session

The set-up and the lure happen outside your systems, which is where we look. The domain and the certificate a relay page needs can both be flagged before the first link goes out.

  1. Step 1

    Put up a relay page on a lookalike

    The criminal registers a domain like yours, gets a security certificate and runs a relay kit such as Evilginx. The page shows your real login, passed through their server.

  2. Step 2

    Send people to it

    A link by email, text, ad or social media leads to the lookalike.

  3. Step 3

    Log in from their own browser

    The relay keeps a copy of the session cookie your site hands back. Loaded into the criminal’s own browser, anywhere in the world, it is a logged-in session.

What a stolen session leads to

A login that looks normal

The session really was logged in, so there are no failed logins to spot.

Payment requests from a real mailbox

With access to a real mailbox, the criminal can send payment requests from it. We cannot protect a hacked mailbox; we can find the relay page that led to it.

A hacked mailbox rather than a relay page, with the same ending. In our pharmaceuticals case, attackers used an employee’s email account to send a client fake payment instructions, and the client paid €150,000 into a bank account opened under a false name.

What we watch for, and what happens next

A relay page runs on a web address, usually with a certificate, and passes your login page through. All three can be seen from outside your network.

A lookalike built for logins

Around 500 lookalikes of your domain, re-checked every hour, including names with -login or -sso added. One that gets a website or a certificate is flagged within the hour.

A certificate for the relay

A relay kit needs a certificate for its domain, and every one is logged in public. We match the entries for names like yours as they appear.

Your login page, relayed

The website marker (optional, a small script or a 1×1 image) on your login page loads through the relay too, and tells us the address it loaded on.

When one is found

The alert carries a screenshot of the relayed page, who registered the domain and when, where it is hosted and the certificate it uses. When you confirm it is an attack, one click sends that evidence to up to 12 places at once: the registrar, the host and the email provider, an abuse-report network, blocklists and threat feeds, browser warning lists and search engines. If a company does not act, we chase the registrar and host again at 48 and 96 hours, then the registry at 120 and 168 hours. We check every hour whether it is still online and tell you when it goes down. After that we keep watching and alert you if it comes back.

Found the same way

Not a relay page, but a copied website with a working padlock. In our consultancy case it was found by the certificate logs, a search for the company’s wording and the website marker, and one report with the evidence went to the hosting platform on the day the copy was confirmed.

Two-step login and DefendDomain side by side

The two sit at different points: one on your login, one on the web addresses around it.

QuestionTwo-step loginDefendDomain
What it protectsTwo-step login: The login step on your real siteDefendDomain: Nothing on your site. We watch the web addresses outside it
What it needs from youTwo-step login: Set up for every person and deviceDefendDomain: Your domain names. The website marker on your login page is optional
Where the alerts goTwo-step login: Your sign-in logsDefendDomain: Email, Slack, Microsoft Teams, SMS or webhook, or into Splunk, Microsoft Sentinel or Wazuh

Questions about two-step login and relay pages

No. Keep two-step login everywhere. We find the relay pages built to get past it, when they use a web address like yours.

Hardware keys (FIDO2) check the web address during login, so a relay page on a lookalike cannot use them. Many organisations still use codes or app prompts for some people, and those can be relayed.

See the lookalikes that could host a relay page

In a 30-minute demo we show you the lookalikes of your domain that exist today and how the website marker works on a login page.

  • Which lookalikes of your domain exist now, and which have a certificate
  • How the website marker goes on your login page, if you want it
  • A clear annual price for your domains

Rather see results first? Run a free scan