Create python-app-sql-exceptions.yaml

patch-1
Geeknik Labs 2021-11-01 13:20:06 -05:00 committed by GitHub
parent c64a8e1c73
commit 57183b4b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -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'