sast-bandit
Scan Python Code with Bandit
Python security flaws can reach production unnoticed. This skill guides Bandit scans, prioritization, CI integration, and remediation with CWE and OWASP references.
Stop for confirmation before installing.
Review the plan and obtain explicit user consent before changing files.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "sast-bandit" from https://skillstore.io/skills/agentsecops-sast-bandit.md and its manifest at https://skillstore.io/api/skills/agentsecops-sast-bandit/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "sast-bandit". Review Bandit finding B602 in payments/tasks.py.
Expected outcome:
- Priority: High because user input reaches a shell-enabled subprocess.
- Recommended action: use a fixed executable with validated arguments and no shell.
- Validation: test metacharacters, traversal values, and unexpected option-like inputs.
Using "sast-bandit". Plan a Bandit gate for a legacy Python service.
Expected outcome:
- Start by recording all findings without blocking builds.
- Block new high-severity, high-confidence findings after the baseline is reviewed.
- Store restricted reports and require documented approval for suppressions.
Security Audit
High RiskMost static matches are false positives from configuration lists, Markdown formatting, references, and labeled vulnerable examples. Confirmed risks include unsafe eval suppression, unvalidated subprocess guidance, fragile xargs filename handling, and unsafe pickle suppression. Third-party hooks and actions also use mutable references.
Confirmed security concerns (2)
Capability review items (3)
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Risk Factors
โก Contains scripts (2)
โ๏ธ External commands (50)
๐ Filesystem access (15)
๐ Network access (29)
๐ Env variables (19)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/agentsecops-sast-bandit/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/agentsecops-sast-bandit?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/agentsecops-sast-bandit?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/agentsecops-sast-bandit/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/agentsecops-sast-bandit.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
AgentSecOps. (2026). sast-bandit security audit report (audit version 10) [Author version 0.1.0]. Skillstore. https://skillstore.io/skills/agentsecops-sast-bandit/audits/10BibTeX citation
@techreport{agentsecops-agentsecops-sast-bandit-2026,
author = {AgentSecOps},
title = {sast-bandit security audit report (audit version 10)},
institution = {Skillstore},
year = {2026},
number = {10},
url = {https://skillstore.io/skills/agentsecops-sast-bandit/audits/10},
note = {Author version 0.1.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "sast-bandit security audit report (audit version 10)"
version: "0.1.0"
type: report
authors:
- name: "AgentSecOps"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/agentsecops-sast-bandit/audits/10"
identifiers:
- type: other
value: "skillstore:agentsecops-sast-bandit:audit:10"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Triage a Python Feature
Scan changed Python files, review high-confidence findings, and prepare focused fixes before code review.
Establish an Application Baseline
Inventory existing Bandit findings, map them to CWE and OWASP, and define remediation priorities.
Add a CI Security Gate
Configure Bandit or pre-commit checks that block selected severity levels while preserving reviewable reports.
Try These Prompts
Scan the Python files in [path] with Bandit. Use a read-only workflow, explain the command, and summarize findings by severity and confidence.
Review the Bandit report at [path]. Prioritize exploitable findings, identify likely false positives, and recommend one verification step for each priority item.
Design a Bandit gate for [repository]. Specify scan scope, thresholds, exclusions, report retention, failure behavior, and a safe exception review process.
Analyze Bandit findings in [report]. Map each confirmed issue to CWE and OWASP, rank exploitability, propose fixes, and define validation tests.
Best Practices
- Run scans with read-only source access and restrict report access.
- Review exploitability before suppression, and document every accepted exception.
- Pin Bandit, hooks, and CI actions to reviewed immutable versions.
Avoid
- Do not treat every Bandit finding as a confirmed vulnerability.
- Do not suppress eval, pickle, or shell findings without a documented trust boundary.
- Do not publish reports containing credentials or sensitive source snippets.
Frequently Asked Questions
Does this skill install Bandit automatically?
Which languages can Bandit scan?
Does Bandit cover the complete OWASP Top 10?
How should false positives be handled?
Can Bandit reports contain secrets?
Is the enhanced analyzer included?
Developer Details
Author
AgentSecOpsLicense
MIT
Author version
v0.1.0
Skillstore revision
r2
Ref
9e952417e76879bc9d853e1b8b2cd6d6d8d4a1c2
Maintenance freshness
7/24/2026
Usage
10 downloads ยท 417 views
File structure
๐ assets/
๐ .gitkeep
๐ bandit_config.yaml
๐ references/
๐ cwe_owasp_mapping.md
๐ remediation_guide.md
๐ SKILL.md