• 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 Seller From Our Partners
Mullvad VPN Discount

Protect your privacy by Mullvad VPN. Mullvad VPN is one of the famous brands in the security and privacy world. With Mullvad VPN you will not even be asked for your email address. No log policy, no data from you will be saved. Get your license key now from the official distributor of Mullvad with discount: SerialCart® (Limited Offer).

➤ Get Mullvad VPN with 12% Discount


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

  • Qilin Ransomware Adds “Call Lawyer” Feature to Pressure Victims for Larger Ransoms
  • Iran’s State TV Hijacked Mid-Broadcast Amid Geopolitical Tensions; $90M Stolen in Crypto Heist
  • 6 Steps to 24/7 In-House SOC Success
  • Massive 7.3 Tbps DDoS Attack Delivers 37.4 TB in 45 Seconds, Targeting Hosting Provider
  • 67 Trojanized GitHub Repositories Found in Campaign Targeting Gamers and Developers
  • New Android Malware Surge Hits Devices via Overlays, Virtualization Fraud and NFC Theft
  • BlueNoroff Deepfake Zoom Scam Hits Crypto Employee with MacOS Backdoor Malware
  • Secure Vibe Coding: The Complete New Guide
  • Uncover LOTS Attacks Hiding in Trusted Tools — Learn How in This Free Expert Session
  • Russian APT29 Exploits Gmail App Passwords to Bypass 2FA in Targeted Phishing Campaign

Copyright © TheCyberSecurity.News, All Rights Reserved.