New DLL Registered Via Odbcconf.EXE

Detects execution of "odbcconf" with "REGSVR" in order to register a new DLL (equivalent to running regsvr32). Attackers abuse this to install and run malicious DLLs.

Sigma rule (View on GitHub)

 1title: New DLL Registered Via Odbcconf.EXE
 2id: 9f0a8bf3-a65b-440a-8c1e-5cb1547c8e70
 3related:
 4    - id: ba4cfc11-d0fa-4d94-bf20-7c332c412e76
 5      type: similar
 6status: experimental
 7description: Detects execution of "odbcconf" with "REGSVR" in order to register a new DLL (equivalent to running regsvr32). Attackers abuse this to install and run malicious DLLs.
 8references:
 9    - https://learn.microsoft.com/en-us/sql/odbc/odbcconf-exe?view=sql-server-ver16
10    - https://lolbas-project.github.io/lolbas/Binaries/Odbcconf/
11    - https://redcanary.com/blog/raspberry-robin/
12    - https://web.archive.org/web/20191023232753/https://twitter.com/Hexacorn/status/1187143326673330176
13    - https://www.hexacorn.com/blog/2020/08/23/odbcconf-lolbin-trifecta/
14    - https://www.trendmicro.com/en_us/research/17/h/backdoor-carrying-emails-set-sights-on-russian-speaking-businesses.html
15author: Kirill Kiryanov, Beyu Denis, Daniil Yugoslavskiy, oscd.community, Nasreddine Bencherchali (Nextron Systems)
16date: 2023/05/22
17tags:
18    - attack.defense_evasion
19    - attack.t1218.008
20logsource:
21    category: process_creation
22    product: windows
23detection:
24    selection_img:
25        - Image|endswith: '\odbcconf.exe'
26        - OriginalFileName: 'odbcconf.exe'
27    selection_cli:
28        # Note: The "/A" flag is not required to call a specific action
29        CommandLine|contains|all:
30            - 'REGSVR '
31            - '.dll'
32    condition: all of selection_*
33falsepositives:
34    - Legitimate DLLs being registered via "odbcconf" will generate false positives. Investigate the path of the DLL and its content to determine if the action is authorized.
35level: medium

References

Related rules

to-top