Security and WAF
Use the Security & WAF page to scan your account for malware, handle infected files, and set the Web Application Firewall (WAF) for each website.
Security summary
The top of the page has these cards:
| Card | Shows |
|---|---|
| Scanner | The scanner in use, e.g. ClamAV. Available when scanning is ready, Unavailable when the server has no scanner yet. |
| Open findings | Number of findings to review. "No threats found" when clean. |
| Last scan | Time and result of the last scan. |
| WAF | Number of protected websites, e.g. "Blocking on 2 of 3 websites". Status Active, Partial, or Off. |
Malware scanning
Automatic scanning
Your account is scanned in two ways:
- Scheduled: your whole home folder is scanned automatically every day (Scan schedule: Daily (automatic)).
- Real-time: when the server has it turned on, every file is scanned as soon as it has been written, including files uploaded through website forms, FTP, or SFTP. Infected files are quarantined right away.
The quarantine folder and the Trash are not scanned.
Scanning now
- Click Scan now.
- The Malware protection panel shows the progress: Waiting in queue…, Preparing scan…, then Scanning files with the number of files scanned so far.
- Wait until it finishes.
Scans run in a server queue, one account at a time. Accounts with many files take longer.
Scan results
The Malware protection panel shows:
- "No open threats" when the account is clean;
- the number of open threats and the advice "Review the findings below and quarantine or delete the infected files." when there are findings.
If the server cannot be reached, the panel shows the last known report.
When there are open malware findings, you also get an email at your contact email if malware notifications are on. See Settings.
Handling malware findings
The Malware history tab, below the panels, lists all findings. Filter with Search findings… and the status filter.
| Status | Meaning |
|---|---|
| Open | The file was detected and is still in its original location. |
| Quarantined | The file was moved to quarantine and cannot run. |
| Resolved | The file is no longer detected by a later scan. |
| Deleted | The file was deleted permanently. |
| File gone | The file no longer exists. |
| Ignored | Marked as a false positive and no longer reported. |
| Restored | The file was restored from quarantine and is ignored by later scans. |
Actions on a finding, from the ⋯ menu on its row:
| Action | Result |
|---|---|
| Quarantine | Moves the file to ~/.moorcp-quarantine/, outside the document root, without read permission. |
| Mark as false positive | Leaves the file in place and stops reporting it. |
| Delete file | Deletes the file permanently from its original location. |
| Restore file | Puts a quarantined file back in its original location. The file is ignored by later scans. |
| Delete permanently | Deletes the file from quarantine. |
| Report again | Removes the false positive mark. |
Recommended steps
- Quarantine first, do not delete right away. Quarantine is safe and can be undone.
- Check that the website still works normally.
- Find the source of the infection: outdated plugins, themes, or applications. Update them with the WordPress Manager.
- Change your panel, FTP, database, and application admin passwords.
- Once you are sure, use Delete permanently on the quarantined files.
DANGER
Delete file and Delete permanently cannot be undone. The file can only be recovered from a backup.
False positives
Use Mark as false positive or Restore file only when you are sure the file is safe, e.g. a file from an official plugin you know. If in doubt, ask your hosting provider.
Web Application Firewall (WAF)
The Web Application Firewall (WAF) panel uses ModSecurity with the OWASP CRS. The WAF blocks common attacks such as SQL injection and cross-site scripting (XSS) before they reach your website.
Each website shows its effective mode and the number of blocked requests, e.g. "12 blocked requests".
WAF modes
| Mode | Meaning |
|---|---|
| Recommended | Follows your hosting provider's default setting. |
| Block | Malicious requests are blocked. |
| Detect only | Malicious requests are only logged, not blocked. |
| Off | The WAF does not inspect this website. |
Changing the WAF mode
- On the website row, choose a mode in Firewall mode for myshop.com.
- Wait for the "Firewall setting saved" notification.
If it reads "Your provider manages the firewall settings.", only your hosting provider can change the WAF mode.
WARNING
Turn off the WAF only when it blocks something legitimate, e.g. an admin form of a specific plugin. It is usually better to ignore only the rule that blocks it (see Ignoring a rule on one website) or to allow your own IP (see WAF allowed IPs).
WAF history
The WAF history tab, next to Malware history, lists requests to all your websites that the WAF blocked or logged, newest first.
| Column | Shows |
|---|---|
| Time | When the request came in. |
| Domain | The website that received it. |
| IP | The visitor's IP address, with the country flag and code (hover to see the country name). The label whitelisted appears when the IP is in your WAF allowlist. Country data is only available when the server has a GeoIP database. |
| Request | Method and URL, e.g. POST /wp-login.php. |
| Reason | The first WAF rule that matched, plus the number of other rules. |
| Result | Blocked or Logged (detect only). |
Use Search domain, IP, URL, rule… and the Result filter (All, Blocked, Logged only) to narrow the list. Click a row, or View details in its ⋯ menu, to see every rule that matched.
The ⋯ menu of a row also has:
- Whitelist IP: adds the IP to your WAF allowed IPs after you confirm. It reads IP already whitelisted when the IP is already covered.
- Ignore rule on this website: see the next section.
Ignoring a rule on one website
When a WAF rule blocks a legitimate request, e.g. saving a page in a page builder, you can stop that rule on one website only, without turning off the whole WAF.
- In WAF history, open the ⋯ menu of the blocked request and choose Ignore rule on this website. In the event details you can also click Ignore on this website next to one rule.
- Check the list of rules and confirm.
The WAF stops checking those rules on that website only. The ignored rules are shown as Ignored rules: under the website in the Web Application Firewall (WAF) panel. Click × next to a rule number to check it again.
- Only OWASP CRS detection rules can be ignored. Rules that score or block requests, and MoorCP's own rules, cannot be ignored, because that would turn off the whole WAF.
- This option is only available when your hosting provider lets you manage the WAF settings.
WAF allowed IPs
The WAF allowed IPs panel lists IP addresses or ranges whose requests skip the WAF on your websites only, e.g. your office IP that is often blocked while you manage your site.
- Enter one IP address or range per line, e.g.
203.0.113.7or203.0.113.0/24. - Click Save.
The list applies only to your own websites. It does not unblock IPs that the server firewall blocks, and it does not affect other accounts. You can add up to 50 entries.
WARNING
Allowed IPs are not protected against attacks. Keep the list short and remove IPs you no longer use.
Other server protection
Besides the WAF and the malware scanner, the server also blocks attacking IPs automatically, e.g. brute-force logins on SSH, email, wp-login.php, and the panel. Repeated wrong client panel sign-ins are also locked temporarily. See Signing in to the client panel.
2FA and sign-in history
- 2FA is set in Settings.
- Sign-in history is recorded in Recent activity on the Overview page: panel sign-ins, webmail sign-ins, and administrator sessions. The list of active sessions is in Settings.
