DEV Community

Serguey Shinder
Serguey Shinder

Posted on

Three Hundred Yard Staff Had Never Registered a Second Factor and an Attacker With One Password Registered His Own

When we made multi factor sign in compulsory for all fourteen hundred staff in 2024, most people registered an authenticator app within a week. About three hundred did not. They were yard operatives and drivers who have an account for payslips, holiday requests and the intranet, and some had not signed in for months.

Microsoft's sign in service handles that case helpfully. An account with no second factor is asked to register one the next time it signs in, from wherever that sign in comes from. For those three hundred accounts, the password was the only thing standing between anyone and the right to choose the second factor.

In October a forklift driver tried to look at his payslip on a new phone and was asked to approve the sign in in an app he had never installed. The service desk found an authenticator registered to his account three weeks earlier, from an address in another country. His password had been set by the service desk years before, from a pattern of a season and a year, and someone spraying common passwords across our staff had found it. From then on the account was fully protected, by the attacker's phone. He had downloaded our staff directory and sent forty colleagues a message about a pay review, with a link to a fake sign in page. Two of them used it before we stopped him.

This is not a new technique. Mandiant reported in 2022 that a state backed group was guessing the passwords of dormant accounts and enrolling its own devices for multi factor sign in.

Registering a second factor is now allowed only from our own network or a managed device. Anyone else needs a temporary access pass, a single use code the service desk issues after a manager has confirmed the person's identity face to face. We spent a week at the depots registering the remaining accounts with their owners standing in front of us. Accounts not used for ninety days are disabled until someone asks for them, and our list of banned passwords now includes seasons, months and our company name. Any new method registered from outside the United Kingdom raises an alert.

Until a second factor is registered, the password is the only factor, and registering one is itself a sign in that needs protecting. Count the accounts in your directory with nothing registered.

– Serguey Shinder

Top comments (0)