News for hackers. Stuff that matters.
Re:We updated our RSA SSH host key by paxys on Friday March 24, 2023 @02:14AM (#35285621)
Conveniently missing from the announcement:

- When exactly was the key leaked? Yesterday? A month ago?

- How long was it visible for? And no, "briefly" doesn't cut it.

- Did any internet traffic reach the page while it was exposed? We know you log everything, so it is a yes or no answer.

If any of these answers were pretty, I imagine they would have explicitly included them in the post.

Re:We updated our RSA SSH host key by CGamesPlay on Friday March 24, 2023 @02:26AM (#35285687)
In fairness, it's better that they rotate the key immediately before even looking at the logs. But we can demand better answers from them from this point.
Re:We updated our RSA SSH host key by paxys on Friday March 24, 2023 @02:30AM (#35285711)
Did they rotate it immediately? The only reference to a specific time is:

> This week, we discovered...

So they found out about it sometime between Monday and Thursday, and rotated it Thursday evening.

Re:We updated our RSA SSH host key by remus on Friday March 24, 2023 @03:27AM (#35286093)
This seems a reasonable timeframe to me given the scale of the impact.

Security issues are obviously very important, but equally I would be worried if they started acting impulsively immediately after discovering the issue, because there would not have been time to understand the problem and consider the options. If you jump on a solution without giving it a bit of thought first it's too easy to exacerbate the situation.

Re:We updated our RSA SSH host key by Msurrow on Friday March 24, 2023 @03:37AM (#35286168)
Its not the time from discovery to rotating the key thats OPs issue. What was the time from key being public until discovery? Thats the issue. And also, while the key was public, did anyone access it?
Re:We updated our RSA SSH host key by remus on Friday March 24, 2023 @03:49AM (#35286219)
Agreed. I don't think that was the point the comment I replied to was making though? Maybe I misread it.
Re:We updated our RSA SSH host key by UseStrict on Friday March 24, 2023 @11:17AM (#35290168)
Maybe I'm missing something, but since all GitHub events can be watched through the API, I don't think it particularly matters how long it was public. Anecdotal but I once accidentally pushed an AWS key (thankfully heavily locked down and not a root account) for all of 30 seconds and it was compromised anyways.
Re:We updated our RSA SSH host key by Msurrow on Friday March 24, 2023 @12:58PM (#35292008)
I agree. Even if its only public for one sec it should be considered compromised. However, everything is a risk management question, so knowing the amount of time it was exposed is helpful for other orgs to determine their response to this incident. Same if there was an accesslog.
Re:We updated our RSA SSH host key by renonce on Friday March 24, 2023 @03:17AM (#35286025)
> How long was it visible for? And no, "briefly" doesn't cut it.

I don't know how long exactly, but in theory you can subscribe to a stream of ALL events happening at GitHub by fetching from this endpoint: https://api.github.com/events

With these events you know what new repositories are created and what changes are pushed, so you can fetch every new change. Once something gets pushed to a public repository, it's very likely that some spider will have fetched it within a few minutes.

Re:We updated our RSA SSH host key by Maxious on Friday March 24, 2023 @04:55AM (#35286636)
Especially something easily identifiable as a SSH private key, you get emails from a variety of security vendors to the address associated with the commit offering their services
Re:We updated our RSA SSH host key by pbhjpbhj on Friday March 24, 2023 @06:05AM (#35287078)
I thought github themselves did checks for credentials? Isn't that party of their offered services?
Re:We updated our RSA SSH host key by acdha on Friday March 24, 2023 @07:09AM (#35287500)
I’d bet that’s why it said “briefly” — someone got the alert, realized what it meant and called their boss.
Re:We updated our RSA SSH host key by KirillPanov on Friday March 24, 2023 @04:56AM (#35286654)
> you can subscribe to a stream of ALL events happening at GitHub by fetching from this endpoint: https://api.github.com/events

Wow I am shocked that they allow "firehose" access not only for free, but without even an API key.

Given enough disk and bandwidth, does this mean you could keep your own copy of all of github? I'd love to be able to grep the whole thing.

Re:We updated our RSA SSH host key by jonas-w on Friday March 24, 2023 @05:53AM (#35287007)
Re:We updated our RSA SSH host key by bspammer on Friday March 24, 2023 @06:08AM (#35287095)
The leaked private key should be somewhere in this archive then no?
Re:We updated our RSA SSH host key by jonas-w on Friday March 24, 2023 @06:51AM (#35287378)
The events stream does not contain files or anything in your git repo. Only stuff like commit messages, issues, comments, etc.
Re:We updated our RSA SSH host key by 112 on Friday March 24, 2023 @12:53PM (#35291921)
i think it does contain code
Re:We updated our RSA SSH host key by squeaky-clean on Friday March 24, 2023 @04:07PM (#35294729)
You can view it yourself, it doesn't contain the code directly, but it does contain a link to the code blob.
Re:We updated our RSA SSH host key by KirillPanov on Friday March 24, 2023 @03:03PM (#35293933)
Wow thanks. I looked all over that page but couldn't get a rough idea of the dataset size for the event stream (not the commits).

Are we talking 1TB/year, 10TB/year, 100TB/year?

Re:We updated our RSA SSH host key by jonas-w on Saturday March 25, 2023 @07:43AM (#35301684)
Your comment made me curious. I downloaded the complete last month (February). 28 days, every day has a gzipped json file which is on average 86MB. Summarized it is 53GB of gzipped jsons for 28 days. Roughly 700GB gzipped per year. Didn't have the chance to ungzip them all.
Re:We updated our RSA SSH host key by hoffs on Friday March 24, 2023 @05:36AM (#35286902)
> - When exactly was the key leaked? Yesterday? A month ago?

"This week, we discovered that GitHub.com’s RSA SSH private key was briefly exposed in a public GitHub repository"

Re:We updated our RSA SSH host key by tyingq on Friday March 24, 2023 @05:46AM (#35286963)
That's when they discovered it had been leaked, not necessarily when the leak happened.
Re:We updated our RSA SSH host key by rschoultz on Friday March 24, 2023 @08:23AM (#35288083)
Indeed, and about their statement

> We have no reason to believe that the exposed key was abused and took this action out of an abundance of caution.

This is not verifiable, right? As the authentication method has no public and required revocation source, and given that the key, if having leaked, likely will be acquired by an authoritarian government, they can selectively MITM organizations and users that are not aware of this blog post.

Re:We updated our RSA SSH host key by 3np on Saturday March 25, 2023 @04:33AM (#35300660)
* * *
Re:We updated our RSA SSH host key by rumsbums on Monday March 27, 2023 @03:16AM (#35323769)
Also sorely missing: an apology. Instead we're given crap like "out of an abundance of caution, we replaced our RSA SSH host key".