bandit-python Questions
2
According to Bandit's documentation, importing the subprocess module is considered a low security issue (B404). Unfortunately, it does not provide alternatives or explanation why. Thus, I have 2 qu...
Practiced asked 26/10, 2021 at 21:17
7
Solved
I'm using bandit to check my code for potential security issues:
bandit -r git-repository/
However, the most common item found by bandit is B101. It is triggered by assert statements within tests....
Suffuse asked 10/9, 2020 at 11:53
1
Solved
Since the pre-commit hook does not allow even warnings and commits issued by bandit, I need to find a way to execute bash commands from python scripts without bandit complaining.
Using the subproc...
Hive asked 25/2, 2022 at 9:2
2
I'm trying to use pyproject.toml to exclude the venv/ directory. But it is not recognising the option.
[tool.bandit]
exclude = "/venv"
[tool.black]
exclude = "(venv)"
[tool.is...
Thankful asked 3/1, 2022 at 12:33
5
Solved
I've got a bunch of django_mark_safe errors
>> Issue: [B703:django_mark_safe] Potential XSS on mark_safe function.
Severity: Medium Confidence: High
Location: ...
More Info: https://bandi...
Proteiform asked 1/10, 2018 at 18:9
0
My Python script has to run binary available only via console, so I use subprocess.run and it looks like this:
CMD = [
"C:\\Program Files\\Azure DevOps Server 2019\\Tools\\TFSSecurity.exe",
"/gd...
Shulock asked 11/5, 2020 at 16:48
2
Solved
Overview
I'm using SonarQube 7.4.0.18908 to gather code coverage and perform static code analysis for a Python 3.6 project. The server is running in AWS. Things are working as expected (see screen...
Di asked 30/1, 2019 at 21:25
1
I would like to get python code for an analysis using Bandit static analyzer. The main emphasis is security, for python 2.7.
Can anyone help ?
Greathearted asked 21/10, 2017 at 14:54
1
© 2022 - 2024 — McMap. All rights reserved.