Live data from Hacker News

Git ransom campaign incident report

about.gitlab.com

31–40 of 76 posts

Re: Git ransom campaign incident report

#31
post #11

2FA is great for the web UI, but none of these vendors make it particularly easy to enforce 2FA on the command line.

Exactly. PATs are designed to circumvent human intervention (MFA) for authentication in order to support automation. I am very curious if there's a better way than PATs.

SSH keys on a YubiKey

Re: Git ransom campaign incident report

#32
post #11

2FA is great for the web UI, but none of these vendors make it particularly easy to enforce 2FA on the command line.

I use Krypt.co. It stores my private key in my mobile device only. I can hook up any device to use it as my SSH key, but the key never leaves the device. Instead, it signs all requests only once I authorize them interactively.

Re: Git ransom campaign incident report

#33

Is it common that companies share intelligence like this? I think it's a wonderful idea, given they all operate on essentially the same service (git) they share similar security concerns.

It took exceptional circumstances, but it was the right call in this case. All were working toward the same goal. We can all go back to our war after the white walkers are dealt with (don’t bring Cersei up or it ruins the analogy)

Re: Git ransom campaign incident report

#34

Earlier quoted context omitted.

How so? An SSH key is a single factor. You could argue that a password-protected private key provides a second factor, but that still falls in the category of "something you know."

How many people can recite their SSH key? Surely an SSH key is "something you have".

Having two different static passwords on an account isn't actually two different factors, whether you can recite them or not.

The fact that one time passwords expire and change is what makes them a different factor than a static password.

Re: Git ransom campaign incident report

#35

1. Stop using 'git add .' This is a bad habit I see people keep suggesting to new git users. Stop recommending it and stop doing it. 2. Never store your password in .git/config. Why are you doing that? That shouldn't be stored in .git/config.

Why are people using passwords instead of keys?

Re: Git ransom campaign incident report

#36
post #11

2FA is great for the web UI, but none of these vendors make it particularly easy to enforce 2FA on the command line.

An ssh key is 2FA

An SSH key is one factor. There are various methods for protecting the key with additional factors, but none of the git hosts provide a way to require those additional factors. So as an org owner you're left either trusting every one of your users not to get sloppy with keys, or installing spyware on their computers to make sure they're not using unprotected keys.

Re: Git ransom campaign incident report

#37

1. Stop using 'git add .' This is a bad habit I see people keep suggesting to new git users. Stop recommending it and stop doing it. 2. Never store your password in .git/config. Why are you doing that? That shouldn't be stored in .git/config.

Why are people using passwords instead of keys?

Why do people even have passwords that don't require 2FA?

Re: Git ransom campaign incident report

#38
post #16
post #7

Earlier quoted context omitted.

The threat cited in the article said not just that the code would remain deleted, but that it would be "leaked" - presumably many of these were private repos. You could never trust that the attacker actually deleted their copy of the repo, but then, the whole cryptolocking business model falls down if the attacker isn't at least moderately honest, so I can see why people would respond to that threat.

”the whole cryptolocking business model falls down if the attacker isn't at least moderately honest” Nitpick: it only requires most attackers to be somewhat honest. Having a few unscrupulous ones may make life harder for the “honest” ones, but they themselves can be better of, e.g. by, after receiving payment, demanding more money.

Sounds like we need a review site for extortionists.

Re: Git ransom campaign incident report

#39
post #4

Since literally everybody who has cloned a repo has a full copy of it, and since git is a decentralized revision control system, what on earth can it mean to hold a repo for ransom? The write up even says so: to recover, just push your code back up to our repo. I really don't understand what they are talking about. It's as if someone showed me a photo of my child and said, "pay me or I'll burn this photograph". What…

I don't keep all my git code local, only the projects I am currently working on.

Do you rely on just one 3rd party like gitlab/bitbucket/github to keep your _only_ copy of your non-current projects?

That seems unwise. I don't have many local repos on this 128GB MacBookAir, but as well as BitBucket all the projects I have ever worked on are on other several machines and/or hard drives I have locally, and also zipped up in S3 buckets and on tarsnap.

Like they say, there's two kinds of people. People who've lost important data because they didn't back it up properly, and people who haven't yet.

Re: Git ransom campaign incident report

#40

1. Stop using 'git add .' This is a bad habit I see people keep suggesting to new git users. Stop recommending it and stop doing it. 2. Never store your password in .git/config. Why are you doing that? That shouldn't be stored in .git/config.

Why are people using passwords instead of keys?

[deleted]
Post reply on HN