
Bandit ist ein Werkzeug, das entwickelt wurde, um häufige Sicherheitsprobleme in Python-Code zu finden.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/logo/logotype-sm.png :alt: Bandit
======
.. image:: https://github.com/PyCQA/bandit/actions/workflows/pythonpackage.yml/badge.svg?branch=main :target: https://github.com/PyCQA/bandit/actions?query=workflow%3A%22Build+and+Test+Bandit%22+branch%3Amain :alt: Build Status
.. image:: https://readthedocs.org/projects/bandit/badge/?version=latest :target: https://readthedocs.org/projects/bandit/ :alt: Docs Status
.. image:: https://img.shields.io/pypi/v/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Latest Version
.. image:: https://img.shields.io/pypi/pyversions/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Python Versions
.. image:: https://img.shields.io/pypi/format/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Format
.. image:: https://img.shields.io/badge/license-Apache%202-blue.svg :target: https://github.com/PyCQA/bandit/blob/main/LICENSE :alt: License
.. image:: https://img.shields.io/discord/825463413634891776.svg :target: https://discord.gg/qYxpadCgkx :alt: Discord
Ein Sicherheits-Linter von PyCQA
Bandit ist ein Tool, das dazu entwickelt wurde, häufige Sicherheitsprobleme in Python-Code zu finden. Dazu verarbeitet Bandit jede Datei, erstellt einen AST daraus und führt geeignete Plugins gegen die AST-Knoten aus. Sobald Bandit das Scannen aller Dateien abgeschlossen hat, erstellt es einen Bericht.
Bandit wurde ursprünglich im OpenStack Security Project entwickelt und später zu PyCQA umgesiedelt.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png :alt: Bandit Example Screen Shot
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg :target: https://github.com/PyCQA/bandit :alt: Security Status
Verwenden Sie unser Abzeichen in der README Ihres Projekts!
using Markdown::
[](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
Dokumentation des Python AST-Moduls: https://docs.python.org/3/library/ast.html
Green Tree Snakes - die fehlende Python AST-Dokumentation: https://greentreesnakes.readthedocs.org/en/latest/
Dokumentation der verschiedenen AST-Knotentypen, die Bandit derzeit abdeckt oder auf die es erweitert werden könnte: https://greentreesnakes.readthedocs.org/en/latest/nodes.html
Bandit ist als Container-Image verfügbar, das im bandit-Repository mit GitHub Actions erstellt wird. Das Image ist auf ghcr.io verfügbar:
.. code-block:: console
docker pull ghcr.io/pycqa/bandit/bandit
Das Image wird für die folgenden Architekturen erstellt:
Um eine bestimmte Architektur zu pullen, verwenden Sie das folgende Format:
.. code-block:: console
docker pull --platform=<architecture> ghcr.io/pycqa/bandit/bandit:latest
Jedes Image ist mit sigstore cosign signiert und es ist möglich, die Herkunftsquelle mit dem folgenden cosign-Befehl zu überprüfen:
.. code-block:: console
cosign verify ghcr.io/pycqa/bandit/bandit:latest \
--certificate-identity https://github.com/pycqa/bandit/.github/workflows/build-publish-image.yml@refs/tags/<version> \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Wobei <version> die Release-Version von Bandit ist.
Die Entwicklung von Bandit wird durch die folgenden Sponsoren ermöglicht:
.. list-table:: :width: 100% :class: borderless
.. image:: https://avatars.githubusercontent.com/u/34240465?s=200&v=4 :target: https://opensource.mercedes-benz.com/ :alt: Mercedes-Benz :width: 88
.. image:: https://github.githubassets.com/assets/tidelift-8cea37dea8fc.svg :target: https://tidelift.com/lifter/search/pypi/bandit :alt: Tidelift :width: 88
.. image:: https://avatars.githubusercontent.com/u/110237746?s=200&v=4 :target: https://stacklok.com/ :alt: Stacklok :width: 88
Wenn Sie Bandit auch ❤️ lieben, ziehen Sie bitte eine Spende in Betracht.