Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains and tests Windows port monitor persistence and privilege escalation via Atomic Red Team.
Use this skill ↓95% 91%−5 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 21 of 22 without it.
3 of 3 safety checks passed
Not used yet
Sub-technique of: T1547
Adversaries may use port monitors to run an adversary 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. This DLL can be located in C:\Windows\System32 and will be loaded and run by the print spooler service, spoolsv.exe, under SYSTEM level permissions on boot.
Alternatively, an arbitrary DLL can be loaded if permissions allow writing a fully-qualified pathname for that DLL to the Driver value of an existing or new arbitrarily named subkey of HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors. The Registry key contains entries for the following:
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Add key-value pair to a Windows Port Monitor registry. On the subsequent reboot DLL will be execute under spoolsv with NT AUTHORITY/SYSTEM privilege.
Supported Platforms: windows Elevation Required: Yes
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.