Skip to main content
Revetment
Install

Blog · · 14 min read

Signature-based WAFs vs novel exploits: what you can actually detect

What a signature-based Kubernetes WAF can and cannot detect, where novel exploits slip past CRS rules, and how shadow mode shows the gap before blocking.

A signature-based web application firewall detects known attack patterns, while novel exploits bypass string matching by abusing application logic or using uncatalogued syntax. When evaluating Kubernetes WAF signature-based vs novel exploit detection, platform teams must recognize that deterministic rule engines cannot block vulnerabilities omitted from a pattern database. Revetment matches known signatures. A genuinely novel exploit passes until a rule for it exists and reaches the deployment; no signature WAF can promise otherwise.

Signatures evaluate known byte patterns. Security engineers often deploy an ingress firewall expecting it to intercept zero-day attacks automatically. In practice, signature matching evaluates concrete byte sequences and regular expressions against decoded HTTP transactions. If an attacker submits a payload that deviates from catalogued exploit structures, the inspection engine treats the stream as benign application data. Understanding the structural boundaries between compiled pattern matching and novel attack delivery determines how you configure inspection tiers, establish containment boundaries, and stage blocking policies across your clusters.

The short answer: signatures catch known shapes, not new ones

A signature is a deterministic expression evaluated against structured elements of an HTTP transaction. This includes regular expressions run against URI parameters, string equality checks on request headers, and byte sequence searches across decoded message bodies. When an incoming request matches the signature criteria, the engine marks the transaction as malicious. Conversely, a novel exploit alters runtime state by using input structures or interaction sequences that existing rule authors have not catalogued. Examples include unobserved object deserialization gadget chains, parser differential attacks between intermediate proxies and application runtimes, and parameter manipulation across internal APIs.

This boundary is fixed. A signature engine inspects incoming streams for known structural anomalies, such as SQL injection tokens, standard directory traversal paths, and recognized remote code execution syntax. If an attacker identifies an unpatched memory corruption flaw or an undocumented parameter that executes raw system commands without using shell metacharacters, a pattern-matching filter permits the request. It does so because the payload conforms entirely to the grammatical constraints of regular HTTP traffic.

This operational reality does not make pattern matching obsolete. Most perimeter probes, automated vulnerability scans, and credential replay campaigns use well-documented payload shapes. Deploying an in-cluster inspection filter strips out this background noise, protecting internal microservices from known exploit techniques. Treating a signature engine as an all-encompassing perimeter control leads to operational blind spots. Platform operators must identify precisely what their inspection pipeline compiles, measure where unhandled payloads bypass inspection routines, and inspect unblocked events on live routes before enforcing strict access restrictions.

How signature matching works inside a Kubernetes WAF

To understand the mechanics of pattern inspection, consider the execution path of an incoming packet through an Envoy-managed ingress pipeline. When an external client initiates a TLS handshake, Envoy Gateway terminates the connection and parses the raw byte stream into standard HTTP abstractions: request methods, paths, header maps, query strings, and body frames. Revetment runs as a native module inside the Envoy process. It is not a sidecar, a WASM plugin, an ext_proc server, or a separate proxy.

The module runs in-process. Once request headers and body buffers are accessible in memory, the engine passes these buffers directly to its internal inspection core. The engine executes rules derived from the OWASP Core Rule Set (CRS). As documented by the OWASP Core Rule Set Official FAQ, CRS provides generic attack detection algorithms designed to identify common vulnerability categories without requiring application-specific signatures. The inspection engine applies normalisation functions to the input strings, such as URL decoding, lowercase transformation, and whitespace compression, and then evaluates the normalised data against compiled regular expressions.

OWASP CRS groups rules into paranoia levels (PL1 through PL4). As detailed in the OWASP CRS Paranoia Level Documentation, Paranoia Level 1 serves as the baseline tier with minimal false alarms, whereas higher paranoia levels introduce strict validation checks, such as rejecting non-ASCII characters or enforcing rigid byte-length constraints. Within our engine, 477 of the pinned OWASP CRS v4.30.0 rule ids compile at paranoia level 1. The rules that do not load are named on what Revetment cannot stop.

Rule compilation directly dictates perimeter posture. If an engine fails to compile a complex PCRE regex, or drops an unhandled directive during the parsing of a configuration file, that rule is silently omitted from the active matching tree. When an omitted rule is bypassed, the proxy emits no error log, leading operators to assume an attack signature is active when the memory structure does not contain it. You can review our analysis of missing directives in our technical post on Kubernetes WAF failure modes when rules do not load. Verifying the exact list of compiled identifiers ensures that the engine evaluates the precise pattern definitions your platform team expects.

Where signature-based WAF limitations actually bite

Analyzing signature-based WAF limitations reveals structural boundaries inherent to lexical analysis. Pattern-matching engines inspect the literal presentation of input data rather than the underlying execution semantics of the downstream service. Attackers exploit this gap through several distinct mechanisms:

  • Encoding transformations: Web runtimes interpret varied encoding schemes, including multiple URL encodings, overlong UTF-8 byte sequences, hex transformations, and nested unicode escape characters. If an application unescapes a string three times, but the ingress inspection module normalises it only twice, a malicious SQL or command injection sequence passes through the proxy completely hidden.
  • Grammar and normalisation mismatch: JSON payloads, multipart form boundaries, and XML envelopes introduce parsing ambiguities. If the gateway parses multipart headers with one boundary delimiter while an internal Go or Node.js service accepts an undocumented whitespace variant, the WAF inspects one set of fields while the upstream application unpacks and executes another.
  • Application business-logic abuse: Insecure direct object references, parameter tampering, and price alteration involve structurally valid data. A request containing valid JSON syntax and standard numerical strings violates business integrity rules, yet no generic regex can identify it as an attack.
  • New vulnerability classes and disclosure windows: When a software supply chain dependency exposes an uncatalogued flaw, an exploitative payload looks benign until a security researcher crafts a specific detection rule. During this window, an ingress filter running existing pattern databases has no mathematical basis on which to reject the payload.
  • Privileged admin endpoints: Ingress routes handling serialization formats, YAML configurations, or database migration dumps receive complex payloads routinely. Because these administrative routes legitimately accept structured scripts, applying strict regex filters triggers frequent false positives, forcing operators to write exceptions that expose the service to exploitation.

The proxy passes the payload. These limitations are not programming defects within a specific vendor's engine. They are natural boundaries of pattern-matching inspection. A signature engine cannot evaluate program state, runtime object lifecycles, or backend execution context. It evaluates only whether an isolated sequence of bytes conforms to a regular language.

Detecting zero-day exploits in Kubernetes: what is realistically possible

When addressing the problem of detecting zero-day exploits in Kubernetes, security teams must separate three operational concepts that marketing material often conflates: inline prevention, detection after the fact, and blast-radius containment.

Inline prevention requires prior knowledge. To drop a packet inline before it reaches an upstream service, an inspection engine must have a rule specifying the exact criteria that make the request unacceptable. In the absence of an explicit rule, the gateway forwards the request. Revetment matches known signatures. A genuinely novel exploit passes until a rule for it exists and reaches the deployment; no signature WAF can promise otherwise.

Detection after the fact relies on behavioral anomalies across system boundaries. Even when an unfamiliar payload bypasses CRS pattern matching, secondary layers can flag the interaction for human review. Shadow-mode events, structured HTTP access logs, and application-level metrics can highlight strange patterns, such as an unusual query parameter key, an abnormal header order, or a spike in 500 error responses from an upstream pod. These indicators do not trigger an immediate 403 response at the ingress, but they allow incident response teams to pinpoint anomalous activity if their monitoring stack aggregates and correlates these events.

The table below summarizes the operational differences between standard ingress detection strategies and application-level defenses when processing uncatalogued exploit variants.

Detection Strategy Primary Mechanism Zero-Day Efficacy False Positive Profile Operational Overhead
Revetment Compiled in-process CRS matching Stops known patterns; passes novel inputs until rules update Predictable; tuned via scoped exceptions Low; managed as Kubernetes CRDs
Strict Specification Schemas OpenAPI / JSON schema validation High for payload anomalies; low for logic abuse High whenever client payloads drift High; requires continuous schema synchronization
Heuristic Anomaly Scoring Statistical threshold analysis Moderate for high-volume execution shifts Variable; spikes during legitimate traffic changes High; requires manual threshold adjustment
Runtime Kernel Auditing eBPF syscall tracking (Cilium/Falco) High for post-exploitation; zero inline L7 ingress blocking Low; alerts on unauthorized system executions Moderate; requires dedicated node-level infrastructure

Containment limits the blast radius. If an arbitrary code execution vulnerability executes within a container, workload security controls dictate the outcome. Running application containers with read-only root filesystems, dropping all Linux capabilities, enforcing restrictive SecurityContext constraints, using non-root user IDs, and deploying strict NetworkPolicy resources to deny egress traffic prevent an attacker from retrieving remote binaries or pivoting across the pod network. The WAF cleans out automated scans and known exploit strings; your container isolation architecture ensures that when a novel payload slips through, the compromised process cannot establish persistence or lateral movement.

Shadow mode is how you measure the gap on your own traffic

Because signature-based inspection produces false positives when matching complex application traffic, enabling blocking rules on production routes without prior observation introduces operational instability. Shadow mode addresses this problem. Shadow mode records what a rule would have blocked and lets the request through. Blocking is a separate, per-route promotion.

When Revetment operates in shadow mode on an HTTPRoute, the in-process module executes the full CRS rule tree against request headers, URI parameters, and the request body. If rule 942100 (SQL injection detection) evaluates to true, the engine does not drop the TCP stream or issue a 403 Forbidden status code. Instead, it writes a structured telemetry record and permits the transaction to reach the upstream workload. Operators can review detailed implementation guidelines in our guide to Envoy Gateway WAF shadow mode.

Shadow mode records candidate blocks. The Revetment console groups shadow events by rule identifier, HTTPRoute, parameter location, and a redacted excerpt of the matching byte sequence. This aggregation allows engineers to see exactly which input values triggered the rule engine without exposing sensitive payload data in raw logs. For instance, if an internal frontend uses an administrative parameter named filter_query that routinely passes SQL-like fragments, the console displays the exact hit count and parameter name across all observed requests.

Analyzing shadow-mode metrics across a complete business cycle reveals the operational gap between legitimate application behavior and signature rules. Platform teams can isolate which hits represent real scanning attempts from malicious actors and which represent legitimate user interactions that would have broken under immediate blocking. Retention parameters dictate how far back an engineering team can trace these patterns: the hosted console keeps 7 days on Free and 13 months on Pro. Self-hosted retention is yours to set.

From shadow to blocking without breaking production

Transitioning an ingress path from non-disruptive observation to active enforcement must follow a structured pipeline. Moving directly from zero enforcement to cluster-wide blocking frequently breaks legitimate edge cases, such as third-party webhook integrations, mobile client payloads, and administrative batch updates. Staged traffic promotion mitigates this risk. Blocking is promoted per route in staged traffic increments, with an automatic rollback threshold.

Revetment manages this lifecycle through native Kubernetes declarative patterns. Policies are Kubernetes CRDs (RevetmentPolicy, RevetmentException) targeting HTTPRoutes through the Kubernetes Gateway API. Because configuration changes map to manifest files stored in Git, policy promotions and exception tuning follow your standard pull request review workflows rather than unversioned mutations made via an external administrative web UI.

A standard RevetmentPolicy defines the operational posture for a specified route:

apiVersion: revetment.io/v1alpha1
kind: RevetmentPolicy
metadata:
  name: api-service-waf
  namespace: production
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: api-service-route
  mode: Enforcing
  promotion:
    percentage: 10
    rollback:
      errorThresholdPercentage: 2.0
      evaluationWindowSeconds: 300
  paranoiaLevel: 1

Exceptions stay narrow. When tuning out false alarms discovered during shadow evaluation, engineers do not disable entire protection categories globally. Exceptions are scoped to a rule, a route, and a parameter. They are not a global rule disable. If rule 942100 trips on a specific JSON parameter in a payment pathway, an engineer declares a RevetmentException targeting only that specific boundary:

apiVersion: revetment.io/v1alpha1
kind: RevetmentException
metadata:
  name: allow-search-query-sql
  namespace: production
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: api-service-route
  ruleId: 942100
  match:
    parameter: "query"
    location: "QueryParam"

The structured sequence for safely promoting an HTTPRoute from shadow to full enforcement involves five deliberate phases:

  1. Attach the RevetmentPolicy in shadow mode to a non-critical route and observe telemetry for a full operational cycle, capturing baseline business fluctuations.
  2. Inspect the grouped event logs to identify false alarms, checking the specific rule ID and input parameter context against application specifications.
  3. Apply scoped RevetmentException CRDs to neutralize false positives without removing that rule from remaining parameters or adjacent ingress routes.
  4. Promote active enforcement across initial fractional traffic slices, watching the automated rollback threshold to verify that valid upstream client requests do not encounter operational disruption.
  5. Expand enforcement to all matching traffic once false alarm rates normalize across the target route.

This staged rollout introduces deliberate friction into the deployment pipeline. That friction ensures your platform team verifies real application behavior against compiled regex patterns before an unexpected false positive disrupts customer transactions.

What this WAF does not do, stated up front

Platform engineers must know the exact operational boundaries of their tooling. Revetment attaches to Envoy Gateway through the Kubernetes Gateway API. It is not an ingress controller and does not run on NGINX, Traefik, HAProxy, or Istio.

The engine focuses strictly on in-process application-layer inspection. Revetment is an L7 WAF. It does not absorb DDoS traffic, filter network layer traffic, protect DNS, or act as a scrubbing network; use an edge CDN or DDoS service for that. If your infrastructure faces high-volume SYN floods or saturated network uplinks, those volumetric vectors must be dropped by edge transit providers before hitting your Kubernetes cluster nodes.

Application-layer rate controls and connection budgets must also be handled elsewhere. Revetment does not implement rate limiting, slowloris protection, HTTP/2 rapid-reset budgets, or concurrency limits. Those functions belong in Envoy's native rate-limiting service or edge traffic managers designed to meter connection lifecycles.

Behavioral traffic profiling falls outside this architecture. Revetment does not sell bot management, device fingerprinting, account-takeover protection, or credential-stuffing protection. Attacking groups that simulate human behavior using residential proxy infrastructure will not be flagged by standard regex matching if their HTTP requests do not contain known exploit signatures.

We do not make inflated detection promises. No WAF can promise complete detection or zero false positives. Revetment's workflow is built to show the false positives before blocking. The data plane inspects requests inside your Envoy process and sends no traffic to Revetment. The hosted console is optional. The console is hosted or self-hosted. Accounts are operator-invited, not self-serve, and there is no free trial; the Free tier is a product tier.

Revetment is pre-GA. It runs in the operator's own production, but the site does not claim general availability or scale proof. The only named deployment is the operator's own production; Revetment does not publish customer logos, named users, or case studies. Pricing is per cluster, not per request, rule, route, or user. The tiers are listed on /pricing. The Helm chart and the four images are Apache-2.0. The source repository is private. Revetment does not hold SOC 2, ISO 27001, PCI DSS, HIPAA, or FedRAMP certifications. Enterprise includes evidence packs for a customer's SOC 2 and PCI DSS 6.4.2 audit. Those are evidence packs, not a Revetment certification.

A decision checklist for platform and security engineers

When selecting and deploying a Kubernetes-native firewall for Envoy Gateway, use this engineering checklist to evaluate architectural trade-offs:

  • Rule compilation verification: Confirm which specific rule identifiers compile and run inside the data plane. Avoid vendors that advertise general rule set compliance without publishing the explicit catalog of uncompiled or unsupported directives.
  • Observation mechanics: Ensure the engine provides true shadow-mode telemetry with structured event grouping by route and parameter, verifying what would have been blocked before dropping packets.
  • Granular exception boundaries: Check whether the platform supports targeted exceptions scoped strictly to a single rule, route, and parameter, or if tuning false positives requires disabling an entire rule family across the cluster.
  • Data custody and traffic locality: Verify whether payload inspection occurs entirely within the existing proxy memory space, or if the architecture exports unencrypted customer payloads to external evaluation services.
  • Rollout mechanics: Require fractional promotion controls paired with automatic rollback thresholds configured via Kubernetes manifests.
  • Published operational limits: Review what the engineering team explicitly states the platform cannot stop, ensuring the firewall boundary complements your existing container security controls and network policy definitions.

Frequently asked questions

Can a signature-based WAF detect a zero-day exploit?

A signature-based engine cannot detect an uncatalogued exploit that relies on novel syntax or unique application logic. Revetment matches known signatures. A genuinely novel exploit passes until a rule for it exists and reaches the deployment; no signature WAF can promise otherwise. If an unpatched vulnerability uses recognizable attack structures, such as standard SQL injection tokens or directory traversal paths, the engine flags the transaction based on those shared characteristics. If the exploit uses clean, syntactically valid parameters, it bypasses pattern matching entirely.

What is the difference between shadow mode and detection-only mode?

Detection-only mode is often applied cluster-wide, logging matching events to central storage while maintaining zero capability to block traffic selectively. Shadow mode in Revetment allows platform teams to evaluate rules per route while preparing for automated enforcement. Shadow mode records what a rule would have blocked and lets the request through. Blocking is a separate, per-route promotion that can be rolled out gradually to fractions of route traffic.

How many OWASP CRS rules does Revetment actually run?

477 of the pinned OWASP CRS v4.30.0 rule ids compile at paranoia level 1. The rules that do not load are named on what Revetment cannot stop. We explicitly document uncompiled directives rather than claiming complete or unverified rule coverage.

Do I need a WAF if my application already validates input?

Rigorous input validation inside application code is essential, but it operates at a different maintenance cadence. In-tree application validation requires code changes, continuous integration builds, and container redeployments whenever an attack vector evolves. An ingress WAF strips out automated perimeter sweeps, known scanner patterns, and common injection attempts before requests reach internal services, reducing compute load on application runtimes and providing a rapid mechanism to deploy virtual patches across multiple microservices simultaneously.

How long should a route stay in shadow mode before blocking?

A route should remain in shadow mode through at least one complete business cycle, typically seven to fourteen days. This duration ensures the rule engine observes cyclical business traffic, scheduled batch operations, administrative queries, and third-party API webhooks. Reviewing aggregated shadow logs over this window allows you to apply scoped exceptions to known false positives before promoting the route to full blocking.

Read the published list of rules Revetment does not load at /what-revetment-cannot-stop, then check the production snapshot at /proof before you decide whether shadow mode on one route is worth an afternoon.