<?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>suricata &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/suricata/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>suricata &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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>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>Major malware rules update</title>
		<link>https://ptesc.tech/en/large-malware-rules-update/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 19 Nov 2024 18:58:00 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[suricata]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%be%d0%b5-%d0%bc%d0%b0%d0%bb%d0%b2%d0%b0%d1%80%d0%bd%d0%be%d0%b5-%d0%be%d0%b1%d0%bd%d0%be%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb/</guid>

					<description><![CDATA[🔄 Major malware rules update Suricata I hope you remember that we have a public Suricata rules repository (we wrote about launching the resource in another post) and configured suricata-update to support the official rules source ptrules/op…]]></description>
										<content:encoded><![CDATA[<p>🔄 <strong>Major malware rules update</strong> <strong>Suricata</strong></p>
<p>I hope you remember that we have a public Suricata rules repository (we wrote about launching the resource <a href="https://t.me/ptescalator/128" rel="noopener" target="_blank">in another post</a>) and configured <code>suricata-update</code> to support the official rules source <code>ptrules/open</code>?</p>
<p>If anything, here&#8217;s a <a href="https://rules.ptsecurity.com/" rel="noopener" target="_blank">link to the repository</a>.</p>
<p>We don&#8217;t live on vulnerabilities and hacktools alone 🙂 </p>
<p>We, the network expertise team of the PT ESC antivirus laboratory, have done a lot of work to update the rules aimed at detecting malicious software activity, and now — we&#8217;re sharing part of our expertise for public use.</p>
<p><strong>Highlights:</strong></p>
<p>— the <strong>RustyNet</strong> loader, the <strong>WorldWind</strong> stealer, the <strong>Slam</strong> RAT, which we wrote about earlier (<a href="https://t.me/ptescalator/34" rel="noopener" target="_blank">in this post</a>, <a href="https://t.me/ptescalator/160" rel="noopener" target="_blank">this one</a>, and <a href="https://t.me/ptescalator/119" rel="noopener" target="_blank">this one</a>); <br />
— Android malware: <strong>SpyNote</strong>, <strong>Hydra</strong>, <strong>Zanubis</strong>;<br />
— the dreadful <strong>XWorm</strong> RAT and many other interesting samples.</p>
<p>You can find all the rules <a href="https://rules.ptsecurity.com/files/ptopen-malware#rules" rel="noopener" target="_blank">on our website</a>. </p>
<p><strong>Malware won&#8217;t get through, happy hunting!</strong></p>
<p><span class="hashtag">#suricata</span> <span class="hashtag">#network</span> <span class="hashtag">#signature</span> <span class="hashtag">#rules</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>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>Have you heard about the public repository of Suricata rules Attack Detection?</title>
		<link>https://ptesc.tech/en/have-you-heard-about-the-public-repository-of-suricata-rules-attack-detection/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Thu, 17 Oct 2024 15:31:54 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[suricata]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d1%81%d0%bb%d1%8b%d1%88%d0%b0%d0%bb%d0%b8-%d0%bb%d0%b8-%d0%b2%d1%8b-%d0%bf%d1%80%d0%be-%d0%bf%d1%83%d0%b1%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d1%80%d0%b5%d0%bf%d0%be%d0%b7%d0%b8%d1%82%d0%be%d1%80/</guid>

					<description><![CDATA[Have you heard about the public repository of Suricata rules Attack Detection? Yes, that's meeee Within the large PT Expert Security Center team, there is a separate group of experts whose main task is to develop detection rules for network…]]></description>
										<content:encoded><![CDATA[<p><strong>Have you heard about the public repository of Suricata rules Attack Detection?</strong></p>
<p><s>Yes, that&#8217;s meeee</s> Within the large PT Expert Security Center team, there is a separate group of experts whose main task is to develop detection rules for network security tools. You are probably already familiar with some <a href="https://t.me/ptescalator/26" rel="noopener" target="_blank">posts</a> about network artifacts from this team.</p>
<p>After a two-year break, we are returning to you with an <a href="http://rules.ptsecurity.com/?utm_source=tg_esc&#038;utm_medium=post&#038;utm_campaign=rules&#038;utm_content=17_10" rel="noopener" target="_blank">updated portal</a> and once again starting to publish parts of our expertise in the form of Suricata rules 🔥</p>
<p><strong>What&#8217;s new:</strong></p>
<p>1. <a href="https://rules.ptsecurity.com/files/ptopen-attacks#rules" rel="noopener" target="_blank">Rules</a> for the latest vulnerabilities.<br />
2. <a href="https://rules.ptsecurity.com/files/ptopen-tools#rules" rel="noopener" target="_blank">Rules</a> for detecting the tools Croc and gsocket, which are extremely popular in narrow circles.<br />
3. And also several <a href="https://rules.ptsecurity.com/files/ptopen-windows#rules" rel="noopener" target="_blank">rules</a> for detecting lateral movement in an Active Directory network. </p>
<p>Configure suricata-update to support the official ptrules/open rule source and keep an eye on updates <a href="http://x.com/attackdetection" rel="noopener" target="_blank">on our X page</a>.</p>
<p>👋🏼 Stay tuned</p>
<p><span class="hashtag">#suricata</span> <span class="hashtag">#network</span> <span class="hashtag">#signature</span> <span class="hashtag">#rules</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>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>
		<item>
		<title>Ad-hoc network research, or How to find new, previously undiscovered activity of a known group in 15 minutes</title>
		<link>https://ptesc.tech/en/network-research-on-a-shoestring-or-how-to-find-new-previously-undiscovered-activity-of-a-known-group-in-15-minutes/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 19 Jul 2024 11:08:48 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[patchwork]]></category>
		<category><![CDATA[suricata]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d0%b5%d1%82%d0%b5%d0%b2%d0%be%d0%b9-%d1%80%d0%b5%d1%81%d0%b5%d1%80%d1%87-%d0%bd%d0%b0-%d0%ba%d0%be%d0%bb%d0%b5%d0%bd%d0%ba%d0%b5-%d0%b8%d0%bb%d0%b8-%d0%ba%d0%b0%d0%ba-%d0%bd%d0%b0%d0%b9%d1%82/</guid>

					<description><![CDATA[🔎 Quick-and-dirty network research, or How to find a new, previously undiscovered activity of a known group in 15 minutes While analyzing external expertise on one of the resources that mainly publish materials about threats to Chinese infr…]]></description>
										<content:encoded><![CDATA[<p>🔎 <strong>Quick-and-dirty network research, or How to find a new, previously undiscovered activity of a known group in 15 minutes</strong></p>
<p>While analyzing external expertise on one of the resources that mainly publish materials about threats to Chinese infrastructure, we came across an interesting but rather terse <a href="https://www.ctfiot.com/193014.html" rel="noopener" target="_blank">article about the RustyNet loader</a> of the APT group Patchwork. </p>
<p>The article provided an example of a malware sample with a brief description of network activity and accompanying screenshots of code from the IDE. Based on the contents of the network requests (the hash sums of the samples, as luck would have it, were not specified), we found examples of traffic from the C2 server yw56[.]info (<em>first screenshot)</em>. The backdoor sends system data to the C2 server, encoding it with XOR and Base64. However, it was also interesting to look through the links provided in the aforementioned research&#8230; and that&#8217;s how we stumbled upon a new sample!</p>
<p><strong>But let&#8217;s take it one step at a time</strong> 🤔</p>
<p>Researching the indicators of compromise from the article in open sources allowed us to discover that at the URL</p>
<blockquote><p>weibo[.]nihaoucloud[.]org/akowutbuu753dtRWq21jk/odiworukdjo2375kjkl1lk87hl0</p></blockquote>
<p>some time ago a sample was dropped</p>
<blockquote><p>6afdf4a3088bff045e1998d2dc2863b90d06765abb2dc35c7b93c456b9818e55</p></blockquote>
<p>whose detections lit up like a Christmas tree on the resource we all know 🎄</p>
<p><strong>&#8220;What if this is that very hash not mentioned in the article?&#8221;</strong> — we thought, and shoved it into the available sandboxes: VirusTotal CAPE Sandbox and Triage. And, lo and behold, its traffic differed from what was presented in the article! Moreover, mentions of these network interactions were nowhere to be found, nor were any network signature triggers, and the backdoor communicated with the C2 server shrilongu[.]info with a creation date of 04/19/2024, which had also not been previously reported <em>(see the second screenshot for details)</em>.</p>
<p>🥳 <strong>Bingo!</strong> A single URL allowed us to attribute the sample and assign it to the APT group Patchwork (the similarity of the HTTP payload gave it away) and, of course, to write a detection rule:</p>

<pre class="wp-block-code"><span><code class="hljs language-plaintext">
alert http any any -&gt; any any (msg: "BACKDOOR &#91;PTsecurity] Unknown Backdoor (APT Patchwork)"; flow: established, to_server; pcre: "/^&#91;a-z]{10,40}$/V"; http.method; content: "POST"; http.header; content: "Content-Type: application/x-www-form-urlencoded"; content: "Cache-Control: no-cache"; http.request_body; content: "umnome="; depth: 7; fast_pattern; content: "&amp;pmjodf="; distance: 0; content: "&amp;idkdfjej="; distance: 0; content: "&amp;cokenme="; distance: 0; classtype: trojan-activity; sid: 1;)
</code></span></pre>

<p>This example shows that in reality, even after reading someone else&#8217;s research, you can conduct your own — and quite successfully at that. And reversing files is far from always necessary, at least not for a superficial quick analysis — in this case, the researcher can use available sandboxes with public expertise.</p>

<figure class="wp-block-image"><img width="1024" height="670" src="https://ptesc.tech/wp-content/uploads/2024/07/photo_22@19-07-2024_11-08-48-1024x670.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/07/photo_22@19-07-2024_11-08-48-1024x670.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/07/photo_22@19-07-2024_11-08-48-300x196.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/07/photo_22@19-07-2024_11-08-48-768x502.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/07/photo_22@19-07-2024_11-08-48.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

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