Updated on 2024-09-23 GMT+08:00

WTP Overview

Web Tamper Protection (WTP) can detect and prevent tampering of files in specified directories, including web pages, documents, and images, and quickly restore them using valid backup files.

Constraints and Limitations

Ensure that the WTP edition has been enabled for the server. For details about how to purchase HSS and enable the WTP edition, see Purchasing HSS Quota and Enabling Web Tamper Protection.

How WTP Prevents Web Page Tampering

WTP supports static and dynamic web page protection. How WTP works shows the protection mechanism.

Table 1 How WTP works

Protection 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 the protection directory is tampered with, it immediately uses the backup file on the local host to restore the file.

  3. Remote backup and restoration

    After a remote backup server is configured, if a file in a protected directory is changed, HSS will back up the updated file.

    If the file and backup directory on the local server become invalid, you can log in to the remote backup server, obtain backup files, and manually restore the tampered websites. You can view backup paths on the Manage Remote Backup Server page. For details, see Changing a Remote Backup Server.

Dynamic web page protection

The Huawei-proprietary RASP can detect application program behaviors, prevent attackers from tampering with web pages through application programs, and provide self-protection in Tomcat application runtime.

Process of Using WTP

Figure 1 Usage process
Table 2 Process of using WTP

Operation

Description

Enabling Web Tamper Protection

After the WTP edition is enabled, static WTP and other protection functions are enabled automatically. For details about the functions supported by the WTP edition, see Features.

Adding a Protected Directory

Static WTP protects specified directories. You need to configure static WTP directories.

(Optional) Configuring Remote Backup

By default, for Linux servers, HSS backs up files in the protected directories to the local backup paths you specified when adding protected directories. To prevent the local backup from being damaged by attackers, you can configure remote backup to protect web page backup data.

(Optional) Enabling Dynamic WTP

For Linux servers, HSS provides runtime application self-protection (RASP) for Tomcat applications. You can enable dynamic WTP for Tomcat applications as required.

Viewing WTP Events

Tamper events that occur during web tamper protection are recorded and displayed in the event list.

Adding a Privileged Process

After static WTP is enabled, the content in the protected directory is read-only and cannot be modified. To modify a protected file, you can add a privileged process.

Enabling/Disabling Scheduled Static WTP

Not all OS kernel versions support privileged processes and each server can add up to 10 privileged processes. For OSs that do not support privileged processes, you can set periodic static WTP and update websites while WTP is automatically disabled.