Zoomed Image

Detection Watches

Endpoint Management Guide

Protect a Computer

Detection Watches

Deploy Detection Watches installs a set of event-log watches on the selected computers. The agent reads new events as Windows writes them and raises a security finding when a command line matches a known attack pattern. The watches change no settings on the computer.

Before you start

The watches read two Windows events:

Event What it records Turned on by
Security 4688 Each new process and its command line Set Audit Policy, processcreation=on and cmdline=on
PowerShell Operational 4104 The text of each PowerShell script block Set Audit Policy, scriptblock=on

Run Change > Security Policy > Set Audit Policy on the computers first. Without it, Windows does not write these events or writes them without the command line. See Harden and Audit Policy.

The watches need the agent installed on the computer.

Endpoints > Endpoint List > select the computers > Change > Security Policy > Deploy Detection Watches.

There is no dialog. The action asks "Deploy detection watches to the selected computers?". Click Yes to send it.

Confirmation box asking to deploy detection watches to the selected computers, with Yes and No

Watch patterns

Finding category Examples of what matches
Execution PowerShell with an encoded command, DownloadString, Invoke-Expression, a hidden window, or known attack tools
LOLBin Windows tools used to fetch or run code: certutil -urlcache, bitsadmin /transfer, mshta with a web address, regsvr32 with scrobj, rundll32 with comsvcs
CredentialAccess mimikatz, procdump, lsass, ntdsutil, saving the SAM or SECURITY registry hives
DefenseEvasion Deleting shadow copies or backups, clearing event logs, turning off Defender or adding exclusions
LateralMovement psexec, paexec, wmiexec, smbexec

The PowerShell 4104 watch looks for attack tool names and AMSI bypasses in the script text.

Commands run by the agent's own scripts are ignored.

Findings location

Each match is a finding with the command line and the account that ran it. Findings appear on Endpoints > Endpoints Dashboard > Security > Findings. See Findings.

A finding from an account listed in the Trusted operators setting (DMPCTrustedOperators) is stored with the status Authorised and severity 0.

The allow list

The Detection allow-list setting (DMPCDetectionAllowList) lists command-line text to ignore, separated by |. A command line that contains any entry raises no finding. Change the setting, then deploy the watches again so computers receive the new list.

After you click Yes

The message reads "The detection watches were sent to the selected endpoints - watch it in Endpoint Jobs". It asks "Do you want to follow it now?". Yes opens Activity.

Undo

Detection watches cannot be removed from Activity.

Key points

  • Deploy the watches to a few computers first and read the findings for a week. Add the regular admin tools that match to the allow list.