Odbcconf.exe
Used in Windows for managing ODBC connections
Full path
C:\Windows\System32\odbcconf.exe
C:\Windows\SysWOW64\odbcconf.exeCommands
Execute a DLL file using technique that can evade defensive counter measures
odbcconf /a {REGSVR {PATH_ABSOLUTE:.dll}}Execute DllRegisterServer from DLL specified.
os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Execute dll file using technique that can evade defensive counter measures
odbcconf INSTALLDRIVER "lolbas-project|Driver={PATH_ABSOLUTE:.dll}|APILevel=2" odbcconf configsysdsn "lolbas-project" "DSN=lolbas-project"Install a driver and load the DLL. Requires administrator privileges.
os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Execute dll file using technique that can evade defensive counter measures
odbcconf -f {PATH:.rsp}Load DLL specified in target .RSP file. See the Code Sample section for an example .RSP file.
os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Detection
- Sigma https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_odbcconf_response_file.yml
- Sigma https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_odbcconf_response_file_susp.yml
- Elastic https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_unusual_process_network_connection.toml
- Elastic https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_network_connection_from_windows_binary.toml
Code samples
Resources
acknowledgement: Casey Smith @subtee, Adam @Hexacorn