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
Which registry location is commonly abused to run a program at every user logon?
- HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- HKCU\Control Panel\Colors
- HKLM\HARDWARE\DESCRIPTION
- 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.
Which are common Windows persistence locations or mechanisms?
- Scheduled tasks
- Newly created services
- Clipboard history
- Display resolution settings
- 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: 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.
