bandit-sast

Run Bandit scans on Python codebases and map findings to CWE and OWASP Top 10:2021.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/kalshamsi/claude-security-skills --skill bandit-sast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bandit-sast
Source: https://github.com/kalshamsi/claude-security-skills/tree/main/skills/bandit-sast
Command: npx skills add https://github.com/kalshamsi/claude-security-skills --skill bandit-sast

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams identify and fix security issues in Python codebases by running Bandit SAST to detect common vulnerabilities and insecure patterns.

Core Features & Use Cases

  • Bandit-based Python SAST for stealthy security scanning of code.
  • Maps findings to CWE and OWASP Top 10:2021 for actionable remediation.
  • Use during PR reviews, CI checks, or pre-release audits to catch issues early.

Quick Start

Run a Bandit scan on your Python project to reveal security issues and guidance for remediation.

Frequently Asked Questions about bandit-sast

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Python code for security vulnerabilities using static analysis?

You can scan Python code for security vulnerabilities by running Bandit across your codebase to detect dangerous functions, hardcoded secrets, and insecure crypto patterns. Findings are mapped to CWE and OWASP Top 10:2021 and formatted into a standardized table for remediation.

What is Bandit SAST and how does it map to OWASP Top 10?

Bandit SAST is a static application security testing tool that identifies Python security vulnerabilities and maps findings to CWE and OWASP Top 10:2021. It detects insecure patterns like dangerous functions and hardcoded secrets, providing actionable remediation guidance.

Can I run Bandit security checks in CI pipelines or pull request reviews?

Yes, Bandit static analysis can be used during pull request reviews, CI checks, or pre-release audits to catch Python security issues early. It scans for insecure crypto, dangerous functions, and other anti-patterns, delivering results in a standardized findings table.

Does Python static analysis detect hardcoded secrets and insecure cryptography?

Python static analysis detects hardcoded secrets and insecure cryptography by scanning the codebase for these specific anti-patterns alongside dangerous functions. Results are mapped to CWE and OWASP Top 10:2021 to guide remediation efforts.

What is the best way to identify and remediate Python security anti-patterns?

The best way to identify and remediate Python security anti-patterns is running Bandit SAST across your codebase. It flags dangerous functions, hardcoded secrets, and insecure crypto, mapping findings to CWE and OWASP Top 10:2021 in a standardized findings table.