<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Remoting — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/remoting/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 03 Jan 2024 18:53:23 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/remoting/feed.xml" rel="self" type="application/rss+xml"/><item><title>Incoming Execution via PowerShell Remoting</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-powershell-remoting/</link><pubDate>Wed, 03 Jan 2024 18:53:23 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-powershell-remoting/</guid><description>This rule identifies remote execution via Windows PowerShell remoting, which allows a user to run any Windows PowerShell command on one or more remote computers, potentially indicating lateral movement.</description><content:encoded><![CDATA[<p>This detection identifies potential lateral movement through the exploitation of Windows PowerShell remoting. PowerShell remoting is a feature that enables administrators and attackers to execute commands on remote Windows systems. The detection focuses on identifying incoming network connections on ports 5985 (HTTP) and 5986 (HTTPS), the default ports used for PowerShell Remoting, followed by the execution of processes spawned by <code>wsmprovhost.exe</code>, the Windows Remote Management process host. This activity, when originating from unexpected sources, may indicate unauthorized access and lateral movement within a network. The rule is designed to detect suspicious activity by monitoring network traffic and process execution, flagging potential unauthorized remote executions, and enabling security teams to respond swiftly.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to a network, possibly through phishing or exploiting a vulnerability on an internet-facing system.</li>
<li>The attacker leverages PowerShell remoting to initiate a connection to a target system on ports 5985 or 5986.</li>
<li>The target system accepts the incoming PowerShell Remoting connection.</li>
<li>The <code>wsmprovhost.exe</code> process is launched on the target system to facilitate the remote PowerShell session.</li>
<li>The attacker executes commands remotely, spawning child processes from <code>wsmprovhost.exe</code>.</li>
<li>The attacker attempts to escalate privileges or move laterally to other systems within the network using the remote PowerShell session.</li>
<li>The attacker uses tools such as <code>net.exe</code> or <code>PsExec</code> over the remote PowerShell session to further propagate.</li>
<li>The attacker achieves their objective, such as data exfiltration or deploying ransomware, by leveraging the established remote session.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of PowerShell Remoting for lateral movement can lead to widespread compromise within an organization. An attacker could gain control over multiple systems, potentially leading to data breaches, system outages, or ransomware deployment. The number of affected systems could range from a few critical servers to a significant portion of the network, depending on the attacker&rsquo;s objectives and the organization&rsquo;s security posture. The impact could include financial losses, reputational damage, and disruption of business operations.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Incoming Execution via PowerShell Remoting</code> to your SIEM to detect suspicious PowerShell remoting activity and tune for your environment.</li>
<li>Monitor network connections to ports 5985 and 5986, and investigate any unauthorized or unexpected traffic using the <code>network_connection</code> log source.</li>
<li>Investigate processes spawned by <code>wsmprovhost.exe</code> for unusual or malicious activity using the <code>process_creation</code> log source.</li>
<li>Whitelist authorized administrative IP addresses or user accounts that frequently perform remote management tasks, as mentioned in the false positives analysis.</li>
<li>Review and document automated scripts or scheduled tasks that use PowerShell Remoting for system maintenance, then create exceptions for their specific process names or execution paths.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>lateral-movement</category><category>powershell</category><category>remoting</category></item></channel></rss>