Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Aikido Zen for Python 3

Zen, in-app firewall for Python 3 | by Aikido

Codecov PyPI Package Code Style : Black Unit tests End to end tests

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:

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:

WSGI

WSGI Servers

ASGI

Database drivers

AI SDKs

Zen instruments the following AI SDKs to track which models are used and how many tokens are consumed, allowing you to monitor your AI usage and costs:

Zen is compatible with Python 3.8-3.14 and can run on Windows, Linux, and Mac OS X.

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_BLOCK environment variable to true.

See Reporting to Aikido to learn how to send events to Aikido.

Additional configuration

Configure Zen using environment variables for authentication, mode settings, debugging, and more.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aikido_zen-1.2.36b0.tar.gz (7.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aikido_zen-1.2.36b0-py3-none-any.whl (7.2 MB view details)

Uploaded Python 3

File details

Details for the file aikido_zen-1.2.36b0.tar.gz.

File metadata

  • Download URL: aikido_zen-1.2.36b0.tar.gz
  • Upload date:
  • Size: 7.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for aikido_zen-1.2.36b0.tar.gz
Algorithm Hash digest
SHA256 2fe59755a1507ac958bcd415d7ec907aafc49d932abda8e048c96f8a3c6cfb67
MD5 18a147b6361cbeb0f250b32749119443
BLAKE2b-256 a5106fcd11c380d88763be0eb4fad4d269bc66d6ae6fb94bc57f534da6e23b33

See more details on using hashes here.

Provenance

The following attestation bundles were made for aikido_zen-1.2.36b0.tar.gz:

Publisher: publish.yml on AikidoSec/firewall-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aikido_zen-1.2.36b0-py3-none-any.whl.

File metadata

  • Download URL: aikido_zen-1.2.36b0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for aikido_zen-1.2.36b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e4303a158cfdb62569ad6986afd2649809cedff1f87b1ace782241a8591a67
MD5 bf6c18770a99d1ae3d65fa9ed4edb306
BLAKE2b-256 cdd35562843b49be5e1df0a68bc5edc305e639faa8aff3b58c9dfe1b20d7eb8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aikido_zen-1.2.36b0-py3-none-any.whl:

Publisher: publish.yml on AikidoSec/firewall-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page