CheckOps
Bandit
Bandit is the PyCQA's Apache-2.0 tool for finding common security issues in Python code by building an AST for each file and running security plugins against it.
Latest public signals
Last updated: 11 November 2026 (page expanded from the official README or site).
Introduction
Bandit is a tool designed to find common security issues in Python code. It processes each file, builds an abstract syntax tree and runs plugins against the nodes, then produces a report. It is maintained by the Python Code Quality Authority (PyCQA).
The source code is at PyCQA/bandit on GitHub under the Apache-2.0 licence, with about 8,400 stars; the most recent commit was on 9 November 2026.
Bandit, maintained under the Python Code Quality Authority (PyCQA), finds common security issues in Python code. It parses each file into an abstract syntax tree and runs plug-ins against the nodes, flagging problems such as use of eval or exec, hard-coded passwords, weak cryptography, insecure deserialisation with pickle, shell injection through subprocess, and disabled TLS verification. Each finding has a severity and confidence level, and results can be output in formats including JSON and SARIF.
Where it fits: on CheckOps, Bandit is listed alongside alternatives such as Semgrep, Opengrep, CodeQL and Bearer CLI. When comparing them, check licence and hosting model, how results reach developers (pull requests, CI logs or dashboards), how much tuning is needed to keep noise low, and whether the project or vendor is actively maintained.
Features
- Python security checks: Flags issues such as hard-coded passwords, unsafe deserialisation, shell injection and weak crypto.
- Plugins: Extensible test plugins.
- Severity and confidence: Each finding is rated.
- Baselines and config: Skip tests and suppress known issues.
- CI friendly: Several output formats, including JSON and SARIF via options; see docs.
Pros
- Free to use: Open source under Apache-2.0.
- Maintained: Commits as recent as 9 November 2026.
- Community: About 8,400 GitHub stars.
Cons
- Python only: Other languages need other tools.
- Pattern-based: Limited data-flow analysis; expect some false positives.
Usage and Links (Example)
pip install bandit
bandit -r ./src -ll
Resources:
Getting started tips: run Bandit on a recent branch, triage the first report with the developers who own the code, and suppress or tune rules that produce noise before making the scan a blocking CI check. Upload results in SARIF where your platform supports it, so findings appear on pull requests, and gate only on new high-severity findings at first to avoid a backlog that blocks every merge.
Pricing
Bandit is free and open source under the Apache-2.0 licence.
Recommended for?
- Python teams adding a quick security lint to CI.
- Reviewers wanting automated checks for common pitfalls.
- Not a fit for deep cross-file taint analysis.
Conclusion
Bandit is a lightweight, widely used security linter for Python.
As with any tool in this category, the value of Bandit comes from running it consistently and acting on what it finds, so wire it into an existing workflow rather than treating it as an occasional audit.
Compare
CheckOps pages that put Bandit next to related tools. There is no paid placement on these lists.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Bandit side by side.
SSemgrepSemgrep is a fast static-analysis engine with a free open-source CLI and a paid platform for cross-file rules, supply chain, and secrets.Compare with Bandit
OOpengrepOpengrep is an LGPL-2.1 open-source SAST engine, a fork of Semgrep backed by a consortium of AppSec companies including Aikido, Endor Labs and others.Compare with Bandit
CCodeQLCodeQL is GitHub's semantic code analysis engine: it builds a queryable database from source code and runs security queries (MIT-licensed standard library) to find vulnerabilities, powering GitHub code scanning.Compare with Bandit
BBearer CLIBearer CLI is a SAST tool that scans source code and analyses data flows to find, filter and prioritise security and privacy risks, with a commercial Bearer Pro from Cycode.Compare with Bandit
SSonarQubeModernize your AI workflows with code verification for the agentic era.Compare with Bandit
Ppip-auditpip-audit is an Apache-2.0 PyPA tool that audits Python environments, requirements files and dependency trees for known vulnerabilities using the Python Packaging Advisory Database, and can fix them.Compare with Bandit