macOS
brew install banditlocal Homebrew formula metadata
sudo port install banditMacPorts ports tree · python/bandit/Portfile · 来源: api.github.com
安装
brew install banditlocal Homebrew formula metadata
sudo port install banditMacPorts ports tree · python/bandit/Portfile · 来源: api.github.com
sudo apt install banditDebian stable package indexes · bandit · 来源: deb.debian.org
nix profile install nixpkgs#banditnixpkgs package indexes · bandit · 来源: raw.githubusercontent.com
sudo pacman -S banditArch Linux sync databases · bandit · 来源: geo.mirror.pkgbuild.com
概览
Security-oriented static analyser for Python code
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
.banditbandit.yamlpyproject.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bandit | cli | 全局可执行文件 | |
bandit-baseline | cli | 全局可执行文件 | |
bandit-config-generator | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/PyCQA/bandit
安装元数据
| 软件包键 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bandit |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
bandit 1.7.10-2
Security oriented static analyzer for Python code - Metapackage
https://github.com/PyCQA/bandit
sudo apt install banditpython3-bandit 1.7.10-2
Security oriented static analyzer for Python code - Python 3.x
https://github.com/PyCQA/bandit
sudo apt install python3-banditbandit
nix profile install nixpkgs#banditbandit 1.6.2-3
Security oriented static analyzer for Python code - Metapackage
https://github.com/PyCQA/bandit
sudo apt install banditpython3-bandit 1.6.2-3
Security oriented static analyzer for Python code - Python 3.x
https://github.com/PyCQA/bandit
sudo apt install python3-banditbandit 1.9.4-1
Python security linter from OpenStack Security
https://github.com/PyCQA/bandit
sudo pacman -S banditbandit
sudo port install bandit来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.