diff --git a/rules/application/app_python_sql_exceptions.yml b/rules/application/app_python_sql_exceptions.yml new file mode 100644 index 000000000..b42041e7b --- /dev/null +++ b/rules/application/app_python_sql_exceptions.yml @@ -0,0 +1,19 @@ +title: Python SQL Exceptions +description: Generic rule for SQL exceptions in Python according to PEP 249 +author: Thomas Patzke +reference: + - https://www.python.org/dev/peps/pep-0249/#exceptions +logsource: + category: application + product: python +detection: + exceptions: + - DataError + - IntegrityError + - ProgrammingError + condition: exceptions +falsepositives: + - Application bugs + - Penetration testing +level: medium +