RocketWaf is a reverse proxy and a web application firewall written in Rust that ships the real OWASP Core Rule Set 4.9.0 inside the binary, so a buyer installs one file and gets a working firewall, a TLS terminator, a load balancer and an administration interface with no external service to run.
What is included
- The complete source - eight crates, about forty thousand lines of Rust, with the test suite (302 tests) and the build files.
- The firewall - a ModSecurity-compatible engine: the SecLang parser, the four phases, 40 transformations, the operators, the variables, the heuristic detectors and the real OWASP Core Rule Set 4.9.0 with its 25 rule files and its 19 phrase lists, compiled in the binary.
- The reverse proxy - virtual hosts and aliases, load balancing, the response cache, the WebSocket upgrade, the upstream health checks, the data masking, the security headers and the custom error pages.
- The TLS - one certificate per virtual host with the selection by the name of the server (SNI), the wildcards, the mutual TLS, the certificates of Let us Encrypt with the http-01 challenge and the self-signed ones.
- The protection of the instance - the bans with the automatic ban on the repeated failures, the rate limits per virtual host, the anti-DDoS, the anti-bot, the GeoIP and the policies.
- The administration - a web interface with twelve panels, a REST API, the users with Argon2id and TOTP, the sessions with the roles, and the custom WAF rules that are compiled, saved and loaded without a restart.
- The anomaly detection - eight detectors (flood, scan, credential stuffing, spike of a rule, error spike, slow requests, storm of bans, unknown user agent) with the evidence and the action to take in one click.
- The observability - the metrics in the Prometheus format, the monitoring, the reports, the logs in JSON, the syslog and the audit log.
- The operations - the backup to S3 with SigV4, the migration of a configuration, the scheduler, the Redis client, the ACME client and the systemd unit of an unprivileged user.
- The installers - install.sh for Linux and macOS, install.ps1 for Windows, a Dockerfile and a docker-compose.yml.
- The manual - the complete documentation in HTML, with the table of the 289 directives generated from the code.
Highlights
1. The real OWASP Core Rule Set, inside the binary - the 595 rules of the version 4.9.0 and their 19 phrase lists are extracted in the configuration directory at the first start. Nothing is downloaded, nothing is forgotten.
2. Your own rules, without a restart - write a rule in the interface or drop a SecLang file in the directory of the rules: the expression is compiled before it is saved, a broken regular expression is refused, and the engine is reloaded for the next request.
3. The anomalies with the evidence - the floods, the scans and the spikes are detected with the numbers that raised them and with the action to take: ban the client, trust the path or disable the rule that fires too much.
4. Administration that stays closed - the API listens on the loopback by default, the password is hashed with Argon2id, the session cookie is HttpOnly and SameSite=Strict, the login is locked after ten failures, and a regular user reads the dashboards but never writes.
5. Measured performance - 2 095 evaluations of the rule set per second and 1 054 requests per second through the proxy on two cores, with the same pipeline and the firewall switched off at 9 609 requests per second: the firewall is the cost, and it is the price of the protection.
Live demo
https://rocketwaf.mintsource.dev - the full product with demo data, no signup needed. The traffic of the demo goes through the firewall: an SQL injection is answered with a 403, and the page of the application is served when the request is clean.
| Role | Username | Password |
|---|---|---|
| Administrator | admin | DemoAdmin!2024 |
| Regular user | viewer | DemoViewer!2024 |
The interface is at /ui and the manual is at /docs/. The state of the demo is reset every thirty minutes, so the panels are never empty for long.
Installation
- Extract the archive: it holds one folder with the product, the source, the binaries and the documentation.
- Run the installer with the password of the administrator: sudo ./install.sh --admin-password "a strong password" --systemd --start on Linux, .\install.ps1 -AdminPassword "a strong password" -InstallService -Start on Windows. The installer uses the prebuilt binary, and builds from the source when a Rust toolchain is present.
- Create the virtual host: one directory per host in the configuration, with the file settings.yml and the directive REVERSE_PROXY_URL.
- Open the interface on http://127.0.0.1:8080/ui, sign in, and check the dashboard.
- Point the DNS of the domain at the machine and put a certificate in the directory of the virtual host, or let the instance ask for one with the ACME client.
Requirements
- Linux with glibc 2.31 or newer, or Windows 10 and newer.
- No database: the configuration, the users and the sessions live in the files of the configuration directory.
- A Rust toolchain of 1.75 or newer and a C compiler, only to build the source yourself.
- The ports 80 and 443 for the traffic. On Linux the capability CAP_NET_BIND_SERVICE is enough; on Windows the service needs an administrator, because Windows has no capabilities.
- Optional: Redis for the shared sessions, an S3 bucket for the backups, a directory or a database for the GeoIP.
Design and technical notes
The crate uses the ring provider of rustls, so there is no dependency on cmake and the build stays simple. The expressions of the rules are compiled at the start and read from a flat array of cells: the request path never takes a lock and never compiles a regular expression. The collections of the request are resolved once per transaction and shared by the rules. The response body is buffered so that the phase 4 can inspect it, like ModSecurity does. The interface is a single HTML file with no CDN and no build step: it works without an Internet connection. The interface is in English, the code is in English, the manual is in English.
Licence
The regular price covers the use of the product in one project of one organisation, the extended price covers the use in the projects of an organisation and in the work you do for your clients. The licence of the marketplace that you chose at checkout is the one that applies to your purchase. The third-party components of the package keep their own licences: they are listed in the NOTICE file of the package, with the full text of the Apache licence of the OWASP Core Rule Set.
Version 1.0.0 - what changed
- The first public release: the reverse proxy, the firewall with the rule set 4.9.0, the TLS with the selection by the name of the server, the protection of the instance, the authentication, the administration interface and the API, the anomaly detection, the observability and the operations.
- The administration interface opens a session with a login and a password: an administrator changes the instance, a regular user reads the dashboards.
- The users are written in the configuration directory: an administrator created in the interface or with the command line survives a restart.
- The layout of the configuration directories of BunkerWeb is read: the virtual hosts live in http/<host>.
- The rule set is evaluated 3.3 times faster than the first measurement of the benchmark.
Support
The documentation of this release is included and published online. The questions are answered on the product page of the marketplace and the updates of the next releases are free for the buyers of the product.
Highlights
- The real OWASP Core Rule Set 4.9.0 is compiled in the binary, with its 25 rule files and its 19 phrase lists
- Your own rules are compiled, saved and loaded without a restart
- The anomalies are detected with the evidence and the action to take in one click
- The administration is closed: a session, roles, Argon2id, TOTP and a locked login
- Measured: 2 095 evaluations per second and 1 054 requests per second on two cores
- The complete source of the eight crates, with the test suite
- The binaries of Linux and Windows, built from that source
- The installers install.sh and install.ps1, the Dockerfile and the compose file
- The manual in HTML, with the table of the 289 directives
- The notices of the third-party components
Files
- rocketwaf-1.0.0-source.zip11.4 MB · rocketwaf-1.0.0-source.zip
- Linux with glibc 2.31 or newer, or Windows 10 and newer
- No database: the configuration, the users and the sessions live in the files
- A Rust toolchain of 1.75 or newer and a C compiler, only to build the source
- The ports 80 and 443: the capability CAP_NET_BIND_SERVICE on Linux, an administrator on Windows
- Optional: Redis for the shared sessions, an S3 bucket for the backups
# Changelog All the notable changes of RocketWaf are written here. The format follows Keep a Changelog, the versions follow Semantic Versioning. ## 1.0.0 - the first public release ### Added - The reverse proxy: virtual hosts, aliases, load balancing, the cache, the WebSocket upgrade, the upstream health checks. - The web application firewall: the ModSecurity parser, the four phases, the operators, the variables, the transformations, the heuristic detectors and the real OWASP Core Rule Set 4.9.0 in the binary. - The TLS: the certificates per virtual host, the selection by the name of the server (SNI), the wildcards, the mutual TLS, the certificates of Let us Encrypt with the http-01 challenge and the self-signed ones. - The protection of the instance: the bans, the rate limits, the anti-DDoS, the anti-bot, the GeoIP and the policies. - The authentication: the local users with Argon2id, the second factor with TOTP, the API keys, the sessions, the LDAP and the OpenID Connect. - The administration: the web interface with twelve panels, the REST API, the custom WAF rules that are written and compiled at runtime, and the detection of the anomalies with the evidence and the action to take. - The observability: the metrics in the Prometheus format, the monitoring, the reports, the logs in JSON and the syslog. - The operations: the backup to S3, the migration of a configuration, the scheduler, the Redis client and the ACME client. - The deployment: the systemd service of an unprivileged user, the Windows service, the Docker image and the installers of the package. ### Performance - The evaluation of the rule set is 3.3 times faster than the first measurement of the benchmark (2 095 evaluations per second on two cores), the assets are read without a lock and the phrase lists are compiled in an automaton.
Reviews (0)
No reviews yet — be the first to share your experience.
More from this seller
Showgate - WordPress Event Manager, Calendar & Ticketing Plugin for WooCommerce
WordPress · PHP