<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>siem &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/siem/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2026 14:00:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://ptesc.tech/wp-content/uploads/2026/09/cropped-cropped-large_icon-32x32.png</url>
	<title>siem &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to get on the internet</title>
		<link>https://ptesc.tech/en/how-to-get-on-the-internet/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Mon, 07 Oct 2024 18:57:25 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[C2]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[siem]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%ba%d0%b0%d0%ba-%d0%bf%d1%80%d0%be%d0%b9%d1%82%d0%b8-%d0%b2-%d0%b8%d0%bd%d1%82%d0%b5%d1%80%d0%bd%d0%b5%d1%82/</guid>

					<description><![CDATA[How to get to the internet 🚶‍♂️ What do hackers do when the network segment they're interested in has no internet access, but they really want to connect to C2? That's right: they look for hosts that face different subnets and try to tunnel…]]></description>
										<content:encoded><![CDATA[<p><strong>How to get to the internet</strong> 🚶‍♂️</p>
<p>What do hackers do when the network segment they&#8217;re interested in has no internet access, but they really want to connect to C2? That&#8217;s right: they look for hosts that face different subnets and try to tunnel control channels through them. If the attacked infrastructure is heavily segmented, such a channel may pass through many nodes and take on bizarre forms.</p>
<p>In one recent case, the hackers used two methods for tunneling the channel; let&#8217;s call them &#8220;simple&#8221; and &#8220;complex.&#8221;</p>
<p>🤯 <strong>Let&#8217;s start with the &#8220;complex&#8221; one</strong></p>
<p>The attackers discovered a host through which access from one subnet to another was possible. But there was a nuance: the only way to reach this host was via <strong>RDP</strong> (remote desktop).</p>
<p>The hackers found a solution. They attached a kind of traffic splitter to the listening port <code>3389</code>: genuine RDP traffic was redirected to port <code>33389</code>, while all other traffic on port <code>3389</code> was proxied further into the neighboring subnet. Whether a packet belonged to RDP was determined by the first three bytes — they had to equal <code>03 00 00</code>.</p>
<p>The hackers moved the real RDP service from the standard port <code>3389</code> to port <code>33389</code>. This way, the attackers gained the ability to pass traffic between segments, while users connecting via RDP saw no difference.</p>
<p><strong>The presence of such a utility on a host is revealed (besides, of course, the presence of the executable file on the file system) by the following signs: </strong></p>
<p>1️⃣ The RDP port has been changed to a non-standard one (you can check the port in the system properties or with the command <code>Get-ItemProperty -Path &#039;HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp&#039; -name &quot;PortNumber&quot;</code>).</p>
<p>2️⃣ Some &#8220;rogue&#8221; process is listening on port <code>3389</code>.</p>
<p>3️⃣ User connections via RDP in such a scheme appear as originating from localhost. In practice, we only saw the IP address <code>127.0.0.1</code>, but don&#8217;t forget that there&#8217;s actually an entire subnet of such addresses, and there are also variants like <code>::1</code> or even <code>::%16777216</code>.</p>
<p>But keep in mind that the RDP port could have been changed by an admin, and connections from localhost may also indicate other things, such as the presence of tunnels 🙂</p>
<p>💆‍♂️ <strong>So what was the &#8220;simple&#8221; method?</strong></p>
<p>In this variant, the attackers used a Windows feature called Port Proxy to proxy traffic.</p>
<p>In its simplest form, this tool allows you to create a simple mapping of &#8220;where a packet came from — where to send it.&#8221; The easiest way to show this is with an example:</p>
<pre><code>
netsh interface portproxy add v4tov4 listenport=7000 connectaddress=example.com connectport=443 protocol=tcp
</code></pre>
<p>After executing this command, the host starts listening on port <code>7000</code> and redirects incoming TCP connections to <code>example.com:443</code>. You can read more about these functions <a href="https://learn.microsoft.com/en-us/windows-server/networking/technologies/netsh/netsh-interface-portproxy" rel="noopener" target="_blank">in Microsoft&#8217;s documentation</a>. </p>
<p>This method is good because it doesn&#8217;t require third-party software. The main limitation of the method is that the mapping is static, meaning it only allows you to set up strictly predefined packet redirection.</p>
<p>🕵️‍♀️ <strong>How to detect the use of this method</strong></p>
<p>1️⃣ Detect the execution of the netsh interface portproxy add command (for example, in <code>Sysmon 1</code> or <code>Security 4688</code> events).</p>
<p>Detection in MaxPatrol SIEM: <code>Execute_Malicious_Command</code></p>
<p>2️⃣ By the presence of keys in the registry under [<code>HKLM\SYSTEM\CurrentControlSet\Services\PortProxy\</code>].</p>
<p>Detection in MaxPatrol SIEM: <code>Port_Forwarding_or_Tunneling</code></p>
<p>3️⃣ By the appearance of suspicious listening ports or network connections on the <code>IpHelper</code> service (the process <code>C:\Windows\System32\svchost.exe -k NetSvcs -p -s iphlpsvc</code>).</p>
<p>👉 By the way, in that case the attackers managed to build a chain four hops long using portproxy, and at each stage traffic from &#8220;implants&#8221; on hosts inside the segment was also redirected into the proxied port. The result was an entire &#8220;tree&#8221; whose &#8220;roots&#8221; extended to a C2 server on the internet.</p>
<p>Happy hunting!</p>
<p><span class="hashtag">#Hunt</span> <span class="hashtag">#C2</span> <span class="hashtag">#Detect</span> <span class="hashtag">#DFIR</span> <span class="hashtag">#SIEM</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Missed the moment a phishing attachment was launched again?</title>
		<link>https://ptesc.tech/en/missed-the-moment-of-launching-a-phishing-attachment-again/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 05 Jul 2024 12:30:27 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[siem]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d0%bd%d0%be%d0%b2%d0%b0-%d0%bf%d1%80%d0%be%d0%bf%d1%83%d1%81%d1%82%d0%b8%d0%bb%d0%b8-%d0%bc%d0%be%d0%bc%d0%b5%d0%bd%d1%82-%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba%d0%b0-%d1%84%d0%b8%d1%88%d0%b8/</guid>

					<description><![CDATA[Missed the moment a phishing attachment was launched again? 📩 So what? The accountant is sure it was an "invoice" from a trusted bank. It's time to teach SIEM systems to warn you about anomalies related to the launch of malicious email atta…]]></description>
										<content:encoded><![CDATA[<p><strong>Missed the moment a phishing attachment was launched again?</strong> 📩</p>
<p>So what? The accountant is sure it was an &#8220;invoice&#8221; from a trusted bank. It&#8217;s time to teach SIEM systems to warn you about anomalies related to the launch of malicious email attachments!</p>
<p>We&#8217;re sharing a few ideas for correlation rules with you. This is part one. We&#8217;ll publish more soon 😉</p>
<p>1️⃣<strong> Attackers may abuse double extensions in file names as a means of masking the true file type. </strong></p>
<p>Such files are often used during phishing campaigns. It is recommended to monitor process launch events (Windows 4688, Sysmon 1) in which the process name ends with a double extension. In such events, popular harmless file formats are listed first: </p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">
.doc, .docx, .docm, .dot, .htm, .html, .odt, .pdf, .rtf, .txt, .xml, .csv, .xls, .xlsx, .xlsm, .zip, .zipx, .rar, .jar, .tar, .tar-gz, .tgz, .gz, .gzip, .7z, .pps, .ppsx, .ppt, .pptm, .pptx, .jpg, .jpeg, .gif, .png, .gif, .bmp, .raw, .tiff, .psd, .heif, .mp4, .mov, .wmv, .avi, .flv, .swf, .mkv
</code></span></pre>

<p>And then — the executable file extension (.exe, .scr, .com), for example: Invoice_465937.doc.exe. </p>
<p><strong>Example regex filter:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">\.(doc|docx|docm|dot|htm|html|odt|pdf|rtf|txt|xml|csv|xls|xlsx|xlsm|zip|zipx|rar|jar|tar|tar-gz|tgz|gz|gzip|7z|pps|ppsx|ppt|pptm|pptx|jpg|jpeg|gif|png|gif|bmp|raw|tiff|psd|heif|mp4|mov|wmv|avi|flv|swf|mkv)\.(exe|scr|com)$
</code></span></pre>

<p>2️⃣ <strong>Suspicious outbound connections from Microsoft Office applications can be detected based on Windows 5156 or Sysmon 3 events with destination port 445, from the following process names: </strong></p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">
"winword.exe", "excel.exe", "powerpnt.exe", "visio.exe", "mspub.exe", "eqnedt32.exe", "outlook.exe"
</code></span></pre>

<p>3️⃣<strong> It is useful to pay attention to a user opening Microsoft Office documents with a macro, as well as to monitor the combination of process launch events for Microsoft Office applications</strong> (Windows 4688, Sysmon 1; processes: &quot;winword.exe&quot;, &quot;excel.exe&quot;, &quot;powerpnt.exe&quot;, &quot;msaccess.exe&quot;, &quot;onenote.exe&quot;, &quot;outlook.exe&quot;, &quot;visio.exe&quot;, &quot;winproj.exe&quot;).</p>
<p>And the loading of the VBE7 library by this process (Sysmon 7; ImageLoaded = VBE7.DLL). </p>
<p>4️⃣ <strong>Attackers may send a malicious document via a messenger</strong>, so it is recommended to detect process launches from a messenger parent process based on Windows 4688, Sysmon 1 events with the following ParentProcessName values: </p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">
"skype.exe", "telegram.exe","whatsapp.exe", "teams.exe", "lync.exe"
 </code></span></pre>

<p>With different values in the ParentProcessName and NewProcessName fields.<br /></p>


<p class="wp-block-paragraph">5️⃣ <strong>Suspicious process launch sequences by a Microsoft Office application</strong> can be detected based on *.exe process launch events Windows 4688 Sysmon 1 with parent processes ParentProcessName (&#8220;winword.exe&#8221;, &#8220;excel.exe&#8221;, &#8220;powerpnt.exe&#8221;, &#8220;visio.exe&#8221;, &#8220;mspub.exe&#8221;, &#8220;eqnedt32.exe&#8221;, &#8220;outlook.exe&#8221;, &#8220;acrord32.exe&#8221;) with different values in the ParentProcessName and NewProcessName fields.</p>



<p class="wp-block-paragraph"><strong>Exceptions for NewProcessName:</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-plaintext">
"winword.exe", "excel.exe", "powerpnt.exe", "eqnedt32.exe", "outlook.exe", "msosync.exe", "chrome.exe", "firefox.exe", "msedge.exe", "launcher.exe", "browser.exe", "acrord32.exe", "acrobat.exe", "rdrcef.exe", "adobearm.exe", "splwow64.exe", "visio.exe".
</code></span></pre>

<p>6️⃣ <strong>We recommend detecting the creation of executable files by office programs:</strong> </p>
<p><strong>•</strong> process creation events (Windows 4688, Sysmon 1); </p>
<p><strong>•</strong> with Image names: &quot;winword.exe&quot;, &quot;excel.exe&quot;, &quot;powerpnt.exe&quot;, &quot;visio.exe&quot;, &quot;mspub.exe&quot;, &quot;eqnedt32.exe&quot;, &quot;outlook.exe&quot;, &quot;msaccess.exe&quot;; </p>
<p><strong>• </strong>TargetFilename extension: </p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">
.exe, .bat, .com, .cmd, .dll, .cpl, .msi, .sys, .scr, .ps1, .hta
</code></span></pre>

<p>7️⃣ <strong>An office program loads the DLL library of the Internet Explorer COM object (ieproxy.dll): </strong></p>
<p><strong>•</strong> Sysmon 7 events;</p>
<p><strong>•</strong> with Image names: &#8220;winword.exe&#8221;, &#8220;excel.exe&#8221;, &#8220;powerpnt.exe&#8221;, &#8220;visio.exe&#8221;, &#8220;mspub.exe&#8221;, &#8220;eqnedt32.exe&#8221;, &#8220;outlook.exe&#8221;, &#8220;msaccess.exe&#8221;.</p>
<p><strong>•</strong> the value &#8220;ieproxy.dll&#8221; in the ImageLoaded field.</p>
<p>&nbsp;</p>
<p><span class="hashtag">#tips</span> <span class="hashtag">#siem</span> <span class="hashtag">#detect</span><br /><a href="https://t.me/ptescalator" target="_blank" rel="noopener">@ptescalator</a></p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
