<?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>npm &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/npm/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>npm &#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>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>Attackers compromised dozens of NPM packages with ~2 billion downloads</title>
		<link>https://ptesc.tech/en/attackers-compromised-dozens-of-npm-packages-with-2-billion-downloads/</link>
		
		<dc:creator><![CDATA[global_author]]></dc:creator>
		<pubDate>Tue, 09 Sep 2025 18:04:03 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[appsec]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[supplychain]]></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%b8-%d1%81%d0%ba%d0%be%d0%bc%d0%bf%d1%80%d0%be%d0%bc%d0%b5%d1%82%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bb%d0%b8-%d0%b4%d0%b5/</guid>

					<description><![CDATA[Attackers compromised dozens of NPM packages with ~2 billion downloads 🐾 What happened As part of a phishing campaign, maintainer Josh &#34;Qix&#34; Junon was compromised. He and several other developers received an email asking them to u…]]></description>
										<content:encoded><![CDATA[<p><strong>Attackers compromised dozens of NPM packages with ~2 billion downloads</strong> 🐾 </p>
<p><strong>What happened</strong></p>
<p>As part of a phishing campaign, <a href="https://news.ycombinator.com/item?id=45169794" rel="noopener" target="_blank">maintainer Josh &quot;Qix&quot; Junon was compromised</a>.</p>
<p>He and several other developers received an email asking them to update their second factor, as it had been 12+ months since the last change (<em>screenshots 1, 2, 3</em>). The email came from an address imitating the official one (<code>support@npmjs.help</code>). 🐱</p>
<p>Qix is a maintainer of major projects in the NPM ecosystem, including:</p>
<p>🟢<code>chalk</code> (882 forks and 22.7k stars on GitHub, 313 million downloads on NPM in the last week);<br />
🟢<code>debug</code> (957 forks, 11.3k stars, 372 million downloads);<br />
🟢<code>strip-ansi</code> (272 million downloads);<br />
🟢<code>wrap-ansi</code> (206 million downloads);<br />
🟢<code>has-flag</code> (200 million downloads).</p>
<p><strong>Check that the attack didn&#8217;t affect you</strong></p>
<p>Arm yourself with <a href="https://github.com/google/osv-scanner" rel="noopener" target="_blank">osv-scanner</a>. Information about the malicious packages is already in the <a href="http://osv.dev" rel="noopener" target="_blank">osv.dev</a> database.</p>
<p>You can use a <a href="https://gist.github.com/edgarpavlovsky/695b896445c19b6f66f141696f596059" rel="noopener" target="_blank">community script</a> or check the packages listed there yourself (<code>npm ls</code>,  <code>yarn why</code>,  <code>pnpm why</code>).</p>
<p><strong>Recommendations for maintainers</strong></p>
<p>1. If you have to log in via links from emails — verify the URL. Remember that you are a tempting target for attackers.</p>
<p>2. Use a second factor. Even if an attacker can lure it out with a phishing login page, they will have to obtain it again and again if you have 2FA set to <a href="https://docs.npmjs.com/about-two-factor-authentication" rel="noopener" target="_blank">Authorization and writes mode</a> (confirmation of all sensitive actions, including publishing a new package version, the mode is enabled by default).</p>
<p>3. Familiarize yourself with OIDC/&quot;trusted publishing&quot; practices — this way you make the target harder for an attacker, since they will have to compromise a public CI/repository to carry out the attack.</p>
<p><strong>Recommendations for developers</strong></p>
<p>1. Pin your dependencies. Don&#8217;t let the package manager simply pull the latest release of the dependencies you use.</p>
<p>2. Add dependency auditing (osv-scanner can work as a starting point) — this way you can learn about problems at the dependency scanning stage, rather than from the news.</p>
<p><strong>Recommendations for AppSec</strong></p>
<p>You already know all this without us:</p>
<p>1. Set up an internal proxy with quarantine support for internal projects.</p>
<p>2. Make sure your developers go through the internal proxy rather than pulling packages from global repositories. 🐱</p>
<p><strong>Stay safe</strong> 👍</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_372@09-09-2025_18-04-03-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_372@09-09-2025_18-04-03-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_372@09-09-2025_18-04-03-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_372@09-09-2025_18-04-03-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/09/photo_372@09-09-2025_18-04-03-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_372@09-09-2025_18-04-03.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2025/09/photo_373@09-09-2025_18-04-03-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/09/photo_373@09-09-2025_18-04-03-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/09/photo_373@09-09-2025_18-04-03-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/09/photo_373@09-09-2025_18-04-03-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2025/09/photo_373@09-09-2025_18-04-03-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/09/photo_373@09-09-2025_18-04-03.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>
<span class="hashtag">#npm</span> <span class="hashtag">#supplychain</span> <span class="hashtag">#appsec</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Through blockchain to data</title>
		<link>https://ptesc.tech/en/through-blockchain-to-data/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 26 Nov 2024 16:00:15 +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/%d1%87%d0%b5%d1%80%d0%b5%d0%b7-%d0%b1%d0%bb%d0%be%d0%ba%d1%87%d0%b5%d0%b9%d0%bd-%d0%ba-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%bc/</guid>

					<description><![CDATA[Through the blockchain to the data ⭐️ Researchers from Socket and Checkmarx have reported on an interesting malicious campaign in NPM. The attackers mimicked plugins for Puppeteer and blockchain clients. A smart contract in the Ethereum blo…]]></description>
										<content:encoded><![CDATA[<strong>Through the blockchain to the data</strong> ⭐️<br />
<br />
Researchers from <a href="https://socket.dev/blog/massive-npm-malware-campaign-leverages-ethereum-smart-contracts" rel="noopener" target="_blank">Socket</a> and <a href="https://checkmarx.com/uncategorized/supply-chain-attack-using-ethereum-smart-contracts-to-distribute-multi-platform-malware/" rel="noopener" target="_blank">Checkmarx</a> have reported on an interesting malicious campaign in NPM. The attackers mimicked plugins for <a href="https://www.npmjs.com/package/puppeteer" rel="noopener" target="_blank">Puppeteer</a> and blockchain clients. A smart contract in the Ethereum blockchain is used to obtain the IP address of the current command server 😦<br />
<br />
<strong>Of the curious details — the library code uses several comments in Russian:</strong><br />
<br />
<strong>•</strong> <code>console.error(&quot;Ошибка при получении IP адреса:&quot;, err)</code>;<br />
<strong>•</strong> <code>console.error(&quot;Ошибка при запуске файла:&quot;, _0x88fda8)</code>;<br />
<strong>•</strong> <code>console.error(&quot;Ошибка установки:&quot;, _0x14ce94)</code>;<br />
<br />
Socket suggests being cautious with attribution, as this could be a consequence of code reuse or done deliberately.<br />
<br />
Depending on your platform, one of the following executable files will be downloaded and run: <code>node-win.exe</code>, <code>node-linux</code>, <code>node-macos</code>. Below we will refer to them as agents.<br />
<br />
<strong>We studied the campaign in more detail and discovered several more interesting details.</strong><br />
<br />
1️⃣ Despite the fact that Socket and Checkmarx cite only one IP address as a network IoC, the function for assigning a new URL in the smart contract was called several times. In total, we know of five addresses, and the earliest of them was <code>http://localhost:3001</code> 😈, the rest are VPS servers.<br />
<br />
2️⃣ The agent can establish persistence in the system and, just like the JS libraries that download and run it, obtain C2 through the blockchain. The executable file is a Node.js Single Executable Application, which packages the project and the JS interpreter into a single file.<br />
<br />
3️⃣ The agent periodically polls the server for commands in the form of JS code. The first payload collects information about the victim&#8217;s system: CPU model, number of cores, amount of RAM, data about the graphics card. The collected information is sent back to the server.<br />
<br />
4️⃣ The agents simply receive true if there are no new tasks. Of the interesting details: the root of the HTTP server returned the following error:<br />
<pre class="wp-block-code"><span><code lang="json" class="hljs language-json language-json">
{<span class="hljs-attr">"statusCode"</span>:<span class="hljs-number">404</span>,<span class="hljs-attr">"message"</span>:<span class="hljs-string">"ENOENT: no such file or directory, stat '/root/botnet-server/public/index.html'"</span>}
</code></span></pre><br />
This line sheds light on the possible goals of the attacker ☕️<br />
<br />
<strong>IoCs:</strong><br />
<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml">
<span class="hljs-string">http://194.53.54.188:3001</span>
<span class="hljs-string">http://193.233.201.21:3001</span>
<span class="hljs-string">http://45.125.67.172:1337</span>
<span class="hljs-string">http://45.125.67.172:1228</span>
<span class="hljs-number">194.53</span><span class="hljs-number">.54</span><span class="hljs-number">.188</span>
<span class="hljs-number">193.233</span><span class="hljs-number">.201</span><span class="hljs-number">.21</span>
<span class="hljs-number">45.125</span><span class="hljs-number">.67</span><span class="hljs-number">.172</span>
</code></span></pre><br />
<span class="hashtag">#ti</span> <span class="hashtag">#npm</span> <span class="hashtag">#pyanalysis</span> <span class="hashtag">#scs</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
