Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may use port monitors to run an adversary supplied DLL during system boot for persistence or privilege escalation.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✓→✗ | ▼ Worse | 15% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 32% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 48% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 54% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 29% | 0% |
> 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 <code>AddMonitor</code> API call to set a DLL to be loaded at startup. This DLL can be located in <code>C:\Windows\System32</code> 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 <code>HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors</code>. 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
cmdreg add "hklm\system\currentcontrolset\control\print\monitors\AtomicRedTeam" /v "Driver" /d "#{monitor_dll}" /t REG_SZ /f
If Atomic Red Team tests are not applicable, manually verify the technique by:
No specific mitigations documented for this technique.
| Finding | Severity | Impact | | ---------------------------------- | -------- | ----------- | | Port Monitors technique applicable | High | Persistence |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-276 | Incorrect Default Permissions |
Other measured skills in the registry, with their headline benchmark lift.