pkg.soopen package index

brew / 排名 3031

使用 Homebrew, apt, MacPorts, Nix, pacman 安装 bandit

查看 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

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bandit可执行文件已索引可执行文件从本地可执行文件索引发现。
bandit-baseline可执行文件已索引可执行文件从本地可执行文件索引发现。
bandit-config-generator可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本1.9.4
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:bandit
版本1.9.4
软件包管理器Homebrew
主页https://github.com/PyCQA/bandit
仓库https://github.com/PyCQA/bandit
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation