Malicious uploads are one of the fastest ways to take over a WordPress site. If an attacker can place a PHP file (or a script disguised as an image) somewhere the web server will execute it, they gain full control.
Two layers of protection
1. Request integrity. Enabled by default, this layer blocks uploads with executable file types before WordPress processes them. It runs independently of the managed rules.
2. File upload abuse managed category. Found in Aegisify WAF → WAF Settings → Managed Protection, this category inspects upload requests for disguised scripts, such as double extensions (image.php.jpg), embedded PHP tags, and content that does not match its claimed type. It is enabled by default on Free and Pro installations in current releases.
What is inspected
The WAF inspects the request body up to the maximum body inspection size (default 65,536 bytes). Large uploads are not fully scanned by the WAF; that is intentional to protect performance. Malware already on disk is the job of a file scanner, such as the Aegisify Shield malware scan.
Practical tips
- Restrict who can upload files using WordPress roles.
- Disable PHP execution in
wp-content/uploadsat the web-server level where your host allows it. - Review upload-related events in Logs / Attack Story after installing form or media plugins.
Related: Max request body bytes for inspection, Managed rule categories.
