Windows Event IDs for Detecting Persistence
Most persistence leaves a log entry at the moment it is installed: a new service, a new scheduled task, a new auto-run registry value or a freshly created account. These event IDs are low volume and high value — review them on the timeline and verify the binary or script each one points to.
7045System
A service was installed in the systemService installed4697Security
A service was installed in the systemService installed4698Security
A scheduled task was createdScheduled task createdSysmon 13Sysmon
RegistryEvent (Value Set)Registry value set4720Security
A user account was createdUser account created