ghrc.io Appears to be Malicious
63 points by iris
63 points by iris
Microsoft:
Let’s buy the
microsoft
tld, scammers won’t have the millions of dollars necessary to set up a typo squat TLD!
Also Microsoft:
Person 1: Which TLD should we use for our container registry?
Person 2: What about the using the TLD of the Chagos Islands in the Indian Ocean?
There are 972 results on GitHub for ghrc.io
(I typod this). Mostly typos in documentation, but likely some repositories are really affected: https://github.com/search?type=code&q=ghrc.io
Is it reasonable to expect one of:
Or are these unpalatable mitigations?
IMO the biggest mistake is a UI that encourages a user to type a domain (or package) name by hand. I realise that’s tough when you need to be able to log in to arbitrary container registries but options exist… There’s the carrot approach like crates.io which gives you copy-paste blocks for whatever you were about to type. Or you could get out the stick and turn the config into a multi-field JSON blob that a user is going to avoid typing if they possibly can.
I don’t think domain name sellers really have much visibility into “this site is accessed a lot”, do they? Especially at time of purchase.
As to the first one… it does feel like Github could have bought up all 16 permutations. It would be nice if there were some other mitigations available though.
The way domain purchases really seem to be a bit incontestable from the “this is clearly not a legit use, right?” perspective is annoying. I don’t know what that looks like but it sucks!
And what about existing domains? Could GitHub ask to take it down by claiming it is a phishing site?
I’m reading this and the comments and having a hard time to figure out which one is the malicious and which one is the original.
Sounds like authentication should be done with a DH system that incorporates the recipient domain, rather than static tokens.
It remains amazing to me that this is a safety critical infrastructure that is still fundamentally built around what are basically passwords.
Also make sure you don’t log into ghci.io, since that seems to returns HTTP 200 for every path.
It’s the command for the interactive Glasgow Haskell Compiler, the REPL. So there’s an interaction with muscle memory.