Detectionmediumtest
Add Port Monitor Persistence in Registry
Adversaries may use port monitors to run an attacker supplied DLL during system boot for persistence or privilege escalation. A port monitor can be set through the AddMonitor API call to set a DLL to be loaded at startup.
Log Source
WindowsRegistry Set
ProductWindows← raw: windows
CategoryRegistry Set← raw: registry_set
Detection Logic
Detection Logic4 selectors
detection:
selection:
TargetObject|contains: '\Control\Print\Monitors\'
Details|endswith: '.dll'
filter_optional_cutepdf:
Image: 'C:\Windows\System32\spoolsv.exe'
TargetObject|contains: '\Control\Print\Monitors\CutePDF Writer Monitor v4.0\Driver'
Details: 'cpwmon64_v40.dll'
User|contains: # covers many language settings
- 'AUTHORI'
- 'AUTORI'
filter_optional_monvnc:
TargetObject|contains: '\Control\Print\Monitors\MONVNC\Driver'
filter_optional_vnc:
TargetObject|contains|all:
- 'Control\Print\Environments\'
- '\Drivers\'
- '\VNC Printer'
condition: selection and not 1 of filter_optional_*False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
Testing & Validation
Simulations
atomic-red-teamT1547.010
View on ARTAdd Port Monitor persistence in Registry
GUID: d34ef297-f178-4462-871e-9ce618d44e50
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
944e8941-f6f6-4ee8-ac05-1c224e923c0e
Status
test
Level
medium
Type
Detection
Created
2021-12-30
Modified
2024-03-25
Author
Path
rules/windows/registry/registry_set/registry_set_add_port_monitor.yml
Raw Tags
attack.privilege-escalationattack.persistenceattack.t1547.010