Suspicious Driver/DLL Installation Via Odbcconf.EXE

Detects execution of "odbcconf" with the "INSTALLDRIVER" action where the driver doesn't contain a ".dll" extension. This is often used as a defense evasion method.

Sigma rule (View on GitHub)

 1title: Suspicious Driver/DLL Installation Via Odbcconf.EXE
 2id: cb0fe7c5-f3a3-484d-aa25-d350a7912729
 3related:
 4    - id: 3f5491e2-8db8-496b-9e95-1029fce852d4
 5      type: derived
 6status: test
 7description: Detects execution of "odbcconf" with the "INSTALLDRIVER" action where the driver doesn't contain a ".dll" extension. This is often used as a defense evasion method.
 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-23
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: 'INSTALLDRIVER '
27    filter_main_dll_ext:
28        CommandLine|contains: '.dll'
29    condition: all of selection_* and not 1 of filter_main_*
30falsepositives:
31    - Unlikely
32level: high

References

Related rules

to-top