<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TMeissner</id>
	<title>Elvis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TMeissner"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/TMeissner"/>
	<updated>2026-09-10T16:20:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11361</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11361"/>
		<updated>2023-01-31T09:05:22Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High. This shows the impact of the Issue and how confident Bandit is, that this is really an issue.&lt;br /&gt;
&lt;br /&gt;
[[File:Low Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
[[File:Medium_Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
[[File:High_Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11360</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11360"/>
		<updated>2023-01-31T09:04:42Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High.&lt;br /&gt;
&lt;br /&gt;
[[File:Low Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
[[File:Medium_Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
[[File:High_Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11359</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11359"/>
		<updated>2023-01-31T09:04:31Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High.&lt;br /&gt;
&lt;br /&gt;
[[File:Low Risk.png|700px|al]]&lt;br /&gt;
[[File:Medium_Risk.png|700px|al]]&lt;br /&gt;
[[File:High_Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:High_Risk.png&amp;diff=11358</id>
		<title>File:High Risk.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:High_Risk.png&amp;diff=11358"/>
		<updated>2023-01-31T09:04:06Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Medium_Risk.png&amp;diff=11357</id>
		<title>File:Medium Risk.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Medium_Risk.png&amp;diff=11357"/>
		<updated>2023-01-31T09:03:32Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Bild2.png&amp;diff=11356</id>
		<title>File:Bild2.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Bild2.png&amp;diff=11356"/>
		<updated>2023-01-31T09:03:04Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: TMeissner reverted File:Bild2.png to an old version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Bild2.png&amp;diff=11355</id>
		<title>File:Bild2.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Bild2.png&amp;diff=11355"/>
		<updated>2023-01-31T09:02:30Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: TMeissner uploaded a new version of File:Bild2.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11354</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11354"/>
		<updated>2023-01-31T09:02:01Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High.&lt;br /&gt;
&lt;br /&gt;
[[File:Low Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11353</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11353"/>
		<updated>2023-01-31T09:01:49Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High.&lt;br /&gt;
[[File:Low Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11352</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11352"/>
		<updated>2023-01-31T09:01:14Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High.&lt;br /&gt;
[[Low_Risk.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Low_Risk.png&amp;diff=11351</id>
		<title>File:Low Risk.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Low_Risk.png&amp;diff=11351"/>
		<updated>2023-01-31T09:00:43Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11350</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11350"/>
		<updated>2023-01-31T08:58:45Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Bandit categorizes possible Problems into three Risk Categories Low, Medium, High each combined with a Confidence Score of Low, Medium High.&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11110</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11110"/>
		<updated>2023-01-14T22:20:41Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import os&lt;br /&gt;
 import pickle&lt;br /&gt;
 import sys&lt;br /&gt;
 import subprocess&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11109</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11109"/>
		<updated>2023-01-14T20:40:03Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import sqlalchemy&lt;br /&gt;
 # bad&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value&lt;br /&gt;
 query = &amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;&amp;quot;&amp;quot;WITH cte AS (SELECT x FROM foo)&lt;br /&gt;
 SELECT x FROM cte WHERE x = &#039;%s&#039;&amp;quot;&amp;quot;&amp;quot; % identifier&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier)&lt;br /&gt;
 # bad&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;)&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier))&lt;br /&gt;
 # good&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot;, value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 # bug: https://bugs.launchpad.net/bandit/+bug/1479625&lt;br /&gt;
 def a():&lt;br /&gt;
     def b():&lt;br /&gt;
         pass&lt;br /&gt;
     return b&lt;br /&gt;
 a()(&amp;quot;SELECT %s FROM foo&amp;quot; % val)&lt;br /&gt;
 # real world false positives&lt;br /&gt;
 choices=[(&#039;server_list&#039;, _(&amp;quot;Select from active instances&amp;quot;))]&lt;br /&gt;
 print(&amp;quot;delete from the cache as the first argument&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output:&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11108</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11108"/>
		<updated>2023-01-14T20:39:48Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import sqlalchemy&lt;br /&gt;
 # bad&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value&lt;br /&gt;
 query = &amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;&amp;quot;&amp;quot;WITH cte AS (SELECT x FROM foo)&lt;br /&gt;
 SELECT x FROM cte WHERE x = &#039;%s&#039;&amp;quot;&amp;quot;&amp;quot; % identifier&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier)&lt;br /&gt;
 # bad&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;)&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier))&lt;br /&gt;
 # good&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot;, value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 # bug: https://bugs.launchpad.net/bandit/+bug/1479625&lt;br /&gt;
 def a():&lt;br /&gt;
     def b():&lt;br /&gt;
         pass&lt;br /&gt;
     return b&lt;br /&gt;
 a()(&amp;quot;SELECT %s FROM foo&amp;quot; % val)&lt;br /&gt;
 # real world false positives&lt;br /&gt;
 choices=[(&#039;server_list&#039;, _(&amp;quot;Select from active instances&amp;quot;))]&lt;br /&gt;
 print(&amp;quot;delete from the cache as the first argument&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File&lt;br /&gt;
 bandit imports.py&lt;br /&gt;
you get the following output&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11107</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11107"/>
		<updated>2023-01-14T20:36:27Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import sqlalchemy&lt;br /&gt;
 # bad&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value&lt;br /&gt;
 query = &amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;&amp;quot;&amp;quot;WITH cte AS (SELECT x FROM foo)&lt;br /&gt;
 SELECT x FROM cte WHERE x = &#039;%s&#039;&amp;quot;&amp;quot;&amp;quot; % identifier&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier)&lt;br /&gt;
 # bad&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;)&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier))&lt;br /&gt;
 # good&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot;, value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 # bug: https://bugs.launchpad.net/bandit/+bug/1479625&lt;br /&gt;
 def a():&lt;br /&gt;
     def b():&lt;br /&gt;
         pass&lt;br /&gt;
     return b&lt;br /&gt;
 a()(&amp;quot;SELECT %s FROM foo&amp;quot; % val)&lt;br /&gt;
 # real world false positives&lt;br /&gt;
 choices=[(&#039;server_list&#039;, _(&amp;quot;Select from active instances&amp;quot;))]&lt;br /&gt;
 print(&amp;quot;delete from the cache as the first argument&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File you get the following output&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. A detailed information is given for every Issue found. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11106</id>
		<title>Bandit: Static Code Analysis for Python Code</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bandit:_Static_Code_Analysis_for_Python_Code&amp;diff=11106"/>
		<updated>2023-01-14T20:35:22Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: Created page with &amp;quot;== Summary ==   This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).  == Requirements ==  * Python Version 3.7 or higher * Python Package: bandit  == Installation and Usage== Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If y...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation shows how to install and use Bandit, a static analysis tool for C/C++ source code. This Tool can be used to identify possible Security risks categorized in three different Severity Levels (Low, Medium, High).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Python Version 3.7 or higher&lt;br /&gt;
* Python Package: bandit&lt;br /&gt;
&lt;br /&gt;
== Installation and Usage==&lt;br /&gt;
Bandit can be easily installed via the pip install command. Furthermore it can be found on PyPi for manual installation. If you want to install it manually please follow the attached References.&lt;br /&gt;
&lt;br /&gt;
 pip install bandit&lt;br /&gt;
&lt;br /&gt;
For executing the analysis just enter die File or Folder you want to be analyzed in a Python Terminal&lt;br /&gt;
&lt;br /&gt;
 bandit &amp;lt;File/Folder&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example is using the Bandit example files from their github (https://github.com/PyCQA/bandit). For this case we are using the imports.py Example with the following Source Code:&lt;br /&gt;
&lt;br /&gt;
 import sqlalchemy&lt;br /&gt;
 # bad&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value&lt;br /&gt;
 query = &amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier&lt;br /&gt;
 query = &amp;quot;&amp;quot;&amp;quot;WITH cte AS (SELECT x FROM foo)&lt;br /&gt;
 SELECT x FROM cte WHERE x = &#039;%s&#039;&amp;quot;&amp;quot;&amp;quot; % identifier&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;&lt;br /&gt;
 query = &amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier)&lt;br /&gt;
 # bad&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot; % value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot; % identifier)&lt;br /&gt;
 # bad alternate forms&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;&amp;quot; + identifier + &amp;quot;&#039;&amp;quot;)&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;{}&#039;&amp;quot;.format(identifier))&lt;br /&gt;
 # good&lt;br /&gt;
 cur.execute(&amp;quot;SELECT * FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;INSERT INTO foo VALUES (&#039;a&#039;, &#039;b&#039;, &#039;%s&#039;)&amp;quot;, value)&lt;br /&gt;
 cur.execute(&amp;quot;DELETE FROM foo WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 cur.execute(&amp;quot;UPDATE foo SET value = &#039;b&#039; WHERE id = &#039;%s&#039;&amp;quot;, identifier)&lt;br /&gt;
 # bug: https://bugs.launchpad.net/bandit/+bug/1479625&lt;br /&gt;
 def a():&lt;br /&gt;
     def b():&lt;br /&gt;
         pass&lt;br /&gt;
     return b&lt;br /&gt;
 a()(&amp;quot;SELECT %s FROM foo&amp;quot; % val)&lt;br /&gt;
 # real world false positives&lt;br /&gt;
 choices=[(&#039;server_list&#039;, _(&amp;quot;Select from active instances&amp;quot;))]&lt;br /&gt;
 print(&amp;quot;delete from the cache as the first argument&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
After executing bandit on the File you get the following output&lt;br /&gt;
&lt;br /&gt;
[[File:2023-01-14 21 07 27-Window.png|700px|al]]&lt;br /&gt;
&lt;br /&gt;
Bandit has found two Low Severity Issues regarding Problems with the imported Packages. It also shows the CWE Number associated with it.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.org/project/bandit/#files&lt;br /&gt;
* https://bandit.readthedocs.io/en/latest/start.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:2023-01-14_21_07_27-Window.png&amp;diff=11105</id>
		<title>File:2023-01-14 21 07 27-Window.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:2023-01-14_21_07_27-Window.png&amp;diff=11105"/>
		<updated>2023-01-14T20:08:35Z</updated>

		<summary type="html">&lt;p&gt;TMeissner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>TMeissner</name></author>
	</entry>
</feed>