Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

Bandit

Python static analysis for common security issues

—Not yet scored
Bandit— Visit Bandit

At a glance

  • Editor score
    Not yet scored
  • Pricing
    Free plan
  • Best for
    Python teams needing lightweight SAST
  • Free plan
    Yes
  • Paid from
    None
  • Facts checked
    21 Sep 2026
  • Where it wins

    • Free, open-source AST-based scanning for Python source code
    • Baselines, exclusions, test selection, and custom plugin support
    • Works with CI, pre-commit, editors, and multiple report formats
  • Where it doesn't

    • Focused on Python rather than broader language coverage
    • Pull-request scanning is not part of the listed feature set
    • Autofix is not part of the listed feature set

Our verdict on Bandit

Bandit is an open-source static-analysis security tool for Python code from PyCQA. It parses Python files into an abstract syntax tree and applies security-focused test plugins to identify patterns such as unsafe subprocess usage, weak cryptography, hardcoded passwords, insecure deserialization, and framework misconfiguration. It is suited to Python teams that want a lightweight command-line scanner they can run locally, in pre-commit, or in CI/CD workflows. Linux and macOS are listed platforms, and a Visual Studio Code extension is maintained by the Bandit authors.

Its strongest fit is configurable scanning within an existing Python workflow. Teams can select tests, define exclusions, adjust plugin settings, and compare results with a baseline to suppress known findings. Bandit also supports reports in JSON, SARIF, HTML, CSV, XML, and YAML, giving teams options for code-scanning workflows and downstream reporting. Integrations include GitHub Actions, pre-commit, Visual Studio Code, Jenkins, Ruff, and Flake8. Custom security checks can be added through entry points, which gives Python-focused teams a path to extend the default plugin set.

Bandit is narrower than a broad application-security platform. Its verified scope is Python source patterns, so teams working across multiple programming languages may need another tool alongside it. The listed capabilities emphasize local analysis, CI/CD integration, baseline management, and reporting rather than pull-request scanning or autofix. Choose Bandit when Python coverage, open-source access, configurable checks, and straightforward workflow integration are the priorities. Consider an alternative when the main requirement is broader language coverage or built-in pull-request remediation workflows.

Bandit pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

Bandit fact sheet

Free planYes
Paid fromNone
Analysis targetssource code
Languages supportedNot verified
Pull request scansNot verified
IDE supportYes
CI/CD integrationYes
Custom security rulesYes
Automated fixesNot verified
DeploymentSelf-hosted
PlatformsLinux, macOS
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations9 integrations: Visual Studio Code, Sublime Text, Vim/Neovim, Emacs, GitHub Actions, Hudson/Jenkins …
PricingFree plan
Websitegithub.com
Facts checked21 Sep 2026

Bandit integrations

Bandit lists 9 integrations on its own site.

  • Visual Studio Code
  • Sublime Text
  • Vim/Neovim
  • Emacs
  • GitHub Actions
  • Hudson/Jenkins
  • Ruff
  • Flake8
  • pre-commit

Alternatives to Bandit

See all Bandit alternatives →

Also listed in

Used Bandit? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Bandit for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Bandit —/10

Bandit is listed in our SAST Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/bandit/"><img src="https://www.itechguides.com/best/badge/bandit.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026

Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. It never changes a score or a verdict. How we rank.