CloFix WAF · Scripting Engine

CloFix API Security Engine

GraphQL, API abuse, and schema validation for scoped API paths with block or log-only modes. Runs custom WAF logic with isolated engines for precise request control.

Scripting Engine #8 10 details Published

Overview

💡 How it works: When a request path matches a configured API prefix, the API Security Engine evaluates GraphQL risk (introspection, depth, dangerous ops), abuse signals (methods, rate, admin paths), and schema rules (Content-Type / JSON on mutations). In block mode matching requests are denied; in log mode they continue after telemetry. Non-matching paths are ignored so public pages and static assets are unaffected. Configure under domain conf `api_engine` or Configuration Manager → API Security Engine; monitor at `/waf-dashboard/api-engine`.

Feature details

Path Scoping

Protect only configured prefixes (default `/api/,/graphql`) - HTML marketing traffic stays out of the API pipeline

Block or Log Mode

`block_mode on` stops abusive API requests; `log` records without interrupting clients

GraphQL Protection

Blocks introspection probes, deep nested queries, and dangerous operations when `graphql on`

API Abuse Protection

Rate abuse, odd HTTP methods, and admin API path checks when `abuse on`

Schema Validation

Require Content-Type and valid JSON on mutating API requests when `schema on`

Per-Domain Toggle

Enable/disable via `api_engine { }` without redeploying application code

Dashboard

`/waf-dashboard/api-engine` for status and tuning alongside Configuration Manager

Works With Other Engines

Complements AI, Bot, CRS, and Advanced Protection on the same host

Low Overhead

Prefix match first - non-API paths skip the engine entirely

Config Block

`api_engine { enabled on; block_mode on; graphql on; abuse on; schema on; paths /api/,/graphql; }`

How CloFix WAF uses it

💡 How it works: When a request path matches a configured API prefix, the API Security Engine evaluates GraphQL risk (introspection, depth, dangerous ops), abuse signals (methods, rate, admin paths), and schema rules (Content-Type / JSON on mutations). In block mode matching requests are denied; in log mode they continue after telemetry. Non-matching paths are ignored so public pages and static assets are unaffected. Configure under domain conf `api_engine` or Configuration Manager → API Security Engine; monitor at `/waf-dashboard/api-engine`.

Canonical URL: https://clofix.com/features/clofix-waf/api-security-engine/