System Security Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

PDF

System Security Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

Local command authorizations with user accounts

Want to summarize with AI?

Log in

Explains local command authorization, illustrating its operation, configuration for user accounts, and integration with TACACS+ including behaviors for local fallback scenarios.


A local command authorization feature with user accounts is a local authorization mechanism that

  • permits command execution for locally authenticated users when TACACS+ authorization is unavailable or not required

  • prevents local users from being locked out when a TACACS+ server is unreachable, and

  • ensures that remote users cannot bypass TACACS+ authorization by using the local fallback method; the local option can be used as a fallback after TACACS+ or as the only command authorization method.

Feature history

Table 1. Feature History Table

Feature Name

Release Information

Feature Description

Command Authorization Using Local User Account

Release 25.4.1

Introduced in this release on: Fixed Systems (8010 [ASIC: A100])(select variants only*)

*This feature is supported on:

  • 8011-32Y8L2H2FH

  • 8011-12G12X4Y-A/D

Command Authorization Using Local User Account

Release 25.1.1

Introduced in this release on: Fixed Systems (8700 [ASIC: K100], 8010 [ASIC: A100])(select variants only*)

*This feature is supported on:

  • 8712-MOD-M

  • 8011-4G24Y4H-I

Command Authorization Using Local User Account

Release 24.4.1

Introduced in this release on: Fixed Systems (8200 [ASIC: P100], 8700 [ASIC: P100])(select variants only*); Modular Systems (8800 [LC ASIC: P100])(select variants only*)

*This feature is supported on:

  • 8212-48FH-M

  • 8711-32FH-M

  • 88-LC1-36EH

  • 88-LC1-12TH24FH-E

  • 88-LC1-52Y8H-EM

Command Authorization Using Local User Account

Release 7.5.1

This feature allows locally authenticated users—authenticated by the AAA server internal to the router—to run all XR VM commands even if a remote TACACS+ AAA server is not reachable for authorization. It prevents a complete router lockdown. The feature also prevents remotely authenticated users—authenticated using a remote AAA server (say, TACACS+ server)—from running any non-permitted commands on the router, and thus prevents misuse of user privileges.

This feature modifies the aaa authorization commands default command to include the local option for XR VM command authorization.

Local command authorization behavior

Currently, when a user tries to execute a command on XR VM, the router checks to see whether the user has required permissions to execute it. The router does this authorization process in two steps. First, the system compares the task-IDs of the user with the required task-IDs for the command. If the user has all required task-IDs, and if AAA authorization is configured, then the system sends an authorization request to the local or remote AAA server, based on that configuration. Based on the response from the AAA server, the system allows or rejects the command execution. If authorization is not configured or if it configured with option none, then the system bypasses authorization check and allows user to execute the command.

Similarly, the existing remote authorization process using TACACS+ server has two options - remote authorization using tacacs+ and none. The authorization process using TACACS+ option uses an external TACACS+ server for authorization. The authorization using none option allows the user to execute the command without any authorization check. TACACS+ authorization has the advantage of fine-tuning authorization rules and providing more control on system access that cannot be otherwise done locally. However, if the remote server is not reachable, a user who leverages TACACS+ authorization might get into an unpredictable state of router, as mentioned in these scenarios:

  • Remote authorization using TACACS+ with failover option as none (that is, with the aaa authorization commands default group tacacs+ none configuration)

    If TACACS+ server is not reachable, then the system bypasses the authorization check and allows user to execute the command. A user who does not have permission to execute certain commands due to additional authorization rules on the TACACS+ server, then gets permission to execute those commands in this scenario. This action introduces a privilege escalation.

  • Remote authorization using TACACS+ without any failover option (that is, with the aaa authorization commands default group tacacs+ configuration)

    If TACACS+ server is not reachable, then the system does not authorize the command at all. Because the user then cannot execute any command, the router gets locked out.

With the introduction of command authorization using local user account feature in Cisco IOS XR Software Release 7.5.1, locally authenticated users can execute commands even if a TACACS+ server is not reachable. This behavior is similar to the behavior with the failover option none, with the only difference that only locally authenticated users can execute commands in this case. This functionality thereby prevents a complete lockdown of the router as mentioned in one of the previously existing scenarios mentioned earlier. At the same time, the feature also prevents users who are authenticated remotely (that is, TACACS+ authenticated users) from executing any non-permitted command on the router. This behavior in turn helps to prevent any sort of misuse of user privileges on the router.


How command authorization works

Command authorization uses user task IDs and the configured AAA authorization method to decide whether a user can execute a command.

Summary

The key components involved in the process are:

  • User: Initiates commands that require authorization.

  • AAA Authorization method: Determines whether the user is authorized to execute a command based on the configured method.

  • TACACS+ server: Performs external authorization checks for remotely authenticated users.

Command authorization ensures that users are permitted to execute commands on a router according to authentication and authorization settings.

Workflow

These stages describe how command authorization works.

  1. Remotely authenticated user:

    • If the TACACS+ server is available, the server authorizes command execution.

    • If there is a timeout and the TACACS+ server is unreachable, command authorization fails. The user cannot execute any commands until the TACACS+ server becomes reachable again, preventing misuse of user privileges.

    Figure 1. Call Flow of Command Authorization for Remotely Authenticated Users
  2. Locally authenticated user:

    • Even if the authorization request to the TACACS+ server times out, local command authorization succeeds.

    • The local AAA component in the router does not perform an additional check. The user can execute the command regardless of TACACS+ server availability, preventing a complete lockdown of the router.

    Figure 2. Call Flow of Command Authorization for Locally Authenticated Users

Result

The router either authorizes the command, denies the command, or blocks command execution until the required TACACS+ server is reachable, depending on the user's authentication method.


Configure command authorization with a local user account

Preserve command execution capabilities for locally authenticated users during TACACS+ server unreachability or when local-only command authorization is necessary.

Use this task to enable local command authorization or TACACS+ command authorization with local failover, ensuring command execution remains possible when remote authorization fails.

Before you begin

  • Be cautious to prevent potential lockout situations caused by misconfiguration.

  • If local is the only method specified for authorization, remotely authenticated users may lose access to execute further commands after configuring command authorization using the local user account feature.

Procedure

  1. Configure command authorization with local failover or local authorization.

    Example:

    Router#configure
    Router(config)#aaa authorization commands default group tacacs+ local

    Example:

    Router(config)#aaa authorization commands default local

    To configure command authorization using local user account, use the local option in the aaa authorization command in any of these formats:

    Or

  2. Review the command-authorization running configuration.

    Example:

    Router#show run aaa
    !
    aaa authorization commands default group tacacs+ local
    !

    Example:

    Router#show run aaa
    !
    aaa authorization commands default local
    !
  3. Verify the user authentication method.

    Example:

    Router#show user authentication method
    local

The router authorizes commands by using TACACS+ with local failover, or by using local authorization only, ensuring command execution for locally authenticated users in relevant scenarios.


Command authorization behaviors with TACACS+ and local fallback

Feature behavior with various local command authorization options

This table lists command authorization feature behaviors depending on the AAA authorization configuration.

Table 2. Feature behavior with various local command authorization options

AAA configuration

Expected behavior

aaa authorization commands default group tacacs+ local

If TACACS+ server is not reachable, system allows locally authenticated users to execute the command. If TACACS+ server is reachable and if it returns an authorization failure, then the system does not perform any failover to local authentication with this configuration.

aaa authorization commands default local

This configuration allows only locally authenticated users to execute commands. System completely blocks remote users from executing any command.

aaa authorization commands default local group tacacs+

In this scenario, system chooses local authorization first and grants access if the user is locally authenticated. If not, the request fails over to TACACS+ server. This combination of command options is useful when both local and remote authenticated users want to execute commands when TACACS+ server is reachable.

aaa authorization commands default local none

Although configurable, this combination of command options does not provide any additional security with respect to user access. It is equivalent to having no authorization.

Use case scenarios of command authorization

In these scenarios:

  • “Local user” refers to users authenticated and profiled locally (not on the TACACS+ server).

  • “Remote user” refers to users authenticated and profiled remotely (on the TACACS+ server, not locally).

  • Both types of users are assumed to have permission to execute root-lr commands.

Table 3. Use case scenarios of command authorization

Type of user

(local or remote)

AAA configuration summary

Use case scenario

Expected behavior

Local and remote user

No command authorization configured

Execute a command

Command authorization succeeds if the required task-IDs are available

Local user

Only tacacs+ command authorization configured.

Execute a command when TACACS+ server is reachable

Command authorization fails

Execute a command when TACACS+ server is not reachable

Command authorization fails

Remote user

Only tacacs+ command authorization configured

Execute a command when TACACS+ server is reachable

Command authorization succeeds

Router#show run aaa authorization
aaa authorization commands default group tacacs+

Execute a command when TACACS+ server is not reachable

Command authorization fails

Local user

Only tacacs+ command authorization configured with failover option as none.

Execute a command when TACACS+ server is reachable

Command authorization fails

Execute a command when TACACS+ server is not reachable

Command authorization succeeds

Router#show user authentication method
local

Remote user

Only tacacs+ command authorization configured with failover option as none.

Execute a command that is restricted only to that user when TACACS+ server is reachable

Command authorization fails

Execute a command that is restricted only to that user when TACACS+ server is not reachable

Command authorization succeeds

Local user

Only local command authorization configured.

Execute a command

Command authorization succeeds

Router#show run aaa authentication
aaa authentication login default group tacacs+ local

Remote user

Only local command authorization configured.

Execute a command

Command authorization fails

Local user

Only tacacs+ command authorization configured with failover option as local.

Execute a command when TACACS+ server is reachable

Command authorization fails

Execute a command when TACACS+ server is not reachable

Command authorization succeeds

Router#show run aaa authorization
aaa authorization commands default group tacacs+ local

Remote user

Only tacacs+ command authorization configured with failover option as local.

Execute a command when TACACS+ server is reachable

Command authorization succeeds

Router#show run aaa authorization
aaa authorization commands default group tacacs+ local

Execute a command when TACACS+ server is not reachable

Command authorization fails

Additional reference information

Use these tables and scenarios to compare:

  • TACACS+ only authorization

  • TACACS+ with local fallback

  • Local-only authorization

  • Authentication method combinations

Refer to the examples to predict command execution results for locally authenticated and remotely authenticated users when the TACACS+ server is reachable or unreachable.