• Menu
  • Skip to main content
  • Skip to primary sidebar

The Cyber Security News

Latest Cyber Security News

Header Right

  • Latest News
  • Vulnerabilities
  • Cloud Services
Cyber Security News

Malicious PyPI Packages Use Compiled Python Code to Bypass Detection

You are here: Home / General Cyber Security News / Malicious PyPI Packages Use Compiled Python Code to Bypass Detection
June 2, 2023

Security scientists at ReversingLabs have found a novel attack that utilised compiled Python code to evade detection. 

According to ReversingLabs reverse engineer Karlo Zanki, this could be the initially instance of a provide chain attack capitalizing on the direct execution functionality of Python byte code (PYC) data files.

✔ Approved From Our Partners
AOMEI Backupper Lifetime

Protect and backup your data using AOMEI Backupper. AOMEI Backupper takes secure and encrypted backups from your Windows, hard drives or partitions. With AOMEI Backupper you will never be worried about loosing your data anymore.

Get AOMEI Backupper with 72% discount from an authorized distrinutor of AOMEI: SerialCart® (Limited Offer).

➤ Activate Your Coupon Code


The process introduces another source chain vulnerability for the foreseeable future, as most security instruments exclusively scan Python supply code (PY) data files, earning them inclined to missing these types of attacks. Zanki claimed it coincides with an enhance in damaging submissions to the Python Bundle Index (PyPI).

Browse much more on malicious PyPI deals: Researchers Uncover 7000 Destructive Open up Source Offers

ReversingLabs also said it documented the uncovered offer, fshec2, to the PyPI security staff, who acknowledged that it was a formerly unseen attack and removed it from the PyPI repository the same day.

“This is a intriguing new variation of the much more typical source chain attack, where by a threat actor drops a destructive library into a general public repository,” explained Mike Parkin, Senior Technological Engineer at Vulcan Cyber.

“It’s utilizing some tactics that will assist it evade existing security applications, which may well be problematic right until the tools are up-to-date to tackle compiled Python code.”

In simple fact, the attackers employed a special loading approach that used the Importlib module to stay clear of detection. 

“This obfuscation system permits the compiled code to get earlier security scanners. Catching this variety of code involves static evaluation of the supply code, which is difficult, if not not possible, since it is compiled,” commented Timothy Morris, main security advisor at Tanium.

The malware then had a command-and-management (C2) infrastructure that allowed it to evolve by downloading new instructions from a distant server.

The ReversingLabs staff also observed misconfigurations in the attacker’s web host, which furnished insights into the malware’s capabilities. According to the company’s advisory, the attack infected at minimum two targets, harvesting usernames, hostnames and listing listings.

“The novelty of the PyPi malware that ReversingLabs identified reminds me of some of the qualities of a DLL hijack – fundamentally exactly where rogue code can be loaded by a reliable software,” said Andrew Barratt, vice president at Coalfire.

“The troubling portion is that we have obtained attackers deliberately concentrating on code repositories with these strategies obviously searching for a mass deployment vector which starts off to experience like the precursor to a ransomware marketing campaign.”

The ReversingLabs discovery arrives weeks right after Cyble lose light on a separate destructive PyPI with information and facts-thieving abilities.

Editorial picture credit rating: Trismegist san / Shutterstock.com


Some elements of this post are sourced from:
www.infosecurity-journal.com

Previous Post: «new botnet malware 'horabot' targets spanish speaking users in latin america New Botnet Malware ‘Horabot’ Targets Spanish-Speaking Users in Latin America
Next Post: US and Korean Agencies Issue Warning on North Korean Cyber-Attacks Cyber Security News»

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Report This Article

Recent Posts

  • Zero-Click Agentic Browser Attack Can Delete Entire Google Drive Using Crafted Emails
  • Critical XXE Bug CVE-2025-66516 (CVSS 10.0) Hits Apache Tika, Requires Urgent Patch
  • Chinese Hackers Have Started Exploiting the Newly Disclosed React2Shell Vulnerability
  • Intellexa Leaks Reveal Zero-Days and Ads-Based Vector for Predator Spyware Delivery
  • “Getting to Yes”: An Anti-Sales Guide for MSPs
  • CISA Reports PRC Hackers Using BRICKSTORM for Long-Term Access in U.S. Systems
  • JPCERT Confirms Active Command Injection Attacks on Array AG Gateways
  • Silver Fox Uses Fake Microsoft Teams Installer to Spread ValleyRAT Malware in China
  • ThreatsDay Bulletin: Wi-Fi Hack, npm Worm, DeFi Theft, Phishing Blasts— and 15 More Stories
  • 5 Threats That Reshaped Web Security This Year [2025]

Copyright © TheCyberSecurity.News, All Rights Reserved.