Detection rules › Sigma

Potentially Suspicious ODBC Driver Registered

Status
test
Severity
high
Log source
product windows, category registry_set
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the registration of a new ODBC driver where the driver is located in a potentially suspicious location

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1003 OS Credential Dumping

Event coverage

ProviderEventTitle
SysmonEvent ID 13RegistryEvent (Value Set)

Rule body yaml

title: Potentially Suspicious ODBC Driver Registered
id: e4d22291-f3d5-4b78-9a0c-a1fbaf32a6a4
status: test
description: Detects the registration of a new ODBC driver where the driver is located in a potentially suspicious location
references:
    - https://www.hexacorn.com/blog/2020/08/23/odbcconf-lolbin-trifecta/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-23
modified: 2023-08-17
tags:
    - attack.credential-access
    - attack.persistence
    - attack.t1003
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\SOFTWARE\ODBC\ODBCINST.INI\'
        TargetObject|endswith:
            - '\Driver'
            - '\Setup'
        Details|contains:
            - ':\PerfLogs\'
            - ':\ProgramData\'
            - ':\Temp\'
            - ':\Users\Public\'
            - ':\Windows\Registration\CRMLog'
            - ':\Windows\System32\com\dmp\'
            - ':\Windows\System32\FxsTmp\'
            - ':\Windows\System32\Microsoft\Crypto\RSA\MachineKeys\'
            - ':\Windows\System32\spool\drivers\color\'
            - ':\Windows\System32\spool\PRINTERS\'
            - ':\Windows\System32\spool\SERVERS\'
            - ':\Windows\System32\Tasks_Migrated\'
            - ':\Windows\System32\Tasks\Microsoft\Windows\SyncCenter\'
            - ':\Windows\SysWOW64\com\dmp\'
            - ':\Windows\SysWOW64\FxsTmp\'
            - ':\Windows\SysWOW64\Tasks\Microsoft\Windows\PLA\System\'
            - ':\Windows\SysWOW64\Tasks\Microsoft\Windows\SyncCenter\'
            - ':\Windows\Tasks\'
            - ':\Windows\Temp\'
            - ':\Windows\Tracing\'
            - '\AppData\Local\Temp\'
            - '\AppData\Roaming\'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\SOFTWARE\ODBC\ODBCINST.INI\'
    TargetObject|endswith:
        - '\Driver'
        - '\Setup'
    Details|contains:
        - ':\PerfLogs\'
        - ':\ProgramData\'
        - ':\Temp\'
        - ':\Users\Public\'
        - ':\Windows\Registration\CRMLog'
        - ':\Windows\System32\com\dmp\'
        - ':\Windows\System32\FxsTmp\'
        - ':\Windows\System32\Microsoft\Crypto\RSA\MachineKeys\'
        - ':\Windows\System32\spool\drivers\color\'
        - ':\Windows\System32\spool\PRINTERS\'
        - ':\Windows\System32\spool\SERVERS\'
        - ':\Windows\System32\Tasks_Migrated\'
        - ':\Windows\System32\Tasks\Microsoft\Windows\SyncCenter\'
        - ':\Windows\SysWOW64\com\dmp\'
        - ':\Windows\SysWOW64\FxsTmp\'
        - ':\Windows\SysWOW64\Tasks\Microsoft\Windows\PLA\System\'
        - ':\Windows\SysWOW64\Tasks\Microsoft\Windows\SyncCenter\'
        - ':\Windows\Tasks\'
        - ':\Windows\Temp\'
        - ':\Windows\Tracing\'
        - '\AppData\Local\Temp\'
        - '\AppData\Roaming\'

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.

FieldKindValues
Detailsmatch
  • :\PerfLogs\ corpus 4 (sigma 4)
  • :\ProgramData\ corpus 3 (sigma 3)
  • :\Temp\ corpus 2 (sigma 2)
  • :\Users\Public\ corpus 4 (sigma 4)
  • :\Windows\Registration\CRMLog
  • :\Windows\SysWOW64\FxsTmp\
  • :\Windows\SysWOW64\Tasks\Microsoft\Windows\PLA\System\
  • :\Windows\SysWOW64\Tasks\Microsoft\Windows\SyncCenter\
  • :\Windows\SysWOW64\com\dmp\
  • :\Windows\System32\FxsTmp\
  • :\Windows\System32\Microsoft\Crypto\RSA\MachineKeys\
  • :\Windows\System32\Tasks\Microsoft\Windows\SyncCenter\
  • :\Windows\System32\Tasks_Migrated\
  • :\Windows\System32\com\dmp\
  • :\Windows\System32\spool\PRINTERS\
  • :\Windows\System32\spool\SERVERS\
  • :\Windows\System32\spool\drivers\color\
  • :\Windows\Tasks\
  • :\Windows\Temp\ corpus 4 (sigma 4)
  • :\Windows\Tracing\
  • \AppData\Local\Temp\ corpus 8 (sigma 8)
  • \AppData\Roaming\ corpus 3 (sigma 3)
TargetObjectends_with
  • \Driver corpus 2 (sigma 2)
  • \Setup
TargetObjectmatch
  • \SOFTWARE\ODBC\ODBCINST.INI\ corpus 2 (sigma 2)