Skip to content

Releases

1.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 21:18
use CRS v4.31.0

1.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 10:17

1.0.0 — Threat Protection Suite

1.0.0 turns the WAF extension into a threat protection suite for Otoroshi. The SecLang WAF with
the embedded OWASP Core Rule Set is still at its core. Around it, 1.0.0 adds ip reputation, bot
control, behaviour and abuse detection, response protection and API security. A decision fabric
makes all of these feed one shared threat score instead of each blocking on its own, and
Threat Studio gives the whole suite one console.

0.0.10 had one entity and two plugins. 1.0.0 has fourteen entities and seventeen plugins.

📖 Documentation: https://cloud-apim.github.io/otoroshi-waf-extension/ — start with
Protecting a route, end to end.


⚠️ Before you upgrade

Otoroshi 18 and Java 17 are required

The extension now runs on Scala 3, Play 3 and Pekko (#2). It needs Otoroshi 18.0.0 or later and
Java 17 or later (0.0.10 needed Otoroshi 17.11 and Java 11). It does not load on Otoroshi 17.x:
stay on 0.0.10 until the gateway is upgraded.

The release asset is now named otoroshi-waf-extension_3-1.0.0.jar (it was _2.12-<version>.jar).
Update any script or image that downloads it by name.

What does not change

  • The extension id (cloud-apim.extensions.Waf), its configuration key
    (otoroshi.admin-extensions.configurations.cloud-apim_extensions_waf), the API group
    (waf.extensions.cloud-apim.com/v1) and the datastore keys.
  • The plugin ids CloudApimWaf and IncomingRequestValidatorCloudApimWaf: routes that use them
    need no edit.
  • Existing WafConfig entities stay valid. New fields are read with their defaults.

Only the names shown in the UI change. The extension is now Cloud APIM - Threat Protection Suite,
and its plugins are under the Threat Protection category of the route designer (#19).

More Core Rule Set rules fire. Arm through monitoring first.

In 0.0.10, several kinds of traffic went through the WAF without being inspected. In 1.0.0 they are
inspected:

  • CRS rules that read a data file never matched before, because the CRS never found its data
    files (#39). These are scanner user agents (913100), LFI paths (930120), shell commands (932xxx),
    PHP functions (933xxx) and the SQL and PHP error leaks of the response rules. They all run now.
  • Request bodies with a +json content type (application/vnd.api+json, …) are now inspected
    (#36).
  • Compressed bodies (gzip, deflate, br) are decompressed before the rules read them
    (#37).
  • @ipMatch with a CIDR (10.0.0.0/8) never matched before. It does now.
  • Multipart fields are now named the way PHP reads them: single quotes, no quotes, other
    parameters after the name (seclang-engine 2.5.2). Fields that used to be missed now reach ARGS
    and FILES, so 920120 and 920121 may fire more often on filenames that are unquoted or in single
    quotes.

You get real detections that 0.0.10 missed. On some APIs you will also get new false positives.
Set each blocking config to monitoring (block: false) after the upgrade, read the trail for a
while, and turn blocking back on once it is tuned. The new
tuning assistant and
learning mode are built
for this.

A WAF that cannot run now refuses traffic (waf.fail-open)

In 0.0.10, if a route's WAF could not run, its requests went through without being inspected. That
happened when the extension was disabled, when the config named by the route did not exist, or when
its rules did not compile. In 1.0.0 those requests get an empty 503 (#34). The logs name the
config and the reason, once per change.

To keep the previous behaviour, set waf.fail-open = true (env var
CLOUD_APIM_EXTENSIONS_WAF_FAIL_OPEN). Two cases never refuse anything: a config with
enabled: false, and a config in monitoring mode (block: false).

Before upgrading, check that every route using the WAF points to a config that exists and compiles.

Stricter request body handling

  • input_body_limit: null now means 2 MB. In 0.0.10 it meant the whole body, read into memory.
    What happens to a larger body is set by the new oversize_body_action: inspect_prefix (the
    default) inspects the first 2 MB and forwards the whole body, reject refuses it with 413 (#11).
  • A body the WAF cannot decode is refused (undecodable_body_action: reject, the default). That is
    415 for an encoding it does not support (zstd, a chain of codings) and 400 for a corrupt
    body. Set it to inspect_raw to inspect such a body as it is.
  • Decompression bombs are refused with 413. The limits are decompressed_input_body_limit
    (64 MiB) and max_input_compression_ratio (100) (#37).
  • None of these refuse anything in monitoring mode: the event is emitted and the body goes on.

The CRS refuses any request with a Content-Encoding header (rule 920450, at every paranoia level).
To accept compressed request bodies on a route, allow that header in the CRS first. The
WAF configs page shows how.

Backoffice access is tighter

  • The extension's backoffice routes now refuse a caller with no session. They also refuse writes
    that are not sent as JSON (#34).
  • Only super admins can now make changes that apply to every route, or that make the gateway
    call an address chosen by the user. That covers: ban, unban, allowlist, forget a score, apply an
    exclusion, run a learning window, refresh or promote a feed. Read-only pages and pages that only
    compute stay open to any logged-in user.

✨ What's new

Web application firewall

  • WAF rulesets: a WafRuleset entity holds a named set of SecLang rules that several configs
    can share. Configs list rulesets, which run before their inline rules (#12).
  • CRS settings as fields: paranoia level and anomaly thresholds can be set directly on a WAF
    config (#17).
  • False-positive tuning assistant: from one observed match, it builds candidate exclusions,
    ordered from the most targeted to the broadest. It tests each one against your configuration,
    replays known attacks to measure what the exclusion would let through, and saves only exclusions
    the engine will actually apply (#14).
  • Learning mode: run a configuration in monitoring for a time window, then see what turning on
    blocking would cost. It shows how much traffic would be refused, which exclusions would fix it,
    and what would remain (#15).
  • Upload guard: judges every uploaded file by its content, not its name: disguised scripts and
    executables, polyglots, archive bombs and zip slips (#44).
  • Malware scanners: clamd and ICAP antivirus. Every uploaded file is sent to the scanner before
    the upload completes (#49).
  • Signed rule feeds: rule packs and virtual patches are installed only after their signature is
    verified and the local engine has passed their own tests (#51).
  • Virtual patches, with a first one for PHP2Shell (CVE-2026-109618, CVE-2026-109619),
    documented and tested:
    virtual patches.
  • Engine handling: each config is compiled once when it changes, instead of on every request.
    _compile and _test check rules the way the engine reads them, and WAF events now name the
    route and the environment (#34).

IP reputation

  • Threat feeds with a catalog of 14 curated sources: blocklists and cloud provider ranges, in
    CIDR, CSV, JSON or MISP format. A feed refresh that fails or returns invalid content keeps the
    last good snapshot, and Roll back restores the previous one (#4).
  • CrowdSec bouncer working in both directions: it applies decisions from a Local API, and reports
    WAF detections back as alerts (#4).
  • ASN reputation: identifies the caller's network from the public routing table. It is only a
    low-weight signal and never blocks on its own, because traffic from a datacenter is not proof of
    an attack (#7).
  • Geolocation: any MaxMind DB file (DB-IP lite by default, free and keyless), behind
    @geoLookup and the GEO collection (#31).
  • DNS blocklists for @rbl, including Project Honey Pot http:BL (#32).

Decision fabric

  • Threat policies: the detectors add weighted signals to one shared score. The policy maps score
    tiers to log, challenge, throttle, tarpit, deny or ban. A new policy starts in dry
    run
    : it records what it would have done and enforces nothing (#6).
  • Cluster-wide bans: a caller banned on one node is banned on every node. They come with an
    allowlist that nothing can ban, and with incidents grouped across nodes (#6).
  • Distributed fail2ban: repeated failed responses ban the caller across the whole cluster. Its
    counters are shared, unlike Otoroshi's own fail2ban plugin, which counts on each node separately
    (#10).
  • Preset plugin: one plugin on a route sets up the whole chain in the correct order, and each
    section can be switched on or off (#9). The global preset applies the same chain to many routes
    at once, from a table of route selectors (#20).
  • Alert rules: send one message per attacker, ban or burst to Slack, Teams, PagerDuty or a
    webhook, and OCSF findings to a SIEM (#47).
  • Slow refusals: a refusal can be held back before it is sent. Each node limits how many requests
    it holds at once (#38).
  • Fixed: threat policies did not score WAF verdicts correctly (#24).

Behaviour and abuse

  • Login guard: scores credential stuffing, password spraying and likely account takeovers. An
    account is never locked out: at...
Read more

0.0.10

Choose a tag to compare

@github-actions github-actions released this 30 Jun 13:40
chore(deps): bump otoroshi 17.16.0 -> 17.17.0

0.0.9

Choose a tag to compare

@github-actions github-actions released this 28 May 15:18
chore(deps): bump otoroshi 17.15.0 -> 17.16.0

0.0.8

Choose a tag to compare

@github-actions github-actions released this 22 Apr 20:29
chore(deps): bump otoroshi 17.14.0 -> 17.15.0

0.0.7

Choose a tag to compare

@github-actions github-actions released this 10 Apr 11:14
Update to latest CRS v4.25.0 (LTS)

0.0.6

Choose a tag to compare

@github-actions github-actions released this 27 Mar 15:30
chore(deps): bump otoroshi 17.13.0 -> 17.14.0

0.0.5

Choose a tag to compare

@github-actions github-actions released this 23 Feb 15:02
chore(deps): bump otoroshi 17.12.0 -> 17.13.0

0.0.4

Choose a tag to compare

@github-actions github-actions released this 29 Jan 08:11
use otoroshi v17.12.0

0.0.3

Choose a tag to compare

@github-actions github-actions released this 28 Jan 10:01
update to latest seclang-engine version