← Back to SOC feed Coverage →

New ODBC Driver Registered

sigma LOW SigmaHQ
imRegistry
backdoor
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-05-27T23:00:00Z · Confidence: medium

Hunt Hypothesis

Detects the registration of a new ODBC driver.

Detection Rule

Sigma (Original)

title: New ODBC Driver Registered
id: 3390fbef-c98d-4bdd-a863-d65ed7c610dd
status: test
description: Detects the registration of a new ODBC driver.
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.persistence
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\SOFTWARE\ODBC\ODBCINST.INI\'
        TargetObject|endswith: '\Driver'
    filter_main_sqlserver:
        TargetObject|contains: '\SQL Server\'
        Details: '%WINDIR%\System32\SQLSRV32.dll'
    filter_optional_office_access:
        TargetObject|contains: '\Microsoft Access '
        Details|startswith: 'C:\Progra'
        Details|endswith: '\ACEODBC.DLL'
    filter_optional_office_excel:
        TargetObject|contains: '\Microsoft Excel Driver'
        Details|startswith: 'C:\Progra'
        Details|endswith: '\ACEODBC.DLL'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Likely
level: low

KQL (Azure Sentinel)

imRegistry
| where (RegistryKey endswith "\\SOFTWARE\\ODBC\\ODBCINST.INI*" and RegistryKey endswith "\\Driver") and (not((RegistryKey endswith "\\SQL Server*" and RegistryValueData =~ "%WINDIR%\\System32\\SQLSRV32.dll"))) and (not(((RegistryKey contains "\\Microsoft Access " and RegistryValueData startswith "C:\\Progra" and RegistryValueData endswith "\\ACEODBC.DLL") or (RegistryKey contains "\\Microsoft Excel Driver" and RegistryValueData startswith "C:\\Progra" and RegistryValueData endswith "\\ACEODBC.DLL"))))

KQL (Microsoft 365 Defender)

DeviceRegistryEvents
| where (RegistryKey endswith "\\SOFTWARE\\ODBC\\ODBCINST.INI*" and RegistryKey endswith "\\Driver") and (not((RegistryKey endswith "\\SQL Server*" and RegistryValueData =~ "%WINDIR%\\System32\\SQLSRV32.dll"))) and (not(((RegistryKey contains "\\Microsoft Access " and RegistryValueData startswith "C:\\Progra" and RegistryValueData endswith "\\ACEODBC.DLL") or (RegistryKey contains "\\Microsoft Excel Driver" and RegistryValueData startswith "C:\\Progra" and RegistryValueData endswith "\\ACEODBC.DLL"))))

Required Data Sources

Sentinel TableNotes
imRegistryEnsure this data connector is enabled

False Positive Guidance

MITRE ATT&CK Context

References

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/registry/registry_set/registry_set_odbc_driver_registered.yml