Persistence · Learn

What is persistence?

Persistence is how an attacker keeps access to a system after the first compromise, so a reboot, a patch, or even a password reset does not lock them out. Here is what it covers and where attackers hide.

Persistence · LearnAll services
TL;DR

Persistence is the attacker phase of keeping access to a compromised system over time, so a reboot, a closed vulnerability, or a password change does not end the intrusion. Attackers plant mechanisms that re-run their code automatically, registry run keys, scheduled tasks, services, WMI subscriptions, SSH keys, cron jobs, web shells, and rogue accounts. It maps to MITRE TA0003, and the defense is knowing every autostart location and detecting changes to them.

By John Dill, Red Team Lead, SecureLayer7Updated

What persistence is

Getting code execution once is fragile: the process dies, the machine reboots, the password gets reset. Persistence is everything an attacker does to make their access survive those events.

The core idea is to hook into something the system runs automatically and repeatedly, a logon, a boot, a schedule, an event, so the attacker’s code keeps coming back without them lifting a finger.

Where attackers persist

Persistence lives wherever the system auto-runs something:

Why it matters

Persistence is what turns a momentary compromise into a long-term presence. It is also what makes incident response hard: clean one foothold and the attacker returns through another.

The most durable persistence survives even drastic remediation, a Golden Ticket forged from the krbtgt key keeps working across the whole domain until that key is rotated twice.

References

  1. [1]MITRE ATT&CK: Persistence (TA0003)(MITRE)
  2. [2]MITRE ATT&CK: Boot or Logon Autostart Execution (T1547)(MITRE)
  3. [3]NIST SP 800-83 Malware Incident Prevention and Handling(NIST)
Related terms

Common questions

Persistence, asked often

Want your environment checked for attacker persistence?

Scope an engagement

Find the backdoors an attacker would leave behind.

Our red-team and internal penetration tests show where an intruder could hide to survive a reboot or a password reset, registry keys, scheduled tasks, services, web shells, and rogue accounts, then hand your team the evidence and the fix. Free re-test included.

See all services30-min scoping call, fixed-price proposal in 48 hours.