Detection rules › Sigma
SQL Server - Connection attempt using a disabled account
Detects scenarios where an attacker attempts authenticate to the database using a disabled user accont
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | T1078 Valid Accounts |
| Persistence | T1078 Valid Accounts |
| Privilege Escalation | T1078 Valid Accounts |
| Stealth | T1078 Valid Accounts |
Event coverage
| Provider | Event |
|---|---|
| MSSQLSERVER | Event ID 18470 |
| MSSQLSERVER | Event ID 33205 |
Rule body yaml
title: SQL Server - Connection attempt using a disabled account
description: Detects scenarios where an attacker attempts authenticate to the database using a disabled user accont
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0001-Initial%20access/T1078-Valid%20accounts
- 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.valid_account
- attack.t1078
author: mdecrevoisier
status: experimental
logsource:
product: mssql
category: application
detection:
selection_basic:
EventID: 18470
selection_advanced:
EventID: 33205
action_id:
- LGFL # FAILED_LOGIN_GROUP
- LGIF # LOGIN FAILED
class_type: LX # LOGIN
additional_information|contains: "<state>7</state>" # User account is disabled
condition: selection_basic or selection_advanced
falsepositives:
- Miss configured accounts or scripts
level: medium
Stages and Predicates
Stage 0: condition
selection_basic or selection_advancedStage 1: selection_basic
selection_basic:
EventID: 18470
Stage 2: selection_advanced
selection_advanced:
EventID: 33205
action_id:
- LGFL
- LGIF
class_type: LX
additional_information|contains: "<state>7</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 |
|