Aikido Zen for Python
Project description
Zen, in-app firewall for Python 3 | by Aikido
Zen, your in-app firewall for peace of mind– at runtime.
Zen is an embedded Web Application Firewall that autonomously protects your Python apps against common and critical attacks.
Zen protects your Python apps by preventing user input containing dangerous strings, which allow SQL injections. It runs on the same server as your Python app for simple installation and zero maintenance.
Features
Zen will autonomously protect your Python applications from the inside against:
- 🛡️ NoSQL injection attacks
- 🛡️ SQL injection attacks
- 🛡️ Command injection attacks
- 🛡️ Path traversal attacks
- 🛡️ Server-side request forgery (SSRF)
Zen operates autonomously on the same server as your Python app to:
- ✅ Secure your app like a classic web application firewall (WAF), but with none of the infrastructure or cost.
Supported libraries and frameworks
Zen for Python 3 is compatible with:
Web frameworks
WSGI servers
Database drivers
- ✅
mysqlclient
^1.5 - ✅
PyMySQL
^0.9 - ✅
pymongo
^3.10 - ✅
psycopg2
^2.9.2 - ✅
psycopg
^3.1 - ✅
asyncpg
^0.27 - ✅
motor
(Seepymongo
version)
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 an 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_BLOCKING
environment variable to true
.
See Reporting to Aikido to learn how to send events to Aikido.
Benchmarks
The following table summarizes the performance of both a typical SQL Query and a typical NoSQL Query with and without the Zen, measured in milliseconds :
Operation | Avg. time w/o Zen | Avg. time w/ Zen | Delta | Delta in % |
---|---|---|---|---|
SQL Query | 1.222 ms | 1.257 ms | +0.035 ms | +3% |
NoSQL Query | 1.090 ms | 1.110 ms | +0.020 ms | +2% |
See benchmarks folder for more.
Bug bounty program
Our bug bounty program is public and can be found by all registered Intigriti users here
Contributing
See CONTRIBUTING.md for more information.
Code of Conduct
See CODE_OF_CONDUCT.md for more information.
Security
See SECURITY.md for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aikido_zen-1.0.13.tar.gz
.
File metadata
- Download URL: aikido_zen-1.0.13.tar.gz
- Upload date:
- Size: 173.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb79152ce3c7867092addcd8b3d03c823dc30287b1514e07fbd3ec8b3ed849f |
|
MD5 | a397daa47937b9b115ebc057875e3275 |
|
BLAKE2b-256 | a2205a43bed7d8faa9b056b97a57e0dae7f036f4388d8529038face04f07e88d |
File details
Details for the file aikido_zen-1.0.13-py3-none-any.whl
.
File metadata
- Download URL: aikido_zen-1.0.13-py3-none-any.whl
- Upload date:
- Size: 280.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d735e8cf44480ba5ddc50e7a561f8d047044ac8ce1413b30285d6b9ecbb9bf |
|
MD5 | e5eff30330c2eb59497979f97aee0783 |
|
BLAKE2b-256 | 920564171ee8f78b86fa8b5d85296cb514643cf2c7f8c589d4b59813bd83fe8a |