TL;DR: Truffle Security reports that scanning 22 million public cloud development environment projects across CodeSandbox, StackBlitz, CodePen, and JSFiddle surfaced 8,792 verified unique secrets, including a GitHub employee token with write access to github/github. Public sandboxes behave like an ungoverned secrets surface because they lack native scanning, push protection, and automated revocation.
Editorial analysis by NHI Mgmt Group, based on content published by Truffle Security: “Thousands of Live Secrets Found Across Four Cloud Development Environments”.
Key questions
Q: What breaks when secrets are pasted into public cloud development environments?
A: What breaks is the assumption that public sandboxes are harmless sharing spaces.
Q: Why do public sandbox leaks create more risk than the file looks like they should?
A: Because the visible file is only the wrapper around the credential's real permission scope.
Q: What do security teams get wrong about secure development environments?
A: They often treat local setup as a purely engineering concern, even though it shapes how people learn to handle trust, credentials, and access paths.
Practitioner guidance
- Audit public CDE projects for live credentials Inventory CodeSandbox, StackBlitz, CodePen, and JSFiddle projects that are publicly reachable, then search for API keys, OAuth tokens, SSH keys, and other secrets before they are copied again.
- Rotate any secret exposed in a sandbox Revoke and replace credentials found in public projects, even when the project was posted for a short-lived demo, because exposure persists until the secret itself changes.
- Apply publication-time secret scanning Add automated checks at the moment a project becomes public so leaked values are detected before the environment is shared externally.
Bottom line: Public cloud development environments can store live secrets in plain sight, so they should be governed as credential-bearing systems rather than informal scratch spaces.
What's in the full report
Truffle Security's full article covers the operational detail this post intentionally leaves for the source:
- Enumeration methods used to discover millions of public CodeSandbox, CodePen, JSFiddle, and StackBlitz projects
- Technical scanning workflow with TruffleHog, deduplication, and triage across thousands of verified secrets
- Specific examples of high-impact exposures, including repository write access and SaaS administrative tokens
- Disclosure and revocation handling across multiple providers and platforms
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Public cloud development environments are now a secrets governance domain, not a side channel: The article shows that browser-based sandboxes can hold live credentials at scale, which puts them inside the identity security perimeter. Teams that govern Git repositories but ignore CDEs are leaving a parallel code workspace outside policy, review, and revocation discipline. The practical conclusion is that public development platforms need the same governance attention as any other credential-bearing surface.
A question worth separating out:
Q: How should organisations decide whether a leaked sandbox credential is urgent?
A: Prioritise credentials with write access, admin scope, or access to production-adjacent systems first. A leaked demo token is serious, but a token that can modify repositories, trigger workflows, or reach high-value SaaS resources demands immediate revocation and scope review.
👉 Read our full editorial: Public cloud development environments hide credential exposure at scale