Persistence

In cybersecurity, persistence is the set of tricks attackers use to keep access to a system after reboots, password changes or cleanup, such as hidden startup programs, extra accounts or email forwarding rules.

AdvancedCategory: Monitoring, testing and incident response

Also called: attacker persistence, persistence mechanism, backdoor

What is persistence?

Breaking into a network takes effort, and attackers don't want to lose their access because someone restarted a laptop or changed a password. MITRE ATT&CK defines persistence as the techniques adversaries use to keep access to systems across restarts, changed credentials and other interruptions that could cut off their access.

This is why cleaning up after an attack is harder than it looks. Resetting one password or removing one piece of malware may leave several other backdoors in place, and the attacker comes straight back.

Common persistence techniques

On computers and servers:

  • Programs set to run at startup or login, through registry keys, startup folders or scheduled tasks
  • New or modified system services
  • Extra local or domain user accounts, sometimes with names that look legitimate
  • Legitimate remote access tools, such as AnyDesk or ScreenConnect, installed by the attacker
  • Rootkits and remote access trojans that hide themselves

In Microsoft 365, Google Workspace and other cloud services:

  • Mailbox rules that forward or hide email, a hallmark of business email compromise
  • Malicious OAuth apps granted access to mail and files
  • Attacker-registered MFA devices or app passwords
  • Stolen session tokens that keep working after a password change until they're revoked

How to find and remove it

  1. Investigate before cleaning up, so you find all the footholds, not just the obvious one. Digital forensics helps here.
  2. Reset credentials and revoke sessions for affected accounts, and check for new MFA methods.
  3. Review mailbox rules, OAuth app consents and admin accounts in your cloud services.
  4. Check startup items, scheduled tasks and installed remote tools with your EDR.
  5. Rebuild badly compromised systems from clean images rather than trying to clean them.
  6. Watch closely afterward for signs the attacker is back.

An incident response firm knows where attackers typically hide and can confirm the environment is clean.

Related terms

Sources

  1. Persistence, Tactic TA0003 (MITRE ATT&CK)
  2. SP 800-61 Rev. 3: Incident Response Recommendations and Considerations for Cybersecurity Risk Management (NIST)

Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.