• 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

  • New Variant of Banking Trojan BBTok Targets Over 40 Latin American Banks
  • How to Interpret the 2023 MITRE ATT&CK Evaluation Results
  • Iranian Nation-State Actor OilRig Targets Israeli Organizations
  • High-Severity Flaws Uncovered in Atlassian Products and ISC BIND Server
  • Apple Rushes to Patch 3 New Zero-Day Flaws: iOS, macOS, Safari, and More Vulnerable
  • Mysterious ‘Sandman’ Threat Actor Targets Telecom Providers Across Three Continents
  • Researchers Raise Red Flag on P2PInfect Malware with 600x Activity Surge
  • The Rise of the Malicious App
  • China Accuses U.S. of Decade-Long Cyber Espionage Campaign Against Huawei Servers
  • Cyber Group ‘Gold Melody’ Selling Compromised Access to Ransomware Attackers

Copyright © TheCyberSecurity.News, All Rights Reserved.