LiteLLM Default Master Key: Is Yours Still sk-1234?
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
But, when we scanned, roughly thousands of publicly exposed Light LLM instances across the internet, what we found was more surprising because about a tenth of those exposed to the internet accepted the default master key or had no authentication turned on at all. >> Wait a minute. Wait a minute. Yara, no authentication turned on at all? >> Completely exposed. But, wait until you hear this. The default master key that's literally escape 1 2 3 4. >> No, no, no, no. Really? >> Mhm. Yeah. And it's in every quick start guide, every Docker Compose template, every tutorial. And teams just ship it to production right as is without ever changing it. And even worse, we discovered that if you deploy Light LLM without setting a master key, then the server just treats this as unauthenticated. It automatically assigns every anonymous request the proxy admin role by default.
Now, of course, it's fixed now, but that was the situation during my investigation. >> So, it just automatically assigned a role by default and let everyone in. Everyone. >> Luckily, they fixed it.





