Skip to content

UUSEC WAF

Self-hosted web application firewall built on nginx and LuaJIT, with semantic attack

Permissive (OSI) · BSD-2-Clause
  • Self-hosted

Listed by , founder & editor

72

Health

Active

Overview

Stars

1,727

Last commit

yesterday

Nov 2026

Repository age

4 years

since Sep 2022

Latest version

v7.2.9

Nov 2026

Contributors

–

1 active in 90 days

Releases

10

last 12 months

Language

Shell

UUSEC WAF is a web application and API firewall you run on your own server. It is built on nginx and LuaJIT and sits in front of your sites as a protection layer. It is released under the BSD-2-Clause license.

Detection uses semantic engines for SQL injection, XSS, remote code execution and local file inclusion. It decodes content such as base64, JSON and form data before inspecting it. A machine learning mode learns normal traffic parameters and builds a whitelist, so it can block some unknown attacks without new rules. Host-level HIPS and runtime RASP for Java and PHP add protection beyond the HTTP layer.

You can create rules in a simple mode or write Lua scripts and plugins for advanced cases. It also includes cache purging that accepts regular expressions on URL paths. It has no specific commercial product it replaces, but it covers the same ground as commercial WAF and WAAP offerings. The project is actively released.

Who it's for

Sysadmins protecting self-hosted sites

It runs in front of your web servers and detects common attacks without a large rule library.

Skip if: You prefer a managed cloud WAF with no servers to run.

Security engineers who write custom rules

Lua scripting and plugins allow protections that fixed rule sets cannot express.

Skip if: You want a plain ModSecurity-style rule set you already maintain.

Teams running Java or PHP applications

RASP hooks into the JVM and PHP engine to track runtime context.

Skip if: Your stack uses other runtimes, where RASP does not apply.

The problem it solves

Public websites and APIs face injection and zero-day attacks, and maintaining regex rule sets is slow work. UUSEC WAF uses semantic detection and learned traffic profiles, so you need fewer hand-written rules.

Strengths

  • Semantic engines for SQL, XSS, RCE and LFI with content decoding
  • Learns normal traffic and builds a parameter whitelist
  • HIPS and RASP add host and runtime layers
  • Lua scripting and plugins extend rules
  • BSD-2-Clause license with 10 releases in the last year

Trade-offs

  • Needs your own server and some security knowledge
  • Documentation and project text lean toward Chinese-language users
  • Small contributor base, with one contributor in the last 90 days

Self-host UUSEC WAF

Self-hostable
Yes

Frequently asked questions

Is UUSEC WAF free?

Yes. It is open source under the BSD-2-Clause license.

Can I self-host it?

Yes. You run it on your own server in front of your web applications.

What does it detect?

It has semantic engines for SQL injection, XSS, RCE and LFI, plus a machine learning mode for unknown attacks.

Can I write my own rules?

Yes. You can use the rule editor or write Lua scripts and plugins.

Similar tools in Firewalls and network security

DNSNet

Firewalls and network security

On-device DNS ad and malware blocker for Android, no root needed

991 44 today Thriving GPL-3.0

super

Firewalls and network security

Self-hosted WiFi router software giving each device its own isolated network

906 67 2 days ago Active BSD-3-Clause

Snitch

Firewalls and network security

826 57 4 days ago Thriving AGPL-3.0

De1984

Firewalls and network security

530 38 6 days ago Active MIT