What is Persistence?
How attackers stay in after you reboot, patch, or reset the password they stole. Persistence is why "we removed the malware" is not the same as "they are gone" — and why eviction is a project, not a task.
Persistence covers the techniques that keep adversary access alive across restarts, credential changes and remediation. Typical mechanisms are mundane: a scheduled task, a service, an autostart entry, a new user account, an extra multi-factor device registered on an account, an OAuth token, or an SSH key added to a server. The leadership consequence is that incomplete eviction is common and expensive. Organisations that clean the obvious infection and return to business frequently find the same actor back within weeks, because one persistence mechanism was missed. This is the technical reason incident responders insist on a coordinated eradication event rather than a rolling clean-up, and why credential resets are done wholesale rather than account by account. When approving an incident response plan, the question worth asking is who decides that eradication is complete and on what evidence — an unanswerable question at 2am is a decision that will be made badly.
Source: MITRE ATT&CK (TA0003).
Practice it in a lab
Free, hands-on labs that teach Persistence. 38 more labs also cover it.
- Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6) (intermediate, ~60 min)
- Characterize a RAT's command-and-control: persistence, DNS, HTTP, and connection pattern (intermediate, ~45 min)
- Detect scheduled-task persistence in Windows event logs (intermediate, ~50 min)
- Detect service-installation persistence with Event ID 7045 (the PsExec/new-service signal) (intermediate, ~35 min)
- Find persistence without an audit rule: diff a before and after snapshot (Purple Persistence 5 of 5) (intermediate, ~65 min)
- Hunt three kinds of Linux persistence on your own VM: plant harmless markers, find them, remove them (intermediate, ~60 min)
- Trace a suspicious process with Sysmon: execution, network, file, and persistence (Event IDs 1/3/11/13/22) (intermediate, ~40 min)
- Triage macOS Launch Agent and Launch Daemon persistence from plist files (intermediate, ~60 min)
Related terms
Related
- Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6)
- Characterize a RAT's command-and-control: persistence, DNS, HTTP, and connection pattern
- Detect scheduled-task persistence in Windows event logs
- Detect service-installation persistence with Event ID 7045 (the PsExec/new-service signal)
- Find persistence without an audit rule: diff a before and after snapshot (Purple Persistence 5 of 5)
- Hunt three kinds of Linux persistence on your own VM: plant harmless markers, find them, remove them
- Trace a suspicious process with Sysmon: execution, network, file, and persistence (Event IDs 1/3/11/13/22)
- Triage macOS Launch Agent and Launch Daemon persistence from plist files
- MITRE ATT&CK
- False positive
- PowerShell
- Red team
- Cybersecurity glossary
- Free cyber labs