2018-09-24 04:23:04 +02:00
---
Name : Setupapi.dll
Description : Windows Setup Application Programming Interface
2018-09-26 11:41:58 +02:00
Author :
2018-09-24 04:23:04 +02:00
Created : '2018-05-25'
Commands :
- Command : rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 C:\Tools\shady.inf
Description : Execute the specified (local or remote) .wsh/.sct script with scrobj.dll in the .inf file by calling an information file directive (section name specified).
2018-09-24 20:04:31 +02:00
UseCase : Run local or remote script(let) code through INF file specification.
2018-09-24 04:23:04 +02:00
Category : AWL Bypass
Privileges : User
MitreID : T1085
2018-09-24 23:18:00 +02:00
MitreLink : https://attack.mitre.org/wiki/Technique/T1085
2018-09-24 04:23:04 +02:00
OperatingSystem : Windows
- Command : rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 C:\\Tools\\calc_exe.inf
Description : Launch an executable file via the InstallHinfSection function and .inf file section directive.
2018-09-24 20:04:31 +02:00
UseCase : Load an executable payload.
2018-09-26 16:33:52 +02:00
Category : Execute
2018-09-24 04:23:04 +02:00
Privileges : User
MitreID : T1085
2018-09-24 23:18:00 +02:00
MitreLink : https://attack.mitre.org/wiki/Technique/T1085
2018-09-24 04:23:04 +02:00
OperatingSystem : Windows
Full Path :
2018-09-24 20:04:31 +02:00
- Path : c:\windows\system32\setupapi.dll
- Path : c:\windows\syswow64\setupapi.dll
2018-09-24 04:23:04 +02:00
Code Sample :
2018-09-24 20:04:31 +02:00
- Code : https://raw.githubusercontent.com/huntresslabs/evading-autoruns/master/shady.inf
- Code : https://gist.github.com/enigma0x3/469d82d1b7ecaf84f4fb9e6c392d25ba#file-backdoor-minimalist-sct
- Code : https://gist.githubusercontent.com/enigma0x3/469d82d1b7ecaf84f4fb9e6c392d25ba/raw/6cb52b88bcc929f5555cd302d9ed848b7e407052/Backdoor-Minimalist.sct
- Code : https://gist.githubusercontent.com/bohops/0cc6586f205f3691e04a1ebf1806aabd/raw/baf7b29891bb91e76198e30889fbf7d6642e8974/calc_exe.inf
Detection :
2018-09-24 23:18:00 +02:00
- IOC :
2018-09-24 04:23:04 +02:00
Resources :
2018-09-24 20:04:31 +02:00
- Link : https://github.com/huntresslabs/evading-autoruns
- Link : https://twitter.com/pabraeken/status/994742106852941825
- Link : https://windows10dll.nirsoft.net/setupapi_dll.html
2018-09-26 16:33:52 +02:00
Acknowledgement :
2018-09-24 04:23:04 +02:00
- Person : Kyle Hanslovan (COM Scriptlet)
Handle : '@KyleHanslovan'
- Person : Huntress Labs (COM Scriptlet)
Handle : '@HuntressLabs'
- Person : Casey Smith (COM Scriptlet)
Handle : '@subTee'
- Person : Nick Carr (Threat Intel)
2018-09-24 23:18:00 +02:00
Handle : '@ItsReallyNick'
---