Threat Actors Abuse Microsoft ClickOnce Technology for Malware Distribution
Threat actors are actively leveraging Microsoft's ClickOnce technology, a legitimate application deployment mechanism, to distribute and execute malware by exploiting its user-friendly deployment process that bypasses administrative privilege requirements.
CrowdStrike has identified a growing trend where threat actors are weaponizing Microsoft's ClickOnce technology to simplify malware distribution and execution. ClickOnce, designed to ease application deployment and updates without requiring administrative privileges, presents a double-edged sword: while beneficial for legitimate developers, its "click-once" installation model is being co-opted by adversaries. This report, "New Abuse of the ClickOnce Technology, Part 1", delves into the fundamental mechanics of ClickOnce, detailing how applications are published, deployed, and installed on user endpoints. The inherent trust model and low friction associated with ClickOnce make it an attractive vector for threat actors seeking to bypass traditional security controls and deploy malicious payloads with minimal user interaction. Defenders need to understand these internal workings to effectively detect and mitigate such abuses, as the technology streamlines the path from initial access to execution for malicious software.
Attack Chain
- Crafting Malicious Application: An attacker publishes a malicious application using ClickOnce technology, generating
.applicationand.manifestfiles, along with the associated binaries. - Initial Access / Delivery: The attacker hosts the malicious ClickOnce deployment files (e.g.,
.applicationfile) on a controlled web server or distributes them via phishing emails, tricking users into initiating the download. - User Execution: The victim navigates to the malicious URL or clicks a link, triggering the download of the
.applicationdeployment file, which the Windows operating system then attempts to process. - Deployment Initiation: Upon execution of the
.applicationfile, the ClickOnce deployment service (dfsvc.exeorrundll32.exeinteracting withdfshim.dll) initiates the application deployment process on the user's system. - User Confirmation Prompt: The operating system presents a user confirmation prompt, particularly if the publisher's signature cannot be verified or is unknown, requiring the user to explicitly approve the application's deployment.
- Application Deployment & Execution: If the user approves, the ClickOnce application is deployed (either executed as a temporary application or installed), potentially creating an
.appref-msshortcut, and the malicious payload within begins its intended activities. - Persistence (Optional): If configured by the attacker, the ClickOnce application can be installed and leverage its self-updating functionality to maintain persistence and fetch additional malicious components from the attacker's server.
- Impact: The malicious ClickOnce application executes its payload, leading to outcomes such as malware installation, data exfiltration, or further compromise of the victim's system.
Impact
The abuse of ClickOnce technology directly facilitates the widespread distribution of malware, posing a significant risk to organizations across all sectors. Its design allows for application deployment without requiring elevated administrative privileges, meaning even standard users can inadvertently install malicious software, bypassing critical security layers. If successful, such attacks can lead to system compromise, data breaches, ransomware deployment, and lateral movement within the compromised network. While the specific number of victims or targeted sectors is not detailed in this initial report, the broad applicability of ClickOnce as a delivery mechanism suggests a wide scope of potential targeting, impacting any organization where users can initiate ClickOnce deployments.
Recommendation
- Enable verbose process creation logging (e.g., Sysmon Event ID 1) to capture executions of
dfsvc.exeandrundll32.exefor analysis of potential ClickOnce abuse. - Deploy the Sigma rules provided in this brief to your SIEM solution to detect suspicious ClickOnce application deployments and tune them for your environment.
- Educate users about the risks of installing software from untrusted sources, even if it appears to be a legitimate ClickOnce application.
- Monitor for the creation of
.appref-msfiles in unusual directories or by unexpected parent processes, as highlighted in theDetect Suspicious ClickOnce Shortcut Creationrule. - Implement application whitelisting solutions to restrict the execution of unsigned or untrusted ClickOnce applications.
Detection coverage 3
Detect ClickOnce Deployment Service Execution
lowDetects the execution of dfsvc.exe, the ClickOnce Deployment Services process, which is responsible for deploying ClickOnce applications. This can indicate legitimate activity or the initiation of a malicious ClickOnce application.
Detect Rundll32 Launching ClickOnce Shim
mediumDetects rundll32.exe being used to launch the ClickOnce shim (dfshim.dll), a common method for initiating ClickOnce application installations or executions. This is a legitimate mechanism that can be abused by threat actors.
Detect Suspicious ClickOnce Shortcut Creation
mediumDetects the creation of '.appref-ms' files, which are shortcuts for installed ClickOnce applications. Monitoring their creation, especially in unusual paths or by unexpected processes, can indicate malicious ClickOnce deployment.
Detection queries are available on the platform. Get full rules →