Registry Run keys
Run and RunOnce registry keys, under HKLM and each user's HKCU Software\Microsoft\Windows\CurrentVersion, start programs automatically at boot or logon. They are among the most common persistence locations (MITRE ATT&CK T1547.001).
What Run Keys is
Persistence artifacts are the places programs start from automatically: services, tasks, autostart keys, WMI subscriptions, cron and systemd. Attackers use them to survive reboots.
Forensic value
What Run Keys can tell an investigator:
- Programs set to start automatically, with their full command lines.
- Key last-write times that help date when persistence was added.
- Per-user persistence that survives reboots.
What it does not prove
- Legitimate software uses Run keys heavily, so baselining matters.
- Per-user Run keys are in each user's hive; collect them all.
Where it is stored
Arcsentry looks for Run Keys at these locations inside a collection, disk image or mounted volume:
**/Users/*/NTUSER.DAT
**/Windows.old/Windows/System32/config/RegBack/SOFTWARE
**/Windows.old/Windows/System32/config/SOFTWARE
**/Windows/ServiceProfiles/*/NTUSER.DAT
**/Windows/System32/config/RegBack/SOFTWARE
**/Windows/System32/config/SOFTWARE
**/Windows/System32/config/systemprofile/NTUSER.DAT What Arcsentry records
Each Run Keys record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
registry_value | VARCHAR | Registry value name |
process_command_line | VARCHAR | Process command line |
registry_path | VARCHAR | Registry path |
registry_hive_set | VARCHAR | Registry hive set the record was read from: live, regback, windows_old or windows_old_regback |
registry_hive_replay | VARCHAR | Why the registry hive this record was read from lacks its transaction-log changes: failed when replay failed at staging, disabled when replay was turned off |
Time
Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.
Collecting Run Keys with Arcsentry Collector
Arcsentry Collector gathers Run Keys in these triage profiles: windows::profile::triage::priority, windows::profile::triage::offline, windows::profile::triage::timeline, windows::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.
The collection targets that pick it up: windows::accounts_identity::roaming_profile, windows::registry::registry_hives_system, windows::registry::registry_hives_user, windows::security::windows_hello, windows::system_state::srum.
.\arcsentry-collect.exe collect --local -t windows::profile::triage::priority `
-o E:\IR -f host.arcx --password-file E:\IR\pw.txt Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.
Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Run Keys can come from the tools you already use.
Analysing Run Keys in Arcsentry
Ask in plain English, for example "show Run Keys records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "runkeys"
sort {-timestamp}
take 100 Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Run Keys records with the same tools and cites them by event ID.
Corroborate with
No single artifact settles a question on its own. Check Run Keys against:
- Scheduled task: Parses Windows Task Scheduler XML task definition files.
- Windows services: Windows service configurations including image paths, start types, and service DLLs.
- WMI persistence: Parses the WMI CIM repository (event subscriptions, instances, class definitions, namespaces and page allocation) and WMI MOF files.
- Amcache: Parses Amcache.hve application execution history.
Frequently asked
Which ATT&CK technique covers Run keys?
T1547.001, Registry Run Keys / Startup Folder.
Does Arcsentry parse Run Keys?
Yes. Arcsentry's Run Keys parser (runkeys) reads it from Windows evidence and records 5 fields per record, with provenance back to the source file.
How do I collect Run Keys?
Arcsentry Collector gathers it with the priority triage profile (windows::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.
Parse Run Keys on your own evidence.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial