Skip to content
forked from PyCQA/bandit

Bandit is a tool designed to find common security issues in Python code.

License

Notifications You must be signed in to change notification settings

joshmarinacci/bandit

 
 

Repository files navigation

Bandit


Build Status Docs Status Latest Version Python Versions Format License Discord

A security linter from PyCQA

Overview

Bandit is a tool designed to find common security issues in Python code. To do this Bandit processes each file, builds an AST from it, and runs appropriate plugins against the AST nodes. Once Bandit has finished scanning all the files it generates a report.

Bandit was originally developed within the OpenStack Security Project and later rehomed to PyCQA.

Bandit Example Screen Shot

Show Your Style

Security Status

Use our badge in your project's README!

using Markdown:

[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)

using RST:

.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
    :target: https://github.com/PyCQA/bandit
    :alt: Security Status

Usage with Trunk Check

Trunk is an extendable superlinter which can run Bandit automatically on every commit. Source for the Trunk Bandit integration is here

To enable Bandit via Trunk:

# to get the latest version:
trunk check enable bandit

# to get a specific version:
trunk check enable [email protected]

References

Python AST module documentation: https://docs.python.org/3/library/ast.html

Green Tree Snakes - the missing Python AST docs: https://greentreesnakes.readthedocs.org/en/latest/

Documentation of the various types of AST nodes that Bandit currently covers or could be extended to cover: https://greentreesnakes.readthedocs.org/en/latest/nodes.html

About

Bandit is a tool designed to find common security issues in Python code.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%