In the MITRE ATT&CK matrix, TA0003 (Persistence) and TA0004 (Privilege Escalation) heavily overlap. When an adversary establishes persistence via a mechanism executed by the operating system during the boot sequence, that payload typically inherits the privileges of the invoking process—often NT AUTHORITY\SYSTEM on Windows or root on Linux.
By actively hunting for the artifacts generated by these system modifications, Security Operations Centers (SOCs) can detect advanced adversaries before they successfully transition to lateral movement or data exfiltration.
Adversaries may create or modify system-level processes to repeatedly execute malicious payloads. Because these services start automatically upon boot, they are the gold standard for high-privilege persistence.
On Windows, attackers register malicious binaries with the Service Control Manager (SCM). This technique is the backbone of lateral movement frameworks like PsExec and Cobalt Strike.
Hunting Focus: Analysts must scrutinize the ImagePath (Service File Name) within this event. A service executing a binary from a world-writable directory (C:\Users\Public\, C:\Windows\Temp\) or running a command-line interpreter (e.g., cmd.exe /c powershell.exe ...) is a critical Indicator of Compromise.
On modern Linux distributions, systemd manages service execution.
The Telemetry: As detailed in our Linux Systemd Persistence Analysis, adversaries drop malicious .service unit files into /etc/systemd/system/.
Hunting Focus: DFIR teams must audit these directories for newly created files or the use of “Drop-in” directories (e.g., ssh.service.d/override.conf) designed to hook legitimate services and execute malicious payloads via the ExecStartPost directive.
3. Hunting T1547: Boot or Logon Autostart Execution
Instead of running as a system service, adversaries can configure payloads to execute when a user logs in. This is highly effective for targeting specific user sessions to steal credentials or monitor activity.
Windows Registry Run Keys (T1547.001)
The most common user-land persistence mechanism. Attackers add payload paths to HKCU\Software\Microsoft\Windows\CurrentVersion\Run or HKLM\...\Run.
DFIR Pivot: Analyze the Windows Registry. The “Last Write Time” of the modified Run key reveals the exact millisecond the adversary established persistence.
Linux Legacy Initialization (T1547.006)
Despite the dominance of systemd, Linux maintains backward compatibility with legacy SysVinit scripts and user profiles. Attackers drop backdoors in /etc/rc.local or append malicious aliases to /etc/profile.d/.
DFIR Pivot: Use package managers (RPM/DPKG) to verify the cryptographic integrity of these initialization scripts to detect timestomping and tampering.
Scheduled tasks provide adversaries with extreme flexibility. A payload can be configured to execute daily at 3:00 AM, every 15 minutes as a C2 beacon heartbeat, or specifically when a Domain Admin logs on.
Hunting Focus: Parse the XML payload within the event to inspect the <Command> and <Arguments> nodes. Tasks launching scripting engines (wscript.exe, mshta.exe, powershell.exe) with obfuscated parameters must be triaged immediately.
Cron is the Unix time-based job scheduler. It is the lifeblood of Linux persistence.
The Telemetry: Adversaries modify user-specific crontabs (e.g., /var/spool/cron/crontabs/www-data) or drop executable scripts directly into /etc/cron.hourly/.
Hunting Focus: As highlighted in our Linux Cron Persistence Guide, analysts must look for Cron entries piping curl or wget outputs directly into bash, or opening raw /dev/tcp/ sockets for reverse shell callbacks.
To translate these ATT&CK techniques into operational SIEM alerts, utilize the following queries focused on identifying the establishment of persistence mechanisms.
Persistence artifacts are the most durable indicators in a forensic investigation. While adversaries can wipe their bash history or use in-memory Process Injection to hide active execution, they cannot execute at boot without modifying the host’s configuration.
By systematically hunting for T1543, T1547, and T1053, defenders exploit the attacker’s operational necessity. Securing comprehensive visibility into Service creation, Scheduled Tasks, and Registry modifications ensures that even if Initial Access is missed, the adversary’s foothold will be rapidly identified and eradicated.