Common indicators include VBS files placed in startup locations, scheduled tasks that invoke PowerShell, and registry Run keys pointing to unusual executables or text files. File names often mimic Windows functionality to blend in. If those behaviours appear alongside email-delivered script execution and unusual outbound connections, treat the host as actively maintained by the attacker.
How attackers keep a RAT alive on Windows after the first foothold
A persistent RAT campaign usually stops looking like a single payload and starts looking like a maintenance system. On Windows endpoints, persistence is commonly maintained through startup execution, scheduled execution, or registry-based autoruns, often paired with script-based loaders and outbound command-and-control traffic that keeps the host reachable even after reboots.
The strongest signal is not any one artifact in isolation, but a pattern: an execution path that reliably re-establishes the RAT, plus a file, script, or shortcut that looks ordinary enough to survive casual review. That is why defenders should treat persistence as a lifecycle problem, not just a detection event.
Windows persistence artefacts that matter most
The artefacts most worth checking are the ones that execute automatically without user interaction. Startup folders containing VBS or similarly disguised script files, scheduled tasks that launch PowerShell or another interpreter, and Run or RunOnce registry keys pointing to unusual executables, text files, or script hosts are all classic persistence mechanisms.
File naming is often part of the deception. Malware authors frequently mimic Windows processes, update components, or benign document names to reduce suspicion and delay triage. If the name looks like a system component but the path, timestamp, or parent process does not fit normal Windows behaviour, the persistence mechanism deserves immediate scrutiny.
These artefacts also tend to cluster. A single startup item may be enough to restore access, but campaigns that survive longer often combine two or more methods so that removal of one mechanism does not fully evict the intruder.
What tells you the endpoint is still under active control
Persistence is more convincing when it is paired with active communication. Email-delivered script execution followed by periodic outbound connections suggests the endpoint is not merely infected, but still being instructed or monitored by an operator. The RAT may be dormant between calls, which is why quiet intervals do not mean the threat is gone.
Other useful indicators include repeated recreation of deleted artefacts, unexpected parent-child process chains, and execution from user-writable locations rather than trusted system directories. If the host appears clean after cleanup but the same behaviour reappears on reboot or logon, the attacker has likely retained an autorun path or a secondary loader.
At that point, the question is not whether the malware exists somewhere on disk. The question is whether the attacker still has a dependable way to re-enter, execute, and communicate from the endpoint.
Risk and Threat Considerations
Persistence changes the incident from an initial compromise to an ongoing control problem. A retained autorun, scheduled task, or registry-based launcher can survive remediation attempts, enabling continued credential theft, lateral movement, or reinstallation of the RAT after apparent cleanup.
Failure mechanism: The attacker abuses Windows auto-execution paths, often combined with script hosts such as PowerShell or VBS, so that execution resumes after logon, reboot, or partial removal.
Impact: The endpoint remains operationally compromised, response actions may fail to stick, and the attacker can preserve access long enough to pivot, harvest credentials, or stage additional payloads.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1053 — Scheduled Task/Job | Scheduled tasks are a common Windows persistence path for RATs. |
| T1547 — Boot or Logon Autostart Execution | Startup folders and Run keys are classic Windows autostart persistence mechanisms. | |
| T1059 — Command and Scripting Interpreter | PowerShell and VBS-based execution are often used to load and maintain RAT persistence. | |
| Recommendation — Hunt for scheduled tasks that relaunch the payload or script host after logon or reboot. Review autoruns, Run keys, and startup locations for unexpected script or executable launchers. Inspect script interpreters and their command lines for encoded, staged, or unusual execution chains. | ||
| CIS Controls v8 | CIS-10 — Malware Defenses | Persistent RAT activity is a malware defense and containment problem. |
| CIS-8 — Audit Log Management | Persistence often becomes visible through process, task, and autorun execution logs. | |
| Recommendation — Enable malware detection and block known persistence mechanisms on endpoints. Collect and review endpoint execution logs to confirm how the RAT is re-launching. | ||
Practitioner Guidance
What to verify: Confirm whether the persistence artefact actually launches the payload on reboot or logon, not just whether the file exists. Validate the parent process, command line, user context, and source path for every suspicious autorun mechanism.
What to prioritise: Remove or disable the execution path first, then rotate any credentials that may have been exposed from the host. If you only delete the visible binary, you may leave behind the loader that restores it.
Decision rule: If a suspicious script, task, or Run key is capable of re-establishing remote access, treat the endpoint as actively controlled until you prove the persistence chain is broken and no secondary launcher remains.
Practitioner takeaway: Persistence is usually confirmed by repeatable execution, not by the mere presence of a suspicious file, so containment should focus on the autorun path and any related outbound control channel.
Related resources from NHI Mgmt Group
- What are the signs that a telecom intrusion campaign is still active after initial containment?
- What are the signs that attackers may be using credentials after an initial server compromise?
- What are the signs that a webshell-based intrusion is persisting beyond the initial compromise?
- What are the signs that a containerised cryptomining campaign is escalating beyond initial compromise?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org