<?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>patchwork &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/patchwork/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Wed, 30 Sep 2026 19:19:29 +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>patchwork &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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>
