
Herramienta en C# para auditar vulnerabilidades de escalada de privilegios en Windows, que implementa comprobaciones de PowerUp para configuraciones incorrectas como rutas de servicio sin comillas, binarios modificables y AlwaysInstallElevated.
SharpUp es un port a C# de varias funcionalidades de PowerUp. Actualmente, solo se han portado las comprobaciones más comunes; aún no se han implementado funciones de armamentización.
@harmj0y es el autor principal.
SharpUp está licenciado bajo la licencia BSD 3-Cláusula.
SharpUp.exe [audit] [check1] [check2]...
audit - Specifies whether or not to enable audit mode. If enabled, SharpUp will run vulenrability checks
regardless if the process is in high integrity or the user is in the local administrator's group.
If no checks are specified, audit will run all checks. Otherwise, each check following audit will
be ran.
check* - The individual vulnerability check to be ran. Must be one of the following:
- AlwaysInstallElevated
- CachedGPPPassword
- DomainGPPPassword
- HijackablePaths
- McAfeeSitelistFiles
- ModifiableScheduledTask
- ModifiableServiceBinaries
- ModifiableServiceRegistryKeys
- ModifiableServices
- ProcessDLLHijack
- RegistryAutoLogons
- RegistryAutoruns
- TokenPrivileges
- UnattendedInstallFiles
- UnquotedServicePath
Examples:
SharpUp.exe audit
-> Runs all vulnerability checks regardless of integrity level or group membership.
SharpUp.exe HijackablePaths
-> Check only if there are modifiable paths in the user's %PATH% variable.
SharpUp.exe audit HijackablePaths
-> Check only for modifiable paths in the user's %PATH% regardless of integrity level or group membership.
No tenemos previsto lanzar binarios de SharpUp, así que tendrás que compilarlo tú mismo :)
SharpUp se ha compilado con .NET 3.5 y es compatible con Visual Studio 2015 Community Edition. Simplemente abre el archivo .sln del proyecto, elige "Release" y compila.
SharpUp incorpora varios fragmentos de código C# y partes de PoCs encontrados en la investigación para sus capacidades. Estos fragmentos y autores se destacan en las ubicaciones apropiadas en el código fuente, e incluyen: