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
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
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.
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:
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.
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