Updated on 2022-08-30 GMT+08:00

Enabling the WTP Edition

Before enabling WTP, you need to allocate a quota to a specified server. If the service is disabled or the server is deleted, the quota can be allocated to other servers.

The premium edition will be enabled when you enable WTP.

How WTP Prevents Web Page Tampering

Table 1 Protection mechanisms

Type

Mechanism

Static web page protection

  1. Local directory lock

    WTP locks files in a web file directory in a drive to prevent attackers from modifying them. Website administrators can update the website content by using privileged processes.

  2. Active backup and restoration

    If WTP detects that a file in a protected directory is tampered with, it immediately uses the backup file on the local host to restore the file.

  3. Remote backup and restoration

    If a file directory or backup directory on the local host is invalid, you can use the remote backup service to restore the tampered web page.

Dynamic web page protection

  1. Malicious behavior filtering based on RASP

    The runtime application self-protection (RASP) technologies developed by Huawei detect program behaviors, preventing attackers from tampering with web pages through application programs.

Restrictions

The Windows firewall must be enabled when you enable protection for a Windows server. Do not disable the Windows firewall during the HSS in-service period.

Prerequisites

  • On the Server Protection page of the WTP console, the Agent Status of the target server is Online, and the Protection Status of the server is Disabled.
  • In the server list on the Servers page of the HSS console, the Agent Status of the target server is Online, and the Protection Status of the server is Disabled.
  • You have purchased sufficient quotas for the Web Tamper Protection edition in the selected region.

Setting Protected Directories

You can set:

  • Directories

    You can add a maximum of 50 protected directories to a host. For details, see Adding a Protected Directory or File System.

    To record the running status of the server in real time, exclude the log files in the protected directory. You can grant high read and write permissions for log files to prevent attackers from viewing or tampering with the log files.

Enabling WTP

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > Host Security Service.
  3. In the navigation pane, choose Web Tamper Protection > Server Protection. Click Enable in the Operation column of a server.

    Figure 1 Web Tamper Protection
    The server list displays the protection status of only the following servers:
    • HUAWEI CLOUD servers purchased in the selected region
    • Non-HUAWEI CLOUD servers that have been added to the selected region

  4. In the Enable WTP dialog box, allocate quotas to servers and click OK, as shown in Figure 2.

    If your server runs the Linux OS, you can enable WTP. After WTP is enabled, you need to restart Tomcat for the configuration to take effect.

    If you have not enabled WTP, you can enable it later on the Installation and Configuration page.

    Figure 2 Enabling WTP
    The quotas can be allocated in the following ways:
    • Select Select a quota randomly. to let the system allocate the quota with the longest remaining validity to the server.
    • Select a quota to allocate.
    • Enable protection for servers in batches. The system will automatically allocate quota to them.

  5. View the server status on the Web Tamper Protection page.

    The premium edition will be enabled when you enable WTP.
    • Choose Web Tamper Protection, and click Server Protection. If the WTP Status of the target server is Enabled and the Edition/Expiration Date of it is Web Tamper Protection, the WTP edition is enabled.
    • Choose Host Security Service > Servers, and choose Servers. If the Protection Status of the target server is Enabled and the Edition/Expiration Date of it is Premium (included with WTP), the premium edition provided by the WTP edition is enabled free of charge.

  • To enable WTP protection for a server, you can also choose Web Tamper Protection > Server Protection, click Details, and click Bind Server in the Operation column of a quota.
  • A quota can be bound to a server to protect it, on condition that the agent on the server is online.
  • Disable WTP before updating a website and enable it after the update is complete. Otherwise, the website will fail to be updated.
  • Your website is not protected while WTP is disabled. Enable it immediately after updating your website.

Follow-Up Procedure

Disabling WTP

Choose Web Tamper Protection > Server Protection and click Disable in the Operation column of a server.

If WTP is disabled, its quota status will change from occupied to idle. You can allocate the idle quotas to other servers or unsubscribe the unnecessary quotas to avoid quota waste.

  • Before disabling WTP, perform a comprehensive detection on the server, handle known risks, and record operation information to prevent O&M errors and attacks on the server.
  • If WTP is disabled, web applications are more likely to be tampered with. Therefore, you need to delete important data on the server, stop important services on the server, and disconnect the server from the external network in a timely manner to avoid unnecessary losses caused by attacks on the server.
  • After you or disable WTP, files in the protected directory are no longer protected. You are advised to process files in the protected directory before performing these operations.
  • If you find some files missing after disabling WTP, search for them in the local or remote backup path.
  • The premium edition will be disabled when you disable WTP.

Unbinding quota

To unbind a quota, choose Web Tamper Protection > Server Protection, click Details, and choose More > Unbind Quota in the Operation column of the quota. The quota status will change to Idle. HSS automatically disables WTP for servers associated with the quota.

You can allocate the idle quotas to other servers or unsubscribe the unnecessary quotas to prevent quota waste.

If you unsubscribe from a cloud server protected by WTP, the server will not be automatically unbound from the quota. You can manually unbind it. The server will be automatically unbound from the HSS quota 30 days after the Agent goes offline.