Detectionmediumtest

Driver/DLL Installation Via Odbcconf.EXE

Detects execution of "odbcconf" with "INSTALLDRIVER" which installs a new ODBC driver. Attackers abuse this to install and run malicious DLLs.

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2023-05-223f5491e2-8db8-496b-9e95-1029fce852d4windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\odbcconf.exe'
        - OriginalFileName: 'odbcconf.exe'
    selection_cli:
        # Note: The "/A" flag is not required to call a specific action
        CommandLine|contains|all:
            - 'INSTALLDRIVER '
            - '.dll'
    condition: all of selection_*
False Positives

Legitimate driver DLLs being registered via "odbcconf" will generate false positives. Investigate the path of the DLL and its contents to determine if the action is authorized.

MITRE ATT&CK
Rule Metadata
Rule ID
3f5491e2-8db8-496b-9e95-1029fce852d4
Status
test
Level
medium
Type
Detection
Created
2023-05-22
Path
rules/windows/process_creation/proc_creation_win_odbcconf_driver_install.yml
Raw Tags
attack.stealthattack.t1218.008
View on GitHub