Viewing and Handling Baseline Check Results
Scenarios
You can check for and fix unsafe baseline settings, weak passwords, and insecure password complexity policies on your servers.
Constraints
Only the HSS enterprise, premium, WTP, and container editions support baseline configuration checks.
Detection Description
The MySQL baseline detection of Linux OS is based on the MySQL 5 security configuration specifications. If MySQL 8 is installed on your server, the following check items are not displayed in the detection results, because they are discarded in that version. The detection results are displayed only on the server whose MySQL version is 5.
- Rule: Do not set old_passwords to 1.
- Rule: Set secure_auth to 1 or ON.
- Rule: Do not set skip_secure_auth.
- Rule: Set log_warnings to 2.
- Rule: Configure the MySQL binlog clearing policy.
- Rule: The sql_mode parameter contains NO_AUTO_CREATE_USER.
- Rule: Use the MySQL audit plug-in.
Viewing Baseline Check Overview Information
- Log in to the management console.
- In the upper left corner of the page, select a region, click
, and choose Security & Compliance > Host Security Service.
- In the navigation pane on the left, choose Risk Management > Baseline Checks.
- (Optional) If you have enabled the enterprise project function, select an enterprise project from the Enterprise Project drop-down list in the upper part of the page to view its data.
- Click different tabs on the displayed page to check the detected unsafe settings. Table 1 lists the corresponding parameters.
To view the check results of servers under different baseline check policies, you can switch between baseline check policies.Figure 1 Baseline checks
Table 1 Baseline check overview Parameter
Description
Baseline Check Policy
Available baseline check policies that have been added. You can select, create, edit, and delete these policies.
Scanned Servers
Total number of detected servers.
Checked Baselines
Number of baselines executed during the server detection.
Checked Items
Total number of checked server configuration items.
Safe Settings Rate
Percentage of configuration items that passed the baseline check to the total number of check items. Failed items are displayed by risk level.
Top 5 Servers with Unsafe Settings
Statistics on servers with server configuration risks.
The top 5 servers with the highest risks are preferentially sorted. If no high-risk settings exist, the servers are sorted into medium-risk and low-risk ones in sequence.
Servers with Weak Passwords
Total number of detected servers, as well as the numbers of servers with weak passwords, those without weak passwords, and those with weak password detection disabled.
Top 5 Servers with Weak Passwords
Statistics on the top 5 servers with most weak password risks.
Unsafe Configurations
Alarms generated for servers with configuration risks and the risk statistics.
Password Complexity Policy Detection
Statistics on the servers whose password complexity policies do not meet the baseline requirements.
Common Weak Password Detection
Statistics on servers with weak passwords and accounts.
Viewing and Handling Configuration Check Results
- Click the Unsafe Configurations tab to view the risk items. For more information, see Table 2.
Figure 2 Viewing unsafe setting details
Table 2 Parameter description Parameter
Description
Risk Level
Level of a detection result.
- High
- Low
- Medium
- Secure
Baseline Name
Name of the baseline that is checked.
Type
Policy type of the baseline that has been checked.
- Cloud security practices
- DJCP MLPS
- General security standard
Check Item
Total number of configuration items that are checked.
Risky Item
Total number of the risky configurations.
Scanned Servers
Total number of servers scanned against a baseline.
Last Scanned
Time when the last detection was performed.
Description
Description of a baseline.
- Click a baseline name in the list to view the baseline description, scanned servers, and details about all check items.
- Handle risk items.
- Ignoring risks
After a risk is ignored, it will be displayed in the ignored item list. It will no longer be reported in the HSS baseline checks on servers.
- Click Ignore in the Operation column of a check item to ignore it. Select multiple check items and click Ignore to ignore them in batches.
- In the displayed dialog box, click OK.
You can click Ignored above the check item list to view the ignored items.
- Fixing risks
- Click View Details in the Operation column of a risk item.
- View the content in the Audit Description, Suggestion, and Affected Servers. Rectify the unsafe settings.
- Currently, one-click fixing is supported for some EulerOS baseline configurations and CentOS 8 baseline configurations. You can simply click Fix in the Operation column of the target EulerOS or CentOS check item to fix the unsafe settings. If some parameters need to be configured during restoration, retain the default values.
- You are advised to fix the settings with high severity immediately and fix those with medium or low severity.
- After the repair is complete, click Verify on the Affected Servers tab page to verify the result.
If a failed check item has been fixed, you can update its status through verification. The restrictions are as follows:
- Currently, baseline verification is not supported for Windows OSs.
- The agent status of the target server must be online.
- Only one risk item can be verified at a time. Other risk items can be verified only after the risk items are verified.
- Baseline checks are supported for the following Linux OSs: Apache 2, Docker, MongoDB, Redis, MySQL 5, Nginx, Tomcat, SSH, vsftp, CentOS 7, CentOS 8, EulerOS, Debian 9, Debian 10, Debian 11, Red Hat 6, Red Hat 7, Red Hat 8, Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, SUSE 12, SUSE 15.
- Click OK to start the verification.
- Return to the check item list page and view the status of the risk item.
The status changes to Verifying. The system starts automatic verification. After the verification is complete, check the status. If a check item failed to be fixed, click View Cause to view the cause. Then, fix it again.
- Ignoring risks
Checking and Handling Password Complexity Policy Detection Results
- Click the Password Complexity Policy Detection tab to view the risk statistical items and handling suggestions. For more information, see Table 3.
Table 3 Parameter description Parameter
Description
Server Name
Name and public/private IP address of the detected server.
Password Length
Whether the password length policy of the target server meets the requirement that it should contain at least eight characters.
- Passed
- Failed
Uppercase Letters
Whether the uppercase letter policy used for passwords on the target server meets the requirement that it should contain at least one uppercase letter.
- Passed
- Failed
Lowercase Letters
Whether the lowercase letter policy used for passwords on the target server meets the requirement that it should contain at least one lowercase letter.
- Passed
- Failed
Digits
Whether the number policy used for passwords on the target server meets the requirement that it should contain at least one number.
- Passed
- Failed
Special Characters
Whether the special character policy used for passwords on the target server meets the requirement that it should contain at least one special character.
- Passed
- Failed
Last Scanned
Time when the last scan completed.
Suggestion
Suggestion for the password complexity policy of the target server.
- Handle password complexity policy check results.
- Modifying the password complexity policy
- Modify the password complexity policy on the server based on the Suggestion column in the check result.
- To monitor the password complexity policy on a Linux server, install the Pluggable Authentication Modules (PAM) on the server. For details, see How Do I Install a PAM in a Linux OS?
- For details about how to modify the password complexity policy on a Linux server, see How Do I Install a PAM and Set a Proper Password Complexity Policy in a Linux OS?
- For details about how to modify the password complexity policy on a Windows server, see How Do I Set a Secure Password Complexity Policy in a Windows OS?
- Save the modification. Click Scan in the upper part of the Baseline Checks page to verify the modification.
If you do not perform a manual verification, HSS will automatically check the settings at 00:00:00 the next day.
- Modify the password complexity policy on the server based on the Suggestion column in the check result.
- Ignoring password complexity policy check results
You can view the ignored detection results on the Ignored tab page.
- Ignoring a single result
In the Operation column of a server scan result, click Ignore.
- Batch ignoring records
Select scan results and click Ignore in the upper left corner of the list. Up to 200 results can be ignored at a time.
- Ignoring all results
Click Ignore in the upper left corner of the list. Up to 1000 password complexity policy check results can be ignored at a time.
- Ignoring a single result
- Modifying the password complexity policy
Viewing and Handling Common Weak Password Detection Results
- Click the Common Weak Password Detection tab to view the statistics of risky weak password accounts on the server. For more information, see Viewing common weak password detection.
Figure 3 Viewing common weak password detection
Table 4 Parameter description Parameter
Description
Server Name
Name and public/private IP address of the scanned server.
Account Name
Accounts with weak passwords that are detected on the target server.
Account Type
Type of an account.
Masked Weak Password
Masking result of a weak password. The rules for displaying masked weak passwords are as follows:
- ******** indicates that the password length is less than 8.
- ***a**** indicates that the password contains only lowercase letters.
- ***B*** indicates that the password contains only uppercase letters.
- **a**B** indicates that the password contains only uppercase and lowercase letters.
- **a**A***@**1** indicates that the password is a common weak password.
Last Scanned
Time when the last scan completed.
Usage Duration (Days)
Period for using a weak password.
Suggestion
Weak password change suggestions. You can check why the password is regarded insecure and set a strong password based on the suggestion.
- Log in to the server and change the weak password.
- To enhance server security, you are advised to modify the accounts with weak passwords in a timely manner, such as SSH accounts.
- To protect internal data of your server, you are advised to modify software accounts that use weak passwords, such as MySQL accounts and FTP accounts.
- A password should contain more than eight characters, including uppercase letters, lowercase letters, digits, and special characters.
- After the weak password is changed, perform a manual check in the upper part of the Baseline Checks page to verify the result.
If you do not perform a manual verification, HSS will automatically check the settings at 00:00:00 the next day.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.