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,error
file:
- extensions:
- all
extractors:
- type: regex
name: oracle
part: body
regex:
- 'quoted string not properly terminated'
name: mysql
- 'You have an error in your SQL syntax'
name: sql_server
- 'Unclosed quotation mark'
name: sqlite
- 'near \"\*\"\: syntax error'
- 'SELECTs to the left and right of UNION do not have the same number of result columns'