AikidoSec/firewall-java
AikidoSec/firewall-java has 152 GitHub stars and 8 forks. GitHot measured 0 stars in 24 hours, +1 in 7 days, and +4 in 15 days. Last checked 2026-11-09 22:19 UTC. Last push 2026-10-31.
Zen protects your Java app against attacks with one line of code. Get peace of mind— at runtime.
What you can do
- 🛡️ NoSQL injection attacks
- 🛡️ SQL injection attacks
- 🛡️ Command injection attacks
- 🛡️ Path traversal attacks This support is currently limited to Path/Paths and new File(String)
Measured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +4
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalZen, in-app firewall for Java | by Aikido
Zen, your in-app firewall for peace of mind– at runtime.
Zen is an embedded Web Application Firewall that autonomously protects your Java apps against common and critical attacks.
Zen protects your Java apps by preventing user input containing dangerous strings, which allow SQL injections. It runs on the same server as your Java app for easy installation and zero maintenance.
Zen for Java currently supports onwards of Java 17. We offer support for Java, Kotlin and Groovy.
Features
Zen will autonomously protect your Java applications from the inside against:
- 🛡️ NoSQL injection attacks
- 🛡️ SQL injection attacks
- 🛡️ Command injection attacks
- 🛡️ Path traversal attacks This support is currently limited to Path/Paths and new File(String)
- 🛡️ Server-side request forgery (SSRF)
- 🛡️ Attack wave detection
Zen operates autonomously on the same server as your Java app to:
- ✅ Secure your app like a classic web application firewall (WAF), but with none of the infrastructure or cost.
- ✅ Rate limit specific API endpoints by IP or by user
- ✅ Allow you to block specific users manually
- ✅ Auto-generate API specifications
Supported libraries and frameworks
Web frameworks
Java
- ✅
Spring MVC3.x - ✅
Javalin6.x - 🚧
Spring Webflux3.x
Kotlin
- ✅
Spring MVC3.x - ✅
Javalin6.x - 🚧
Spring Webflux3.x - 🚧
Ktor
Groovy
- ✅
Spring MVC3.x - 🚧
Spring Webflux3.x
🚧 Scala
- 🚧
Akka
Database drivers
- ✅
MariaDB Java Client - ✅
Microsoft JDBC Driver For SQL Server - ✅
MySQL Connector/J - ✅
PostgreSQL JDBC Driver - ✅
HyperSQL JDBC Driver - ✅
SQLite JDBC Drivers
API Tools
- ✅
OkHttp(no SSRF redirect coverage) - ✅
Apache HttpClient(no SSRF redirect coverage)
Installation
You can install Zen by downloading the zip file here and unzipping it to your directory of choice,
we picked /opt/zen here for our Linux system as an example. We also have support for Windows and Mac OS X.
Please ensure you do not alter the structure of this folder and that the process can read & write to it.
To activate Zen you then just have to add the following -javaagent to your Java command before the -jar argument
java -javaagent:/opt/zen/agent.jar -jar build/myapp.jar
To use user blocking, rate limiting, or custom event tracking, include agent_api.jar in your application.
Gradle
Add the following code to your build.gradle file.
dependencies {
# ...
implementation files('/opt/zen/agent_api.jar')
# ...
}
Maven
Add the following code to your pom.xml file.
<dependency>
<groupId>dev.aikido</groupId>
<artifactId>agent_api</artifactId>
<version>1.0</version>
<systemPath>/opt/zen/agent_api.jar</systemPath>
</dependency>
For further setup continue to your Web Framework of choice (Click here for Spring)
Reporting to your Aikido Security dashboard
Aikido is your no nonsense application security platform. One central system that scans your source code & cloud, shows you what vulnerabilities matter, and how to fix them - fast. So you can get back to building.
Zen is a new product by Aikido. Built for developers to level up their security. While Aikido scans, get Zen for always-on protection.
You can use some of Zen’s features without Aikido, of course. Peace of mind is just a few lines of code away.
But you will get the most value by reporting your data to Aikido.
You will need an Aikido account and a token to report events to Aikido. If you don't have an account, you can sign up for free.
Here's how:
- Log in to your Aikido account.
- Go to Zen.
- Go to apps.
- Click on Add app.
- Choose a name for your app.
- Click Generate token.
- Copy the token.
- Set the token as the environment variable
AIKIDO_TOKEN
Running in production (blocking) mode
By default, Zen will only detect and report attacks to Aikido.
To block requests, set the AIKIDO_BLOCK environment variable to true.
See Reporting to Aikido to learn how to send events to Aikido.
Additional configuration
- Track custom events: trigger events that Playbooks can act on
- Configure Zen using environment variables for authentication, mode settings, debugging, and more
License
This program is offered under a commercial and under the AGPL license. You can be released from the requirements of the AGPL license by purchasing a commercial license. Buying such a license is mandatory as soon as you develop commercial activities involving the Zen software without disclosing the source code of your own applications.
For more information, please contact Aikido Security at this address: [email protected] or create an account at https://app.aikido.dev.
Code of Conduct
See CODE_OF_CONDUCT.md for more information.
Security
Our bug bounty program is public and can be found by all registered Intigriti users at: https://app.intigriti.com/researcher/programs/aikido/aikidoruntime
See SECURITY.md for more information.
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
257,407 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,103 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,542 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
78,935 stars