Contents

bandit 1.7.8

0

Security oriented static analyser for python code.

Security oriented static analyser for python code.

Stars: 5938, Watchers: 5938, Forks: 575, Open Issues: 193

The PyCQA/bandit repo was created 5 years ago and the last code push was 15 hours ago.
The project is extremely popular with a mindblowing 5938 github stars!

How to Install bandit

You can install bandit using pip

pip install bandit

or add it to a project with poetry

poetry add bandit

Package Details

Author
PyCQA
License
Apache-2.0 license
Homepage
https://bandit.readthedocs.io/
PyPi:
https://pypi.org/project/bandit/
GitHub Repo:
https://github.com/PyCQA/bandit

Classifiers

  • Security
No  bandit  pypi packages just yet.

Errors

A list of common bandit errors.

Code Examples

Here are some bandit code examples and snippets.

GitHub Issues

The bandit package has 193 open issues on GitHub

  • Add a link or badge to Discord for discussions
  • [docs] Add Getting Started chapter (migrate from README)
  • --confidence should accept a value: LOW, MEDIUM, HIGH.
  • lxml guidance is not useful
  • Check for hardcoded passwords in class attributes
  • cannot silence issue in multi-line string
  • Check B105:hardcoded_password_string for class attributes
  • New check: B113: TrojanSource - Bidirectional control characters
  • add check for "requests" calls without timeout
  • Pbr is unexpectedly required during runtime
  • Enhancement Proposal: Plugin "assert_used" config-skip snippet
  • #nosec not working for multi-line strings in python 3.8
  • blacklist getattr calls
  • Support for the SARIF (Static Analysis Results Interchange Format)
  • #nosec is not working for multiline assert.

See more issues on GitHub

Related Packages & Articles

flake8 7.0.0

the modular source code checker: pep8 pyflakes and co

astroid 3.1.0

An abstract syntax tree for Python with inference support.

cfn-lint 0.86.2

Checks CloudFormation templates for practices and behaviour that could potentially be improved