Please refer to our CONTRIBUTING.md file to setup protectsql locally
Our package is publicly available on PyPi.
To install using pip, run the command:
pip install protectsqlprotectsql init # initialise the pysa configurationsRuns the static analysis.
protectsql analyze # analyze your appWe wanted to make a package to check for SQLi vulnerabilities for generic frameworks/specific to Flask as there are quite a few python applications that don't use ORM and are vulnerable to SQLi vulnerabilities.
A CLI tool which will help you analyze your python/flask app, using Pysa (a static analysis tool by facebook), In case sqli are found, they're displayed at runtime after running the analyze command.
Protectsql is build on top of pysa, a part of the pyre-check project package (see more about pysa here).
Additionally, since it's a CLI tool, we also make use of click (see more here).
pythonpysaclickflask
- Understanding
pysadocumentation - Coming up with target frameworks vulnerable to sqli injections and how can we use
pysafor them
- Using
pysafor static analysis - Usage of
click, the python CLI tool - Uploading our own package to PyPi
We plan to add support to more lightweight framework which does not rely on ORM!
As of now, Protectsql is published on PyPi and is ready for use. Anyone can contribute following our contribution rules and guidelines.



