www.darkreading.com
Open in
urlscan Pro
2606:4700::6810:e0ab
Public Scan
URL:
https://www.darkreading.com/application-security/revival-hijack-on-pypi-disguises-malware-with-legitimate-file-names
Submission: On September 05 via api from TR — Scanned from DE
Submission: On September 05 via api from TR — Scanned from DE
Form analysis
0 forms found in the DOMText Content
Dark Reading is part of the Informa Tech Division of Informa PLC Informa PLC|ABOUT US|INVESTOR RELATIONS|TALENT This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales and Scotlan. Number 8860726. Black Hat NewsOmdia CybersecurityAdvertise Newsletter Sign-Up Newsletter Sign-Up Cybersecurity Topics RELATED TOPICS * Application Security * Cybersecurity Careers * Cloud Security * Cyber Risk * Cyberattacks & Data Breaches * Cybersecurity Analytics * Cybersecurity Operations * Data Privacy * Endpoint Security * ICS/OT Security * Identity & Access Mgmt Security * Insider Threats * IoT * Mobile Security * Perimeter * Physical Security * Remote Workforce * Threat Intelligence * Vulnerabilities & Threats World RELATED TOPICS * DR Global * Middle East & Africa See All The Edge DR Technology Events RELATED TOPICS * Upcoming Events * Podcasts * Webinars SEE ALL Resources RELATED TOPICS * Library * Newsletters * Podcasts * Reports * Videos * Webinars * Whitepapers * * * * * Partner Perspectives: * > Microsoft SEE ALL * Application Security * Threat Intelligence * Vulnerabilities & Threats 'REVIVAL HIJACK' ON PYPI DISGUISES MALWARE WITH LEGITIMATE FILE NAMES'REVIVAL HIJACK' ON PYPI DISGUISES MALWARE WITH LEGITIMATE FILE NAMES Adversaries reusing abandoned package names sneak malware into organizations in a sort of software shell game. Jai Vijayan, Contributing Writer September 4, 2024 4 Min Read Source: Zakharchuk via Shutterstock Security researchers have discovered a simple and troubling way for attackers to distribute malicious payloads via the PyPI package repository. All that the technique involves is re-registering a malicious package on PyPI using the same name as any legitimate, previously registered but now removed package from the repository and then waiting for organizations to download it. Since PyPI does not prohibit the reuse of names of removed packages, it's easy for adversaries to pass off rogue packages that once were available on the registry as legitimate ones. REVIVAL HIJACK "The 'Revival Hijack' method can be used by attackers as an easy supply chain attack, targeting organizations and infiltrating a wide variety of environments," researchers at JFrog warned in a report this week. "PyPI users should stay vigilant and make sure their CI/CD machines are not trying to install packages that were already removed from PyPI," they noted, after recently discovering a threat actor using the tactic in an apparent attempt to distribute malware. The attack method that JFrog discovered is one of several that adversaries have used in recent years to try and sneak malware into enterprise environments via public code repositories such as PyPI, npm, Maven Central, NuGet, and RubyGems. Common tactics have included cloning and infecting popular repositories, poisoning artifacts, and looking for and leveraging leaked secrets like private keys and database certificates in attacks. Threat actors have also attempted to trick developers into accidentally installing malicious packages by exploiting common typing errors or using slight variations in the name of a legitimate package ("g00gle" instead of "google," for instance). Such typosquatting attacks continue unabated, despite efforts by organizations and the maintainers of PyPI and other registries to protect against them. The challenge with Revival Hijack is that the technique does not rely on a victim making a mistake, as is typically the case with typosquatting and some of the other attack methods. "Updating a 'once safe' package to its latest version is viewed as a safe operation by many users (although it shouldn't!)," JFrog noted. "Many CI/CD machines are already set up to install these packages automatically." REUSING ABANDONED PACKAGE NAMES According to JFrog, when a developer removes a project from PyPI, the associated package names become immediately available for anyone else to use. This means an attacker can easily hijack the package names and infect any user of the original packages that might try to update to the latest version. Any user that might want to install it for the first time on the assumption that it is the original would be similarly affected. To test the effectiveness of the attack vector, JFrog researchers first created an empty project and published it to PyPI as "revival-package version 1.0.0," using a test "origin_author" account. After publishing the project, the researchers removed it from PyPI and almost immediately published another empty package with the same name to PyPI, but from a different "new_authr" account and different version number 4.0.0. The exercise showed PyPI displaying JFrog's second empty package simply as a new version of the company's original "revival-package" with no indication that it contained very different code. Had JFrog's original package actually been legitimate code that developers were using, a CI/CD system would have downloaded the "new" version on the assumption it was an update. "After demonstrating that hijacking removed legitimate packages can be easily done, [we] decided to analyze how many packages on PyPI were susceptible to 'Revival Hijack,' meaning that they were previously removed and can now be replaced/hijacked," JFrog said. A CLEAR AND PRESENT THREAT The JFrog researchers' search showed a staggering 120,000 removed packages that attackers could potentially hijack to sneak malware onto PyPI. When the researchers filtered the results to only include packages that had been active for at least months or that users had previously downloaded more than 100,000 times, that number dropped to around 22,000 packages. To prevent adversaries from misusing these abandoned package names, JFrog researchers "hijacked" the most popular of these packages and replaced them with empty ones. They also ensured that the version number on all the empty packages was 0.0.0.1, to ensure that no one using the original packages would accidentally download the empty package as an update. Even despite this precaution JFrog's empty packages racked up nearly 200,000 automatic and manual downloads over a three-month period, showing that the Revival Hijack threat is very real, the security vendor said. "This seems to indicate that there are outdated jobs and scripts out there which are still looking for the deleted packages, or users that manually downloaded these packages due to typosquatting," JFrog said. In an actual attack scenario, an adversary would have likely attached a high version number to each hijacked package so CI/CD systems would automatically download them believing them to be updates, JFrog said. The company has recommended that PyPI completely prohibit the reuse of abandoned package names. Organizations using PyPI also need to be aware of this attack vector when upgrading to new package versions, JFrog warned. ABOUT THE AUTHOR Jai Vijayan, Contributing Writer Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year career at Computerworld, Jai also covered a variety of other technology topics, including big data, Hadoop, Internet of Things, e-voting, and data analytics. Prior to Computerworld, Jai covered technology issues for The Economic Times in Bangalore, India. Jai has a Master's degree in Statistics and lives in Naperville, Ill. See more from Jai Vijayan, Contributing Writer [TEST] COPY OF OMDIA LATEST RESEARCH Omdia Market Landscape: The Products and Players Driving the Fast-Growing Market for Cyber Insurance Insurance has become an accepted component of enterprise risk management, and insurers have become more active partners in managing cyber risks. Here, Omdia examines the drivers of the fast-growing cyber insurance market. Subscription Required READ THE FULL REPORT The clickable text Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox. Subscribe You May Also Like -------------------------------------------------------------------------------- Application Security Patchless Apple M-Chip Vulnerability Allows Cryptography Bypass Application Security Newly ID'ed Chinese APT Hides Backdoor in Software Updates Application Security Cybercriminals Flood Dark Web With X (Twitter) Gold Accounts Application Security 'Operation Triangulation' Spyware Attackers Bypass iPhone Memory Protections More Insights Webinars * Catch the Threat Before it Catches you: Proactive Ransomware Defense September 5, 2024 * How to Evaluate Hybrid-Cloud Network Policies and Enhance Security September 18, 2024 * DORA and PCI DSS 4.0: Scale Your Mainframe Security Strategy Among Evolving Regulations September 26, 2024 * Harnessing the Power of Automation to Boost Enterprise Cybersecurity October 3, 2024 More Webinars Events * [Virtual Event] The Essential Guide to Cloud Management October 17, 2024 * Black Hat Europe - December 9-12 - Learn More December 10, 2024 * SecTor - Canada's IT Security Conference Oct 22-24 - Learn More October 22, 2024 More Events EDITOR'S CHOICE A person's finger about to click on a screen that says Windows 11 with a blue abstract background behind it Vulnerabilities & Threats PoC Exploit for Zero-Click Vulnerability Made Available to the MassesPoC Exploit for Zero-Click Vulnerability Made Available to the Masses byDark Reading Staff Aug 27, 2024 1 Min Read Person holding a cellphone; black background Vulnerabilities & Threats How Telecom Vulnerabilities Can Be a Threat to Cybersecurity PostureHow Telecom Vulnerabilities Can Be a Threat to Cybersecurity Posture byAyan Halder Aug 29, 2024 5 Min Read CCTV control room ICS/OT Security CCTV Zero-Day Exposes Critical Infrastructure to Mirai BotnetCCTV Zero-Day Exposes Critical Infrastructure to Mirai Botnet byBecky Bracken, Senior Editor, Dark Reading Aug 28, 2024 1 Min Read Reports * Managing Third-Party Risk Through Situational Awareness * 2024 InformationWeek US IT Salary Report * State of ITSM in Manufacturing * Incident Readiness and Building Response Playbook * Increased Cooperation Between Access Brokers, Ransomware Operators Reviewed More Reports Webinars * Catch the Threat Before it Catches you: Proactive Ransomware Defense September 5, 2024 * How to Evaluate Hybrid-Cloud Network Policies and Enhance Security September 18, 2024 * DORA and PCI DSS 4.0: Scale Your Mainframe Security Strategy Among Evolving Regulations September 26, 2024 * Harnessing the Power of Automation to Boost Enterprise Cybersecurity October 3, 2024 More Webinars White Papers * Evolve Your Ransomware Defense * How to Use Threat Intelligence to Mitigate Third-Party Risk * Ten Elements of Insider Risk in Highly Regulated Industries * The Future of Audit, Risk, and Compliance: Exploring AI's Transformative Impact, Use Cases, and Risks * IT Risk & Compliance Platforms: A Buyer's Guide More Whitepapers Events * [Virtual Event] The Essential Guide to Cloud Management October 17, 2024 * Black Hat Europe - December 9-12 - Learn More December 10, 2024 * SecTor - Canada's IT Security Conference Oct 22-24 - Learn More October 22, 2024 More Events DISCOVER MORE WITH INFORMA TECH Black HatOmdia WORKING WITH US About UsAdvertiseReprints JOIN US Newsletter Sign-Up FOLLOW US Copyright © 2024 Informa PLC Informa UK Limited is a company registered in England and Wales with company number 1072954 whose registered office is 5 Howick Place, London, SW1P 1WG. Home|Cookie Policy|Privacy|Terms of Use Cookies Button WE CARE ABOUT YOUR PRIVACY We and our 848 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may accept or manage your choices by clicking below, including your right to object where legitimate interest is used, or at any time in the privacy policy page. These choices will be signaled to our partners and will not affect browsing data.Privacy Policy WE AND OUR PARTNERS PROCESS DATA TO PROVIDE: Use precise geolocation data. Actively scan device characteristics for identification. Store and/or access information on a device. Personalised advertising and content, advertising and content measurement, audience research and services development. List of Partners (vendors) I Accept Essential Only Show Purposes ABOUT YOUR PRIVACY We process your data to deliver content or advertisements and measure the delivery of such content or advertisements to extract insights about our website. We share this information with our partners on the basis of consent and legitimate interest. You may exercise your right to consent or object to a legitimate interest, based on a specific purpose below or at a partner level in the link under each purpose. These choices will be signaled to our vendors participating in the Transparency and Consent Framework. More information Allow All MANAGE CONSENT PREFERENCES PERFORMANCE COOKIES Performance Cookies These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. Cookies Details FUNCTIONAL COOKIES Functional Cookies These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly. Cookies Details STRICTLY NECESSARY COOKIES Always Active These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. Cookies Details TARGETING COOKIES Targeting Cookies These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Cookies Details STORE AND/OR ACCESS INFORMATION ON A DEVICE 685 PARTNERS CAN USE THIS PURPOSE Store and/or access information on a device Cookies, device or similar online identifiers (e.g. login-based identifiers, randomly assigned identifiers, network based identifiers) together with other information (e.g. browser type and information, language, screen size, supported technologies etc.) can be stored or read on your device to recognise it each time it connects to an app or to a website, for one or several of the purposes presented here. List of IAB Vendors | View Illustrations PERSONALISED ADVERTISING AND CONTENT, ADVERTISING AND CONTENT MEASUREMENT, AUDIENCE RESEARCH AND SERVICES DEVELOPMENT 812 PARTNERS CAN USE THIS PURPOSE Personalised advertising and content, advertising and content measurement, audience research and services development * USE LIMITED DATA TO SELECT ADVERTISING 621 PARTNERS CAN USE THIS PURPOSE Switch Label Advertising presented to you on this service can be based on limited data, such as the website or app you are using, your non-precise location, your device type or which content you are (or have been) interacting with (for example, to limit the number of times an ad is presented to you). View Illustrations Object to Legitimate Interests Remove Objection * CREATE PROFILES FOR PERSONALISED ADVERTISING 499 PARTNERS CAN USE THIS PURPOSE Switch Label Information about your activity on this service (such as forms you submit, content you look at) can be stored and combined with other information about you (for example, information from your previous activity on this service and other websites or apps) or similar users. This is then used to build or improve a profile about you (that might include possible interests and personal aspects). Your profile can be used (also later) to present advertising that appears more relevant based on your possible interests by this and other entities. View Illustrations * USE PROFILES TO SELECT PERSONALISED ADVERTISING 497 PARTNERS CAN USE THIS PURPOSE Switch Label Advertising presented to you on this service can be based on your advertising profiles, which can reflect your activity on this service or other websites or apps (like the forms you submit, content you look at), possible interests and personal aspects. View Illustrations * CREATE PROFILES TO PERSONALISE CONTENT 221 PARTNERS CAN USE THIS PURPOSE Switch Label Information about your activity on this service (for instance, forms you submit, non-advertising content you look at) can be stored and combined with other information about you (such as your previous activity on this service or other websites or apps) or similar users. This is then used to build or improve a profile about you (which might for example include possible interests and personal aspects). Your profile can be used (also later) to present content that appears more relevant based on your possible interests, such as by adapting the order in which content is shown to you, so that it is even easier for you to find content that matches your interests. View Illustrations * USE PROFILES TO SELECT PERSONALISED CONTENT 194 PARTNERS CAN USE THIS PURPOSE Switch Label Content presented to you on this service can be based on your content personalisation profiles, which can reflect your activity on this or other services (for instance, the forms you submit, content you look at), possible interests and personal aspects. This can for example be used to adapt the order in which content is shown to you, so that it is even easier for you to find (non-advertising) content that matches your interests. View Illustrations * MEASURE ADVERTISING PERFORMANCE 726 PARTNERS CAN USE THIS PURPOSE Switch Label Information regarding which advertising is presented to you and how you interact with it can be used to determine how well an advert has worked for you or other users and whether the goals of the advertising were reached. For instance, whether you saw an ad, whether you clicked on it, whether it led you to buy a product or visit a website, etc. This is very helpful to understand the relevance of advertising campaigns. View Illustrations Object to Legitimate Interests Remove Objection * MEASURE CONTENT PERFORMANCE 364 PARTNERS CAN USE THIS PURPOSE Switch Label Information regarding which content is presented to you and how you interact with it can be used to determine whether the (non-advertising) content e.g. reached its intended audience and matched your interests. For instance, whether you read an article, watch a video, listen to a podcast or look at a product description, how long you spent on this service and the web pages you visit etc. This is very helpful to understand the relevance of (non-advertising) content that is shown to you. View Illustrations Object to Legitimate Interests Remove Objection * UNDERSTAND AUDIENCES THROUGH STATISTICS OR COMBINATIONS OF DATA FROM DIFFERENT SOURCES 458 PARTNERS CAN USE THIS PURPOSE Switch Label Reports can be generated based on the combination of data sets (like user profiles, statistics, market research, analytics data) regarding your interactions and those of other users with advertising or (non-advertising) content to identify common characteristics (for instance, to determine which target audiences are more receptive to an ad campaign or to certain contents). View Illustrations Object to Legitimate Interests Remove Objection * DEVELOP AND IMPROVE SERVICES 547 PARTNERS CAN USE THIS PURPOSE Switch Label Information about your activity on this service, such as your interaction with ads or content, can be very helpful to improve products and services and to build new products and services based on user interactions, the type of audience, etc. This specific purpose does not include the development or improvement of user profiles and identifiers. View Illustrations Object to Legitimate Interests Remove Objection * USE LIMITED DATA TO SELECT CONTENT 130 PARTNERS CAN USE THIS PURPOSE Switch Label Content presented to you on this service can be based on limited data, such as the website or app you are using, your non-precise location, your device type, or which content you are (or have been) interacting with (for example, to limit the number of times a video or an article is presented to you). View Illustrations Object to Legitimate Interests Remove Objection List of IAB Vendors USE PRECISE GEOLOCATION DATA 262 PARTNERS CAN USE THIS SPECIAL FEATURE Use precise geolocation data With your acceptance, your precise location (within a radius of less than 500 metres) may be used in support of the purposes explained in this notice. List of IAB Vendors ACTIVELY SCAN DEVICE CHARACTERISTICS FOR IDENTIFICATION 126 PARTNERS CAN USE THIS SPECIAL FEATURE Actively scan device characteristics for identification With your acceptance, certain characteristics specific to your device might be requested and used to distinguish it from other devices (such as the installed fonts or plugins, the resolution of your screen) in support of the purposes explained in this notice. List of IAB Vendors ENSURE SECURITY, PREVENT AND DETECT FRAUD, AND FIX ERRORS 517 PARTNERS CAN USE THIS SPECIAL PURPOSE Always Active Your data can be used to monitor for and prevent unusual and possibly fraudulent activity (for example, regarding advertising, ad clicks by bots), and ensure systems and processes work properly and securely. It can also be used to correct any problems you, the publisher or the advertiser may encounter in the delivery of content and ads and in your interaction with them. List of IAB Vendors | View Illustrations DELIVER AND PRESENT ADVERTISING AND CONTENT 520 PARTNERS CAN USE THIS SPECIAL PURPOSE Always Active Certain information (like an IP address or device capabilities) is used to ensure the technical compatibility of the content or advertising, and to facilitate the transmission of the content or ad to your device. List of IAB Vendors | View Illustrations MATCH AND COMBINE DATA FROM OTHER DATA SOURCES 363 PARTNERS CAN USE THIS FEATURE Always Active Information about your activity on this service may be matched and combined with other information relating to you and originating from various sources (for instance your activity on a separate online service, your use of a loyalty card in-store, or your answers to a survey), in support of the purposes explained in this notice. List of IAB Vendors LINK DIFFERENT DEVICES 329 PARTNERS CAN USE THIS FEATURE Always Active In support of the purposes explained in this notice, your device might be considered as likely linked to other devices that belong to you or your household (for instance because you are logged in to the same service on both your phone and your computer, or because you may use the same Internet connection on both devices). List of IAB Vendors IDENTIFY DEVICES BASED ON INFORMATION TRANSMITTED AUTOMATICALLY 496 PARTNERS CAN USE THIS FEATURE Always Active Your device might be distinguished from other devices based on information it automatically sends when accessing the Internet (for instance, the IP address of your Internet connection or the type of browser you are using) in support of the purposes exposed in this notice. List of IAB Vendors Back Button COOKIE LIST Search Icon Filter Icon Clear checkbox label label Apply Cancel Consent Leg.Interest checkbox label label checkbox label label checkbox label label Confirm My Choices