As well as this being our regular reminder to be careful what you pull from public repositories and other sources, and to verify your dependency trees, it raises another question: If malware is massively prolific in public repos, how much does this affect LLMs and other automation tools that are trained using the contents of such resources? What are the chances that we'll see copilot & friends occasionally emit malwa…
This sounds like alarmist journalist talk. What “malware”, even subtle backdoors, are sneaking into the LLM-generated code used in a piece of software that’s actually worth a damn?
Over 100k Infected Repos Found on GitHub
81–90 of 187 posts
Re: Over 100k Infected Repos Found on GitHub
#82As well as this being our regular reminder to be careful what you pull from public repositories and other sources, and to verify your dependency trees, it raises another question: If malware is massively prolific in public repos, how much does this affect LLMs and other automation tools that are trained using the contents of such resources? What are the chances that we'll see copilot & friends occasionally emit malwa…
Using LLMs means investing more effort in code review. I think that's a worthwhile trade.
Re: Over 100k Infected Repos Found on GitHub
#83This sounds solvable with some kind of painful to write and test heuristic tool. Something like "find other repos with similar product names and similar code but no forking audit trail" ... If you do an automated code diff and find it's involving say, posting stuff to a server, you can become suspicious. All these signals can become rather shallow with the right tooling centralizing this would make it a bit more effi…
Re: Over 100k Infected Repos Found on GitHub
#84Github is failing the same way usenet failed: everybody could post stuff to usenet just like everybody can create a github repository and there is nothing that sets an official repository apart from a spammers repository. When Amazon has "the everything store" as main strategic goal, they get hit by "90% of everything is junk". So they end up being a store of mostly junk. Github should figure out if their product is…
I'm pretty sure they decided on "repository for everybody" when they first launched the company 16 years ago.
Re: Over 100k Infected Repos Found on GitHub
#85As well as this being our regular reminder to be careful what you pull from public repositories and other sources, and to verify your dependency trees, it raises another question: If malware is massively prolific in public repos, how much does this affect LLMs and other automation tools that are trained using the contents of such resources? What are the chances that we'll see copilot & friends occasionally emit malwa…
1. Internal instructions telling the generator to avoid exactly that. We wouldn't want to rely on this alone though.
2. Due to LLMs nature, it's unlikely that such generated malicious code would repeat addresses of actual malicious actors. This still leaves a variety of attack vectors such as bind shell, dos, on-site exfiltration, and more.
Re: Over 100k Infected Repos Found on GitHub
#86As well as this being our regular reminder to be careful what you pull from public repositories and other sources, and to verify your dependency trees, it raises another question: If malware is massively prolific in public repos, how much does this affect LLMs and other automation tools that are trained using the contents of such resources? What are the chances that we'll see copilot & friends occasionally emit malwa…
Re: Over 100k Infected Repos Found on GitHub
#87Re: Over 100k Infected Repos Found on GitHub
#88aka the whole "just run 'curl https://somesite/install.sh' | sudo sh" to install our software
Seems like it'd go very hand in hand with this infected stuff mentioned in the article.
Re: Over 100k Infected Repos Found on GitHub
#89Earlier quoted context omitted.
I don't think you truly grasp how small this number is, this is actually good, like really really good. Github has about half a billion repositories.
Getting the actual number is probably very hard. These are the infected repos the OP found during their research.
SELECT uniqHLL12(repo_name) FROM github_events;
Against https://play.clickhouse.com/play?user=play#U0VMRUNUIHVuaXFIT... returns: 361648383Re: Over 100k Infected Repos Found on GitHub
#90Github is failing the same way usenet failed: everybody could post stuff to usenet just like everybody can create a github repository and there is nothing that sets an official repository apart from a spammers repository. When Amazon has "the everything store" as main strategic goal, they get hit by "90% of everything is junk". So they end up being a store of mostly junk. Github should figure out if their product is…
I don't think you truly grasp how small this number is, this is actually good, like really really good. Github has about half a billion repositories.