Glossary
Persistence
Mechanisms that let malware or an attacker survive reboots and logoffs, such as Run keys, services, scheduled tasks or WMI subscriptions.
Persistence covers every mechanism that lets malicious code or an attacker regain execution after a reboot, a logoff or a credential change. MITRE ATT&CK treats it as a dedicated tactic, and on Windows the list of possible locations is long.
The most frequent mechanisms are Run keys and Startup folders, services and scheduled tasks. Beyond these, investigators regularly meet WMI event subscriptions, Image File Execution Options debuggers, Winlogon Shell and Userinit values, COM hijacking and BITS jobs with notification commands. Some mechanisms run at boot as SYSTEM, others only when a specific user logs on, which affects both impact and attribution.
Each mechanism leaves creation traces worth dating. Registry-based entries can be dated by the key's LastWrite time; service and task creation produce event IDs such as 7045 and 4698 when the relevant logging is active; and the files they point to have their own file system timestamps. On a live machine, Sysinternals Autoruns gives a broad overview; offline, registry parsers and triage tools cover the same locations from collected hives.
When reviewing entries, focus on what is unusual rather than what is unknown: binaries in user-writable folders, script interpreters or LOLBins with long command lines, names that imitate legitimate components, and entries created close to other suspicious activity on the timeline.
Related artifacts
- BITS jobs (qmgr database)BITS jobs cheat sheet: qmgr0.dat/qmgr1.dat vs qmgr.db (ESE), Bits-Client events 3, 4, 59, 60, SetNotifyCmdLine persistence and BitsParser carving.
- Group Policy artifactsGroup Policy cheat sheet: SYSVOL policies, Registry.pol, GPP passwords, client-side history and event logs, and how attackers abuse GPO for mass deployment.
- IFEO and Winlogon persistenceIFEO and Winlogon cheat sheet: Debugger hijacks, GlobalFlag and SilentProcessExit, sticky keys backdoors, Userinit/Shell, Notify and AppInit_DLLs.
- IIS Web Server LogsIIS logs cheat sheet: W3C log location per site, UTC timestamps, default fields, HTTPERR, applicationHost.config and how to hunt webshells on Windows servers.
- Kernel Drivers (.sys, Driver Services, BYOVD)Kernel drivers cheat sheet: driver services (Type 1/2), event 7045, DriverStore, setupapi.dev.log, Amcache and CodeIntegrity logs to hunt BYOVD and rootkits.
- OpenSSH Server and ClientOpenSSH on Windows cheat sheet: sshd event log, sshd_config and host keys, authorized_keys persistence, known_hosts, client traces and reverse tunnels.
- Remote access tools (RMM)RMM and remote access tool cheat sheet: AnyDesk, TeamViewer, ScreenConnect and more, their log files, connection IDs, IPs and timestamps, and how to hunt abuse.
- Run keys and Startup foldersRun keys and Startup folders cheat sheet: Run, RunOnce, Wow6432Node and Policies paths, StartupApproved enabled/disabled bytes, timestamps and pitfalls.
- Scheduled TasksScheduled tasks cheat sheet: task XML and .job files, TaskCache registry keys, DynamicInfo times, hidden tasks, TaskScheduler and 4698 events.
- Windows ServicesWindows services cheat sheet: Services key values (ImagePath, Start, Type, ServiceDll), 7045 and 4697 install events, PsExec traces and pitfalls.
- WMI repository and SCCM RecentlyUsedAppsWMI repository cheat sheet: OBJECTS.DATA, event filters, consumers and bindings, WMI-Activity 5857–5861, MOF files and SCCM CCM_RecentlyUsedApps.