Description

This check ensures that every Linode account user has two-factor authentication (2FA) enabled. 2FA adds a second verification factor (a one-time code from an authenticator app) on top of the password, so a stolen or guessed password alone is not enough to sign in to the Linode Cloud Manager. Each user of the account is evaluated separately.

Rationale

A Linode account user without 2FA can be taken over with only a leaked, reused or guessed password. An attacker with access to Cloud Manager can delete or rebuild Linodes, read data through Rescue Mode, change firewalls and create new API tokens. Requiring 2FA for every user greatly reduces the risk of account takeover.

Impact

  • Each user must install an authenticator app (for example Google Authenticator, Microsoft Authenticator or Authy) and enter a code at every sign-in, unless the device is trusted for 30 days

  • Each user must store the scratch code shown during setup; it is the only self-service way back in if the phone is lost

  • 2FA can only be turned on in Cloud Manager when the user's Login Method is Cloud Manager (not a third-party login)

  • An administrator cannot turn on 2FA for another user; each user must do it from their own profile

Default Value

Two-factor authentication is a per-user setting. It is not turned on for a user until that user enables it from their own profile.

Pre-Requisites

  • Access to Cloud Manager as the user who needs 2FA

  • An authenticator app on a phone or computer

  • All 3 security questions configured for the user (required before 2FA can be enabled)

  • For the CLI test plan: a Personal Access Token created by an unrestricted user with Account: Read Only scope (a restricted user's token returns an empty user list)

Remediation

Test Plan

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. Click your username in the top right and select Login & Authentication. The My Profile page opens on the Login & Authentication tab.

  3. Check the Two-Factor Authentication (2FA) section. If the toggle is not enabled, 2FA is off for this user.

  4. Repeat for each user of the account (each user must sign in with their own account to check this page).

CLI:

Set the token:

export LINODE_TOKEN="<your-personal-access-token>"

List every account user with their 2FA status:

curl -s -H "Authorization: Bearer $LINODE_TOKEN" "https://api.linode.com/v4/account/users?page_size=500" | jq '.data[] | {username, tfa_enabled}'

A user passes if tfa_enabled is true and fails if it is false.

Implementation Steps

Console (each user does this for their own account):

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. Click your username in the top right and select Login & Authentication. The My Profile page opens on the Login & Authentication tab.

  3. In the Login Method section, make sure Cloud Manager is selected.

  4. In the Security Settings section, confirm that all 3 security questions are set. If not, set them first.

  5. In the Two-Factor Authentication (2FA) section, click the toggle to enable 2FA. A QR code, a secret key and a Token field are shown.

  6. Open your authenticator app and scan the QR code (or enter the secret key).

  7. Enter the 6-digit code from the app in the Token field and click Confirm Token.

  8. Save the scratch code that is shown in a safe place. It can be used only once and cannot be shown again.

  9. Ask every other user of the account to complete the same steps.

Backout Plan

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. Click your username in the top right and select Login & Authentication. The My Profile page opens on the Login & Authentication tab.

  3. In the Two-Factor Authentication (2FA) section, click the Enabled toggle.

  4. In the confirmation window, click Disable Two-Factor Authentication.

Note: disabling 2FA makes the account vulnerable again; do this only if strictly needed.

Reference