Detection rules › Sigma
SQL Server - Brutforce enumeration with non existing users (login)
Detects scenarios where an attacker attempts to enumerate potential existing SQL users, resulting in failed logins with unexisting or invalid accounts.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Credential Access | T1110 Brute Force |
Event coverage
| Provider | Event |
|---|---|
| MSSQLSERVER | Event ID 33205 |
Rule body yaml
title: SQL Server - Brutforce enumeration with non existing users (login)
description: Detects scenarios where an attacker attempts to enumerate potential existing SQL users, resulting in failed logins with unexisting or invalid accounts.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1110.xxx-Brut%20force
- https://www.eraofdata.com/sql-server/connectivity/login-failures/
- https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms366351(v=sql.105)
tags:
- attack.credential_access
- attack.t1110
author: mdecrevoisier
status: experimental
logsource:
product: mssql
category: application
detection:
selection:
EventID: 33205
action_id:
- LGFL # FAILED_LOGIN_GROUP
- LGIF # LOGIN FAILED
class_type: LX # LOGIN
additional_information|contains:
- "<state>2</state>" # User ID is not valid
- "<state>5</state>" # Login not found
condition: selection | count(server_principal_name) by Computer > 20
timeframe: 30m
falsepositives:
- Missconfigured application
level: high
Stages and Predicates
Stage 0: condition
selection | count(server_principal_name) by Computer > 20Stage 1: selection
selection:
EventID: 33205
action_id:
- LGFL
- LGIF
class_type: LX
additional_information|contains:
- "<state>2</state>"
- "<state>5</state>"
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
action_id | eq |
|
additional_information | match |
|
class_type | eq |
|