Zoomed Image

Harden and Audit Policy

Endpoint Management Guide

Protect a Computer

Harden and Audit Policy

Apply Hardening Settings sets Windows security settings on the selected computers. Set Audit Policy turns on the Windows logging that detection watches read. Both save the current value of each setting they change before changing it. Both can be undone from Activity.

Harden

Endpoints > Endpoint List > select the computers > Change > Security Policy > Apply Hardening Settings.

Apply Hardening Settings dialog with DEVDC in Computer Names and the default Settings starting smb1=off;llmnr=off

The dialog is titled Apply Hardening Settings.

Field What it does Default
Computers The computers to change The selected rows
Settings The settings to apply, as name=value pairs Five settings, shown below

The default Settings value:

smb1=off;llmnr=off;wdigest=off;autorun=off;rdpnla=on

The settings Harden can apply

Setting What it changes on the computer
smb1=off Turns off the SMB 1 protocol in the SMB server configuration. The Windows feature stays installed.
llmnr=off Turns off LLMNR name resolution (EnableMulticast = 0)
wdigest=off Stops WDigest keeping sign-in passwords in memory (UseLogonCredential = 0)
autorun=off Turns off AutoRun on every drive type (NoDriveTypeAutoRun = 255)
rdpnla=on Requires Network Level Authentication for Remote Desktop. Open sessions are not dropped.
lmcompat=N Sets the LAN Manager authentication level. 3 sends NTLMv2 only. 5 also refuses LM and NTLMv1.
guest=disabled Disables the built-in Guest account
spooler=stopped Stops the Print Spooler service and sets it to Disabled
inactivitylock=N Locks the computer after N seconds without input. 0 means no lock.

Harden also takes every setting of the hardening catalog. The list, with each setting's baseline value, is in Hardening Baselines. Any other name fails the run with "is not a setting this verb can assert". Settings not named are left alone.

Hardening steps on the computer

  1. It saves the current value of every named setting. A value that did not exist is saved as absent.
  2. It applies each setting. If one fails, it restores the saved values and the run reports Reverted.
  3. It reads the settings back. A match reports Verified. A mismatch reports Applied and lists the values it expected.

The phases are Sent, Applied, Verified and Reverted.

Audit Policy

Endpoints > Endpoint List > select the computers > Change > Security Policy > Set Audit Policy.

The dialog is titled Set Audit Policy.

Field What it does Default
Computers The computers to change The selected rows
Settings The three audit switches All three on

The default Settings value:

processcreation=on;cmdline=on;scriptblock=on
Setting What it turns on Windows event
processcreation Process Creation auditing, success and failure. success or failure sets one of the two. Security 4688
cmdline The full command line inside each 4688 event Security 4688
scriptblock PowerShell script block logging PowerShell Operational 4104

Each switch takes on or off. The agent sets Process Creation with auditpol by its ID, so it works in any Windows language. The other two are registry policy values.

Audit policy steps on the computer

It saves the three current readings, applies the settings and reads them back. A match reports Verified. A mismatch reports Applied. The phases are Sent, Applied and Verified.

After you click OK

The messages read "The hardening settings were sent to the selected endpoints" and "The audit policy was sent to the selected endpoints". Each asks "Do you want to follow it now?". Yes opens Activity.

Undo

Both actions can be undone. The Undo column in Activity > Jobs shows Inverse for the run. See Run detail and undo.

The undo first checks that the computer still reads as the run left it. If someone has changed a setting since, the undo changes nothing. Its run fails with "restore refused: the endpoint no longer reads as the state this run left it in". Otherwise the undo puts each setting back to its saved value. A setting saved as absent is removed.

Key points

  • lmcompat=5 refuses older authentication. Devices that only speak NTLMv1, such as old printers and NAS boxes, stop authenticating.
  • A domain Group Policy that sets the same audit category overrides it at the next policy refresh. The nightly checks then show the drift.
  • Run Set Audit Policy before Deploy Detection Watches. Without process creation and command-line auditing, the watches have nothing to read. See Detection Watches.