
Bandit هي أداة مصممة لاكتشاف المشكلات الأمنية الشائعة في كود Python.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/logo/logotype-sm.png :alt: بانديت
======
.. 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: حالة البناء
.. image:: https://readthedocs.org/projects/bandit/badge/?version=latest :target: https://readthedocs.org/projects/bandit/ :alt: حالة الوثائق
.. image:: https://img.shields.io/pypi/v/bandit.svg :target: https://pypi.org/project/bandit/ :alt: أحدث إصدار
.. image:: https://img.shields.io/pypi/pyversions/bandit.svg :target: https://pypi.org/project/bandit/ :alt: إصدارات Python
.. image:: https://img.shields.io/pypi/format/bandit.svg :target: https://pypi.org/project/bandit/ :alt: التنسيق
.. image:: https://img.shields.io/badge/license-Apache%202-blue.svg :target: https://github.com/PyCQA/bandit/blob/main/LICENSE :alt: الترخيص
.. image:: https://img.shields.io/discord/825463413634891776.svg :target: https://discord.gg/qYxpadCgkx :alt: ديسكورد
أداة فحص أمان من PyCQA
Bandit هي أداة مصممة لاكتشاف المشكلات الأمنية الشائعة في كود Python. للقيام بذلك، تقوم Bandit بمعالجة كل ملف، وبناء AST منه، وتشغيل الإضافات المناسبة على عُقد AST. بمجرد أن تنتهي Bandit من فحص جميع الملفات، تقوم بإنشاء تقرير.
تم تطوير Bandit في الأصل ضمن مشروع OpenStack Security، ثم نُقل لاحقًا إلى PyCQA.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png :alt: لقطة شاشة مثال لبانديت
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg :target: https://github.com/PyCQA/bandit :alt: حالة الأمان
استخدم شارتنا في ملف 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: حالة الأمان
توثيق وحدة AST الخاصة بـ Python: https://docs.python.org/3/library/ast.html
Green Tree Snakes - توثيق AST المفقود في بايثون: https://greentreesnakes.readthedocs.org/en/latest/
توثيق أنواع عُقد AST المختلفة التي يغطيها Bandit حاليًا أو يمكن توسيعها لتغطيتها: https://greentreesnakes.readthedocs.org/en/latest/nodes.html
Bandit متاح كصورة حاوية، تم بناؤها داخل مستودع bandit باستخدام GitHub Actions. الصورة متاحة على 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: مرسيدس بنز :width: 88
.. image:: https://github.githubassets.com/assets/tidelift-8cea37dea8fc.svg :target: https://tidelift.com/lifter/search/pypi/bandit :alt: تيديلفت :width: 88
.. image:: https://avatars.githubusercontent.com/u/110237746?s=200&v=4 :target: https://stacklok.com/ :alt: ستاك لوك :width: 88
إذا كنت أيضًا ❤️ بانديت، يرجى التفكير في الرعاية.