The display security risk command displays security risks in the system and suggested solutions for the risks.
Parameter | Description | Value |
---|---|---|
feature feature-name |
Displays security risks of a specified feature. |
- |
level level-para |
Displays security risks of High, Medium, or Low level. |
Security risk level. It can be any value of the following:
|
type type-para |
Displays security risks of a specified type. |
Security risk type. It can be any value of the following:
|
Usage Scenario
Due to variations in security performance between protocols, some protocols may pose security risks. When the system has security risks, the device triggers the hwSecurityRisk alarm.In this case, you can run this command to check security risks in the system and remove the risks according to the provided suggestions. For example, if SNMPv1 is configured, the display security risk command output will prompt for the use of SNMPv3.
Precautions
The security risks that are displayed vary with user levels. The system administrators can view all security risks in the system. Other users can only view the security risks whose level is lower than or equal to their levels.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display security risk
2021-10-08 16:19:12.161
Risk Level : high
Feature Name : VTY
Risk Type : insecure-configuration
Risk Information : Idle time-out is configured as 0, so session will never be
disconnected because of timeout
Repair Action : Configure idle time-out to a non-zero value
Risk Level : high
Feature Name : VTY
Risk Type : insecure-configuration
Risk Information : No authentication is configured, or password authentication
is configured but no password is specified on the vty inte
rface
Repair Action : Use AAA authentication
Risk Level : medium
Feature Name : TELNET
Risk Type : insecure-protocol
Risk Information : The Telnet server function is used
Repair Action : Use Stelnet
Risk Level : medium
Feature Name : VTY
Risk Type : insecure-protocol
Risk Information : TELNET is not a secure protocol.
Repair Action : It is recommended to use SSH.
Risk Level : low
Feature Name : SSH_SERVER
Risk Type : insecure-configuration
Risk Information : The SSH server key is not updated, which brings security ri
sks.
Repair Action : It is recommended to set the SSH server rekey interval to a
non-zero value.
Risk Level : low
Feature Name : TTY
Risk Type : insecure-configuration
Risk Information : Password authentication is configured on the console interf
ace.
Repair Action : Use AAA authentication.
<HUAWEI> display security risk feature telnet
2021-10-08 16:18:25.650
Risk Level : medium
Feature Name : TELNET
Risk Type : insecure-protocol
Risk Information : The Telnet server function is used
Repair Action : Use Stelnet
<HUAWEI> display security risk level high
2021-10-08 16:18:53.955
Risk Level : high
Feature Name : VTY
Risk Type : insecure-configuration
Risk Information : Idle time-out is configured as 0, so session will never be
disconnected because of timeout
Repair Action : Configure idle time-out to a non-zero value
Risk Level : high
Feature Name : VTY
Risk Type : insecure-configuration
Risk Information : No authentication is configured, or password authentication
is configured but no password is specified on the vty inte
rface
Repair Action : Use AAA authentication
<HUAWEI> display security risk type insecure-protocol
2021-10-08 15:55:51.590
Risk Level : medium
Feature Name : TELNET
Risk Type : insecure-protocol
Risk Information : The Telnet server function is used
Repair Action : Use Stelnet
Risk Level : medium
Feature Name : VTY
Risk Type : insecure-protocol
Risk Information : TELNET is not a secure protocol.
Repair Action : It is recommended to use SSH.
<HUAWEI> display security risk type insecure-configuration
2021-10-08 15:55:58.332
Risk Level : high
Feature Name : VTY
Risk Type : insecure-configuration
Risk Information : Idle time-out is configured as 0, so session will never be
disconnected because of timeout
Repair Action : Configure idle time-out to a non-zero value
Risk Level : high
Feature Name : VTY
Risk Type : insecure-configuration
Risk Information : No authentication is configured, or password authentication
is configured but no password is specified on the vty inte
rface
Repair Action : Use AAA authentication
Risk Level : low
Feature Name : SSH_SERVER
Risk Type : insecure-configuration
Risk Information : The SSH server key is not updated, which brings security ri
sks.
Repair Action : It is recommended to set the SSH server rekey interval to a
non-zero value.
Risk Level : low
Feature Name : TTY
Risk Type : insecure-configuration
Risk Information : Password authentication is configured on the console interf
ace.
Repair Action : Use AAA authentication.
Item | Description |
---|---|
Risk Level | Security risk level. It can be any value of the following:
|
Risk Information | Information about the security risks. |
Risk Type | Risk Type. |
Feature Name | Feature name. |
Repair Action | Suggested solutions for the security risks. |