Automic VaultAutomic Vault

brew

bandit を Homebrew, apt, MacPorts, Nix, pacman でインストール

bandit のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install bandit

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install bandit

MacPorts ports tree · python/bandit/Portfile · ソース: api.github.com

概要

パッケージ概要

Security-oriented static analyser for Python code

コマンドとエイリアス

  • bandit
  • bandit-baseline
  • bandit-config-generator

履歴

プロジェクトの歴史と使われ方

Bandit is PyCQA's Python security linter: a command-line static analyzer that parses Python files into ASTs and runs security-focused plugins against the tree. It is one of the standard package-manager tools for lightweight Python application security checks.

プロジェクトの歴史

The official README says Bandit was originally developed within the OpenStack Security Project and later rehomed to PyCQA. Its public Git history begins in July 2014, with 0.9.0 tagged in February 2015 and a steady 1.x release line since then.

Bandit's architecture reflects the Python tooling style of its era: it uses Python's AST module, reports issue IDs such as B101 and B602, and exposes command-line, baseline, and config-generation executables for local use and CI automation.

採用の歴史

Bandit's adoption broadened from OpenStack security work into the general Python quality-tooling ecosystem after it moved under PyCQA. The supplied package facts list Homebrew, Debian/Ubuntu, MacPorts, Nix, Arch, and related packaging, and the official README advertises PyPI, container images, and GitHub Actions-built images.

The project also became part of common Python CI and pre-commit workflows: the official docs include integration and CI/CD sections, and the configuration docs show usage through pre-commit with the official PyCQA repository.

使われ方

Bandit scans Python source recursively, builds ASTs, runs security plugins, and emits reports. Common usage is local scanning with bandit -r ., CI enforcement, baseline comparison, and per-line suppression with nosec comments when a finding has been reviewed.

Configuration can live in a .bandit INI file for recursive project scans, or in YAML/TOML files such as bandit.yaml and pyproject.toml when passed with -c. The docs also describe generated configs and plugin-specific overrides.

パッケージ好きにとっての重要性

Bandit matters in package catalogs because it is security tooling with a tiny operational footprint: easy to add to CI, easy to vendor into developer images, and easy for distributions to expose as a CLI.

It also illustrates the consolidation of Python QA tools under PyCQA, alongside linters and format-adjacent tooling that package managers routinely provide for reproducible developer environments.

タイムライン

  • 2014: Public Git history begins in the official repository.
  • 2015: 0.9.0 is tagged, followed by frequent early releases.
  • 2010s: Bandit moves from the OpenStack Security Project to PyCQA, according to the official README.
  • 2020s: Bandit is distributed through PyPI, OS package managers, pre-commit workflows, and signed container images.
  • 2026: 1.9.x releases continue maintenance of the analyzer and rule set.

Related projects

  • Bandit is related to PyCQA tooling, Python's AST module, pre-commit, and broader Python security/static-analysis tools. It complements general-purpose linters by focusing specifically on common security issues.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 2 件の実行時依存関係とともにインストールされます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.banditbandit.yamlpyproject.toml

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
banditcliグローバル実行可能ファイル
bandit-baselinecliグローバル実行可能ファイル
bandit-config-generatorcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.9.4
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/PyCQA/bandit

  • 情報No package-manager update timestamp was available.信頼度 低
  • 情報No cached GitHub release or tag data was available.https://github.com/PyCQA/bandit信頼度 none

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:bandit
バージョン1.9.4
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/bandit
ホームページhttps://github.com/PyCQA/bandit
リポジトリhttps://github.com/PyCQA/bandit
上流ドキュメントhttps://bandit.readthedocs.io/en/latest
ライセンスApache-2.0
ソースアーカイブhttps://files.pythonhosted.org/packages/aa/c3/0cb80dfe0f3076e5da7e4c5ad8e57bac6ac357ff4a6406205501cade4965/bandit-1.9.4.tar.gz
依存関係libyaml, python@3.14
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebandit
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

bandit 1.7.10-2

Security oriented static analyzer for Python code - Metapackage

https://github.com/PyCQA/bandit

sudo apt install bandit
  • Section: python
  • Architecture: all
  • 1 依存関係
  • normalized package name match
  • 一致条件: Bandit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bandit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-bandit 1.7.10-2

Security oriented static analyzer for Python code - Python 3.x

https://github.com/PyCQA/bandit

sudo apt install python3-bandit
  • Section: python
  • Architecture: all
  • Source Package: bandit
  • 7 依存関係
  • normalized package name match
  • 一致条件: Bandit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-bandit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bandit

nix profile install nixpkgs#bandit
  • normalized package name match
  • 一致条件: Bandit
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: bandit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

bandit 1.6.2-3

Security oriented static analyzer for Python code - Metapackage

https://github.com/PyCQA/bandit

sudo apt install bandit
  • Section: universe/python
  • Architecture: all
  • 1 依存関係
  • normalized package name match
  • 一致条件: Bandit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bandit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-bandit 1.6.2-3

Security oriented static analyzer for Python code - Python 3.x

https://github.com/PyCQA/bandit

sudo apt install python3-bandit
  • Section: universe/python
  • Architecture: all
  • Source Package: bandit
  • 5 依存関係
  • normalized package name match
  • 一致条件: Bandit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-bandit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

bandit 1.9.4-1

Python security linter from OpenStack Security

https://github.com/PyCQA/bandit

sudo pacman -S bandit
  • License: Apache-2.0
  • Architecture: any
  • 4 依存関係
  • normalized package name match
  • 一致条件: Bandit
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bandit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

bandit

sudo port install bandit
  • normalized package name match
  • 一致条件: Bandit
MacPorts ports tree · api.github.com · MacPorts ports tree: python/bandit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment