this post was submitted on 02 Mar 2024
240 points (98.0% liked)

Technology

59299 readers
4531 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

GitHub is under automated attack by millions of cloned repositories filled with malicious code.::Thanks to a combination of sophisticated methodology and social engineering, this particular attack seems to be very difficult to stop.

all 20 comments
sorted by: hot top controversial new old
[–] [email protected] 80 points 8 months ago

So they are poisoning GitHub copilot?

[–] [email protected] 47 points 8 months ago (4 children)

What kind of lowlife attacks GitHub of all places?!

[–] [email protected] 45 points 8 months ago

https://www.eigenmagic.com/2010/12/31/why-some-people-hate-microsoft-a-history-lesson/

it's worth the read, but the conclusion at the end is important

Who cares?

Well, everyone who uses a computer should, particularly if we consider what might have happened if Microsoft hadn’t abused their market power. When a monopolist abuses their power, customers all lose, because they don’t get to enjoy the more rapid improvements that robust competition provides. It’s one of the key reasons we think competition is a good thing.

[...] But lastly, and this is the big one for me, we might not have a monoculture of operating system on the Internet with such a poor security model.

[...] Imagine a world where Symantec didn’t exist, because viruses weren’t so easy to write and spread to all the world’s computers. Imagine a world where spam didn’t constitute 90% of all email because it wasn’t so easy to take over a PC and turn it into a botnet zombie. Imagine not having to do impromptu tech-support for family members who accidentally installed a bunch of spyware.

[...]Imagine all the time and money that has been, and continues to be, spent on fixing all of the issues that a better security model 10-15 years ago might have avoided.

In Summary

Microsoft have made (or bought) some excellent products, as they continue to do. There are many wise, capable, and perfectly reasonable people who work there, what with it being a big company and all. This is not a company that is an unrestrained force for evil in the world.

However.

Microsoft have a history of abusing market dominance in order to exclude competitors. Many of the top management running the company at the time are still there, running the company today.

Perhaps there will be no repeat performances, but there are very good reasons for greeting rhetoric from Microsoft regarding their openness with some scepticism.

Inflammatory headline aside, let me be clear that I don’t hate Microsoft. But I can understand why there are those who do.

[–] [email protected] 21 points 8 months ago (1 children)

Someone not thrilled they're now owned by Microsoft?

[–] [email protected] 10 points 8 months ago (1 children)

That happened 6 years ago. Seems like a long time to hold grudge before attacking.

[–] [email protected] 2 points 8 months ago

GitHub was previously owned by Corvids.

[–] [email protected] 19 points 8 months ago* (last edited 8 months ago)

The smart kind of lowlife. Because it’s a very large and generally trusted source, meaning it’s an excellent vector for attacks. Sometimes the simplest reason is the most likely.

[–] [email protected] 8 points 8 months ago

Meh, they practically fold at every complaint to takedown tools that get accused of piracy.

Nintendo especially gets annoying about deleting every possible fork of some tiny script that extracts the switch keys.

Plus it's Microsoft, let them deal with it lol.

[–] [email protected] 14 points 8 months ago (2 children)

That's why you should migrate to a Forgejo or GitLab instance.

[–] [email protected] 8 points 8 months ago (2 children)

Wtf why is this being downvoted

[–] [email protected] 35 points 8 months ago (1 children)

Because they obviously didn't read the article?

Unless you only use software and libraries hosted on gitlab, which you don't, then that's immaterial to this problem. GitHub is a target because of it's size, Gitlab and friends are seemingly just as vulnerable to this sort of attack, which ONLY works because of human nature. Which last I checked is the same regardless of platform...

[–] [email protected] 6 points 8 months ago (2 children)

Gitlab is open source. You can download it and host it yourself. A decentralized developer community is resilient against this sort of attack for the very reason GitHub is so vulnerable: size.

Git was always designed with decentralized development and collaboration in mind. Its creator, Linus Torvalds, prefers not to bother with servers like GitHub at all. Git can even be used entirely over email (Linus’s preference)!

[–] [email protected] 11 points 8 months ago* (last edited 8 months ago) (1 children)

A decentralized developer community is resilient against this sort of attack for the very reason GitHub is so vulnerable: size.

No, it's not. Not in literally any way. Not 1%. Not 0.000000000000000001%. You don't even get security by obscurity as a nebulous benefit because the core mechanisms are basically the same between instances.

No projects are being compromised. They're being imitated and passed off as the real thing to the naive. You can just as easily do that on another server (including established ones by adding multiple domains to your scripts) when people expect to use thousands of different git hosts as you can on GitHub, except without the benefit of the scale of Microsoft's expertise at handling this type of attack.

I'm all for federated git being the way forward. I'd love to see it grow into a reasonable option. But it has no benefit in any context against an attack like this.

[–] [email protected] 0 points 8 months ago (1 children)

a decentralized community that correctly prioritizes security would absolutely be using signed commits and other web-of-trust security practices to prevent this sort of problem

[–] [email protected] 3 points 8 months ago

New accounts exist and have good reason to exist. You can't and shouldn't ban new accounts from creating projects.

Anyone capable of understanding what "web of trust" means is already way too sophisticated to be misled by these fake projects.

[–] [email protected] 5 points 8 months ago

Gitlab is open source. You can download it and host it yourself. A decentralized developer community is resilient against this sort of attack for the very reason GitHub is so vulnerable: size.

Um, what? Sorry but if someone is going to send, say, ten million malicious contributions (or heck, even just one), I don't particularly want to deal with that on my self hosted server. I'd rather someone else deal with it.

Git was always designed with decentralized development and collaboration in mind. Its creator, Linus Torvalds, prefers not to bother with servers like GitHub at all. Git can even be used entirely over email (Linus’s preference)!

The Linux project created Git to solve problems they had. Pretty much no other project in the world has the same set of problems - it's a highly unusual open source project with tens of millions in market value. Other projects have very different needs.

[–] [email protected] 8 points 8 months ago (1 children)

Any thoughts on codeberg? I've seen a project or to there.

[–] [email protected] 13 points 8 months ago

No open repo is safe from attacks like this.

[–] [email protected] 5 points 8 months ago

Everyone should have migrated already anyway.