208 208.fi

Multi-Factor Authentication (MFA)


A multi-factor authentication mechanism requires two or more distinct types of evidence (factors) to be successfully presented before access to a system or service can be granted. Potential factors include knowledge (e.g., of a password), possession (e.g., of a security token), location (of the user or device) or biometric characteristics (e.g., a fingerprint).

Employees who connect their home office with the enterprise VPN gateway are kind of on site. The location is an inherent authentication factor if the mail boxes are only accessible from the internal network.

A fingerprint cannot be lost easily. A finger can, if a criminal is in a hurry. Luckily, it should not be necessary: Already in 2013, a mobile phone was unlocked with a copied fingerprint.

A chain is as strong as its weakest link. How secure is the company network? Could a wireless router be accessed from the outside? That is why multiple authentication factors and a multi-layer security architecture are needed.

The first authentication factor could involve typing a user name and a password. It is regarded rather insecure. A user-chosen password is often vulnerable to dictionary attacks. It is also common to store the credentials in a web browser so that they can be filled in automatically.

A TLS connection can make passwords redundant. The server always presents a certificate that the client will check before proceeding. It protects users from fake servers that could intercept credentials and relay them to the real server, so that everything appears to work correctly. The server can be configured to require the client to present a valid certificate signed by a trusted authority. The certificates and the associated private encryption keys will be stored in each device.

The first authentication factor alone does not sufficiently identify the end user. Someone could get hold of the credentials or the end-user device.

Sometimes, the second authentication factor is a time-based one-time password that will be sent to a preregistered address. Such passwords can be intercepted by applying social engineering techniques to the user or the messaging service, such as a telecommunication operator or an e-mail service provider.

Often the second authentication factor is a secret key that will be securely stored in an external authenticator device. A key exchange protocol with the service provider is executed to generate a shared, unique secret in a way that it cannot be intercepted. The key itself never leaves the authenticator. What leaves it are one-time passwords derived from the secret key.

The standard for time-based one-time passwords (TOTP) is implemented among others in FreeOTP, Aegis Authenticator and Microsoft Authenticator.

A one-time password can be a sequence of digits or characters that must be input by the user. The password could be intercepted by social engineering.

Protocols like WebAuthn can prevent man-in-the-middle attacks. The attaches a hardware security token. Possibly, it will be unlocked by inputting a code. Finally, by the push of a button, the token will transmit a one-time code via the already secured connection.

The process of enrolling authentication factors and backup systems must be designed and implemented carefully. The standard operating procedure must cover exceptional situations and be rehearsed regularly. Only in that way, one can be calm when someone urgently must access a system in the middle of the night after a security token has been lost or damaged. The correct answer is to remind the colleague of the standard operating procedure.


See also