
What happened
BPR Prot. hid keys in 7 spots in a Next.js practice app and asked Claude Code and Codex to find browser-exposed secrets; both flagged leaked keys K2, K4 and K5 in all 12 runs.
Why it matters
Both AI tools caught the leaked keys every time, suggesting AI pre-launch checks can reliably surface exposed secrets—though this was one small practice app, so results may not generalize.
Summaries like this, every morning.
By signing up you agree to the Terms of Service and Privacy Policy.
The experiment was designed around a common blind spot: developers often assume that scanning environment variables is enough. BPR Prot. deliberately placed K4 and K5 outside the .env file—one hardcoded in a client-side admin page, the other in a public config file—to test whether AI tools would look beyond the obvious. Both Claude Code and Codex did, flagging all three leaked keys across every run. The tools also correctly classified keys that were not leaked but still risky, such as a SendGrid key that cannot reach the browser but is written in a way that would expose it if prefixed with NEXT_PUBLIC_. Claude Code consistently warned that renaming the key to fix the issue would itself cause a leak, while Codex mentioned that risk only once. However, the AIs relied solely on reading source code: they did not run npm install or a build, and they could not check git history. So while the results are encouraging for pre-launch checks, they do not prove that keys were never exposed in the past. The author recommends rotating any found keys and reading the AI's stated reasoning before trusting a clean bill of health.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Anthropic said its models found vulnerabilities in advanced cryptography standards, weaknesses that matter for…

In McKinsey's August 2026 survey, 40% of respondents at organizations with more than $1 billion in annual reve…

Cisco's Outshift released open-source tools ACCORD, CONCORD, SCOPE, and MAS-Lab

Anthropic said unreleased Claude models found a theoretical attack on lattice cryptography, solving a 14-year-…

In a Fortune commentary, the cognitive scientist says Claude told her the Post-It framework she sketched “earn…

Anthropic announced it solved a way to undo a type of "extremely complex encryption, using math problems thoug…
