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.

Sigma rule (View on GitHub)

 1title: Driver/DLL Installation Via Odbcconf.EXE
 2id: 3f5491e2-8db8-496b-9e95-1029fce852d4
 3related:
 4    - id: cb0fe7c5-f3a3-484d-aa25-d350a7912729
 5      type: similar
 6status: test
 7description: Detects execution of "odbcconf" with "INSTALLDRIVER" which installs a new ODBC driver. Attackers abuse this to install and run malicious DLLs.
 8references:
 9    - https://lolbas-project.github.io/lolbas/Binaries/Odbcconf/
10    - https://web.archive.org/web/20191023232753/https://twitter.com/Hexacorn/status/1187143326673330176
11    - https://www.hexacorn.com/blog/2020/08/23/odbcconf-lolbin-trifecta/
12author: Nasreddine Bencherchali (Nextron Systems)
13date: 2023/05/22
14tags:
15    - attack.defense_evasion
16    - attack.t1218.008
17logsource:
18    category: process_creation
19    product: windows
20detection:
21    selection_img:
22        - Image|endswith: '\odbcconf.exe'
23        - OriginalFileName: 'odbcconf.exe'
24    selection_cli:
25        # Note: The "/A" flag is not required to call a specific action
26        CommandLine|contains|all:
27            - 'INSTALLDRIVER '
28            - '.dll'
29    condition: all of selection_*
30falsepositives:
31    - 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.
32level: medium

References

Related rules

to-top