
Bandit은 Python 코드에서 일반적인 보안 문제를 찾기 위해 설계된 도구입니다.
.. 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
PyCQA의 보안 린터
Bandit은 Python 코드에서 일반적인 보안 문제를 찾기 위해 설계된 도구입니다. 이를 위해 Bandit은 각 파일을 처리하고, AST를 구축한 후 AST 노드에 적절한 플러그인을 실행합니다. Bandit이 모든 파일 스캔을 완료하면 보고서를 생성합니다.
Bandit은 원래 OpenStack Security Project 내에서 개발되었으며, 이후 PyCQA로 이전되었습니다.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png :alt: Bandit 예제 스크린샷
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg :target: https://github.com/PyCQA/bandit :alt: Security Status
프로젝트의 README에 배지를 사용하세요!
Markdown 사용 시::
[](https://github.com/PyCQA/bandit)
RST 사용 시::
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
:target: https://github.com/PyCQA/bandit
:alt: Security Status
Python AST 모듈 문서: https://docs.python.org/3/library/ast.html
Green Tree Snakes - 빠진 Python AST 문서: https://greentreesnakes.readthedocs.org/en/latest/
Bandit이 현재 다루거나 확장하여 다룰 수 있는 다양한 AST 노드 유형에 대한 문서: https://greentreesnakes.readthedocs.org/en/latest/nodes.html
Bandit은 컨테이너 이미지로 제공되며, GitHub Actions를 사용하여 bandit 저장소 내에서 빌드됩니다. 이미지는 ghcr.io에서 사용할 수 있습니다:
.. code-block:: console
docker pull ghcr.io/pycqa/bandit/bandit
이미지는 다음 아키텍처용으로 빌드됩니다:
특정 아키텍처를 가져오려면 다음 형식을 사용하세요:
.. code-block:: console
docker pull --platform=<architecture> ghcr.io/pycqa/bandit/bandit:latest
모든 이미지는 sigstore cosign으로 서명되어 있으며, 다음 cosign 명령어를 사용하여 출처를 확인할 수 있습니다:
.. 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
여기서 <version>은 Bandit의 릴리스 버전입니다.
Bandit의 개발은 다음 스폰서들의 지원으로 가능합니다:
.. 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
여러분도 ❤️ Bandit을 좋아하신다면, 스폰서가 되어 주시기 바랍니다.