Create django-framework-exceptions.yaml

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

View File

@ -0,0 +1,33 @@
id: django-framework-exceptions
info:
name: Django Framework Exceptions
description: Detects suspicious Django web application framework exceptions that could indicate exploitation attempts
author: geeknik
reference:
- https://docs.djangoproject.com/en/1.11/ref/exceptions/
- https://docs.djangoproject.com/en/1.11/topics/logging/#django-security
severity: medium
tags: file,logs,django
file:
- extensions:
- all
extractors:
- type: regex
name: exception
part: body
regex:
- 'SuspiciousOperation'
- 'DisallowedHost'
- 'DisallowedModelAdminLookup'
- 'DisallowedModelAdminToField'
- 'DisallowedRedirect'
- 'InvalidSessionKey'
- 'RequestDataTooBig'
- 'SuspiciousFileOperation'
- 'SuspiciousMultipartForm'
- 'SuspiciousSession'
- 'TooManyFieldsSent'
- 'PermissionDenied'