Bandit - Security Scanner for Python

Summary

Bandit is a free vulnerability scanner (SAST) for your Python applications.

3 min read

BANDIT

What is Bandit?

Bandit is a free static application security scanning tool which checks Python applications for security vulnerabilities.

Bandit SAST tool

How to install Bandit?

Install Bandit:

				
					pip install bandit
				
			

install from source:

				
					python setup.py install
				
			

install via Snap:

				
					sudo snap install bandit
				
			

install on macOS:

				
					python3 -m venv bandit-env
source bandit-env/bin/activate
pip install bandit
				
			

How to run a scan with Bandit?

to run Bandit on your application

				
					bandit appsec_santa.py
				
			

and you will get Bandit results on the console:

Bandit SAST tool scan result

please share your experiences with Bandit.

 

Or maybe you have a question.

 

Either way, let me know by leaving a comment below right now.

On this page:

Leave a Reply

Your email address will not be published.