Docker Hub could be containing thousands of valuable secrets, and they're all in plain view

Docker Hub Office
(Image credit: Shutterstock)

There are “thousands” of secrets exposed on Docker Hub, ranging from harmless API keys to potentially harmful information.

This is according to researchers from the Cybernews Research team, who recently analyzed 10,178 Docker Hub images. In those, they found almost 5,500 container images (54%) holding secrets that could be deemed sensitive information.

From those 5,500 container images, the researchers pulled exactly 191,529 secrets. Many were duplicates which, when removed, left the researchers with exactly 48,481 unique secrets. 


Reader Offer: $50 Amazon gift card with demo

Reader Offer: $50 Amazon gift card with demo
Perimeter 81's Malware Protection intercepts threats at the delivery stage to prevent known malware, polymorphic attacks, zero-day exploits, and more. Let your people use the web freely without risking data and network security.

Preferred partner (What does this mean?

Billions of downloads

The most common secret was GitHub tokens, comprising 26.6% of all the secrets discovered (51,038). This one was followed by Datadog Tokens (13.9%), and Uniform Resource Identifiers (7.6%). Ten thousand private keys used for encrypting or decrypting were also discovered. 

While these numbers are staggering, those with an eye for detail can discover even more potent secrets. For example, the researchers found more than 9,000 PayPal OAuth secrets, used to control access to user accounts and financial information. Furthermore, there were almost 8,000 UnifyID secrets that could expose identity data.

The containers holding these secrets have been downloaded more than 132 billion times already.

“That means that exposed secrets could be running on multiple servers around the globe, posing risks and draining cloud resources from inconspicuous Docker Hub contributors," Cybernews researcher Vincentas Baubonis warns.

"Leaving any secrets exposed while uploading your images online poses a high risk of threat actors finding them.” 

Most secrets, the researchers further explained, came from re-using packages with sensitive information.

“Developers expose diverse hidden data types and a vast amount of sensitive data. The ratio of unique secrets per each vulnerable docker image is practically eight to one, meaning that one image, exposing any secrets, is likely exposing eight of them on average,” Baubonis warned.

The research reveals a widespread practice of leaving sensitive data in container images, prompting a call for organizations to strengthen security measures. Baubonis advises developers to reset exposed secrets, encrypt sensitive data within images, and educate staff on the risks associated with embedded data.

More from TechRadar Pro

Sead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.

Read more
A close-up photo of an iPhone, with the App Store icon prominent in the center of the image.
Thousands of iOS apps found to expose user data
Shadowed hands on a digital background reaching for a login prompt.
Private API keys and passwords found in AI training dataset - nearly 12,000 details leaked
Data Breach
Thousands of widely-used public workspaces are leaking data
A digital themed isometric showing a neon padlock in the foreground, and a technological diagram of a processor logic board in the background.
A top online gift card store may have exposed private data on hundreds of thousands of users
A graphic showing someone on a tablet working through a supply chain.
Security issue in open source software leaves businesses concerned for systems
hacker.jpeg
Thousands of GitHub repositories exposed via Microsoft Copilot
Latest in Security
Data leak
Top home hardware firm data leak could see millions of customers affected
Representational image depecting cybersecurity protection
Third-party security issues could be the biggest threat facing your business
A stylized depiction of a padlocked WiFi symbol sitting in the centre of an interlocking vault.
Broadcom warns of worrying security flaws affecting VMware tools
Android Logo
Devious new Android malware uses a Microsoft tool to avoid being spotted
URL phishing
HaveIBeenPwned owner suffers phishing attack that stole his Mailchimp mailing list
Ransomware
Cl0p resurgence drives ransomware attacks to new highs in 2025
Latest in News
Buzz Lightyear Space Ranger Spin Rennovations
Disney’s giving a classic Buzz Lightyear ride a tech overhaul – here's everything you need to know
Hisense U8 series TV on wall in living room
Hisense announces 2025 mini-LED TV lineup, with screen sizes up to 100 inches – and a surprising smart TV switch
Nintendo Music teaser art
Nintendo Music expands its library with songs from Kirby and the Forgotten Land and Tetris
Opera AI Tabs
Opera's new AI feature brings order to your browser tab chaos
An image of Pro-Ject's Flatten it closed and opened
Pro-Ject’s new vinyl flattener will fix any warped LPs you inadvertently buy on Record Store Day
The iPhone 16 Pro on a grey background
iPhone 17 Pro tipped to get 8K video recording – but I want these 3 video features instead