PyCQA/bandit
Bandit is a tool designed to find common security issues in Python code. observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 99
- Release rhythm 60
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 36.0
- age_days: 3051
- days_rel: 189
- days_push: 9
- n_releases_24m: 13
Adoption not part of the score
8242 stars · 827 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Bandit is a security-oriented static analysis tool that finds common security issues in Python code. It parses each file into an AST, runs plugin checks against the AST nodes, and generates a report of findings.
Use cases
- scan python code for security vulnerabilities
- find hardcoded passwords and insecure function calls in python
- add security linting to a ci pipeline
- detect use of insecure libraries like pickle or md5 in python code
- run static security analysis before code review
- audit python project for common security mistakes
When to choose
- you want automated, AST-based detection of common Python security anti-patterns
- you need a lightweight security scanner that integrates into CI/CD
- you want a plugin-extensible linter focused on security rather than style
When to avoid
- you need dynamic analysis or runtime vulnerability detection
- you need dependency vulnerability scanning (use pip-audit or safety instead)
- you need general-purpose style or type linting (use flake8, ruff, or mypy)
Facets
cli-tool · maturity active
linter security vulnerability-scanning ci-cd security developer-tools python cli cross-platform static-analysis security-scanner ast-based code-quality sast static-code-analysis python docker
3 sources
- readme: https://github.com/PyCQA/bandit · fetched 2026-08-28 · 92a589ff8175
- homepage: https://bandit.readthedocs.io · fetched 2026-08-29 · 49d0e06351fe
- registry_pypi: https://pypi.org/pypi/bandit/json · fetched 2026-08-29 · 2d77bcd570bc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PyCQA/bandit | main | 86 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem