Github Kills Search After Hundreds of Private Keys Exposed
mask.of.sanity writes "Github has killed its search function to safeguard users who were caught out storing keys and passwords in public repositories. 'Users found that quite a large number of users who had added private keys to their repositories and then pushed the files up to GitHub. Searching on id_rsa, a file which contains the private key for SSH logins, returned over 600 results. Projects had live configuration files from cloud services such as Amazon Web Services and Azure with the encryption keys still included. Configuration and private key files are intended to be kept secret, since if it falls into wrong hands, that person can impersonate the user (or at least, the user's machine) and easily connect to that remote machine.' Search links popped up throughout Twitter pointing to stored keys, including what was reportedly account credentials for the Google Chrome source code repository. The keys can still be found using search engines, so check your repos."
they've been seen by 'many eye balls'.
That's good right?
This is why developers are not sysadmins.
These kinds of repositories need to learn that and not let these folks do this sort of thing. If would be simple to use a regex to filter out the posting of these sorts of files. Maybe Devs should even be charged a couple dollars to get a decent review of these things.
'nuff said.
Developers (using the term loosely) deserve whatever ill comes from checking in private keys. Public repo or otherwise
site:github.com inurl:id_dsa
Idiots...
...that even (supposedly) smart people can be stupid.
Thanks for taking away valuable functionality to protect idiots from themselves. O_o
-73, de n1ywb
www.n1ywb.com
I was cruising ebay yesterday and saw that one of the laptops had their windows license keys exposed in pictures in a readable format. I poked around some more and found that isn't terribly uncommon. Some people just don't think no matter what website it is.
I don;t understand the issue.
It's all very cloudy to me.
None of these "private key" files in the posted pic on Twitter actually contain any key data
Hey, let's be so lazy that user_id=1 is always the Admin user! Ohmygosh it makes testing so much easier and that all that matters!
inurl:sourceforge inurl:id_dsa -inurl:id_dsa.pub
Seems like the wrong response. Instead of killing search, why not just erase the keys files and lock out the accounts of the offending devs?
These stupid people should be had their accounts suspended.
People should be accountable for their actions, and these idiots are potentially compromising third party data security!
ICO didn't fined Sony for the information leak on that Anonymous attack? Why in hell GITHUB user's should be less accountable for things THEY ARE FSCKING COMMITING in their accounts?
Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
According to their twitter and status pages, the search is currently unoperational due to problems with their search cluster. They recently released changes to their search including, I believe, a move to ElasticSearch. The linked article says as much, too, so yet another fail in a slashdot summary.
Looks like these grad students have all growned up and uploading it all to the cloud.
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
Security IQ test question 1: "Ensure all private keys are are stored in a secured location."
"Oh sh**..."
This is exactly the problem OSS (http://github.com/hbs/oss) is trying to solve!
Maybe if it weren't so goddamned complicated to remove a file from the history of git, this wouldn't happen. Explain to me, in a series of commands, how I would remove a hypothetical "secret_keys.txt"?
This happens both in private and publicly developed projects. All too often the developers do not grasp the fundamentals of security. If lucky, they grasp 'enable encryption' but it's exceptionally rare for them to understand things like mutual authentication and appropriate key management or even why a backdoor or fixed credential is very very bad news. The 'answer' in many companies is to tack on a 'security expert' to audit the code and do some penetration testing. While this is certainly not a bad idea, the security expert who is not a developer can only do so much. Additionally, that security specialist frequently ends up with an antagonistic relationship to the other developers because the developers will want to do things the ludicrously insecure easy way and the security specialist, conversely, will impose security but without much perspective for making the security as easy as it could be. As a common example, take SSL. Many developers will say 'enable SSL because it is secure, but disable all cert checking because it's beyond us'. SSL is nearly useless in that scenario. Security person comes in and rightly notices this is a dumb idea. Security person then forces develoers to turn their project into nagware so that user is well warned about the threat and maybe the user will do something like carefully curate their certificate management to avoid the nag, when in practice the user just trains to always click 'ok'. Meanwhile, a third option of secure, automated PKI chaining off some other solid trust relationship is missed because the required understanding and perspective are not shared among enough of the developer base.
The only way software can be entrusted to do things moderately secure is if solid principles of security are pervasive in the minds of all the developers. Then good security practices are done and frequently in a manner that is extremely unobtrusive to the user.
XML is like violence. If it doesn't solve the problem, use more.
Hundreds of keys from a million accounts; less than one in a thousand developers screwed up. Call a doctor at once! Then ask him about outliers in large populations.
Not quite. They're already out there. The keys are still in the revision history. People have forked and cloned it.
Hopefully the developers who created these keys know that besides removing them from the repo, the keys can no longer be used. They must be removed from every .ssh/authorized_keys file, every service like Github that uses them for deploying code, etc.
This doesn't suggest github took anything down on purpose: https://status.github.com/messages.
Seems to me they were just experiencing some technical difficulties from all the people sharing those search links and having a laugh at the stupids...
I skimmed over the github site and didn't find anything that would suggest otherwise at least.
Of course I didn't read the articles because they seem badly misinformed and confuse private keys with passwords.
Any wonder why I make factor passwords and keys a coding standard?
Fugue for Aaron Swartz
Interesting how just last night this post about Arch users being pedos showed up on 4chan. Someone had uploaded their zshell history file into the repository and OP happened to notice it. Today Github announces search is being killed...
Are people going to be demanding a class action lawsuit against the administrators of GitHub for "failing to protect their security," or is that only reserved for Sony and other hatreds-du-jour?
Here's an exercise: Remote into your favorite printer's web interface and find a unique short string of text on the front page. Search that in Google with quotes and be amazed at how many people have the web interface for their printers completely exposed to the internet with a public IP. I don't even know how this could happen without deliberately doing it.
https://encrypted.google.com/search?hl=en&q=site%3Abitbucket.org%20id_rsa ...
"Users found THAT quite a large number of users WHO HAD added private keys to their repositories AND THEN pushed the files up to GitHub."
And where's the rest of the sentence?
"I saw THAT my dog, WHO HAD chased a rabbit AND THEN gone to sleep..."
See?
Bloody Americans, can't even understand the words "that", "than" and "then". Idiots.
Those users are idiots. GitHub shouldn't shutdown the search funtion over this. It's their users' own fault for storing private keys in a public repo.
while
Google search
site:github.com "id_rsa"
really them removing the search option does nothing now that is known.
https://github.com/blog/1390-secrets-in-the-code
"I also want to clarify that our code search results being unavailable is unrelated to this issue. Our operations team has been working on repairing and tuning the code search cluster. We will continue to update our status site with updates on our progress. We will also be publishing a detailed post-mortem on the code search availability issues next week."
We've been looking for a Slashdot article about this, but over the weekend there was an apparent MITM attack on Github, from China. Someone posted it to our online packet capture viewer tool and it has been exploding every since: http://www.cloudshark.org/captures/cbdd11b20a5c Has anyone seen an article about this yet?