<?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>network &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2026 12:11:24 +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>network &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Dissecting network traffic with ML in search of new malware</title>
		<link>https://ptesc.tech/en/dissecting-network-traffic-with-ml-in-search-of-new-malware/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Thu, 05 Feb 2026 16:54:42 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[avlab]]></category>
		<category><![CDATA[ml]]></category>
		<category><![CDATA[network]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%bf%d1%80%d0%b5%d0%bf%d0%b0%d1%80%d0%b8%d1%80%d1%83%d0%b5%d0%bc-%d1%81%d0%b5%d1%82%d0%b5%d0%b2%d0%be%d0%b9-%d1%82%d1%80%d0%b0%d1%84%d0%b8%d0%ba-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-ml/</guid>

					<description><![CDATA[Dissecting network traffic with ML in search of new malware 📖 🧪 We — the network expertise department team of the ESC antivirus laboratory and the machine learning team — once built an ML model on network traffic, trained it on real network…]]></description>
										<content:encoded><![CDATA[<p><strong>Dissecting network traffic with ML in search of new malware</strong> 📖</p>
<p>🧪 We — the network expertise department team of the ESC antivirus laboratory and the machine learning team — once built an ML model on network traffic, trained it on real network sessions, and launched it in the PT Sandbox sandbox to enhance malware detection capabilities. But we decided not to rest on our laurels — we conducted a series of new experiments, expanded the set of input features, and tested the model on more complex scenarios.</p>
<p>👾 Thanks to the update, the model has already managed to catch several previously unknown samples: a new version of the Oyster backdoor, the APT GOFFEE loader, several stealers (for example, JustAskJacky), and a number of other small but suspicious loaders.</p>
<p>💡 This experience confirms that machine learning is an excellent assistant to traditional signature-based solutions: it sees hidden patterns and increases the overall detectability of malicious network scenarios.</p>
<p>We talked about all this and more <a href="https://habr.com/ru/companies/pt/articles/993058/" rel="noopener" target="_blank">in our article on Habr</a>.</p>
<p><span class="hashtag">#network</span> <span class="hashtag">#avlab</span> <span class="hashtag">#ml</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>New window in dark mode</title>
		<link>https://ptesc.tech/en/new-window-in-dark-mode/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Fri, 26 Dec 2025 14:26:59 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[avlab]]></category>
		<category><![CDATA[C2]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Phishing]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%bd%d0%be%d0%b2%d0%be%d0%b5-%d0%be%d0%ba%d0%bd%d0%be-%d0%b2-%d1%82%d0%b5%d0%bc%d0%bd%d0%be%d0%bc-%d1%80%d0%b5%d0%b6%d0%b8%d0%bc%d0%b5/</guid>

					<description><![CDATA[A New Window in Dark Mode 🫣 During the monitoring of new network threats in the network expertise department, suspicious traffic was noticed that was generated by the file INTIMACAO_2025_006647.exe. It was masquerading as a PDF, and transla…]]></description>
										<content:encoded><![CDATA[<p><strong>A New Window in Dark Mode</strong> 🫣</p>
<p>During the monitoring of new network threats in the network expertise department, suspicious traffic was noticed that was generated by the file <code>INTIMACAO_2025_006647.exe.</code> It was masquerading as a PDF, and translated from Portuguese it meant &#8220;Court Summons&#8221; (<em>screenshot 1</em>). </p>
<p>After execution on the host, a decoy document opened and network interaction with the Google API was initiated, and outwardly it resembled legitimate requests rather than typical C2 exchange. This story intrigued us, so we decided to dig deeper into the analysis of the sample and understand what exactly it does and what role the unexpected network requests to Google play in this scheme 🔍</p>
<p><strong>Let&#8217;s move straight to behavioral analysis</strong>. After execution, several PowerShell scripts were dropped into the <code>/Temp</code> directory: <code>Clean_policies</code>, <code>Get_token</code>, and <code>Apply_cbcm</code>. The purpose of the first was to prepare the infected machine — cleaning the registry of existing local policies and settings of various Chromium browsers, as well as restarting browser processes to promptly apply the changes made (<em>screenshot 2</em>). After that, <code>Get_token.ps1</code> contacted a remote server and pulled a certain token from there (<em>screenshot 3</em>). Finally, the third script, <code>Apply_cbcm</code> (<em>screenshot 4</em>), wrote the obtained token into Chrome policies at the system registry level.</p>
<p>🙆 <strong>After a closer look at the parameter names, everything became quite clear:</strong> the malware set <code>CloudManagementEnrollmentToken</code> and enabled <code>CloudPolicyOverridesPlatformPolicy</code>, that is, it explicitly switched the browser to prioritize cloud policies. Such a set of names practically stated outright the use of <strong>Chrome Browser Cloud Management</strong> (judging by the <a href="https://cloud.google.com/blog/products/chrome-enterprise/4-more-reasons-use-chromes-cloud-based-management" rel="noopener" target="_blank">Google Cloud blog</a>, this mechanism was supposed to fight evil, not join it) and that the main goal here was to bind the browser to a remote management console created by the attackers.</p>
<p>It was precisely the consequences of these scripts&#8217; work that we first saw in the network dump (<em>screenshot 5</em>). First, a regular GET request to the C2 <code>servidorunico.com</code> returned that very enrollment token. Then, after the value was written into the registry, the browser automatically raised the next stage of the chain — it itself initiated registration in Google&#8217;s infrastructure and sent a POST to the API endpoint with the parameter <code>request=register_browser</code>. The key marker in this request was in the Authorization header, where the token was passed as <code>GoogleEnrollmentToken</code>, and it was this that turned the outwardly legitimate traffic to Google into an indicator of the browser being bound to remote cloud management.</p>
<p>🌐 This tactic gives the attacker a persistent lever of control over the browser. As soon as the user &#8220;takes the bait,&#8221; the attacker gains the ability to centrally deploy malicious policies and extensions or configure a proxy to intercept traffic. The most unpleasant part is that some of the activity looks like legitimate administration, so without context such a compromise is quite easy to miss.</p>
<p><strong>Stay tuned and happy hunting!</strong></p>
<p>IoCs:</p>
<pre><code>SHA256: 4442e1b545f0a571af113b0cc7455ecba1a603c81bbf84a52b9e61d332f97233
C2: servidorunico.com</code></pre>
<figure class="wp-block-image"><img width="832" height="885" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_465@26-12-2025_14-26-59.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_465@26-12-2025_14-26-59.jpg 832w, https://ptesc.tech/wp-content/uploads/2025/12/photo_465@26-12-2025_14-26-59-282x300.jpg 282w, https://ptesc.tech/wp-content/uploads/2025/12/photo_465@26-12-2025_14-26-59-768x817.jpg 768w" sizes="auto, (max-width: 832px) 100vw, 832px" /></figure>
<figure class="wp-block-image"><img width="1024" height="501" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_466@26-12-2025_14-26-59-1024x501.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_466@26-12-2025_14-26-59-1024x501.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/12/photo_466@26-12-2025_14-26-59-300x147.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/12/photo_466@26-12-2025_14-26-59-768x376.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_466@26-12-2025_14-26-59.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="516" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_467@26-12-2025_14-26-59-1024x516.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_467@26-12-2025_14-26-59-1024x516.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/12/photo_467@26-12-2025_14-26-59-300x151.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/12/photo_467@26-12-2025_14-26-59-768x387.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_467@26-12-2025_14-26-59.jpg 1274w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="444" src="https://ptesc.tech/wp-content/uploads/2025/12/photo_468@26-12-2025_14-26-59-1024x444.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/12/photo_468@26-12-2025_14-26-59-1024x444.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/12/photo_468@26-12-2025_14-26-59-300x130.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/12/photo_468@26-12-2025_14-26-59-768x333.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/12/photo_468@26-12-2025_14-26-59.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#network</span> <span class="hashtag">#C2</span> <span class="hashtag">#phishing</span> <span class="hashtag">#AVLab</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>🦈Looking &quot;under the hood&quot; of secure connections in Wireshark. Part 2: Windows protocols</title>
		<link>https://ptesc.tech/en/looking-under-the-hood-of-secure-connections-in-wireshark-part-2-windows-protocols/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Tue, 14 Oct 2025 13:26:28 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://localhost:8080/%f0%9f%a6%88/</guid>

					<description><![CDATA[In the first part, we examined the decryption of TLS connections, which are often used on the internet. But if we move inside a corporate environment, other protocols will prevail there — SMB, LDAP, and DCERPC — and all of them have the abi…]]></description>
										<content:encoded><![CDATA[<p><br />In the first part, we <a href="https://t.me/ptescalator/508" target="_blank" rel="noopener">examined</a> the decryption of TLS connections, which are often used on the internet. But if we move inside a corporate environment, other protocols will prevail there — SMB, LDAP, and DCERPC — and all of them have the ability to encrypt the contents of their requests.</p>
<p>For example, this feature appeared in SMB version 3, most DCERPC connections use the Packet Privacy authentication level, and LDAP protocol messages are encrypted when signing is enabled (LDAP Signing).</p>
<p>They have something in common: the Session Key encryption key is ultimately generated based on the user account password or the device account key. However, the decryption algorithm itself differs greatly depending on the protocol (NTLM or Kerberos).</p>
<p><strong>1️⃣ NTLM authentication<br /></strong><br />The simplest case: to decrypt, we only need the user&#8217;s password. To specify it in Wireshark, you need to open Edit → Preferences, then in the NTLMSSP protocol settings enter the password in the NT Password field. Now decrypted blocks will appear next to the encrypted ones (<em>screenshot 1</em>).</p>
<p><strong>2️⃣ Kerberos<br /></strong><br />To decrypt sessions with Kerberos authentication, you need either the user account password or the service account password, since both of these passwords are involved in forming the session key. Essentially, we first need to decrypt the session key value inside Kerberos, and then use it to decrypt SMB or other protocols. First, we need to generate a keytab file.</p>
<p><strong>Generating a keytab file from a user password</strong></p>
<p>From the Kerberos AS-REP response, we find out the encryption algorithm and the salt value using the formula <code>&lt;REALM&gt;</code> + <code>&lt;cname&gt;</code>. In our case, they will be <code>aes256-cts-hmac-sha1-96</code> and <code>ATTDETT.STFo_walsh</code> respectively, and it&#8217;s important to pay attention to the case (<em>scr. 2</em>).</p>
<p>Using the Linux utility <code>kutils</code>, we add an entry for the desired user using the <code>addent</code> command with the <code>-password</code> parameter. We specify the parameters as in the command below, and the -k parameter (Key Version Number, kvno) can be any number. We save the keytab using the <code>wkt</code> command (<em>scr. 3</em>).</p>

<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml"><span class="hljs-attr">ktutil:</span> <span class="hljs-string">addent</span> <span class="hljs-string">-password</span> <span class="hljs-string">-p</span> <span class="hljs-string">o_walsh@ATTDETT.STF</span> <span class="hljs-string">-k</span> <span class="hljs-number">2</span> <span class="hljs-string">-e</span> <span class="hljs-string">aes256-cts-hmac-sha1-96</span>
</code></span></pre>

<p><strong>Generating a keytab file from a service account key</strong></p>
<p>The session key in the TGS ticket can also be decrypted using the service account key. This is useful if we want to decrypt connections to a service for any users. Service account passwords, as a rule, match the device account password — it is very complex and is generated automatically every 30 days.</p>
<p>From the TGS response, we likewise extract the encryption algorithm and, using the same <code>kutils</code> utility, add an entry. The only difference is that instead of a password, we use the <code>-key</code> parameter with the service account key, which can be obtained, for example, using the secretsdump script from the Impacket framework. The -p (principal) parameter is unimportant for Wireshark; we can specify any values for -p and -k (<em>scr. 4</em>).</p>

<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml"><span class="hljs-attr">ktutil:</span> <span class="hljs-string">addent</span> <span class="hljs-string">-key</span> <span class="hljs-string">-p</span> <span class="hljs-string">something@RANDOM.RND</span> <span class="hljs-string">-k</span> <span class="hljs-number">666</span> <span class="hljs-string">-e</span> <span class="hljs-string">aes256-cts-hmac-sha1-96</span>
</code></span></pre>

<p><strong>How to use the resulting keytab file?</strong></p>
<p>In Wireshark, enable the Try to decrypt Kerberos blobs option:</p>
<p>Edit → Preferences → Protocols → KRB5 → Try to decrypt Kerberos blobs</p>
<p>To specify the keytab file in Wireshark, you need to open Edit → Preferences, then in the KRB5 protocol settings select the Kerberos keytab file. Some fields will be displayed undecrypted — this is normal. Then we proceed to decrypt SMB3.</p>
<p><strong>SMB3</strong></p>
<p>We will need that very session key. It can be found in the keyvalue field in TGS-REP or AP-REQ packets. Then we take one of the SMB3 packets we&#8217;re interested in and copy the Session ID from the header (<em>as in scr. 5, 6</em>).</p>
<p>We specify the session key and Session ID in the Secret session key field in Wireshark in the SMB2 protocol settings:</p>
<p>Edit → Preferences → Protocols → SMB2 → Secret session key for decryption</p>
<p>Bingo! We get the decrypted SMB3 (<em>scr. 7</em>). The same algorithm works for decrypting other protocols as well (DCERPC, LDAP, etc.).</p>
<figure class="wp-block-image"><img decoding="async" width="1024" height="461" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_397@14-10-2025_13-26-28-1024x461.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="651" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_398@14-10-2025_13-26-28-1024x651.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="651" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_399@14-10-2025_13-26-28-1024x651.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="651" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_400@14-10-2025_13-26-28-1024x651.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="646" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_401@14-10-2025_13-26-28-1024x646.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<figure class="wp-block-image"><img decoding="async" width="1024" height="646" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_402@14-10-2025_13-26-28-1024x646.jpg" class="attachment-large size-large" alt="" loading="lazy" /></figure>
<p><span class="hashtag">#dfir</span> <span class="hashtag">#tip</span> <span class="hashtag">#network</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Looking under the hood of secure connections in Wireshark. Part 1: TLS</title>
		<link>https://ptesc.tech/en/looking-under-the-hood-of-secure-connections-in-wireshark-part-1-tls/</link>
		
		<dc:creator><![CDATA[oUth0R]]></dc:creator>
		<pubDate>Mon, 06 Oct 2025 15:14:50 +0000</pubDate>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[dfir]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tls]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d0%bc%d0%be%d1%82%d1%80%d0%b8%d0%bc-%d0%bf%d0%be%d0%b4-%d0%ba%d0%b0%d0%bf%d0%be%d1%82-%d0%b7%d0%b0%d1%89%d0%b8%d1%89%d0%b5%d0%bd%d0%bd%d1%8b%d1%85-%d1%81%d0%be%d0%b5%d0%b4%d0%b8%d0%bd%d0%b5/</guid>

					<description><![CDATA[🦈 Looking Under the Hood of Secure Connections in Wireshark. Part 1: TLS Our network experts often need to decrypt TLS connection traffic and analyze protected content. Modern TLS algorithms have long been using the Ephemeral Diffie–Hellman…]]></description>
										<content:encoded><![CDATA[🦈 <strong>Looking Under the Hood of Secure Connections in Wireshark. Part 1: TLS</strong><br />
<br />
Our network experts often need to decrypt TLS connection traffic and analyze protected content. Modern TLS algorithms have long been using the Ephemeral Diffie–Hellman (EDH) scheme, which prevents decrypting TLS sessions with an RSA private key. <br />
<br />
Now, to decrypt, you need to collect the so-called session keys using the TLS client or server itself. And over many years, we&#8217;ve gathered several life hacks that work for most applications being analyzed. Let&#8217;s go!<br />
<br />
<strong>1️⃣ Browsers and console utilities</strong><br />
<br />
To decrypt browser TLS sessions or console utilities, such as curl, you need to set the SSLKEYLOG environment variable. This is done using the command <code>export SSLKEYLOGFILE=/path/to/keylog.log</code> for Linux systems or via environment variables (<em>screenshots 1 and 2</em>) on Windows systems. Now browsers and utilities will save session keys to the specified file.<br />
<br />
<strong>2️⃣ Go applications</strong><br />
<br />
Setting up a key dump in such applications will require a small patch. You need to either add these lines to the application&#8217;s own code (<a href="https://pkg.go.dev/crypto/tls#example-Config-KeyLogWriter" rel="noopener" target="_blank">example</a>).<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">w, err := os.OpenFile("/path/to/SSLKEYLOGFILE", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
config := &amp;tls.Config{KeyLogWriter: w}
</code></span></pre><br />
<br />
Or, if the tls config is not explicitly defined in the file, but the standard crypto/go library is used in the program itself or in a library, you can set the sslkeylog file directly in it. We&#8217;ve provided an example diff file (<a href="https://disk.yandex.ru/d/MMcWIr9YlM8FAw" rel="noopener" target="_blank">common_go.diff</a>) for <code>go version go1.24.4 linux/amd64</code>. After that, it&#8217;s enough to set the path to the keylog file in the SSLKEYLOGFILE environment variable:<br />
<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash"><span class="hljs-built_in">export</span> SSLKEYLOGFILE=/path/to/keylog.log
</code></span></pre><br />
<br />
<strong>3️⃣ Python applications</strong><br />
<br />
Setting up a key dump also works by setting the SSLKEYLOGFILE environment variable:<br />
<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash"><span class="hljs-built_in">export</span> SSLKEYLOGFILE=/path/to/keylog.log
python main.py
</code></span></pre><br />
<br />
<strong>4️⃣ Node.js applications</strong><br />
<br />
You simply need to run the application with the tls-keylog flag<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">node --tls-keylog=/path/to/keylog.log program.js
</code></span></pre><br />
<br />
Or set the NODE_OPTIONS environment variable and run the program in the same console:<br />
<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash"><span class="hljs-built_in">export</span> NODE_OPTIONS=--tls-keylog=/path/to/keylog.log
</code></span></pre><br />
<br />
<strong>5️⃣ Xray Core</strong><br />
<br />
Other proprietary applications may use their own parameters for dumping session keys. Especially those that implement TLS connections in their own way. Xray is a whole framework that supports many VPN protocols, including VMess, VLESS, and XTLS. Thanks to the Xray core developers, collecting session keys is no trouble. You just need to add the masterKeyLog key to the outbound connection configuration.<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">"realitySettings": {
  "serverName": "yahoo.com",
  "publicKey": "publicKey",
  "shortId": "shortId",
  "fingerprint": "chrome",
  "spiderX": "/",
  "masterKeyLog": "/path/to/keylog"
}
</code></span></pre><br />
<br />
Most Xray configurations are set using URLs; to add the key, you need to edit the JSON configuration inside the client or server after adding the key.<br />
<br />
<strong>How to use the obtained session keys</strong><br />
<br />
To decrypt a TLS session in Wireshark, you need to open Edit → Preferences, then in the TLS protocol settings select the Master-Secret log filename file (<em>screenshot 3, result in screenshot 4</em>).<br />
<br />
☠️ And in the next part, we&#8217;ll talk about decrypting the encrypted content of SMB/LDAP/DCERPC protocols with NTLM and Kerberos authentication. <br />
<br />
Share your own life hacks in the comments ⬇️

<figure class="wp-block-image"><img width="1024" height="439" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_393@06-10-2025_15-14-50-1024x439.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/10/photo_393@06-10-2025_15-14-50-1024x439.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/10/photo_393@06-10-2025_15-14-50-300x129.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/10/photo_393@06-10-2025_15-14-50-768x330.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/10/photo_393@06-10-2025_15-14-50.jpg 1172w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="824" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_394@06-10-2025_15-14-50-1024x824.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/10/photo_394@06-10-2025_15-14-50-1024x824.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/10/photo_394@06-10-2025_15-14-50-300x241.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/10/photo_394@06-10-2025_15-14-50-768x618.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/10/photo_394@06-10-2025_15-14-50.jpg 1102w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="634" src="https://ptesc.tech/wp-content/uploads/2025/10/photo_395@06-10-2025_15-14-50-1024x634.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/10/photo_395@06-10-2025_15-14-50-1024x634.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/10/photo_395@06-10-2025_15-14-50-300x186.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/10/photo_395@06-10-2025_15-14-50-768x475.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/10/photo_395@06-10-2025_15-14-50.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#dfir</span> <span class="hashtag">#tip</span> <span class="hashtag">#tls</span> <span class="hashtag">#network</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></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>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>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>
	</channel>
</rss>
