@@ -4,15 +4,23 @@ Description: Used in Windows for managing ODBC connections
4
4
Author : ' Oddvar Moe'
5
5
Created : 2018-05-25
6
6
Commands :
7
- - Command : odbcconf -f file.rsp
8
- Description : Load DLL specified in target .RSP file. See the payloads folder for an example .RSP file .
7
+ - Command : odbcconf /a {REGSVR c:\test\test.dll}
8
+ Description : Execute DllREgisterServer from DLL specified .
9
9
Usecase : Execute dll file using technique that can evade defensive counter measures
10
10
Category : Execute
11
11
Privileges : User
12
12
MitreID : T1218.008
13
13
OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
14
- - Command : odbcconf /a {REGSVR c:\test\test.dll}
15
- Description : Execute DllREgisterServer from DLL specified.
14
+ - Command : odbcconf INSTALLDRIVER "lolbas-project|Driver=c:\test\test.dll|APILevel=2"
15
+ odbcconf configsysdsn "lolbas-project" "DSN=lolbas-project"
16
+ Description : Install a driver and load the DLL. Requires administrator privileges.
17
+ Usecase : Execute dll file using technique that can evade defensive counter measures
18
+ Category : Execute
19
+ Privileges : User
20
+ MitreID : T1218.008
21
+ OperatingSystem : Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
22
+ - Command : odbcconf -f file.rsp
23
+ Description : Load DLL specified in target .RSP file. See the Code Sample section for an example .RSP file.
16
24
Usecase : Execute dll file using technique that can evade defensive counter measures
17
25
Category : Execute
18
26
Privileges : User
@@ -22,15 +30,15 @@ Full_Path:
22
30
- Path : C:\Windows\System32\odbcconf.exe
23
31
- Path : C:\Windows\SysWOW64\odbcconf.exe
24
32
Code_Sample :
25
- - Code : https://raw.githubusercontent.com/LOLBAS-Project/LOLBAS/master /OSBinaries/Payload/file.rsp
33
+ - Code : https://raw.githubusercontent.com/LOLBAS-Project/LOLBAS/58b5eb751379501aa237275f14381f0902e979a5/Archive-Old-Version /OSBinaries/Payload/file.rsp
26
34
Detection :
27
35
- Sigma : https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/process_creation/win_susp_odbcconf.yml
28
36
- Elastic : https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_unusual_process_network_connection.toml
29
37
- Elastic : https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_network_connection_from_windows_binary.toml
30
38
Resources :
31
39
- Link : https://gist.github.com/NickTyrer/6ef02ce3fd623483137b45f65017352b
32
40
- Link : https://github.com/woanware/application-restriction-bypasses
33
- - Link : https://twitter. com/Hexacorn/status/1187143326673330176
41
+ - Link : https://www.hexacorn. com/blog/2020/08/23/odbcconf-lolbin-trifecta/
34
42
Acknowledgement :
35
43
- Person : Casey Smith
36
44
Handle : ' @subtee'
0 commit comments