From 57183b4b50d832142205a8a005b106d5e7ee6371 Mon Sep 17 00:00:00 2001 From: Geeknik Labs <466878+geeknik@users.noreply.github.com> Date: Mon, 1 Nov 2021 13:20:06 -0500 Subject: [PATCH] Create python-app-sql-exceptions.yaml --- file/logs/python-app-sql-exceptions.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 file/logs/python-app-sql-exceptions.yaml diff --git a/file/logs/python-app-sql-exceptions.yaml b/file/logs/python-app-sql-exceptions.yaml new file mode 100644 index 0000000000..b4529f7cfc --- /dev/null +++ b/file/logs/python-app-sql-exceptions.yaml @@ -0,0 +1,23 @@ +id: python-app-sql-exceptions + +info: + name: Python App SQL Exception Check + description: Generic check for SQL exceptions in Python according to PEP 249 + reference: https://www.python.org/dev + author: geeknik + severity: medium + tags: file,logs,python,sql + +file: + - extensions: + - all + + extractors: + - type: regex + name: exception + part: body + regex: + - 'DataError' + - 'IntegrityError' + - 'ProgrammingError' + - 'OperationalError'