Updated on 2024-03-28 GMT+08:00

Enabling Web Tamper Protection

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

Provides runtime application self-protection (RASP) for Tomcat applications in the following ways:

  1. Malicious behavior filtering based on RASP

    The Huawei-unique runtime application self-protection (RASP) detects application program behaviors, preventing attackers from tampering with web pages through application programs.

  2. Network disk file access control

    WTP implements fine-grained management to control permissions for adding, modifying, and querying file content in network disks, preventing tampering without affecting website content release.

Prerequisites

  • Choose Prevention > Web Tamper Protection. Click the Servers tab. The Protection Status of the server is Unprotected.
  • Choose Asset Management > Servers & Quota. The Agent Status of a server is Online, and the Protection Status of the server is Unprotected.

Setting Protected Directories

You can set:

  • You can add a maximum of 50 protected directories to a host. For details, see Adding a Protected Directory.
  • 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. Click in the upper left corner of the page, select a region, and choose Security & Compliance > HSS to go to the HSS management console.
  3. In the navigation pane, choose Prevention > Web Tamper Protection. On the Web Tamper Protection page, click Add Server.

    Figure 1 Adding a protected server

  4. On the Add Server page, click the Available servers tab. Select the target server, select a quota from the drop-down list or retain the default value, and click Add and Enable Protection.
  5. View the server status on the Web Tamper Protection page.

    The premium edition will be enabled when you enable WTP.

    • Choose Prevention > Web Tamper Protection. If the Protection Status of the server is Protected, WTP has been enabled.
    • Choose Asset Management > Servers & Quota and click the Servers tab. 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 Asset Management > Servers & Quota, click the Quotas tab, and click Bind Server.
  • A quota can be bound to a server to protect it, on condition that the agent on the server is online.
  • If the version of the agent installed on the Linux server is 3.2.10 or later or the version of the agent installed on the Windows server is 4.0.22 or later, ransomware prevention is automatically enabled with the WTP edition. Deploy bait files on servers and automatically isolate suspicious encryption processes (there is a low probability that processes are incorrectly isolated). You are also advised to enable backup so that you can restore data in the case of a ransomware attack to minimize losses. For details, see Enabling Ransomware Backup.
  • 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.

Related Operations

Disabling WTP

Choose Prevention > Web Tamper Protection and click the Servers tab. Click Disable Protection 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 prevent 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

Choose Asset Management > Servers & Quota, and click the Quotas tab. Click Unbind in the Operation column. The usage status of the unbound quota will change from In use 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.