Secure account logon

Updated at:
Copy as MD

Configure logon with a mobile number, the logon mask, session duration, and security questions for your account.

Account security best practices

Alibaba Cloud provides multiple layers of security. Combine the following measures based on your requirements.

Security measure

Core function

Use cases

Configure MFA for your account

Highly recommended. Adds a dynamic verification layer beyond your password to block unauthorized access. Configures the secondary verification method used at logon (such as TOTP dynamic codes). Supports disabling SMS verification codes or switching to other methods, improving logon security and flexibility.

All accounts, especially those with critical assets.

Create a RAM user as an administrator

Follows the principle of least privilege by creating separate Resource Access Management (RAM) users for different members and grant them limited permissions. This avoids sharing your Alibaba Cloud account credentials and effectively isolates risks.

All scenarios that involve team collaboration or permission delegation.

Set up logon by mobile number

Controls logon by mobile number and a text message verification code. Disabling this feature prevents verification-code logon and blocks account sharing.

Companies with multiple accounts sharing one phone number that need independent team access.

Set an IP address whitelist for account logon (logon mask)

Restricts logons to specific static public IP addresses, providing a high level of access control. Incorrect configuration may lock you out of your account. Use with extreme caution.

Users with static public IP addresses and high security requirements.

Set the account session duration

Balances convenience with security. Shorter sessions on public devices reduce hijacking risk.

All users. Adjust based on the network environment (public or corporate).

Set security questions

Not recommended. A legacy verification method with low security. Use MFA instead.

Backup only or legacy process compatibility. Not recommended for new users.

Set up logon by mobile number

This feature lets you log on to your Alibaba Cloud account with a mobile number and a text message verification code. If you created multiple accounts with the same mobile number, disable this feature to prevent team members from accessing all accounts through a single verification code.

Effects of disabling logon with a mobile number

After you disable this feature:

  • Text message verification code logon is unavailable. Use your logon password, QR code, or other configured methods instead.

  • The multiple account selection page displays a warning: "Logon by mobile number is disabled for this account. You cannot log on with a text message verification code." You cannot log on from this page.

Important

Before disabling logon by mobile number, ensure you have other logon methods configured, such as a password. Otherwise, you may lose access to your account. For more information about the logon methods that Alibaba Cloud supports, see Step 2: Log on to an Alibaba Cloud account.

How to regain access after disabling logon by mobile number

If you disabled logon by mobile number and can no longer log on to your Alibaba Cloud account, follow these steps to regain access:

  1. Recover your logon name: If you forgot the logon name for your Alibaba Cloud account, go to the account recovery page and recover it by phone number, domain name, or enterprise information.

  2. Log on with a password or a QR code: Go to the logon page. On the Alibaba Cloud account logon page, use the Password Logon tab and enter your account name and password, or scan the QR code with the Alibaba Cloud app, Alipay, or DingTalk to log on.

  3. Reset your password, if needed: If you forgot your password, see Log on to your Alibaba Cloud account to reset it, and then log on.

Procedure

Logon by mobile number is enabled by default. This setting affects only the current account, not other accounts with the same phone number.

  1. Log on to the Account Center. In the left navigation pane, choose My Account > Security.

  2. In the Logon Method section, find the Mobile Login setting and click Modify.

    Alternatively, on the Overview page of the Account Center, find Log on with Mobile Number in the My Account section and click the image icon.

  3. In the dialog box that appears, enable or disable the feature as needed, then click OK.

  4. The change takes effect immediately.

Set an IP address whitelist for account logon (logon mask)

To achieve the highest level of logon security, you can set a logon mask (IP whitelist) to restrict account logon to specified public IP addresses or CIDR blocks. After you configure a logon mask, only requests from whitelisted IP addresses can log on to the Alibaba Cloud console.

Best practice: To prevent accidental lockouts, click Add to include a backup, trusted static IP address (such as an IP on a secondary fixed line) as an emergency access channel.

Important

After you set a logon mask, you can log on to the Alibaba Cloud console only from the specified IP addresses or IP address ranges. All other IP addresses are blocked. Proceed with caution.

Procedure

You can set separate IP whitelists for PC and mobile logons.

  1. Log on to the Account Center. In the left navigation pane, choose My Account > Security.

  2. In the Logon Protection section, click Modify next to Logon Mask for PC or Logon Mask for Mobile as needed.

  3. In the dialog box:

    1. Turn on the PC-side Switch or Mobile-side Switch.

    2. In the Logon Mask text box, enter an IP address, such as 192.168.0.1. Click OK.

      Note
      • To set multiple login masks, click Add to add more. If you have unwanted logon masks, click Delete to remove them.

      • An IP address range such as 192.168.0.0/16 allows logon from 192.168.0.0 to 192.168.255.254.

  4. Logon attempts from IP addresses outside the whitelist are blocked.

Recover from an IP whitelist lockout

If an IP configuration error locks you out—for example, your public IP address changed—submit a ticket to clear all IP whitelist settings.

How to submit a ticket: Follow the instructions in What do I do if I fail identity verification?. Set Ticket Business to Clear IP Logon Mask, click Start Ticket, and follow the instructions.

Note

Ticket review typically takes three business days.

Set the account session duration

The session duration controls how long your browser session stays active after you log on to the Alibaba Cloud management console. You are automatically logged out when it expires.

  • Default duration: The default session duration for Alibaba Cloud accounts is 48 hours. You can set the duration to a value from 1 to 72 hours.

  • Scope:

    • Applies to: Browser-based console sessions for Alibaba Cloud accounts only.

    • Does not apply to: RAM user logon sessions (configure separately in Manage RAM user security settings) or API/SDK calls made with an AccessKey pair.

Procedure

  1. Log on to the Account Center. In the left navigation pane, choose My Account > Security.

  2. In the Logon Protection section, click Modify next to Logon Persistence Period.

  3. In the Modify Logon Persistence Period panel, select the desired duration and click OK.

Set or modify security questions

Follow these steps to set or update security questions for your account.

Note

Security questions cannot be canceled after they are set. You can only modify them.

Procedure

  1. Log on to the Account Center. In the left navigation pane, choose My Account > Security.

  2. In the Logon Protection section, click Modify next to Security Question.

    image

  3. After you complete identity verification, select your Security Questions, enter the answers, then click Save to submit.

  4. Your security questions are now set.