Data Protection

Thousands of Secrets Leaked on Code Formatting Platforms

JSONFormatter and CodeBeautify users exposed credentials, authentication keys, configuration information, private keys, and other secrets.

Security vulnerability

Users of code formatting platforms are exposing thousands of secrets and other types of sensitive information, attack surface management provider WatchTowr warns.

GitHub found roughly 39 million inadvertently leaked secrets across the platform last year, and previous research has revealed that secrets exposed on Git-based Source Code Management systems (SCMs) remain permanently leaked.

But users’ blunders extend beyond unknowingly hardcoding secrets in code published to public repositories. Every online tool used without proper code sanitization may lead to a leak. And threat actors are hunting them like hawks.

This is the conclusion WatchTowr reached after analyzing roughly 80,000 saved JSON files collected from JSONFormatter and CodeBeautify, platforms that users rely on to ‘beautify’ their code.

In its dataset, the outfit found thousands of sensitive secrets, including credentials, keys, tokens, configuration files, SSH session recordings, sensitive API requests and responses, personally identifiable information (PII), and other types of sensitive information.

In one case, someone apparently exported all credentials for their AWS Secrets Manager to a code formatting solution.

Advertisement. Scroll to continue reading.

Cybersecurity and critical infrastructure entities affected

The leaked secrets belong to organizations across multiple verticals, including technology and cybersecurity, critical national infrastructure, government, finance, healthcare, aerospace, insurance, banking, education, telecoms, travel, and more.

The problem is not that people use these platforms to format and beautify the code in their enterprise or personal projects.

The issue is that some of them save the projects to create links to the code, which can be shared, and that these platforms allow visitors to scroll through recently saved content and associated URLs.

WatchTowr used the ‘Recent Links’ pages of both JSONFormatter and CodeBeautify to fetch over five gigabytes of JSON data, representing years of historical content.

After analyzing the data, it attempted to contact high-profile organizations impacted by the leaks, and worked with CERT teams to reach more entities.

By placing fake credentials in these JSON formatting platforms, the cybersecurity firm discovered that others were also scraping the databases and that exposed secrets are used within days after being leaked.

“We don’t need more AI-driven agentic agent platforms; we need fewer critical organizations pasting credentials into random websites,” WatchTowr notes.

Related: Many Forbes AI 50 Companies Leak Secrets on GitHub

Related: Files Deleted From GitHub Repos Leak Valuable Secrets

Related: PyPI Packages Found to Expose Thousands of Secrets

Related: Thousands of Popular Websites Leaking Secrets

Related Content

Cybersecurity Funding

The company will use the Series B funds to expand its platform for securing AI agents’ access to sensitive systems.

Application Security

Roughly 200,000 of the credentials were exposed after GitHub enabled push protections by default.

Cybercrime

In the wake of a suspected leader’s arrest, ShinyHunters says it never intended to publish data stolen from the FBI.

Endpoint Security

Branch Target Reuse (BTR) is a new Spectre v2 attack targeting JIT compilers in web browsers, language runtimes, and the operating system kernel

Data Protection

Researchers show that file-change notification systems can leak keystroke timing, browsing activity, and WhatsApp media events.

Data Breaches

The cybercrime group is unhappy with its description in an FBI report and threatens to leak stolen information. 

Data Breaches

Revolut allegedly fed customer information to hackers impersonating an Italian government agency for five months.

Data Breaches

A hacker claims to have stolen 7.5 million customer records after breaching the company’s systems.

Copyright © 2026 SecurityWeek ®, a Wired Business Media Publication. All Rights Reserved.

Exit mobile version