Driver/DLL Installation Via Odbcconf.EXE

 Original Source: [Sigma source]
Title: Driver/DLL Installation Via Odbcconf.EXE
Status: test
Description:Detects execution of "odbcconf" with "INSTALLDRIVER" which installs a new ODBC driver. Attackers abuse this to install and run malicious DLLs.
References:
  -https://lolbas-project.github.io/lolbas/Binaries/Odbcconf/
  -https://web.archive.org/web/20191023232753/https://twitter.com/Hexacorn/status/1187143326673330176
  -https://www.hexacorn.com/blog/2020/08/23/odbcconf-lolbin-trifecta/
Author: Nasreddine Bencherchali (Nextron Systems)
Date: 2023-05-22
modified:None
Tags:
  • -'attack.stealth'
  • -'attack.t1218.008'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_img:
Image|endswith:'\odbcconf.exe' OriginalFileName:'odbcconf.exe'   selection_cli:
    CommandLine|contains|all:
      -'INSTALLDRIVER '
      -'.dll'

  condition:all of selection_*
Falsepositives:
  -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.
Level: medium