Detectionhightest

MSSQL Add Account To Sysadmin Role

Detects when an attacker tries to backdoor the MSSQL server by adding a backdoor account to the sysadmin fixed server role

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2022-07-13Updated 2024-06-2608200f85-2678-463e-9c32-88dce2f073d1windows
Log Source
Windowsapplication
ProductWindows← raw: windows
Serviceapplication← raw: application

Definition

Requirements: MSSQL audit policy must be enabled in order to receive this event in the application log

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Provider_Name|contains: 'MSSQL' # Note: We use contains to account for other third party providers - See https://github.com/SigmaHQ/sigma/issues/4876
        EventID: 33205
        Data|contains|all:
            - 'object_name:sysadmin'
            - 'statement:alter server role [sysadmin] add member '
    condition: selection
False Positives

Rare legitimate administrative activity

MITRE ATT&CK
Rule Metadata
Rule ID
08200f85-2678-463e-9c32-88dce2f073d1
Status
test
Level
high
Type
Detection
Created
2022-07-13
Modified
2024-06-26
Path
rules/windows/builtin/application/mssqlserver/win_mssql_add_sysadmin_account.yml
Raw Tags
attack.persistence
View on GitHub