Persistence Techniques

Attackers establish ways to retain access after restarts or partial cleanup.

What it is

Persistence is the establishment of mechanisms that let an attacker retain or regain access after restarts, logout, or partial cleanup. It can exist on a device or in an online account. Startup tasks, unauthorized users, application grants, and modified recovery settings are different forms of the same goal: keeping a route back in.

How it works

After gaining access, the attacker changes a recurring execution or authorization path. A task may restart malware, an added account may remain usable, or an app grant may continue to access cloud data. Some persistence is file-based and other forms depend entirely on configuration or identity settings.

How people get tricked

An unfamiliar task resembles ordinary administration, or an added app looks like a useful integration. Cleanup focuses on the visible malicious file while ignoring the recurring mechanism that launches or replaces it.

Example scenario

An attacker is removed from a mailbox session but an unauthorized app grant remains. That grant provides continued access without requiring the original password.

Warning signs

  • Unexpected startup entries, scheduled tasks, accounts, or grants.
  • Suspicious activity returns after reboot or password reset.
  • Configuration deviates from an approved baseline.

How to protect yourself

  • ✓ Monitor recurring execution paths and identity configuration changes.
  • ✓ Limit who can create accounts, grants, and privileged scheduled work.
  • ✓ Maintain known-good baselines and protected audit logs.
  • ✓ Review recovery settings and connected apps during account recovery.

If it happens to you

Inventory and remove each confirmed persistence mechanism, investigate its permissions, and fix initial access. Rebuild systems if integrity cannot be established and rotate affected secrets. Verify after restart and through relevant provider controls that the route back no longer works.

Know this now

Deleting one file or changing one password may leave a doorway behind. Recovery requires checking recurring execution and authorization paths.