<?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>tips &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2026 13:05:41 +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>tips &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Recovering EVTX records: carving methods</title>
		<link>https://ptesc.tech/en/recovering-evtx-records-carving-methods/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Wed, 23 Sep 2026 14:49:54 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b2%d0%be%d1%81%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-evtx-%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d0%b5%d0%b9-%d0%bc%d0%b5%d1%82%d0%be%d0%b4%d1%8b-%d0%ba%d0%b0%d1%80%d0%b2/</guid>

					<description><![CDATA[Recovering EVTX records: carving methods 🧩 When investigating incidents where attackers encrypt virtual machine images, a situation often arises in which the file system is damaged to such an extent that standard mounting becomes impossible…]]></description>
										<content:encoded><![CDATA[<p><strong>Recovering EVTX records: carving methods</strong> 🧩</p>
<p>When investigating incidents where attackers encrypt virtual machine images, a situation often arises in which the file system is damaged to such an extent that standard mounting becomes impossible. </p>
<p>Restoring it manually is theoretically possible, but it takes a lot of time and is accompanied by data loss. In such cases, carving is used — a byte-by-byte search for signatures directly in the raw image, bypassing the file system.</p>
<p>❗️ <strong>The PT ESC IR team prioritizes automating the parsing of artifacts for subsequent detection of malicious activity</strong> — this speeds up reconstructing the picture of the incident. </p>
<p>Our pipeline is predominantly implemented in Go, so we developed our own library in the same language. It parses ready-made EVTX files even when checksums do not match or the file is damaged, and also performs carving of events from bitwise copies, memory dumps, and virtual disk images.</p>
<p>For more on what can be recovered and why some approaches yield the full record structure while others yield only individual fields, <a href="https://habr.com/ru/companies/pt/articles/1084600/" rel="noopener" target="_blank">read our article on Habr</a> 🫲</p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</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>We will croc you</title>
		<link>https://ptesc.tech/en/we-will-croc-you/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Wed, 02 Sep 2026 18:56:38 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/we-will-croc-you/</guid>

					<description><![CDATA[We will croc you 👻 PhantomCore continues to actively exploit misconfigurations in 1C to attack Russian organizations. We previously wrote about attacks on 1C using 1cshell (1, 2, 3). During the incident investigation, the PT ESC IR team dis…]]></description>
										<content:encoded><![CDATA[<p><strong>We will croc you </strong><strong>👻</strong></p>
<p>PhantomCore continues to actively exploit misconfigurations in 1C to attack Russian organizations. </p>
<p>We previously wrote about attacks on 1C using <code>1cshell</code> (<a href="https://t.me/ptescalator/276" rel="noopener" target="_blank">1</a>, <a href="https://t.me/ptescalator/383" rel="noopener" target="_blank">2</a>, <a href="https://t.me/ptescalator/385" rel="noopener" target="_blank">3</a>). </p>
<p>During the incident investigation, the PT ESC IR team discovered the compromise of a 1C server running on a Linux-family operating system 🐧</p>
<p>Among the characteristic indicators are the presence of malicious executable files in subdirectories of the home directory of the service user <code>usr1cv8</code> and commands in the <code>.bash_history</code> of the same user — in particular, viewing and deleting the file <code>res.txt</code>, into which the result of code execution via <code>1cshell</code> is written.</p>
<pre><code>/home/usr1cv8/.bash_history: cat res.txt

/home/usr1cv8/.bash_history: rm res.txt</code></pre>
<p>After gaining access to the system, PhantomCore installed a ReverseSSH tunnel, which is typical behavior for this group.</p>
<p>🕵️‍♂️ In addition to the frequently used tooling, we also encountered a more exotic utility, <code>croc</code>, designed for remote file upload and exfiltration.</p>
<p>On the investigated host, commands of the following format were discovered: <code>CROC_SECRET=[REDACTED] ./croc</code></p>
<p>With its help, the attackers could upload to the compromised host a file that had been previously sent via the web interface <code>https://getcroc.com/</code> (in the screenshot) or from another computer on which <code>croc</code> is installed.</p>
<p>💡 To search for traces of croc usage, you can look for an executable file with the corresponding name, as well as the use of the <code>CROC_SECRET</code> environment variable.</p>
<p>The domain <code>getcroc.com</code> can serve as a network indicator.</p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#tip</span> <span class="hashtag">#apt</span> <span class="hashtag">#detect</span> <span class="hashtag">#dfir</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>VMkatz: a hidden threat to virtual infrastructure 🫣</title>
		<link>https://ptesc.tech/en/vmkatz-a-hidden-threat-to-virtual-infrastructure/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Wed, 01 Jul 2026 14:58:43 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/vmkatz-a-hidden-threat-to-virtual-infrastructure/</guid>

					<description><![CDATA[In 2026, a tool called VMkatz was published. In terms of functionality, it resembles the widely known Mimikatz tool, but unlike it, VMkatz's goal is to extract credentials directly from virtual machine files (memory snapshots and virtual di…]]></description>
										<content:encoded><![CDATA[<p>In 2026, a tool called <a href="https://github.com/nikaiw/VMkatz" rel="noopener" target="_blank">VMkatz</a> was published. In terms of functionality, it resembles the widely known Mimikatz tool, but unlike it, VMkatz&#8217;s goal is to extract credentials directly from virtual machine files (memory snapshots and virtual disks) without the need to log into guest Windows systems. VMkatz can work with virtual machine files from various platforms, including VMware ESXi, Microsoft Hyper-V, VirtualBox, and QEMU/KVM.</p>
<p>For ESXi systems, the developer prepared a separate <a href="https://github.com/nikaiw/VMkatz/blob/main/tools/vmkatz_loader.py" rel="noopener" target="_blank">Python loader</a> designed to place VMkatz into memory without launching a binary file via <code>execve()</code>. Instead, the script opens the ELF binary as a set of bytes, parses its headers and loadable segments, allocates memory regions in the address space of the current process, copies the ELF contents there, and then transfers control to its entry point.</p>
<p>As a result, VMkatz does not run as a separate process but executes within an already existing Python process. This mechanism is used to bypass the restrictions of the <code>execInstalledOnly</code> parameter, which prohibits the execution of unsigned binary files. <em>Screenshot 1</em> shows an example of VMkatz running on ESXi, launched using the Python loader. A virtual machine memory snapshot was passed to the tool as input. As a result, VMkatz extracted the available credentials.</p>
<figure class="wp-block-image"><img width="1024" height="789" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_585@01-07-2026_14-58-43-1024x789.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_585@01-07-2026_14-58-43-1024x789.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_585@01-07-2026_14-58-43-300x231.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_585@01-07-2026_14-58-43-768x592.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_585@01-07-2026_14-58-43.jpg 1400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>In one of the investigations, the PT ESC IR team encountered a scenario in which attackers, having gained access to a VMware ESXi hypervisor, used a similar approach to extract credentials from virtual machines using the following commands:</p>
<pre><code class="language-python">python /tmp/vmkatz_loader.py /tmp/vmkatz --dump lsass /vmfs/volumes/DATA/VM-DC01/VM-DC01-Snapshot.vmsn
python /tmp/vmkatz_loader.py /tmp/vmkatz /vmfs/volumes/DATA/VM-DC01/VM-DC01-Snapshot.vmsn
python /tmp/vmkatz_loader.py /tmp/vmkatz /vmfs/volumes/DATA/VM-DC01/VM-DC01.vmdk</code></pre>
<p>A separate risk is posed by the utility&#8217;s function for extracting the Active Directory database <code>NTDS.dit</code> and the <code>SYSTEM</code> registry hive from domain controllers (<em>an example is shown in screenshot 2</em>). In such a case, compromise of the hypervisor can lead not only to the compromise of individual virtual machines but also to the compromise of the entire domain.</p>
<figure class="wp-block-image"><img width="1024" height="667" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_586@01-07-2026_14-58-43-1024x667.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_586@01-07-2026_14-58-43-1024x667.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_586@01-07-2026_14-58-43-300x195.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_586@01-07-2026_14-58-43-768x500.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_586@01-07-2026_14-58-43.jpg 1400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<h2>How to protect yourself?</h2>
<ul>
<li>Enable encryption of all virtual machine files.</li>
<li>Disable SSH access and do not use it as the primary method of administration. SSH should be enabled only temporarily, when necessary for diagnostics or troubleshooting. SSH keys should be used as the authentication method instead of passwords. It is also necessary to organize monitoring of login events on the hypervisor under privileged accounts.</li>
<li>Access to TCP port 22 must be restricted using firewalls or a dedicated administrative segment. Connections should be allowed only from jump hosts or trusted administrative IP addresses protected by multi-factor authentication.</li>
</ul>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</span> <span class="hashtag">#esxi</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>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>Rare persistence techniques. Part 4</title>
		<link>https://ptesc.tech/en/rare-persistence-techniques-part-4/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Tue, 09 Jun 2026 16:48:42 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%80%d0%b5%d0%b4%d0%ba%d0%b8%d0%b5-%d1%82%d0%b5%d1%85%d0%bd%d0%b8%d0%ba%d0%b8-%d0%b7%d0%b0%d0%ba%d1%80%d0%b5%d0%bf%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-4/</guid>

					<description><![CDATA[Rare persistence techniques. Part 4 Also read about: Zabbix Agent, TimeProvider, COM Hijacking, WMICLNT. 5️⃣ Systemd Generator A Systemd Generator is an executable file that systemd runs during system boot (or when daemon-reload is executed…]]></description>
										<content:encoded><![CDATA[<p><strong>Rare persistence techniques</strong>. Part 4</p>
<p><em>Also read about: </em><a href="https://t.me/ptescalator/734" rel="noopener" target="_blank">Zabbix Agent</a><em>, </em><a href="https://t.me/ptescalator/734" rel="noopener" target="_blank">TimeProvider</a><em>, </em><a href="https://t.me/ptescalator/735" rel="noopener" target="_blank">COM Hijacking</a><em>, </em><a href="https://t.me/ptescalator/737" rel="noopener" target="_blank">WMICLNT</a><em>. </em></p>
<p>5️⃣<strong> Systemd Generator</strong></p>
<p>A Systemd Generator is an executable file that systemd runs during system boot (or when daemon-reload is executed) to dynamically create unit files for services, targets, and mount points. Attackers use this mechanism for stealthy persistence, since generators run with root privileges before the main services start and are rarely checked by administrators.</p>
<p><strong>Key directories:</strong></p>
<p>• <code>/etc/systemd/system-generators/*</code><br />
• <code>/usr/local/lib/systemd/system-generators/*</code><br />
• <code>/lib/systemd/system-generators/*</code> (or <code>/usr/lib/systemd/system-generators/</code>)</p>
<p>😐 <strong>Persistence mechanism:</strong></p>
<p>1. The attacker places an executable file in one of the key directories — a script or binary file (usually with a disguised name, for example <code>systemd-cp-generator</code>).</p>
<p>2. On every system boot or when <code>systemctl daemon-reload</code> is executed — <code>systemd</code> runs all discovered generators.</p>
<p>3. The generator can: create its own service in <code>/run/systemd/system/</code> and enable it, overwrite units of existing services (especially via <code>/run/systemd/generator.early/</code>, where the priority is higher than that of <code>/etc/systemd/system/</code>), disable critical security tools, execute a payload directly.</p>
<p>😮 <strong>Recommendations:</strong></p>
<p>Since generators run before monitoring systems, the primary method is monitoring the file system for the creation and modification of files in the generator directories.</p>
<p>1. File system monitoring — first of all, track the creation and modification of files in the listed directories. Use <code>auditd</code>, since it works at the kernel level and can trigger even during early boot.</p>
<p>2. Integrity control — periodically compare the hash sums of files in the generator directories against reference values.</p>
<p>3. Restricting permissions — prohibit regular users and unprivileged processes from writing to these directories.</p>
<p>4. Generator analysis — check for non-standard or recently appeared generators, especially if they are not from legitimate packages (openvpn, <code>systemd-rc-local-generator</code>, etc.).</p>
<p>That&#8217;s it for this series of posts — that&#8217;s all for now 😉</p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</span> <span class="hashtag">#tips</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Rare fixation techniques. Part 3</title>
		<link>https://ptesc.tech/en/rare-persistence-techniques-part-3/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Mon, 08 Jun 2026 15:25:04 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%80%d0%b5%d0%b4%d0%ba%d0%b8%d0%b5-%d1%82%d0%b5%d1%85%d0%bd%d0%b8%d0%ba%d0%b8-%d0%b7%d0%b0%d0%ba%d1%80%d0%b5%d0%bf%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-3/</guid>

					<description><![CDATA[Rare persistence techniques. Part 3 Also read about: Zabbix Agent, TimeProvider, COM Hijacking. 4️⃣ WMICLNT This persistence technique is based on hijacking a DLL loaded by the legitimate Windows Management Instrumentation (WMI) service, an…]]></description>
										<content:encoded><![CDATA[<p><strong>Rare persistence techniques</strong>. Part 3</p>
<p><em>Also read about: </em><a href="https://t.me/ptescalator/734" rel="noopener" target="_blank">Zabbix Agent</a><em>, </em><a href="https://t.me/ptescalator/734" rel="noopener" target="_blank">TimeProvider</a><em>, </em><a href="https://t.me/ptescalator/735" rel="noopener" target="_blank">COM Hijacking</a><em>.</em></p>
<p>4️⃣ <strong>WMICLNT</strong></p>
<p>This persistence technique is based on hijacking a DLL loaded by the legitimate Windows Management Instrumentation (WMI) service, and in MITRE ATT&amp;CK it is classified as <a href="https://mitre.ptsecurity.com/ru-RU/T1546.008" rel="noopener" target="_blank">T1546.008</a> (Event Triggered Execution: Accessibility Features) or as a special case of DLL Hijacking.</p>
<p>Attackers exploit a quirk of how the WMIC console (<code>wmic.exe</code>) starts up, which is a standard system administration tool. When WMIC launches, it attempts to load the <code>wmiclnt.dll</code> library, but this library may be absent from a standard Windows installation.</p>
<p>The stock <code>wmic.exe</code> works without it as well — functionality may be limited, but the mere fact of the load attempt allows an attacker to place their malicious library in the DLL search path.</p>
<p>The attacker places the malicious <code>wmiclnt.dll</code> in <code>C:\Windows\System32\wbem</code>. Any trigger convenient for the attacker can be used for activation — whether a specific scheduled task or a restart of the system service.</p>
<p>In the first case, a Scheduled Task is created that periodically invokes the legitimate utility (for example, <code>wmic os get name</code>), which leads to the DLL being loaded and malicious code executing in DllMain.</p>
<p>In the second case, a cyclic restart of the WMI service is used with the commands <code>net stop winmgmt /y</code> and <code>net start winmgmt</code>, which also triggers a call to the substituted library and ensures persistence.</p>
<p>⬇️ For successful loading and stealthy operation, the malicious<code> wmiclnt.dll</code> must satisfy the following conditions:</p>
<p>• Export functions: the malicious DLL must implement and export all the same functions that<code> wmic.exe</code> attempts to import (<em>screenshot 3</em>), so that the process does not crash with an error.</p>
<p>• Most often, the malicious logic executes directly in DllMain (the <code>DLL_PROCESS_ATTACH</code> function), as this guarantees code execution immediately after the library is loaded without the need to call specific exported procedures.</p>
<p>• Proxying: for maximum disguise, the malicious DLL can act as a &#8220;proxy,&#8221; forwarding calls to the real system API so that wmic.exe runs normally and does not raise suspicion.</p>
<p>👀 <strong>Indicators of compromise:</strong></p>
<p>• The appearance of the <code>wmiclnt.dll</code> file in the <code>C:\Windows\System32\wbem</code>\ directory (in a clean system this file is absent, although it may have existed on older versions; in modern Windows 10/11 and Server 20xx the file is located in the <code>C:\Windows\System32</code>\ directory).</p>
<p>• Non-standard child processes of wmic.exe (for example, if <code>powershell.exe</code> or <code>rundll32.exe</code> with network interaction suddenly launches from under WMIC).</p>
<p>• Another indicator of compromise may be the <strong>Event ID 11</strong> event (Image Load), where the <code>&quot;SignatureLevel&quot;: 1</code> field indicates an <code>unsigned</code>/<code>untrusted</code> image.</p>
<pre><code>{&quot;Event&quot;…&quot;EventID&quot;:11,&quot;Version&quot;:0,&quot;Level&quot;:0,&quot;Task&quot;:6,&quot;Opcode&quot;:0,&quot;Keywords&quot;:&quot;0x8000000000000000&quot;,&quot;TimeCreated&quot;:{&quot;#att  
ributes&quot;:{&quot;SystemTime&quot;:&quot;2026-02-27T10:26:15.414597Z&quot;}},…,&quot;Channel&quot;:&quot;Microsoft-Windows-SecurityMitigations/KernelMode&quot;,&quot;Computer&quot;:“REDACTED&quot;,&quot;Security&quot;:{&quot;#attributes&quot;:{&quot;UserID&quot;:&quot;S-1-5-  
18&quot;}}},&quot;EventData&quot;:{&quot;ProcessPathLength&quot;:52,&quot;ProcessPath&quot;:&quot;\\Device\\HarddiskVolume4\\Windows\\System32\\svchost.exe  
&quot;,&quot;ProcessCommandLineLength&quot;:56,&quot;ProcessCommandLine&quot;:&quot;C:\\Windows\\system32\\svchost.exe -k netsvcs -p -s  
Winmgmt&quot;,&quot;ProcessId&quot;:37383,&quot;ProcessCreateTime&quot;:&quot;2026-02-  
27T10:26:15.254827Z&quot;,&quot;ProcessStartKey&quot;:19140298416383003,&quot;ProcessSignatureLevel&quot;:0,&quot;ProcessSectionSignatureLevel&quot;:0,  
&quot;ProcessProtection&quot;:0,&quot;TargetThreadId&quot;:29700,&quot;TargetThreadCreateTime&quot;:&quot;2026-02-  
25T08:24:13.276875Z&quot;,&quot;RequiredSignatureLevel&quot;:8,&quot;SignatureLevel&quot;:1,&quot;ImageNameLength&quot;:34,&quot;ImageName&quot;:&quot;\\Windows\  
\System32\\wbem\\wmiclnt.dll&quot;}}}</code></pre>
<p>To be continued in the next post 🔽</p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</span> <span class="hashtag">#tips</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Rare fixation techniques. Part 2</title>
		<link>https://ptesc.tech/en/rare-persistence-techniques-part-2/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Fri, 05 Jun 2026 14:25:03 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%80%d0%b5%d0%b4%d0%ba%d0%b8%d0%b5-%d1%82%d0%b5%d1%85%d0%bd%d0%b8%d0%ba%d0%b8-%d0%b7%d0%b0%d0%ba%d1%80%d0%b5%d0%bf%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-2/</guid>

					<description><![CDATA[Rare persistence techniques. Part 2 Also read about: Zabbix Agent, TimeProvider. 3️⃣ COM Hijacking For persistence in the infrastructure, the attackers used a rare technique — Component Object Model Hijacking. The essence of the method is n…]]></description>
										<content:encoded><![CDATA[<p><strong>Rare persistence techniques</strong>. Part 2</p>
<p><em>Also read about: </em><a href="https://t.me/ptescalator/734" rel="noopener" target="_blank">Zabbix Agent</a><em>, </em><a href="https://t.me/ptescalator/734" rel="noopener" target="_blank">TimeProvider</a><em>.</em></p>
<p><strong>3️⃣ COM Hijacking</strong></p>
<p>For persistence in the infrastructure, the attackers used a rare technique — Component Object Model Hijacking.</p>
<p>The essence of the method is not in directly replacing the DLL of a system service (which is easily detected), but in manipulating the Component Object Model registry structure. The attackers create their own COM object pointing to a malicious library and redirect calls from trusted system components to it through a legitimate compatibility mechanism.</p>
<p>The key element of the attack is the <code>TreatAs</code> registry key, originally intended for transparently redirecting requests from one COM object to another. The attackers find a system <code>CLSID</code> that is accessed regularly and inconspicuously, and substitute its handling with their own object.</p>
<p>Of particular interest is the Network List Manager COM object with the identifier <code>{DCB00C01-570F-4A9B-8D69-199FDBA5723B}</code>, which is responsible for managing network profiles (<code>netprofm</code>). It is accessed every time the network connection changes, network diagnostics are launched, and the operating system starts.</p>
<p>The attackers modify the branch:<br />
<code>HKLM\Software\Classes\CLSID{DCB00C01-570F-4A9B-8D69-199FDBA5723B}\TreatAs,</code></p>
<p>by writing the CLSID of their malicious COM object into the default value. As a result, when working with network profiles, the system automatically redirects the call and loads the malicious DLL located at <code>%systemroot%\system32\netprofmaaa.dl</code>l (the name mimics the original <code>netprofm.dll</code>).</p>
<p>❗️ <strong>DLL requirements:</strong> the library must be a fully functional COM server implementing all interfaces expected of the substituted Network List Manager object, and must correctly export the standard functions (<em>screenshot 2</em>): <code>DllGetClassObject()</code>, <code>DllCanUnloadNow()</code>, <code>DllRegisterServer()</code> and <code>DllUnregisterServer()</code>.</p>
<p>When <code>DllGetClassObject()</code> is called, it must return a class factory capable of creating instances of the object with the expected interfaces (including <code>INetworkListManager</code>). This is necessary for the crash-free operation of the calling processes and for maintaining stealth — otherwise, applications that access the network manager will crash and unmask the presence of the malicious code.</p>
<p><em>To be continued in the next posts 🙂</em></p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</span> <span class="hashtag">#tips</span> <br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Rare retention techniques</title>
		<link>https://ptesc.tech/en/rare-persistence-techniques-part-1/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Thu, 04 Jun 2026 15:33:33 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%80%d0%b5%d0%b4%d0%ba%d0%b8%d0%b5-%d1%82%d0%b5%d1%85%d0%bd%d0%b8%d0%ba%d0%b8-%d0%b7%d0%b0%d0%ba%d1%80%d0%b5%d0%bf%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f/</guid>

					<description><![CDATA[Rare persistence techniques In the first six months of 2026, the PT ESC IR team recorded a number of rare persistence techniques on compromised hosts, which we will discuss in upcoming posts. 1️⃣ Zabbix Agent Zabbix Agent is a lightweight s…]]></description>
										<content:encoded><![CDATA[<p><strong>Rare persistence techniques</strong></p>
<p>In the first six months of 2026, the PT ESC IR team recorded a number of rare persistence techniques on compromised hosts, which we will discuss in upcoming posts.</p>
<p><strong>1️⃣ Zabbix Agent</strong></p>
<p>Zabbix Agent is a lightweight service that collects metrics from a host and transmits them to a server, routinely used by administrators. </p>
<p>The essence of the attackers&#8217; persistence technique (for example, the PhantomCore group) boils down to turning the legitimate agent into a hidden backdoor. They deliver their own installer (<code>zabbix.msi</code>) to the host and replace the server address in the configuration file with a C2 under their control.</p>
<p><strong>Key configuration fields for the attack:</strong></p>
<p>• <code>Server=</code> and <code>ServerActive=</code> specify the IP or domain of the C2 server for passive and active checks;</p>
<p>• <code>Hostname=</code> serves as the victim&#8217;s unique identifier in the C2 panel;</p>
<p>• <code>ListenPort=</code> reassigns the port (default <code>10050</code>) to avoid a conflict with the native agent;</p>
<p>• <code>UserParameter=</code> is the key element, allowing arbitrary OS commands to be registered as Zabbix metrics;</p>
<p>• <code>AllowKey=system.run[*]</code> permits direct command execution.</p>
<p>The control channel operates over the native Zabbix protocol (JSON over TCP/TLS), masking malicious traffic as legitimate monitoring and allowing agents in active mode to &#8220;call back&#8221; to the C2 on their own. During post-exploitation, the attacker, through the graphical interface of the Zabbix server, centrally gains access to files and processes and the ability to silently deliver and launch additional scripts on the compromised host.</p>
<p><strong>Main indicators of compromise: </strong>sudden outbound connections with non-standard monitoring ports (<code>10050</code>/<code>10051</code>) to external IP addresses and the presence of shell invocations (<code>cmd</code>, <code>sh</code>, <code>powershell</code>) in the agent&#8217;s configuration file.</p>
<p>2️⃣ <strong>TimeProvider</strong></p>
<p>The attackers used a rare persistence technique via the <code>TimeProvider</code> mechanism (Windows time provider), corresponding to the <a href="https://mitre.ptsecurity.com/ru-RU/T1543.003" rel="noopener" target="_blank">MITRE ATT&amp;CK T1543.003</a> tactic.</p>
<p>The essence of the method is that the Windows Time service (<code>W32Time</code>) automatically loads all libraries registered in the registry key on every system startup: <code>HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders</code></p>
<p>The attackers created their own provider in this key: in the <code>DllName</code> parameter they specified the path to a malicious <code>DLL</code>, and set the <code>Enabled</code> parameter to <code>1</code>. After the OS reboots, the W32Time service loads the specified library in the context of the <code>svchost.exe</code> process with <code>Local System</code> privileges, which ensures stealthy and reliable persistence in the system.</p>
<p><strong>Requirements for the DLL:</strong> to load successfully, it must export the <code>TimeProvOpen()</code> function (<em>screenshot 1</em>), which <code>W32Time</code> calls when initializing the provider. This function serves as the entry point and is usually used by attackers to launch the main payload.</p>
<p>To be continued tomorrow (in the following posts) 🔽</p>
<p><span class="hashtag">#ir</span> <span class="hashtag">#tips</span> <span class="hashtag">#dfir</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The diamond is barely visible</title>
		<link>https://ptesc.tech/en/the-diamond-is-barely-visible/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Fri, 29 May 2026 11:03:33 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b1%d1%80%d0%b8%d0%bb%d0%bb%d0%b8%d0%b0%d0%bd%d1%82-%d0%bf%d0%be%d1%87%d1%82%d0%b8-%d0%bd%d0%b5-%d0%b2%d0%b8%d0%b4%d0%b5%d0%bd/</guid>

					<description><![CDATA[The diamond is barely visible 💎 During the analysis of PT ESC IR dumps, we periodically encounter new malware families that are not detected by known indicators and YARA signatures and that mimic legitimate or system files well. When a cert…]]></description>
										<content:encoded><![CDATA[<p><strong>The diamond is barely visible</strong> 💎</p>
<p>During the analysis of PT ESC IR dumps, we periodically encounter new malware families that are not detected by known indicators and YARA signatures and that mimic legitimate or system files well.</p>
<p>When a certain number of machine dumps with similar OSes containing file scan results are available, &#8220;fuzzy&#8221; hashes can be used for searching; their application is traditionally limited to the task of finding files relatively similar to previously identified malware samples.</p>
<p>🧐 The first screenshot shows the distribution of executable files of a nix-like system taking into account file sizes (the scale is &#8220;inverse-logarithmic&#8221;: large system files are located closer to the center, small ones on the periphery). To group files taking into account their size and content similarity (it must be kept in mind that these variables are not always independent — for example, when using the TLSH algorithm), it is necessary to perform a &#8220;clustering&#8221; procedure taking into account the matrix of &#8220;cross distances&#8221; between all (<code>N</code>) files of the system, which will have size (<code>N^2</code>).</p>
<p>Obviously, to reduce the size of this matrix, it is possible to introduce a partition of the file size range of one or several jointly analyzed systems — the entire size range can be represented as a set of non-overlapping intervals <code>[x-ax;x+ax]</code>, where <code>a&lt;1</code>, and <code>x</code> is the central point of the interval. Experience shows that such a division, as a rule, makes it possible to obtain fewer than a hundred size &#8220;bands&#8221; with a value of <code>a=0.1</code>. In further analysis within individual &#8220;bands,&#8221; the number of samples will be substantially smaller than the original total number.</p>
<p>The analysis of the &#8220;anomalousness&#8221; of samples within a separate &#8220;band&#8221; can be performed taking into account various factors — the average distance to the remaining samples, the number of samples similar to the given one within a specified threshold value, etc., except in cases where a very small number of files (for example, fewer than 10) falls within the &#8220;band&#8221; — in that case, all of them can be considered &#8220;conditionally anomalous.&#8221;</p>
<p>The final stage of such an analysis is the identification, within the &#8220;anomalous&#8221; groups of files obtained for each of the analyzed systems, of those that satisfy the following criteria:</p>
<p>1️⃣ have a small number of similar samples or a high average distance to the remaining samples (for formalization, one can set the upper half of the dynamic range);</p>
<p>2️⃣ do not have, within a single system, files with an identical name but a different path (which makes it possible to filter system files of nix-like systems);</p>
<p>3️⃣ have a small number of files with a similar path/name on the jointly analyzed systems (or have no analogues at all — that is, they are not mandatory for the functioning of the system).</p>
<p>👀<strong> The result of such an analysis is the picture shown in the second screenshot:</strong> file sizes are again on an &#8220;inverse-logarithmic&#8221; scale, the &#8220;maximally different&#8221; files within a &#8220;size band&#8221; tend toward the angular coordinate of π radians, while the minimally different ones tend toward 0. The &#8220;conditionally anomalous,&#8221; i.e., practically unique in size, files have an angular coordinate of 3π/2. </p>
<p>The total number of identified &#8220;anomalies&#8221; ranges, for different systems, from 0.7% to 8% of the original number of analyzed executable files, which makes it possible in a number of cases to conduct further analysis simply &#8220;by eye&#8221; — out of the original thousands of files, about fifty remain.</p>
<p>The very first &#8220;substantially different&#8221; file in this case is indeed malware, and moreover, for an ensemble of 12 analyzed systems, a similar sample is confidently detected on one more machine, while further searching at a &#8220;TLSH distance&#8221; of no more than 70 units makes it possible to identify 5 more samples on different machines of the ensemble with identical paths — all of them belong to the same family and implement malware persistence through the use of <code>system-generators</code>.</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2026/05/photo_563@29-05-2026_11-03-33-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/05/photo_563@29-05-2026_11-03-33-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/05/photo_563@29-05-2026_11-03-33-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/05/photo_563@29-05-2026_11-03-33-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2026/05/photo_563@29-05-2026_11-03-33-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/05/photo_563@29-05-2026_11-03-33.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#tip</span> <span class="hashtag">#ir</span> <span class="hashtag">#malware</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
