Create suspicious-sql-error-messages.yaml

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

View File

@ -0,0 +1,35 @@
id: suspicious-sql-error-messages
info:
name: Suspicious SQL Error Messages
description: Detects SQL error messages that indicate probing for an injection attack
author: geeknik
severity: high
tags: file,logs,sql
file:
- extensions:
- all
extractors:
- type: regex
name: oracle
part: body
regex:
- 'quoted string not properly terminated'
- type: regex
name: mysql
part: body
regex:
- 'You have an error in your SQL syntax'
- type: regex
name: sql_server
part: body
regex:
- 'Unclosed quotation mark'
- type: regex
name: sqlite
part: body
regex:
- 'near \"\*\"\: syntax error'
- 'SELECTs to the left and right of UNION do not have the same number of result columns'