Lockdown
Lockdown is a security baseline setting. It lets programs, installers and scripts run only from Program Files and the Windows folder. People cannot install software. Under Enforce, the local Administrators group is cut to the accounts you name.
Lockdown uses AppLocker path rules only. A software update in Program Files runs with the same policy.
Menu path
Endpoints > Endpoints Dashboard > Security > Baselines > Manage Baselines > New Baseline or Edit Baseline. See Baselines.
The fields
| Field | What it does | Default |
|---|---|---|
| Lockdown | Off leaves Lockdown out. Audit logs what Lockdown would block and blocks nothing. Enforce blocks it and removes other administrators. Strict is Enforce where only approved programs run, for administrators too. See Strict and the approved list. | Audit |
| Keep as Administrators | Accounts or groups that stay local administrators under Enforce, separated by commas. Example: CORP\Desktop Admins. |
Blank: the approved administrators list |
Audit, Enforce or Strict replaces the baseline's AppLocker modes and Also Allow paths. Baselines that existed before Lockdown are set to Audit.
The rules
Each rule type gets the same mode.
| Rule type | Everyone may run | Administrators |
|---|---|---|
| Programs | Program Files, Program Files (x86) and the Windows folder, minus the exceptions below | Anything |
| Scripts | The same folders, minus the user-writable folders | Anything |
| Installers | The Windows Installer cache (%WINDIR%\Installer) |
Anything |
| Packaged apps | Signed Store apps | Signed Store apps |
The program and script rules leave out 16 folders inside Windows that a standard user can write to. Examples are %WINDIR%\Temp, %WINDIR%\Tasks and %SYSTEM32%\spool\PRINTERS. A file copied there does not run.
PowerShell treats a script outside the allowed folders differently. It runs the script in Constrained Language mode. In that mode the script cannot call .NET, COM or added code. Batch files and VBScript files outside the allowed folders do not run.
The program rule also leaves out Windows tools often used to run other code. A standard user cannot run them. Administrators can.
mshta.exe,wscript.exe,cscript.exe,cmstp.exe,PresentationHost.exeandWMIC.exe, 32-bit and 64-bitMSBuild.exe,InstallUtil.exe,RegAsm.exeandRegSvcs.exein each .NET Framework folder
A program in a user's Downloads folder, on the desktop or in C:\Temp is blocked under Enforce. The xAssets agent runs as SYSTEM, so its installs and actions still run.
Strict and the approved list
Strict trusts programs, not folders. A program runs only when your company approved it.
- Run Report Programs for App Control on some computers. Each one sends the programs and installers it holds: the publisher, product, version, and a fingerprint of the file. Nothing on the computer changes.
- Within the hour the programs appear in Endpoints > Endpoints Dashboard > Security > App Control. A program on more than one computer is listed once.
- Select Approve on each program people need, or Ban on a program nobody may run. Clear takes back a decision.
- Set the baseline's Lockdown to Strict and enforce it.
| Enforce | Strict | |
|---|---|---|
| Program Files | Everything in it runs | Only approved programs run |
| Windows folder | Runs, minus the user-writable folders and the tools listed above | The same |
| Administrators | Run anything | Only approved programs, like everyone else |
| Banned programs | Blocked, for administrators too | Blocked, for administrators too |
| The xAssets agent and anything run as SYSTEM | Runs | Runs |
An approved program from a signed publisher is approved by publisher, product and program name. Later versions from that publisher run without a new approval. An unsigned program is approved by its fingerprint only. A new version of it needs approving again.
Strict with nothing approved is refused: only Windows would run. The computers get the approved list with the baseline. A change to it reaches the computers the next time the baseline is enforced or kept in place. With a standing approval, the approvers sign the new list once.
Administrators under Enforce
After the policy is in place, Enforce removes every other member of the local Administrators group. These always stay:
- the built-in Administrator account
- Domain Admins
- Microsoft Entra roles
- SYSTEM and the account the agent runs as
- the names in Keep as Administrators
- the accounts in the setting Accounts Lockdown Enforce always keeps as administrators (
DMPCLockdownKeepAccounts)
Put the collection servers' agentless accounts in that setting. Blank Keep as Administrators uses the approved administrators list (DMPCApprovedLocalAdmins).
Lockdown never leaves a computer with no enabled administrator. If removing the others would do that, it removes no one. The run says "refused".
Windows editions
| Edition | Lockdown |
|---|---|
| Windows Server, Enterprise, Education | Rules apply |
| Windows 10 Pro, version 2004 or later | Rules apply, with Windows updates from late 2022 on |
| Windows 11 Pro | Rules apply, with Windows updates from late 2022 on |
| Windows 10 Pro before version 2004 | Refused |
| Windows Home | Refused |
Microsoft removed the edition check for AppLocker in its update KB5024351. Before it, Pro stored AppLocker rules and ignored them. A refused computer is left as it was. Its run fails with "Lockdown refused", the edition, and "Nothing was changed".
Effect on the computer
- It saves the current local AppLocker policy and the state of the Application Identity service.
- It sets the Application Identity service to start automatically, and starts it.
- It writes the Lockdown policy.
- Under Enforce, it removes the administrators that are not kept. It saves their names for the undo.
- It reads the policy back from Windows rule by rule. A match reports Verified. A mismatch reports Applied.
Findings
Lockdown needs the security event watches on the computer. See Detection Watches.
| Mode | Windows event | Finding |
|---|---|---|
| Audit | 8003 or 8006: a file would have been blocked | One finding per file |
| Enforce | 8004 or 8007: a file was blocked | One finding per file per computer per day |
A blocked file reads like "Blocked program %OSDRIVE%\USERS\BOB\DOWNLOADS\TOOL.EXE for CORP\bob". A person who tries the same program 20 times in one day makes one finding seen 20 times. A try the next day opens a new finding. The findings are listed in Endpoints > Endpoints Dashboard > Security > Findings. See Findings.
Kept in place
The drift check compares the whole rule set, the Application Identity service and, under Enforce, the administrators. With a standing approval for the baseline, a computer that has changed gets Lockdown again without a new approval. See Standing approvals.
Undo
One undo puts back the saved AppLocker policy, the Application Identity service and each administrator Lockdown removed. See Run detail and undo.
Key points
- Start in Audit. Leave a computer there long enough to cover its normal work, such as a month-end. The Audit findings list what Enforce would block.
- Software installed in a user's profile stops running under Enforce. Reinstall it for all users, or keep that computer in Audit.
- To install software by hand, sign in as an administrator that is kept. Under Strict the installer must be approved as well.
- Move to Strict only once every program the computers need is approved in App Control. Run Report Programs for App Control again after software changes.