Aegisify company logo
Heuristic2026-08-13T22:11:27+00:00
Aegisify WAF — Heuristic Anomaly Layer

WordPress WAF Heuristics: Score Suspicious Request Patterns Without Treating Every Anomaly as an Attack

Aegisify WAF 1.20.13 adds a tunable heuristic layer to managed protection. It examines the normalized content of a request for suspicious encoding, metacharacter density, repeated traversal, dangerous URI schemes, SQL-style tautologies, and unusually long tokens, then acts only when the combined request score reaches the configured threshold.

Heuristics should increase context, not manufacture certainty.The engine is deterministic and request-scoped. It does not claim to identify attacker intent or use machine learning. It adds evidence when one exact signature is not enough.

1NormalizeBounded request context
2ScoreIndependent anomaly signals
3DecideThreshold + WAF policy
Heuristic Decision Flow

How One Request Becomes a Heuristic Finding

The heuristic engine runs on normalized request material already prepared by the WAF. Each supported anomaly adds a fixed amount to the request score. A finding is returned only when the configured score threshold is reached.

Click a stage to expand

01NormalizePrepare request text
The Core WAF normalizes bounded request content before heuristic evaluation. The heuristic layer does not independently crawl WordPress or inspect historical traffic; it evaluates the normalized request presented to it.
02MeasureCount suspicious traits
Aegisify checks percent-encoding volume, selected metacharacters, repeated traversal sequences, dangerous URI schemes, simple SQL tautology patterns, and token length.
03ScoreAdd fixed evidence points
Signals contribute independently to a request-level score. Multiple traits can therefore create stronger evidence than one isolated characteristic.
04ThresholdDefault score 40
If the score remains below the configured threshold, no heuristic finding is returned. The default threshold is 40 and can be tuned from 10 through 200.
05PolicyLog, challenge, limit, block
The configured heuristic action can be Log, Challenge, Rate limit, or Block. Aegisify recommends log-first tuning because heuristics are broader than exact managed signatures.
06EvidenceReason codes + score
The resulting WAF event can record the heuristic rule identifier, score, reasons, configured action, and effective action so administrators can see why the request crossed the threshold.
What the Engine Actually Scores

Six Deterministic Signals, Each With a Specific Job

The current 1.20.13 implementation is intentionally bounded. It does not create an open-ended behavioral model inside the heuristic class.

01 — Percent Encoding

High Encoded-Character Volume

The default percent-encoding threshold is eight occurrences. Crossing it contributes 15 points. Encoded content is not automatically malicious, so this signal becomes more useful when paired with other evidence.

02 — Metacharacters

Dense Special-Character Use

The engine counts characters commonly associated with markup, shell syntax, quoting, separators, and expression construction. Twelve or more by default contributes 20 points.

03 — Traversal

Repeated Parent-Directory Sequences

Two or more direct ../ or Windows-style parent-directory sequences add 20 points, giving repeated traversal behavior more weight than one incidental path token.

04 — Dangerous Schemes

file, gopher, or dict URI Use

Requests containing selected schemes that can be relevant to file access or server-side request abuse add 20 points. This is evidence, not proof that a vulnerable sink exists.

05 — SQL Tautology

Simple Always-True Expression Pattern

A basic OR/AND numeric tautology pattern contributes 25 points. It is deliberately one signal within the broader WAF rather than a replacement for the managed SQL-injection signatures.

06 — Long Token

Unusually Large Single Token

A token at or above 900 characters by default contributes 20 points. Administrators can raise or lower that threshold from 100 through 5,000 characters to fit legitimate application payloads.

Tunable Security Boundary

Thresholds Matter More Than a Generic “Aggressiveness” Label

Aegisify exposes the controls that determine when the heuristic layer becomes actionable.

Score Threshold

Default: 40

The score threshold determines when a heuristic finding exists. Raising it requires more combined evidence. Lowering it increases sensitivity and should be validated against real forms, APIs, editors, and encoded application traffic.

Signal Thresholds

8 Encodings · 12 Metacharacters · 900-Character Token

These defaults can be tuned independently. That matters because legitimate technical applications may use encoded values or long tokens more often than a conventional publishing site.

Configured Action

Default Recommendation: Log

The admin interface recommends keeping heuristics in Log while learning site behavior. Challenge, rate limiting, or blocking should follow evidence showing the selected threshold is reliable for that environment.

Heuristics vs. Managed Scoring

Do Not Confuse Two Different WAF Scoring Systems

Aegisify 1.20.13 uses heuristic scoring and optional cumulative managed-rule scoring for different purposes.

Heuristic scoring evaluates broad traits inside one normalized request. Its output uses the heuristic rule identifier heur_01 and provides reason codes such as high percent encoding, many metacharacters, traversal repetition, dangerous schemes, tautology, or a very long token.

Cumulative managed-rule scoring is separate. When enabled, it combines independent exact managed-signature matches across the bounded managed library. Its default configuration is disabled, with an action threshold of 10 and five points per independent signature match.

Security posture benefit: keeping broad heuristics separate from exact managed signatures lets teams review why a request looks unusual without pretending both kinds of evidence have the same confidence. That supports safer tuning and reduces pressure to solve false positives with broad exclusions.
Global Enforcement Still Wins

Observe and Learn Can Keep a Strong Configured Action From Terminating Traffic

The heuristic layer participates in the Core WAF policy rather than bypassing it.

01

Start in Observe or Learn

The current administration guidance explicitly recommends enabling heuristics while the WAF is in a non-terminating mode. Review which routes, payload types, and applications reach the heuristic threshold before increasing enforcement.

02

Tune the Signal That Is Actually Noisy

If legitimate traffic crosses the threshold, adjust the relevant encoding, metacharacter, token-length, or total-score setting instead of automatically disabling the whole WAF or excluding a large application path.

03

Move to Stronger Action Only With Evidence

When site-specific review shows a threshold reliably identifies abusive input, administrators can choose Challenge, Rate limit, or Block. The authoritative global WAF mode still determines the effective terminating behavior.

Use Heuristics for the Right Problem

What This Layer Does—and What It Does Not Do

Clear boundaries make the feature more useful and the security claim more defensible.

1Request ScopedThe heuristic score is calculated from the current normalized request, not a long-term attacker profile.
2DeterministicIt uses explicit rules and point values, not an opaque machine-learning decision.
3ComplementaryUse it beside managed signatures, API controls, abuse correlation, DDoS controls, and logging.
4TunableTechnical applications with unusual payloads should validate thresholds before enforcement.
Tune Before You Block

Use Heuristic Evidence to Strengthen WordPress WAF Decisions

Start with real application traffic, review which anomaly combinations matter, then tighten enforcement without turning one unusual request into automatic certainty.

Get Started

Heuristic FAQ

Common Questions About Aegisify WAF Heuristics

Does Aegisify’s heuristic engine learn automatically over time?

No. The 1.20.13 heuristic class is deterministic and request-scoped. Other WAF controls correlate activity across requests, but this layer uses fixed signals and administrator-controlled thresholds.

What happens below the score threshold?

The heuristic evaluator returns no finding when the request score remains below the configured threshold. This prevents one low-value anomaly from automatically becoming a heuristic event.

Should I set the heuristic action to Block immediately?

The current product guidance recommends Log first, preferably while the Core WAF is in Observe or Learn. Review legitimate application traffic before moving broad anomaly detection to a terminating action.

Is heuristic scoring the same as managed-rule anomaly scoring?

No. Heuristics score broad characteristics of one normalized request. Managed cumulative scoring separately combines independent signature matches from the bundled managed-rule library.

Aegisify WAF

Add Tunable Anomaly Evidence Without Turning the Firewall Into a Black Box

See how heuristic scoring, managed signatures, controlled enforcement, and WAF evidence can be tuned around the traffic your WordPress application actually receives.