Cyber Security News

New RecoverIt Tool Exploits Windows Service Failure Recovery Functions to Execute Payload

A new open-source offensive security tool named “RecoverIt” has been released, offering Red Teamers and penetration testers a novel method for establishing persistence and executing lateral movement on compromised Windows systems.

The tool, developed by security researcher TwoSevenOneT, weaponizes the built-in failure recovery mechanism of Windows Services to trigger arbitrary code execution, bypassing some of the most common detection heuristics used by Endpoint Detection and Response (EDR) systems.

Windows Services are designed with resilience in mind. The Service Control Manager (SCM) includes a “Recovery” tab for each service, allowing system administrators to define specific actions if a service fails unexpectedly.

RecoverIt Tool

These actions typically include restarting the service, restarting the computer, or, most critically for this exploit, running a specific program.

RecoverIt abuses this functionality by programmatically modifying a service’s configuration to execute a malicious payload instead of a legitimate recovery tool.

The tool operates by taking three simple arguments: the target service name, the program to execute upon failure, and the parameters for that program.

Windows Service Failure Recovery Functions Exploited

In the documentation accompanying the release, the security researcher TwoSevenOneT highlights a specific scenario involving the “UevAgentService” (User Experience Virtualization Agent).

Research revealed that this service is prone to crashing immediately upon execution if the broader UE-V service is disabled on the host machine.

By targeting an unstable service like UevAgentService, an attacker can create a reliable trigger mechanism. The attacker uses RecoverIt to configure the service so that when the inevitable crash occurs, the Windows Service Control Manager (services.exe) automatically executes the defined payload such as a Command Prompt (cmd.exe) or a Cobalt Strike beacon.

RecoverIt Tool Agent Service

Because the execution is spawned directly by services.exe as a recovery action, it blends in with legitimate system background activity, potentially masking the malicious intent from casual observation.

The release of RecoverIt highlights a shift in evasion tactics. Traditionally, attackers seeking persistence via Windows Services have focused on modifying the ImagePath (or binPath) the registry value that tells Windows which executable to run when starting a service.

However, because this is a well-known attack vector, SysAdmins and EDR solutions now monitor it ImagePath extensively for unauthorized changes or suspicious binaries.

RecoverIt circumvents this scrutiny entirely. It leaves the legitimate ImagePath untouched. Instead, it modifies the FailureCommand and FailureActions configurations. As noted in the tool’s summary, “SysAdmins tend to focus more on the ImagePath of services,” leaving the recovery settings as a blind spot in many defensive postures.

While the execution method is stealthy, it is not invisible. The primary challenge for defenders is that the malicious payload execution is not explicitly detailed in the standard service crash event logs.

As shown in the researcher’s findings, the Windows Event Log records service failures (e.g., UevAgentService terminating unexpectedly) but does not necessarily log the program that the recovery handler subsequently launched in the same event entry.

Windows Event Logs

To detect this technique, security teams must broaden their monitoring scope. Detection logic should be updated to alert on changes to service recovery configurations, specifically monitoring for modifications to FailureCommand and FailureActions registry keys.

Furthermore, process monitoring should scrutinize child processes spawned by services.exe that correlate with service failure events, particularly if those child processes are command interpreters like PowerShell or CMD.

The release of RecoverIt serves as a reminder that legitimate system administration features often provide the most effective camouflage for attackers, necessitating a defense-in-depth approach that looks beyond standard indicators of compromise.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

3 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

5 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

5 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago