Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

UAC-SilentClean

> 编程语言
Open source

New UAC bypass for Silent Cleanup for CobaltStrike

189 stars0 likes0 views
WebsiteGitHub

About

New UAC bypass for Silent Cleanup for CobaltStrike

SilentClean UAC bypass via binary planting

This project implements a DLL planting technique to bypass UAC Always Notify and execute code in a high integrity process.

When SilentCleanup task is launched, dismhost searches for the non existing DLL api-ms-win-core-kernel32-legacy-l1.dll under:

C:\Users\USER\Appdata\Local\Microsoft\WindowsApps

The above path exists by default in the PATH of the user.

By crafting a malicious DLL and placing it in the above directory, it will be loaded by dismhost.exe and executed with High Integrity privileges.

Implementation

The project consists of:

  • SilentClean .NET project - Launching SilentClean scheduled task with the use of the TaskScheduler library

  • DLLmain_template.c - A DLL skeleton which will spawn a process and inject the shellcode of our choice. Sample provided implements a simple CreateRemoteThread injector.

  • Cobalt strike aggressor script responsible for:

    • Generating the shellcode byte array
    • Replacing dllmain_template.c with the above shellcode
    • Compile the dll with mingw
    • Upload the dll to the required path
    • Execute .NET binary SilentClean.exe through Execute-Assembly to launch the scheduled task

Configuration

  • Feel free to replace injection method in RunMe function of dllmain_template.c. This is just a POC
  • Current spawned process to inject to is cmd.exe.
  • No shellcode encryption / compression has been baked in. As such the DLL generated will probably be flagged by an AV
  • x86_64-w64-mingw32 and headers are required to be installed on the building system
  • If CNA can not find mingw replace the variables $mingwgcc $mingwdllwrap with your path
  • Compile SilentClean .NET project and place executable in the same folder as the CNA script

Versions tested

  • Microsoft Windows 10 - 1909 18363.1110
  • Microsoft Windows 10 - 1909 18363.1082
  • Microsoft Windows 10 - 1809 17763.1457

Author

  • @leftp
  • @cirrusj

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#bypass-uaccobaltstrike-cnaredteamredteam-tools

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言