Bitzu

312-50 ยท System hacking

Persistence mechanisms and how to find them

Backdoors, scheduled tasks, services, registry run keys, startup items, rootkit types, remote execution tools and how to detect persistence.

Key points

  • Persistence survives reboots and logoffs: backdoor accounts or listeners, scheduled tasks, cron, services, registry Run/RunOnce keys, startup folders, WMI subscriptions.
  • Rootkit layers: user mode, kernel mode, bootkit/firmware.
  • PsExec, WMI/WinRM: remote execution, also used by admins.
  • Detection: baseline autostart (Sysinternals Autoruns), monitor new tasks/services/accounts, file integrity, EDR, offline rootkit scans.

Practice questions

Single choice

Which registry location is commonly abused to run a program at every user logon?

  1. HKCU\Software\Microsoft\Windows\CurrentVersion\Run
  2. HKCU\Control Panel\Colors
  3. HKLM\HARDWARE\DESCRIPTION
  4. HKCU\Console\FontSize
Show answer

Answer: A. HKCU\Software\Microsoft\Windows\CurrentVersion\Run

The Run key under HKCU or HKLM Software\Microsoft\Windows\CurrentVersion starts listed programs at logon. The other options are not autostart locations.

Select all that apply

Which are common Windows persistence locations or mechanisms?

  1. Scheduled tasks
  2. Newly created services
  3. Clipboard history
  4. Display resolution settings
  5. Windows Calculator memory
Show answer

Answer: A. Scheduled tasks, B. Newly created services

Scheduled tasks and new services run code automatically. The clipboard history and display resolution are not execution triggers.

True or false

True or false: Reinstalling a single infected application always removes a kernel-mode rootkit.

Show answer

Answer: False

False. A kernel-mode rootkit operates below normal applications and can hide itself; remediation usually needs offline scanning, or reimaging from trusted media.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module