bandit
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.
Name:bandit
Category:Static Code Analysis
Publisher:trickest
Created:6/23/2021
Container:
quay.io/trickest/bandit:1.7.1
Output Type:
License:Unknown
Source:View Source
Parameters
-d
Turn on debug mode-q
Only show output in the case of an error--profile
Profile to use (defaults to executing all tests)--skip
Comma-separated list of test IDs to skip--tests
Comma-separated list of test IDs to run--verbose
Output extra information like excluded and included files--baseline
Path of a baseline report to compare against (only JSON-formatted files are accepted)--ini
Path to a .bandit file that supplies command line arguments--aggregate
Aggregate ggregate output by vulnerability (default) or by filename--exit-zero
Exit with 0, even with results found-l
Report only issues of a given severity level or higher (level for LOW, -ll for MEDIUM, -lll for HIGH)--confidence
Report only issues of a given confidence level or higher-lll
Report only issues of a given severity level or higher (level for LOW, -ll for MEDIUM, -lll for HIGH)--configfile
Optional config file to use for selecting plugins and overriding defaults--ignore-nosec
Do not skip lines with # nosec comments-ll
Report only issues of a given severity level or higher (level for LOW, -ll for MEDIUM, -lll for HIGH)--msg-template
Specify output message template (only usable with output-format is set to custom)--number
Maximum number of code lines to output for each issuetargets
Source file(s)--exclude
Comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) (default: .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg)-f
{csv,custom,html,json,screen,txt,xml,yaml}targets
Source folder--recursive
Find and process files in subdirectories