Analytics Story: Windows Persistence Techniques

Description

Monitor for activities and techniques associated with maintaining persistence on a Windows system--a sign that an adversary may have compromised your environment.

Why it matters

Maintaining persistence is one of the first steps taken by attackers after the initial compromise. Attackers leverage various custom and built-in tools to ensure survivability and persistent access within a compromised enterprise. This Analytic Story provides searches to help you identify various behaviors used by attackers to maintain persistent access to a Windows environment.

Detections

Name ▲▼ Technique ▲▼ Type ▲▼
Windows AD Same Domain SID History Addition SID-History Injection TTP
Suspicious Scheduled Task from Public Directory Scheduled Task Anomaly
Active Setup Registry Autostart Active Setup TTP
WinEvent Scheduled Task Created Within Public Path Scheduled Task TTP
Schedule Task with Rundll32 Command Trigger Scheduled Task/Job TTP
Detect Path Interception By Creation Of program exe Path Interception by Unquoted Path TTP
Hiding Files And Directories With Attrib exe Windows Permissions TTP
WinEvent Windows Task Scheduler Event Action Started Scheduled Task Hunting
Windows Mshta Execution In Registry Mshta TTP
Registry Keys Used For Persistence Registry Run Keys / Startup Folder TTP
Screensaver Event Trigger Execution Screensaver TTP
Windows Compatibility Telemetry Tampering Through Registry Scheduled Task, Event Triggered Execution TTP
Windows Mock Trusted Directory MSC File Creation MMC, Bypass User Account Control, Hijack Execution Flow TTP
ETW Registry Disabled Trusted Developer Utilities Proxy Execution, Disable or Modify Tools TTP
WinEvent Scheduled Task Created to Spawn Shell Scheduled Task TTP
Registry Keys for Creating SHIM Databases Application Shimming TTP
Print Processor Registry Autostart Print Processors TTP
Windows Get-Variable.EXE Execution from WindowsApps Folder Path Interception by Search Order Hijacking Anomaly
Schedule Task with HTTP Command Arguments Scheduled Task/Job TTP
Windows AD DSRM Account Changes Account Manipulation TTP
Windows Compatibility Telemetry Suspicious Child Process Scheduled Task, Event Triggered Execution TTP
Windows Schtasks Create Run As System Scheduled Task TTP
Windows SymbolicLink-Testing-Tools Utility Execution File and Directory Permissions Modification, NTFS File Attributes TTP
Schtasks used for forcing a reboot Scheduled Task TTP
Windows New Default File Association Value Set Change Default File Association Hunting
Windows Scheduled Task Created in a Group Policy Object Scheduled Task, Group Policy Modification TTP
Monitor Registry Keys for Print Monitors Port Monitors TTP
Windows Service Creation Using Registry Entry Services Registry Permissions Weakness Anomaly
Windows Set Custom DNS ServerLevelPlugin Via Dnscmd Hijack Execution Flow Anomaly
Windows Event Triggered Image File Execution Options Injection Image File Execution Options Injection Hunting
Time Provider Persistence Registry Time Providers TTP
Windows Scheduled Task Service Spawned Shell Scheduled Task, Command and Scripting Interpreter TTP
Shim Database Installation With Suspicious Parameters Application Shimming TTP
Sc exe Manipulating Windows Services Windows Service TTP
Windows Scheduled Task with Suspicious Name Scheduled Task TTP
Windows AppCertDLL Modification Via Command Line AppCert DLLs Anomaly
Windows Downdate Registry Activity Modify Registry, Downgrade Attack Anomaly
Shim Database File Creation Application Shimming TTP
Windows PowerShell Module File Created PowerShell, Shared Modules, Hijack Execution Flow Anomaly
Windows Guest Account Enabled Via Net.EXE Default Accounts Anomaly
Logon Script Event Trigger Execution Logon Script (Windows) TTP
Windows Registry Delete Task SD Scheduled Task, Disable or Modify Tools Anomaly
Scheduled Task Deleted Or Created via CMD Scheduled Task Anomaly
Windows Scheduled Task with Suspicious Command Scheduled Task TTP
Certutil exe certificate extraction Steal or Forge Authentication Certificates TTP
Reg exe Manipulating Windows Services Registry Keys Services Registry Permissions Weakness TTP

Data Sources

Name ▲▼ Platform ▲▼ Sourcetype ▲▼ Source ▲▼
Windows Event Log Security 4742 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Windows Event Log Security 4738 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
CrowdStrike ProcessRollup2 Other crowdstrike:events:sensor crowdstrike
Sysmon EventID 1 Windows icon Windows XmlWinEventLog XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Windows Event Log Security 4688 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Sysmon EventID 13 Windows icon Windows XmlWinEventLog XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Windows Event Log Security 4698 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Windows Event Log TaskScheduler 201 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Windows Event Log TaskScheduler 200 Windows icon Windows wineventlog WinEventLog:Microsoft-Windows-TaskScheduler/Operational
Sysmon EventID 11 Windows icon Windows XmlWinEventLog XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Windows Event Log Security 5145 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Windows Event Log Application 3000 Windows icon Windows XmlWinEventLog XmlWinEventLog:Application
Windows Event Log Security 4702 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Windows Event Log Security 4700 Windows icon Windows XmlWinEventLog XmlWinEventLog:Security
Sysmon EventID 14 Windows icon Windows XmlWinEventLog XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Sysmon EventID 12 Windows icon Windows XmlWinEventLog XmlWinEventLog:Microsoft-Windows-Sysmon/Operational

References


Source: GitHub | Version: 3