News for hackers. Stuff that matters.
Re:GitHub is investigating unauthorized access to their inte... by Xunjin on Wednesday May 20, 2026 @12:29AM (#48203099)
GitHub: " Our current assessment is that the activity involved exfiltration of GitHub-internal repositories only. The attacker’s current claims of ~3,800 repositories are directionally consistent with our investigation so far."

Oof

https://xcancel.com/github/status/2056949169701720157

Re:GitHub is investigating unauthorized access to their inte... by gus_ on Wednesday May 20, 2026 @04:04AM (#48204565)
so how did they exfiltrate the information without noticing? what OS was the developer using? what security measures were they using?

yesterday discussion https://news.ycombinator.com/item?id=48191680

Re:GitHub is investigating unauthorized access to their inte... by alexfoo on Wednesday May 20, 2026 @04:55AM (#48204905)
The 3800 repos weren't exfiltrated from the compromised machine.

The malware (be it a VSCode plugin, an npm package, or whatever is next) simply slurps up all of the users private keys/tokens/env-vars it can find and sends this off somewhere covertly.

It's trivial to do this in a way to avoid detection. The small payload can be encrypted (so it can't be pattern matched) and then the destination can be one of millions of already compromised websites found via a google search and made to look like a small upload (it could even be chunked and uploaded via query parameters in a HTTP GET request).

The hackers receive the bundle of compromised tokens/keys and go look at what they give access to. Most of the time it's going to be someone's boring home network and a couple of public or private github repos. But every once in a while it's a developer who works at a big organisation (e.g. Github) with access to lots of private repos.

The hackers can then use the keys to clone all of the internal/private repos for that organisation that the compromised keys have access to. Some organisations may have alerts setup for this, but by the time they fire or are actioned upon the data will probably be downloaded. There's no re-auth or 2FA required for "git clone" in most organisations.

With this data the hackers have further options:

a) attempt to extort the company to pay a ransom on the promise of deleting the data

b) look for more access/keys/etc buried somewhere in the downloaded repos and see what else they can find with those

c) publish it for shits and giggles

d) try and make changes to further propagate the malware via similar or new attack vectors

e) analyse what has been downloaded to work out future attack vectors on the product itself

Right now Github (and others recently compromised in similar ways) will be thinking about what information is in those internal repos and what damage would it cause if that information became public, or what that information could be used to find out further down the line.

"Customer data should not be in a github repo" is all well and good, but if the customer data is actually stored in a database somewhere in AWS and there's even just one read-only access token stored somewhere in one private github repo, then there's a chance that the hackers will find that and exfiltrate the customer data that way.

Preventing the breach is hard. There will always be someone in an org who downloads and installs something on their dev machine that they shouldn't, or uses their dev machine for personal browsing, or playing games, or the company dev infra relies on something that is a known attack vector (like npm).

Preventing the exfiltration is virtually impossible. If you have a machine with access to the Internet and allow people to use a browser to google things then small payloads of data can be exfiltrated trivially. (I used to work somewhere where the dev network was air-gapped. The only way to get things onto it was typing it in, floppy or QIC-150 tape - in the days before USB memory sticks.)

Detecting the breach is nigh on impossible if the keys are not used egregiously. Sure some companies can limit access to things like Github to specific IPs, but it wouldn't take much for the malware to do something to work around this. (I can see things like a wireguard/tailscale client being embedded in malware to allow the compromised machine to be used as a proxy in such cases.)

Alerting that requires manual response is nigh on useless as by the time someone has been paged about something the horse has already bolted.

Knowing what has been taken is also a huge burden. 3800 repos that people now have to think about and decide what the implications are. Having been through something like this in the past there are plenty of times people go "I know that repo, it's fine, we can ignore that one" only for it to contain something they don't realise could be important.

These kind of attacks are going to become increasingly common as they're proven to work well and the mitigations for them are HARD. It doesn't need to be targeted at all either, you just infect a bunch of different things and see what gets sent in.

If companies continue to not pay the ransom then we're going to get a lot more things published and many companies having to apologise for all manner of things that end up being leaked.

Re:GitHub is investigating unauthorized access to their inte... by gus_ on Wednesday May 20, 2026 @06:19AM (#48205516)
> It's trivial to do this in a way to avoid detection

I'd love to see a real example/PoC.

Anyway, we discussed this issue in the other thread. For me, unrestricted outbound requests to any url, whether it's well known domains like api.github.com or any other domain, are a red flag.

Why does VS need to establish outbound requests to any domain, without authorization?

There's no magic solution, and these attacks will evolve, but I still think that restricting outbound requests is a good measure to mitigate these attacks.

> slurps up all of the users private keys/tokens/env-vars it can find and sends this off somewhere covertly.

Isolating applications can also mitigate the impact of these attacks. For example, you can restrict VS code to only share with the host .vscode/, .git/ and other directories. Even by project. Again, it's not bulletproof, but helps.

Re:GitHub is investigating unauthorized access to their inte... by alexfoo on Wednesday May 20, 2026 @06:51AM (#48205731)
Ah yes, sandboxing/limiting a VSCode plugin is not impossible. I was thinking in more general terms (such as post install scripts within npm/python packages). Random test code in golang packages. There's an awful lot that people don't vet because keeping up with the vetting is a huge burden which seems pointless until you're the one that gets hacked.

The trick is to infect a plugin that has a legitimate reason for accessing the internet or running certain commands, and then coming up with ways to abuse that to exfiltrate the data. Or exfiltrating via DNS queries, or some other vector that isn't so obvious as "allow TCP/UDP connections to the whole world".

That or just repeatedly pester a user for permissions until one user (and you only need one within the organisation) relents and grants it.

Re:GitHub is investigating unauthorized access to their inte... by gus_ on Wednesday May 20, 2026 @09:33AM (#48207490)
the pop-ups fatigue is already an issue, and not an easy one to solve. Pretty much like SIEM/SOC alerts.

> The trick is to infect a plugin that has a legitimate reason for accessing the internet or running certain commands, and then coming up with ways to abuse that to exfiltrate the data. Or exfiltrating via DNS queries, or some other vector that isn't so obvious as "allow TCP/UDP connections to the whole world".

They'll get there, maybe. But the reality is that right now, everyone allows outbound requests blindly.

Instead of speculating, I suggest to actually investigate current IOCs and common tactics of malicious npm/pip/plugins/VS extensions. Something like this:

https://github.com/evilsocket/opensnitch/discussions/1119

Or use OpenSnitch (or Lulu, Glasswire, ZoneAlarm anyone?:D etc) to actually analyze real VS malicious extensions or npm packages and see if it stops the exfiltration, and if not, suggest ways to improve it. For example:

https://markdownpastebin.com/?id=9c294c75f09349d2977a4ccd250...

Re:GitHub is investigating unauthorized access to their inte... by pixl97 on Wednesday May 20, 2026 @08:51AM (#48206865)
> but I still think that restricting outbound requests is a good measure

It is 100% necessary, but doesn't stop most attacks quick enough.

If you're posting to github.com/acmecompany then attackers love to do things like add their own user github.com/acemcompany and just upload your data to that. Generally it doesn't last very long, but with CI/CD they can get thousands of keys in a minute and be gone seconds later.

Re:GitHub is investigating unauthorized access to their inte... by mmcwilliams on Wednesday May 20, 2026 @09:06AM (#48207055)
There are plenty of exfiltration examples out there that could go through known, commonly-greenlit domains. Even exfil via DNS requests has been demonstrated.
Re:GitHub is investigating unauthorized access to their inte... by antonvs on Wednesday May 20, 2026 @03:34PM (#48212932)
But at least in that case, there’s a chance that the outbound requests are blocked. Malware isn’t perfect. Simple measures can block a significant proportion of attacks.
Re:GitHub is investigating unauthorized access to their inte... by array_key_first on Wednesday May 20, 2026 @02:37PM (#48212102)
> Why does VS need to establish outbound requests to any domain, without authorization?

I don't know but it's very standard practice in most applications, because telemetry. But VS code is one of the worst: just check open snitch when running VS code, it's constantly phoning to a bunch of IPs.

Re:GitHub is investigating unauthorized access to their inte... by mikeweiss on Wednesday May 20, 2026 @11:15PM (#48217421)
We need to stop normalizing outbound connectivity by default. In fact we should be alerted anytime something tries to go outbound.
Re:GitHub is investigating unauthorized access to their inte... by cloudbonsai on Wednesday May 20, 2026 @11:24PM (#48217497)
I found more details on how this particular attack worked:

https://github.com/nrwl/nx-console/security/advisories/GHSA-...

https://github.com/nrwl/nx-console/issues/3148

So the extension basically rewrites files in `.github/workflows` and pushes them to GitHub, which then sends all the sensitive information to the attacker. It also attempts to plant a malware on the local machine, too.

My impression is that it would be hard for an OS-level sandbox to completely stop this attack. The sandbox needs to determine whether if a git push originating from an IDE is malicious.

Re:GitHub is investigating unauthorized access to their inte... by kotaKat on Wednesday May 20, 2026 @05:52AM (#48205341)
> The malware (be it a VSCode plugin, an npm package, or whatever is next)

Not the first time we've seen a developer get popped thanks to a malicious game mod either...

Re:GitHub is investigating unauthorized access to their inte... by esseph on Wednesday May 20, 2026 @09:19AM (#48207257)
> If companies continue to not pay the ransom then we're going to get a lot more things published

Paying the ransom means your data still gets leaked and now you're out of money and embarrassed.

Why would they ever, ever, delete the data?

Re:GitHub is investigating unauthorized access to their inte... by senderista on Wednesday May 20, 2026 @03:34PM (#48212935)
Because if they leak then nobody will pay the ransom in the future?
Re:GitHub is investigating unauthorized access to their inte... by esseph on Wednesday May 20, 2026 @05:05PM (#48214119)
(responded to a similar response above)
Re:GitHub is investigating unauthorized access to their inte... by SoftTalker on Wednesday May 20, 2026 @03:42PM (#48213049)
If paying the ransom doesn't stop your data getting leaked, nobody will pay the ransom. There is a rational basis for the ransomers to follow through with the deletion. Even the mob did provide "protection" when they coerced you into paying for it.
Re:GitHub is investigating unauthorized access to their inte... by nativeit on Wednesday May 20, 2026 @05:45PM (#48214604)
This sounds like a naive presumption. Are ransomware distributors well known for operating within strict hierarchies bound by culturally-ingrained traditions, or acting in the best interests of their own “greater good”?

Last I heard, teenagers can deploy ransomware with minimal technical knowledge or skill.

Re:GitHub is investigating unauthorized access to their inte... by dang on Wednesday May 20, 2026 @03:30PM (#48212858)
(We merged this thread hither - it was originally in https://news.ycombinator.com/item?id=48201316)
Re:GitHub is investigating unauthorized access to their inte... by amluto on Wednesday May 20, 2026 @03:42PM (#48213043)
The security measure that the developer didn't use was completely refusing to use vscode.

vscode has no security model. It's not like swiss cheese where there are holes and some of the go all the way through. vscode is all hole with some cheese on the side. There is absolutely no isolation between the front-end process, the backend size (the thing that runs in the remote or the devcontainer), and any extensions or anything that might be in a repository whose authors you "trust".

Re:GitHub is investigating unauthorized access to their inte... by applfanboysbgon on Wednesday May 20, 2026 @04:36PM (#48213755)
Or you can just refuse to use random extensions. I built my own extensions if I needed them. You're a programmer, right? The whole point of extensibility is that you, or your company, can program what you need from your IDE, without having to make a whole IDE from scratch. I have since moved on to making my own IDE, mostly because I hate Electron and its >1gb memory footprint, but vscode served me so much better than anything else for years, without installing a single rando's extension.
Re:GitHub is investigating unauthorized access to their inte... by amluto on Wednesday May 20, 2026 @05:58PM (#48214783)
Kind of.

A vscode workspace can trivially execute code on the machine that runs the server end of vscode. (This is how building works -- there is no sandbox unless the workspace config explicitly uses some kind of sandbox.) So the workspace can usually trivially elevate permissions to take over the vscode server, including installing extensions on it without asking you.

In principle, there is a teeny tiny bit of isolation between the local and remote sides, so the remote side cannot trivially execute code on the local machine. But I recommend reading this rather long-standing ticket:

https://github.com/microsoft/vscode-remote-release/issues/66...

Re:GitHub is investigating unauthorized access to their inte... by cozzyd on Wednesday May 20, 2026 @06:35PM (#48215228)
It would be nice if there was an easy way to prevent people from installing vscode remotes on a shared server... Probably can run an ebpf routine to disallow creation of folders named . vscode*
Re:GitHub is investigating unauthorized access to their inte... by amluto on Wednesday May 20, 2026 @07:32PM (#48215801)
The shared part has almost nothing to do with this, IMO.
Re:GitHub is investigating unauthorized access to their inte... by Bigpet on Thursday May 21, 2026 @06:52AM (#48220551)
Disabling ssh alternate channels will make it uncomfortable enough for most people to be a deterrant. But if you require multiple ssh channels for different reasons that won't be a solution for you.
Re:GitHub is investigating unauthorized access to their inte... by dylan604 on Wednesday May 20, 2026 @05:03PM (#48214099)
> You're a programmer, right?

This is my position as well, but it's rarely received well. Usually, a response like "why would I rewrite something that's already been written and available?" By writing the code, I know how it works. I know it is not infected with crap. I know it will not in the future be infected with crap from a down stream dependency. It seems to me this really took off with node to the point that it's laughable at what people will include with no thought at all. I know component libraries have existed for many other languages before, but node just stands out to me

Re:GitHub is investigating unauthorized access to their inte... by lovich on Wednesday May 20, 2026 @06:09PM (#48214908)
Most bosses look poorly upon spending their budget on rewriting software that already exists and simultaneously most bosses(although not the exact same set) don’t care about security until a disaster has already occurred.

And it’s also not like you’re going to literally write every piece of software you use, unless you’ve started all the way down at machine code you’re drawing the line somewhere on using code written by other people.

Re:GitHub is investigating unauthorized access to their inte... by xienze on Wednesday May 20, 2026 @05:09PM (#48214160)
> I built my own extensions if I needed them. You're a programmer, right? The whole point of extensibility is that you, or your company, can program what you need from your IDE,

Dude, get real. We don't all have the luxury of being able to engage in endless IDE extension programming side quests just to do our day jobs. And even if we did, there's the reality that whatever you produce is probably not nearly as feature complete or bug free as the extension someone spent years writing. Hence why people want to reach for off the shelf solutions.

Re:GitHub is investigating unauthorized access to their inte... by applfanboysbgon on Wednesday May 20, 2026 @05:14PM (#48214232)
> just to do our day jobs.

Ah, there it is. The root of most problems in the software industry: people who hate programming and avoid doing it as much as possible, because they only got into it for the money.

I have no problem writing extensions in my spare time because programming is fun. Because I know how to program, like, actually program and not just copypaste stuff off StackOverflow, it doesn't take years to write a vscode extension, either.

Re:GitHub is investigating unauthorized access to their inte... by xienze on Wednesday May 20, 2026 @06:52PM (#48215406)
> people who hate programming and avoid doing it as much as possible, because they only got into it for the money.

Yeah, not the case at all. I love programming, I've been doing it since I was a kid, for over 30 years. But I DO have to earn a living, and I'd rather spend free time programming things that interest me. Writing IDE extensions and tooling all the way down to the bare metal because I can't be absolutely sure at all times that node.js code doesn't contain a virus is not one of those things.

Re:GitHub is investigating unauthorized access to their inte... by aee on Wednesday May 20, 2026 @05:29PM (#48214411)
bait
Re:GitHub is investigating unauthorized access to their inte... by nomilk on Wednesday May 20, 2026 @02:14AM (#48203741)
Pre-AI, having access to code (e.g. if it leaked or even just open source) could allow hackers to more easily discover exploits. I wonder if that threat is now much more severe in the age of AI. Thankfully GitHub have probably themselves run their code through many AI security tools so any vulnerabilities would have already been found and patched. Hopefully.
Re:GitHub is investigating unauthorized access to their inte... by bartread on Wednesday May 20, 2026 @06:16AM (#48205493)
> I wonder if that threat is now much more severe in the age of AI.

It is. I've been using Codex to analyse repositories en masse for a project I'm working on now[0]. Codex, Claude (my usual weapon of choice), etc., make pretty short work of looking for all kinds of problems and antipatterns in large codebases.

[0] Before any wags chime in, no, I'm not the one who hacked Nx and exported 4000 internal GitHub repos. I'm talking about a legitimate client project for a reputable company!

Re:GitHub is investigating unauthorized access to their inte... by auscompgeek on Wednesday May 20, 2026 @07:03AM (#48205829)
As a developer or security researcher, you're able to download and run GitHub Enterprise Server. I'm not sure having access to the full source code makes a meaningful difference for most of GitHub's surface area, given it's largely Ruby.
Re:GitHub is investigating unauthorized access to their inte... by DanielHB on Wednesday May 20, 2026 @08:08AM (#48206407)
LLMs can't really parse compiled code to find exploits, maybe code in scripting languages (python, js, etc) even if minified. So I don't quite agree with you, having access to the source can definitely help find exploits even in pre-LLM days.
Re:GitHub is investigating unauthorized access to their inte... by pixl97 on Wednesday May 20, 2026 @08:49AM (#48206830)
Pretty much everyone disagrees with you, especially when you add in decompiler tools to the LLM.
Re:GitHub is investigating unauthorized access to their inte... by Yiin on Wednesday May 20, 2026 @10:01AM (#48207969)
how to say you haven't tried llms since 2023 without saying it, that's quite literally one of the things they excel at
Re:GitHub is investigating unauthorized access to their inte... by ammar2 on Wednesday May 20, 2026 @12:07PM (#48209994)
Also, the Github enterprise code is "obfuscated" but it uses a trivially reversible method just meant to be a minor roadblock. After you get past that you get the full ruby source code, no minification or anything.

For a while the key was literally:

> This obfuscation is intended to discourage GitHub Enterprise customers from making modifications to the VM. We know this 'encryption' is easily broken.

Re:GitHub is investigating unauthorized access to their inte... by bugeats on Wednesday May 20, 2026 @09:53AM (#48207832)
I just had a disturbing thought. What if the LLM providers start blocklisting certain codebases?

“I’m sorry Dave, I can’t do that. This codebase has been identified as proprietary.”

Re:GitHub is investigating unauthorized access to their inte... by 9dev on Wednesday May 20, 2026 @04:35PM (#48213732)
Oh! That looks like a nail to me... why not check all file hashes against a CP database? That database could be maintained by, well, some government agency, but don't worry about it, it's gonna be super secure and there's no abuse potential or something at all!
Re:GitHub is investigating unauthorized access to their inte... by EDM115 on Wednesday May 20, 2026 @02:28AM (#48203849)
directionally, how bad is this ?
Re:GitHub is investigating unauthorized access to their inte... by 63stack on Wednesday May 20, 2026 @02:51AM (#48204014)
I'd say northwest
Re:GitHub is investigating unauthorized access to their inte... by malfist on Wednesday May 20, 2026 @08:57AM (#48206931)
What if I'm in the southern hemisphere?
Re:GitHub is investigating unauthorized access to their inte... by OJFord on Wednesday May 20, 2026 @03:06AM (#48204147)
Directionally? Yes, bad
Re:GitHub is investigating unauthorized access to their inte... by NikxDa on Wednesday May 20, 2026 @03:34AM (#48204367)
directionally very bad
Re:GitHub is investigating unauthorized access to their inte... by ares623 on Wednesday May 20, 2026 @03:32AM (#48204352)
let's take this offline and circle back on it
Re:GitHub is investigating unauthorized access to their inte... by mimsee on Wednesday May 20, 2026 @06:30AM (#48205592)
it's apple maps bad
Re:GitHub is investigating unauthorized access to their inte... by Y-bar on Wednesday May 20, 2026 @06:37AM (#48205637)
I’m in a location where Apple Maps is significantly better than Google’s. So I’m unsure if you mean ”it’s Apple Maps meme bad” or if you just mean ”it’s rather meh, could be better, could be worse”.
Re:GitHub is investigating unauthorized access to their inte... by beng-nl on Wednesday May 20, 2026 @07:06AM (#48205848)
Re:GitHub is investigating unauthorized access to their inte... by lynndotpy on Wednesday May 20, 2026 @05:23PM (#48214339)
> When I'm typing, there's a delay, then all the letters pop up at once. You took a good phone, and you made it all shitty. It pissed me off.
Re:GitHub is investigating unauthorized access to their inte... by DANmode on Wednesday May 20, 2026 @07:40AM (#48206150)
Apple Maps used to direct people off of bridges and into ditches and stuff.

It’s a swell experience, now, but, the “meme” comes directly from reality.

Re:GitHub is investigating unauthorized access to their inte... by jlaternman on Saturday May 23, 2026 @11:59PM (#48254248)
And Google Maps literally did something very similar to me once, just a few years ago. Told me straight ahead when there was a sharp hairpin obscured by overhead bridge (literal mapping issue in unusual motorway adjacent road). Caused a crash with minor injuries I got back up and walked away from (on two wheels, would have been fatal if I didn't brake so well, or didn't get off the road fast enough, a large truck came round the corner). Takeaway is "never make driving decisions based on what the screen shows." There is no platform worth trusting more than your eyes on the road ahead.
Re:GitHub is investigating unauthorized access to their inte... by timacles on Wednesday May 20, 2026 @08:29AM (#48206627)
Depends which way you look at it
Re:GitHub is investigating unauthorized access to their inte... by saltcured on Wednesday May 20, 2026 @03:06PM (#48212505)
No, it's turtles in every direction
Re:GitHub is investigating unauthorized access to their inte... by xbar on Wednesday May 20, 2026 @07:07PM (#48215567)
Using 3,800 as a direction is an abuse of English.
Re:GitHub is investigating unauthorized access to their inte... by TZubiri on Wednesday May 20, 2026 @08:43PM (#48216331)
down