Security

lua-resty-waf – High Performance WAF Built on the OpenResty Stack

lua-resty-waf is a high performance web application firewall (WAF) written for the OpenResty stack, leveraging the scalable architecture of Nginx, while providing a ModSecurity compatible rule syntax as well as a few custom rules built during initial development and testing, and a small virtual patchset for emerging threats. This allows users to move their ModSecurity WAF installations to the OpenResty ecosystem.

OpenResty is a full-fledged web platform that integrates the standard Nginx core, LuaJIT, Lua libraries, many high quality 3rd-party Nginx modules, and most of their external dependencies.

lua-resty-waf uses the Nginx Lua API to analyze HTTP request information and process against a flexible rule structure. Additionally, lua-resty-waf is distributed with tooling to automatically translate existing ModSecurity rules, allowing users to extend lua-resty-waf implementation without the need to learn a new rule syntax.

Key Features

  • Analyze any aspect of an HTTP request or response for anomalous behaviors.
  • Mitigate brute-force attacks to any request resource.
  • Use real-time DNS blacklists to deny known malicious hosts.
  • Protection from malicious automated bots and data harvesting services.
  • Send audit event logs to a remote TCP/UDP/syslog server.
  • Monitoring of interactive platform functionality, such as blog comments, for spam, DDoS, and vulnerability exploit.
  • Behavioral analysis of traffic based on hit rate and request target.
  • Use memcached or redis to store long-term variables.

lua-resty-waf was started by Robert Paprocki for his Master’s thesis at Western Governor’s University.

Website: github.com/p0pr0ck5/lua-resty-waf
Support:
Developer: Robert Paprocki and contributors
License: GNU General Public License v3.0


Related Software

Web Application Firewalls
ModSecurityWeb Application Firewall Engine for Apache, IIS and Nginx
SafeLineSelf-hosted web application firewall and reverse proxy
BunkerWebNext-generation Web Application Firewall
NAXSINginx Anti XSS & SQL Injection
CorazaEnterprise grade, Golang port of ModSecurity
open-appsecAutomatic web application and API security using machine learning
UUSEC WAFHigh-performance web application firewall
lua-resty-wafHigh performance WAF built on the OpenResty stack

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
3 Comments
Oldest
Newest Most Voted
N P
N P
2 years ago

The lua-resty-waf github page says the project is abandoned.

Derek
Derek
2 years ago
Reply to  N P

It says it’s essentially abandoned, and the repository hasn’t been archived, so there is always hope for a restart. And it could always be forked.