The Windows Registry: Settings That Software Reads Later
When an application remembers your preferred layout, the Windows Registry may be where it saved the choice. The program can read that stored value the next time you open it.
The Windows Registry is a hierarchical database used by Windows, applications and services to store configuration information. “Hierarchical” means its contents are arranged in a branching structure, with larger groups containing smaller ones.
The Registry holds the data. Windows or an application reads that data and acts on it.
What Does the Windows Registry Do?
Keys organize; values hold the setting
A key is a location in the Registry's branching structure. It can contain other keys, called subkeys, as well as named values that hold data.
In the illustrative layout example, an application could keep a named preference beneath its own settings key. When the application starts, it opens the key, retrieves the value and uses that information to choose the layout.
Microsoft's guide to Registry structure describes this arrangement. Thinking of keys as the organization and values as the stored information helps distinguish the two words when they appear in technical instructions.
Programs can also store settings elsewhere, including configuration files. The Registry is therefore not a complete record of every preference, file or past action on a Windows computer.
One computer can have different user settings
Some configuration applies to the whole machine. Other configuration belongs to a particular signed-in user.
Microsoft identifies HKEY_LOCAL_MACHINE as a location for machine-wide settings and HKEY_CURRENT_USER for settings associated with the current user. These are major branches of the hierarchy.
A per-user preference lets one person's application settings differ from another's on the same computer. A machine-wide setting has a broader scope. Microsoft's Registry guidance explains that distinction and describes other storage choices applications can use.
Windows controls who can access a key through permissions. Reading a value and changing it are different operations, and an account can be permitted to do one without being permitted to do the other.
- Run a test server or a home lab without giving up desk space.
- Start right away with 16GB of memory and a 500GB SSD already inside.
- Drive two 4K screens when it doubles as an everyday desktop.
A stored setting can start a program
The Run and RunOnce Registry mechanisms give a concrete example of data affecting later behavior. They register programs for work at user sign-in: Run for repeated use, RunOnce for one-time work.
Microsoft's startup-key documentation describes their legitimate purpose.
An attacker with the necessary write access can abuse startup mechanisms so harmful code runs at sign-in. That is one form of persistence, keeping a route for malicious activity to resume. The same mechanism used by legitimate software can serve malware when someone changes what it points to.
This makes permission to change a setting consequential. The change may affect what another program does later, rather than produce an immediate visible result.
During an investigation, a startup change belongs alongside evidence about the program involved and how the change occurred. A legitimate installation and an unauthorized modification can touch the same area. Connecting the stored value to the software that uses it gives the change its meaning.
System Administration Is the Work That Continues After Setup

Malware: The Computer Can Still Work While the Harm Is Done

Configuration Management: Stop Losing Track of System Changes

QUOTE:
"Amateurs hack systems, professionals hack people."
