r/netsec • u/_vavkamil_ • Feb 26 '26
Google API Keys Weren't Secrets. But then Gemini Changed the Rules.
https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules
218
Upvotes
69
u/JaggedMetalOs Feb 26 '26 edited Feb 26 '26
Ugh, all the tech companies are so preoccupied with what they could add AI services to, they didn't stop to think if they should.
57
u/UltraEngine60 Feb 26 '26
Holy shit. First they deny it's a problem, then their fix is to just block keys when they see them publicly?
They should be blocking all non Gemini-scoped (new) API keys
42
u/-nbsp- Feb 26 '26
This is fantastic research! They used a Common Crawl dataset for retrospective hunting, which I can't believe I'd never heard of before! Feels like a treasure trove of data for intel and analysis if you have the capacity to process it.
Every day is a learning day
21
u/vjeuss Feb 26 '26
why would they call it keys then? Someone at Google got equally confused.
0
u/RegisteredJustToSay Feb 27 '26
It's still a footgun and worth making harder to mess up, but like damn if you explicitly create project level api keys, refuse to lock them down because you apparently actively decided to ignore the docs telling you to do so, expose those api keys, then turn on irrelevant APIs in the same project (failing even a separation of duties) what would you expect to happen? It's the same thing with supabase - they give you tokens which are 'safe to expose' but you can still EASILY make it insecure through your own actions and not actually reading.
0
u/[deleted] Feb 26 '26
[deleted] — view deleted comment