Odbcconf.exe
Used in Windows for managing ODBC connections
Paths
C:\Windows\System32\odbcconf.exeC:\Windows\SysWOW64\odbcconf.exe
Commands
Execute
Execute DllRegisterServer from DLL specified.
Use case: Execute a DLL file using technique that can evade defensive counter measures
Privileges: User
odbcconf /a {REGSVR {PATH_ABSOLUTE:.dll}}
Execute
Install a driver and load the DLL. Requires administrator privileges.
Use case: Execute dll file using technique that can evade defensive counter measures
Privileges: User
odbcconf INSTALLDRIVER "lolbas-project|Driver={PATH_ABSOLUTE:.dll}|APILevel=2"
odbcconf configsysdsn "lolbas-project" "DSN=lolbas-project"
Execute
Load DLL specified in target .RSP file. See the Code Sample section for an example .RSP file.
Use case: Execute dll file using technique that can evade defensive counter measures
Privileges: Administrator
odbcconf -f {PATH:.rsp}
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