Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How does SQL injection (SQLi) protection work in Aegisify WAF?

SQL injection (SQLi) is an attack where someone places database commands into a form field, URL parameter, cookie, or header, hoping a vulnerable plugin passes that text directly into a SQL query. A successful attack can read, change, or delete data in the WordPress database.

How Aegisify WAF detects it

The SQLi managed category compares request data against signatures for common injection techniques, such as UNION SELECT queries, boolean tautologies like ' OR 1=1, stacked queries, comment-based truncation, and time-delay functions. Before matching, the WAF normalizes the request (decoding and joining split or encoded values), which defeats simple evasion tricks.

The WAF inspects the query string and, by default, headers, cookies, and up to 65,536 bytes of the request body. See Inspection scope controls.

Where to configure it

Aegisify WAF → WAF Settings → Managed Protection → SQL injection. The category is enabled by default with a hit threshold of 1.

Handling false positives

Search forms, technical blogs, and support tickets sometimes contain SQL-like words. If the logs show a legitimate request being flagged:

  1. Confirm the route and parameter in Logs / Attack Story.
  2. Create an endpoint policy for that exact path that raises the SQLi threshold or disables the category only there.
  3. Avoid turning the category off site-wide.

Important limit

A WAF reduces risk but does not fix the vulnerable code. Keep plugins updated and use Aegisify Audit to find components with known SQL injection CVEs.

Related: XSS protection, Managed rule categories.

2026-12-01T03:50:34+00:00January 12th, 2026||

Find this article interesting, please share.