bandit-security-scan

Scan Python source code for security vulnerabilities using the Bandit linter.

2|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/kfolkes/dotnet-modernization-db-transform --skill bandit-security-scan-kfolkes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bandit-security-scan
Source: https://github.com/kfolkes/dotnet-modernization-db-transform/tree/main/sec-check/.github/skills/bandit-security-scan
Command: npx skills add https://github.com/kfolkes/dotnet-modernization-db-transform --skill bandit-security-scan-kfolkes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automatically scans Python source code for common security vulnerabilities, helping to identify and fix potential risks before they are exploited.

Core Features & Use Cases

  • Vulnerability Detection: Identifies issues like hardcoded credentials, SQL injection, insecure deserialization, and dangerous function calls.
  • Code Auditing: Useful for security code reviews, CI/CD pipelines, and triaging potentially malicious code.
  • Use Case: Automatically scan your Django or Flask application's codebase for high-severity security flaws like SQL injection or cross-site scripting (XSS) vulnerabilities.

Quick Start

Run a security audit on the current Python project for high-severity vulnerabilities.

Frequently Asked Questions about bandit-security-scan

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

FAQPage Schema
How do I scan Python code for security vulnerabilities like SQL injection?

You can scan Python code for security vulnerabilities by running static analysis with Bandit to detect common issues including SQL injection, hardcoded credentials, and insecure deserialization across .py and pyproject.toml files.

Can I automate Python static analysis checks in a CI/CD pipeline?

Yes, you can automate Python static analysis by integrating this Bandit scanning process directly into your CI/CD pipelines to continuously identify and triage dangerous function calls and security flaws.

What types of security flaws does Python static analysis detect in Django or Flask apps?

Python static analysis detects high-severity security flaws in Django or Flask applications, targeting hardcoded credentials, cross-site scripting (XSS), SQL injection, insecure deserialization, and dangerous function usage.

Does the security scanner work with setup.py and pyproject.toml files?

Yes, the security scanner works with setup.py and pyproject.toml files, performing static analysis across your entire Python source code project to identify potential security risks before exploitation.

What is the best way to audit Python source code for hardcoded credentials?

The best way to audit Python source code for hardcoded credentials is using static analysis to automatically scan your codebase, helping identify and fix potential security risks during code reviews or automated checks.

When do I need static analysis to triage potentially malicious Python code?

You need static analysis to triage potentially malicious Python code when conducting security code reviews, allowing you to automatically detect dangerous function usage and deserialization flaws before execution.