{"id":"8a670c6d-7189-4b1c-8017-a417ca84a086","title":"Suspicious SQL Error Messages","description":"Detects SQL error messages that indicate probing for an injection attack","author":"Bjoern Kimminich","status":"test","level":"high","date":"2017-11-27","modified":"2023-02-12","tags":["attack.initial-access","attack.t1190"],"technique_ids":["T1190"],"logsource":{"category":"application","product":"sql","definition":"Requirements: application error logs must be collected (with LOG_LEVEL ERROR and above)"},"falsepositives":["A syntax error in MySQL also occurs in non-dynamic (safe) queries if there is an empty in() clause, that may often be the case."],"references":["http://www.sqlinjection.net/errors"],"source_path":"rules/application/sql/app_sqlinjection_errors.yml","source_sha256":"7da50bed07c353d94ba2364f17e805b9c937b24b72e1f7b6a232be27c7e2c0f5","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/application/sql/app_sqlinjection_errors.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious SQL Error Messages\nid: 8a670c6d-7189-4b1c-8017-a417ca84a086\nstatus: test\ndescription: Detects SQL error messages that indicate probing for an injection attack\nreferences:\n    - http://www.sqlinjection.net/errors\nauthor: Bjoern Kimminich\ndate: 2017-11-27\nmodified: 2023-02-12\ntags:\n    - attack.initial-access\n    - attack.t1190\nlogsource:\n    category: application\n    product: sql\n    definition: 'Requirements: application error logs must be collected (with LOG_LEVEL ERROR and above)'\ndetection:\n    keywords:\n        # Oracle\n        - quoted string not properly terminated\n        # MySQL\n        - You have an error in your SQL syntax\n        # SQL Server\n        - Unclosed quotation mark\n        # SQLite\n        - 'near \"*\": syntax error'\n        - SELECTs to the left and right of UNION do not have the same number of result columns\n    condition: keywords\nfalsepositives:\n    - A syntax error in MySQL also occurs in non-dynamic (safe) queries if there is an empty in() clause, that may often be the case.\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1190","id":"T1190","name":"Exploit Public-Facing Application","page":"techniques/enterprise/T1190/"}],"data_path":"data/detection-rules/8a670c6d-7189-4b1c-8017-a417ca84a086.json","kind":"sigma"}
