Hackers are Stealing AWS Keys with PyPi Package

  • By Steven
  • Published: Jun 03, 2022
  • Last Updated: Jun 03, 2022

A PyPi package referred to as “CTX,” and another referred to as “phpass” PHP Library are being used to steal AWS keys. The PHP and Python packages function as trojans. The software supply chain offensive zeroes in on open-source-style digital systems.  

What is CTX all About?

One of the packages, “CTX,” is best described as a Python module. CTX is positioned within the PyPi repository. The attack creates the impression that the computer is performing an update. Readers might find it interesting to learn that CTX was previously published on PyPi way back in the winter of 2014 before being last released in the spring of 2022.

What is Phpass?

Phpass is the other prominent package involved in the digital attack noted above. Phpass is best described as a PHP package forked through GitHub for the transmission of an unauthorized update. Phpass was not updated after its original upload in the summer of 2012, meaning it was vulnerable to opportunistic hackers.

What is the Response to the Threat?

Each of the libraries noted above has been taken down from GitHub and PyPi, respectively. However, digital security specialists are still hard at work attempting to find a way to prevent digital miscreants from snagging environment variables, encoding them, using a web app, and exfiltrating the target’s AWS credentials for illegal use.  

Digital security professionals are also attempting to piece together the puzzle of how the hacker obtained unauthorized access to a maintainer account. This account was used for the purpose of publishing the new version of the CTX. The latest update from the investigation shows the attacker registered the domain in question that ultimately expired in May of 2022.  

Why are Maintainer Email Domains Important?

It is worth noting that it is now possible to buy maintainer email domains that have lapsed and use them for regenerating new maintainer emails with the overarching aim of obtaining control over packages. This fact might come as a surprise to some of the audience, as most are understandably unfamiliar with the nuances of maintainer email domains.

Metadata analysis of nearly two million NPM JavaScript packages performed by academicians with North Carolina State University and researchers with Microsoft shows nearly 3,000 maintainer email addresses are tied to expired domains. These connections empower web-based attackers to hijack in excess of 8,000 packages by seizing control over NPM accounts.

Domain names are available for purchase through domain registrars, setting the stage for the purchaser to link to an email hosting service to manipulate personal email addresses and domains. It is at this point that the hacker takes over the account. Furthermore, if the maintainer domain name has expired, the hacker can obtain the domain and change the DNS mail exchange.

If your business has not updated its digital defenses against such an account takeover, now is the time to do so. Seize the opportunity to fortify your internet security, and you will successfully shield your computers and network against online attacks, including email domain threats such as those described above.

About the Author
IDStrong Logo

Related Articles

Instagram Vulnerability Allowed Hackers Access to Control Your Phone

Security experts Check Point Research discovered a critical vulnerability while examining Instagra ... Read More

Alien Malware Infects More than 226 Mobile Apps and Steals Bank Data

As reported on September 24, 2020, by ZDNet and ThreatPost, a new strain of malware named “A ... Read More

Universal Health Systems Hit by Ransomware Attack

Universal Health Systems (UHS), a Fortune 500 company owning more than 400 hospitals across the co ... Read More

Exchange Server Bug Exposes a Big Risk to Hackers

Months after Microsoft released a patch to fix a serious flaw in MS Exchange Server, more than 61% ... Read More

Clients’ Bank Data Exposed in Blackbaud Ransomware Attack

Blackbaud software was victim to a ransomware attack last May, and new information suggests that c ... Read More

Latest Articles

What you need to know about the Krispy Kreme Data Breach

What you need to know about the Krispy Kreme Data Breach

The popular doughnut and coffeehouse chain Krispy Kreme was established in 1937 in Winston-Salem, North Carolina. It has grown over the years and currently operates 1,500 shops and 17,900 points of access in 40 nations.

What You Need to Know about the Ocuco Data Breach

What You Need to Know about the Ocuco Data Breach

Ocuco is a Dublin-based organization that specializes in optical software solutions. Established in 1993 by Leo Mac Canna, the company initially developed software for independent optometrists.

What You Need to Know about the TxDOT Data Breach

What You Need to Know about the TxDOT Data Breach

The Texas Department of Transportation (TxDOT) is responsible for designing, planning, operating, building, and maintaining the state's transportation system to deliver a reliable and safe transportation system.

What You Need to Know about the AT&T Data Breach

What You Need to Know about the AT&T Data Breach

AT&T, one of the largest telecommunications providers in the United States and the fourth-largest telecommunications company in the world by revenue, experienced a significant data leak, which became public in June 2025.

What You Need to Know about the Mainstreet Bank Data Breach

What You Need to Know about the Mainstreet Bank Data Breach

MainStreet is a community-oriented bank in Fairfax, Virginia. Established in 2004, it is under the MainStreet Bancshares Incorporated, a small-cap financial holding organization.

What You Need to Know about the Cartier Data Breach

What You Need to Know about the Cartier Data Breach

Swiss-owned luxury jeweler, Cartier, has had its website hacked and customer data compromised in the incident. Cartier, a subsidiary of Richemont, produces some of the world's finest watches, bracelets, and necklaces, which have been worn by Michelle Obama, Taylor Swift, and Angelina Jolie.

Featured Articles

How to Buy a House with Bad Credit

How to Buy a House with Bad Credit

Buying your own home is the American Dream, but it might seem out of reach to those with bad credit. However, the good news is, if your credit is less than perfect, you do still have options and in most cases, can still buy a home.

How Secure Is Your Password? Tips to Improve Your Password Security

How Secure Is Your Password? Tips to Improve Your Password Security

Any good IT article on computers and network security will address the importance of strong, secure passwords. However, the challenge of good passwords is that most people have a hard time remembering them, so they use simple or obvious ones that pose a security risk.

Top 10 Senior Scams and How to Prevent Them

Top 10 Senior Scams and How to Prevent Them

Senior scams are becoming a major epidemic for two reasons. First, seniors often have a lot of money in the bank from a life of working hard and saving.

Notice

By proceeding with this scan, you agree to let IDStrong run a Free Scan of supplied parameters of your personal information and provide free preliminary findings in compliance with our Terms of Use and Privacy Notice. You consent to us using your provided information to complete the Free Scan and compare it against our records and breach databases or sources to provide your Free preliminary findings report.

Rest assured: IDStrong will not share your information with third parties or store your information beyond what is required to perform your scan and share your results.

Free Identity Threat Scan
Instantly Check if Your Personal Information is Exposed
All fields below are required
Please enter first name
Please enter last name
Please enter a city
Please select a state
Please enter an age
Please enter an email address
Close