Connect with us

Security

Twelve malicious Python libraries found and removed from PyPI

Published

on

A software security engineer has identified 12 Python libraries uploaded on the official Python Package Index (PyPI) that contained malicious code.

The 12 packages have been discovered in two separate scans by a security engineer who goes online by the name of Bertus, and have long been removed from PyPI before this article’s publication.

All packages were put together and worked following a similar pattern. Their creator(s) copied the code of popular packages and created a new library, but with a slightly modified name. For example, four packages (diango, djago, dajngo, djanga) were misspellings of Django, the name of a very popular Python framework.

The people behind these malicious packages added malicious code to these newly-created, but fully functional projects, and more specifically to the setup.py files. Setup.py files contain a set of instructions that Python library installers like “pip” execute automatically when downloading and setting up a new package inside a Python project.

The nature of this extra code was to perform various malicious operations and varied per each malicious library.

Bertus discovered a first set of 11 malicious packages on October 13 (see table below), and another malicious package on October 21.

pypi-malicious-packages.png

Image: Bertus

The first set of malicious libraries would attempt to either collect data about each infected environment, obtain boot persistence, or even open a reverse shell on remote workstations.

The twelfth package, named “colourama,” was financially-motivated and hijacked an infected users’ operating system clipboard, where it would scan every 500ms for a Bitcoin address-like string, which it would replace with the attacker’s own Bitcoin address in an attempt to hijack Bitcoin payments/transfers made by an infected user.

This package, too, mimicked the name of a popular Python library, named “colorama.”

According to the PyPI Stats service, 54 users had downloaded the package a month before it was taken down. The attacker’s Bitcoin address contained the equivalent of only $40, with the last transfer being received way back in April, and suggesting that the colourama package failed to make any money.

“I provided the PyPI administrators with the package name, and they removed the package,” Bertus told ZDNet in an email interview. “In addition, they also blocked the name colourama for any future package registrations.”

The researcher told us he discovered all 12 packages by using an automated system he created himself that scanned the PyPI repository for packages with similar names –technically referred to as “typo-squatted” packages.

Bertus says he created the scanner after seeing a security alert sent out by the Slovak National Security Office last year that warned Python developers about ten malicious Python libraries uploaded on PyPI. Those libraries, too, had used typo-squatted names and waited for weeks for users to install them by accident or carelessness, before being taken down.

“At the moment, I am focused on improving the Python (PyPI) scanner, and I will be doing more regular scans,” Bertus told ZDNet.

“I have thought about using my research for other repositories like RubyGems or JavaScript’s npm, but haven’t had time to explore it yet,” he added. “It will take some time to implement it for another repository since each programming language and repository is a bit different.”

JavaScript’s npm package repository needs some of Bertus’ time, for sure. In August 2017, a Swedish developer discovered 38 typo-squatted JavaScript libraries uploaded on the npm repo. The malicious code in those libraries collected local environment variables and uploaded the data to the attacker’s server.

RELATED COVERAGE:

Source link

Continue Reading
Click to comment

Leave a Reply

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

Security

Adventist Risk Management Data Protection Infrastructure

Published

on

Companies always want to enhance their ability to quickly address pressing business needs. Toward that end, they look for new ways to make their IT infrastructures more efficient—and more cost effective. Today, those pressing needs often center around data protection and regulatory compliance, which was certainly the case for Adventist Risk Management. What they wanted was an end-to-end, best-in-class solution to meet their needs. After trying several others, they found the perfect combination with HYCU and Nutanix, which provided:

  • Ease of deployment
  • Outstanding ROI
  • Overall TCO improvement

Nutanix Cloud Platform provides a software-defined hyperconverged infrastructure, while HYCU offers purpose-built backup and recovery for Nutanix. Compared to the previous traditional infrastructure and data protection solutions in use at Adventist Risk Management, Nutanix and HYCU simplified processes, speeding day-to-day operations up to 75%. Now, migration and update activities typically scheduled for weekends can be performed during working hours and help to increase IT staff and management quality of life. HYCU further increased savings by providing faster and more frequent points of recovery as well as better DR Recovery Point Objective (RPO) and Recovery Time Objective (RTO) by increasing the ability to do daily backups from one to four per day.

Furthermore, the recent adoption of Nutanix Objects, which provides secure and performant S3 storage capabilities, enhanced the infrastructure by:

    • Improving overall performance for backups
    • Adding security against potential ransomware attacks
    • Replacing components difficult to manage and support

In the end, Nutanix and HYCU enabled their customer to save money, improve the existing environment, and, above all, meet regulatory compliance requirements without any struggle.

Continue Reading

Security

Secure Insight: GigaOm Partners with the CISO Series

Published

on

Don’t look now, but GigaOm, the analyst firm that enables smart businesses to future-proof their decisions, is forging new partnerships to extend its reach and better inform busy IT decision makers. On Thursday, the company announced it was teaming with the CISO Series to share content and better support the community of chief information security officers, security practitioners, and security vendors.

“The CISO Series is one we have admired for a while because they have a very similar aim: They help security professionals become more knowledgeable and understand how their roles are changing,” said Ben Book, GigaOm founder and CEO. “We saw a clear common interest and are delighted to be working together.”

The CISO Series brand has built a formidable reputation through its podcasts, blogs, video chats, and live events for the security community. It has added the extremely popular CyberSecurity Headlines podcast to its stable this year, which joins the CISO/Security Vendor Relationship and Defense in Depth podcasts. Every Friday at 10am Pacific Time, the CISO Series hosts its highly engaging and fun weekly live CISO Series Video Chat, which viewers can register for here.

The channel partnership connects two of the strongest, fastest-growing brands in enterprise IT content production. The agreement enables the CISO Series to share exclusive GigaOm reports with its audience ahead of publication, while GigaOm is able to share insights from the CISO Series’ various publications through its social channels and newsletters. The CISO Series joins other media firms, such as The Register and SDXCentral, as official GigaOm Channel Partners.

“We are delighted to be working with GigaOm because we’re not only both addressing the same audience, but we’re also both trying to bring education and understanding to both the security vendor and practitioner communities,” said David Spark, managing editor and executive producer at the CISO Series. “GigaOm is providing some excellent reports that we’re leaning on for our discussions and reporting across all of our shows.”

Spark continued: “We are always tweaking our programming to bring the best and most up-to-date resources and we’re really impressed with both the volume and quality GigaOm is delivering. Not only are we impressed with their editorial work, but we also appreciate their business branding. It’s something we felt comfortable about aligning with the CISO Series brand as well.”

Check out the CISO Series schedule at http://crowdcast.io/cisoseries, or visit cisoseries.com for more information about the CISO Series and its weekly Video Chats.

Continue Reading

Security

Key Criteria for Evaluating Vulnerability Management Tools

Published

on

Vulnerability management tools scan your IT estate to help identify and mitigate security risks and weaknesses. These tools can facilitate the development of a more comprehensive vulnerability management program. Leveraging people, processes, and technologies, successful initiatives effectively identify, classify, prioritize, and remediate security threats.

A security vulnerability is a weakness that can compromise the confidentiality, integrity, and availability (CIA) of information. Attackers are constantly looking to exploit defects in software code or insecure configurations. Vulnerabilities can exist anywhere in the software stack, from web applications and databases to infrastructure components such as load balancers, firewalls, machine and container images, operating systems, and libraries. This includes code used in the CI/CD pipeline as well as the infrastructure-as-code (IAC) that defines the compute, network, and storage infrastructure.

Recent cybersecurity events have exposed widespread vulnerabilities involving the exploitation of zero-day malware and unknown weaknesses. Threat actors continually discover new exploitation tactics, techniques, and procedures (TTPs) to take advantage of weaknesses throughout integrated systems. Moreover, identifying breach paths is increasingly complicated due to the widespread adoption of ephemeral services.

Vulnerability management solutions should provide end-to-end visibility of the protect-surface by aggregating both platform and application risks in a single pane of glass, while leveraging prioritized remediation based on business risk and threat context for efficiency. Containerized workloads deployed via DevOps pipelines have unique security requirements that demand a fully integrated vulnerability assessment to be automated into cloud platform services running containerized workloads.

The path to a mature security posture starts with the ability to identify vulnerabilities in software code, third-party libraries, and at runtime. In addition, the cloud platform used to host your applications should be scanned for misconfigurations. This requires the use of policy configuration baselines, benchmarks, and compliance standards that apply to both the infrastructure and the code used to build it. As organizations implement security guardrails early in the software development lifecycle (SDLC), they can take advantage of cloud-native culture to ensure network and security tools are used throughout all phases of the SDLC.

This GigaOm report explores the key criteria and emerging technologies that IT decision makers should evaluate when choosing a vulnerability management solution. The key criteria report, together with the GigaOm radar report that evaluates relevant products, provides a framework to help organizations assess the solutions currently available on the market and how these tools fit with their requirements.

How to Read this Report

This GigaOm report is one of a series of documents that helps IT organizations assess competing solutions in the context of well-defined features and criteria. For a fuller understanding consider reviewing the following reports:
Key Criteria report: A detailed market sector analysis that assesses the impact that key product features and criteria have on top-line solution characteristics—such as scalability, performance, and TCO—that drive purchase decisions.

GigaOm Radar report: A forward-looking analysis that plots the relative value and progression of vendor solutions along multiple axes based on strategy and execution. The Radar report includes a breakdown of each vendor’s offering in the sector.

Vendor Profile: An in-depth vendor analysis that builds on the framework developed in the Key Criteria and Radar reports to assess a company’s engagement within a technology sector. This analysis includes forward-looking guidance around both strategy and product.

Continue Reading

Trending