PyPl has been found hosting AWS keys and malware once again


The popular Python package repository PyPI was found hosting AWS keys and malware (opens in new tab), putting countless Python developers at risk of serious supply chain attacks.
The results come courtesy of software developer Tom Forbes, who built a tool using Rust which scanned all new packages on PyPI for AWS API keys.
The tool came back with 57 positive results, including some from Amazon, Intel, Stanford, Portland, and Louisiana University, the Australian Government, General Atomics fusion department, Terradata, Delta Lake, and Top Glove.
Minimizing the damage
“This report contains the keys that have been found, as well as a public link to the keys and other metadata about the release,” Forbes said. “Because these keys are committed to a public GitHub repository, Github’s Secret Scanning service kicks in and notifies AWS that the keys are leaked.”
Consequently, AWS notifies the developer of the leak and quarantines it to minimize the damages. The problem is that a tool such as this one was relatively easy to build, and while Forbes might be benign in his intentions, others may not be. Speaking to The Register, he said different keys may cause different levels of pain:
“It depends on the exact permissions given to the key itself,” Forbes explained. “The key I found leaked by InfoSys [in November] had ‘full admin access’ which means it can do anything, and other keys I found in PyPI were ‘root keys’ which are also allowed to do anything. An attacker holding these keys would have full access to the AWS account it is linked to.”
He added that GitHub’s automated key scanning is a positive step forward, but not enough to tackle the problem in its entirety:
“GitHub also cares a lot about supply chain security but they have dug themselves a hole: The way they scan for secrets involves a lot of collaboration with vendors who may disclose internal information about how keys are constructed to GitHub,” he said. “This means that the regular expressions that GitHub uses to scan for secrets cannot be made public and are sensitive, which also means that third parties like PyPI are effectively unable to utilize this awesome infrastructure without sending every bit of code published on PyPI to GitHub.”
While he did blame PyPI, saying the platform could do more to protect its users, he also said developers should take some responsibility for the security of their solutions. What’s more, AWS should be a part of the solution, as well, he added: “AWS has some blame to share here as well: IAM is notoriously difficult to debug and get right which leads to overly wide permissions being granted on keys.”
To protect against supply chain attacks via PyPI, Forbes says organizations should reconsider their security policies.
Via: The Register (opens in new tab)
Audio player loading… The popular Python package repository PyPI was found hosting AWS keys and malware (opens in new tab), putting countless Python developers at risk of serious supply chain attacks. The results come courtesy of software developer Tom Forbes, who built a tool using Rust which scanned all new…
Recent Posts
- Adidas plugs its website and app into Amazon’s ‘Buy with Prime’ program
- An iOS update will give iPhone 15 Pro owners Visual Intelligence
- Is that Asus’s first portable heater? No, it’s the new ROG XG eGPU with a 600w RTX 5090 card and (wealthy) creatives will love it
- Nickelodeon’s next Avatar animated series is finally coming together
- Hackers are targeting Signal with new QR code-linked cyberattack
Archives
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010