Handling False Alarms to Get Improved Basic Web Protection
After you connect your website to Web Application Firewall (WAF) and enable basic web protection, WAF detects and blocks requests that match the rules you configured. If a normal request matches a basic web protection rule and is blocked by WAF, you can handle the event as false alarm. In this way, WAF will no longer block the same type of request.
Prerequisites
You can view false alarm events on the Events page.
Constraints
An event can only be handled as a false alarm once.
Application scenarios
Sometimes normal service requests may be blocked by WAF. For example, suppose you deploy a web application on a HUAWEI CLOUD ECS and then add the public domain name associated with that application to WAF. If you enable basic web protection for that application, WAF may block the access requests that match the basic web protection rules. As a result, the website cannot be accessed through its domain name. However, the website can still be accessed through the IP address. In this case, you can handle the false alarms to allow normal access requests to the application.
Impact on the System
- The event will not be displayed on the Events page and you will not receive any alarm notifications about the event.
- If an event is handled as a false alarm, the matched rule will be added to the false alarm masking rule list. You can view, disable, delete, or modify the rule on the False Alarm Masking page under Policies.
Procedure
- Log in to the management console.
- Go to the Website Settings page by following the steps shown in Figure 1.
- In the navigation pane on the left, choose Events.
- In the event list, search for false alarms by protected website, event type, source IP address, and URL. Figure 2 shows an example.
- In the Operation column of an event you consider as a false alarm, click Details. On the displayed page, confirm that the event is a false alarm. Figure 3 shows an example.
- In the row containing the event, click Handle False Alarm in the Operation column.
- In the displayed dialog box, click OK. Figure 4 Handle False Alarm
- Click Add to add other protected domain names to apply the false alarm masking rule to these domain names.
- Path
Part of the URL (excluding a domain name) that a false alarm is reported for. The default value is the source path of the event.
- Prefix match: If you select Prefix is, the entered path is used as the prefix. For example, if the path to be protected is /admin/test.php or /adminabc, set Path to /admin.
- Exact match: The path to be entered must be Equal to the path to be protected. For example, if the path to be protected is /admin/test.php, set Path to /admin/test.php.
Verification
A false alarm will be deleted within about a minute after the handling configuration is done. It will no longer be displayed in the event list. You can clear the cache, refresh the browser, and access the page again to verify whether the false alarm was successfully handled. If the requested page responds normally, the configuration takes effect.
Follow-up Procedure
- Downloading Events
On the Events page, you can download the event data of all protected domain names for the past five days. A CSV file of the protection event data for the current day is generated at 00:00:00 the next day.
- Configuring False Alarm Masking Rules
You can configure a false alarm masking rule to ignore some rule IDs or event types. For example, if you do not want to check a specific URL for XSS attacks, you can configure a false alarm masking rule to mask XSS checks for the URL.
Basic Web Protection Check Items
WAF basic web protection defends against common Open Web Application Security Project (OWASP) security threats. WAF uses built-in semantic analysis and regular expression engines for basic web protection to detect and block threats such as malicious scanners, IP addresses, and web shells. You can enable all protection rules in basic web protection or only the ones you want. For details, see Table 1.
| Check Item | Description |
|---|---|
| General Check | WAF defends against attacks such as SQL injections, XSS, remote overflow vulnerabilities, file inclusions, Bash vulnerabilities, remote command execution, directory traversal, sensitive file access, and command/code injections. NOTE: If you enable General Check, WAF checks your websites based on the built-in rules. |
| Webshell Detection | WAF protects web applications from web shells. NOTE: If you enable Webshell Detection, WAF detects web page Trojans inserted through the upload interfaces. |
| Deep Inspection | WAF identifies and blocks evasion attacks, such as the ones that use homomorphic character obfuscation, command injection with deformed wildcard characters, UTF7, data URI scheme, and other techniques. NOTE: If you enable Deep Inspection, WAF detects and defends against evasion attacks in depth. |
| Header Detection | This check is disabled by default. If this check is disabled, only some of the header fields in the received requests are checked against General Check. NOTE: If you enable Header Detection, WAF inspects all header fields in the received requests. |
Basic Web Protection Levels
WAF provides three basic web protection levels, Low, Medium, and High. The default level is Medium. The lower the protection level, the higher the false negative rate and the lower the false positive rate. For details, see Table 2.
| Protection Level | Description |
|---|---|
| Low | WAF only blocks the requests with obvious attack signatures. If a large number of false alarms are reported, Low is recommended. |
| Medium | The default level is Medium, which meets a majority of web protection requirements. |
| High | WAF blocks the requests with no attack signature but have specific attack patterns. High is recommended if you want to block SQL injection, XSS, and command injection attacks. |
Last Article: Configuring Basic Web Protection
Next Article: Connecting a Domain to WAF



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.