r/github • • Oct 29 '23

Just Opened my Github.. wtf are these repos??!

97 Upvotes

30 comments sorted by

115

u/CerberusMulti Oct 29 '23

What they are is an easy answer.

But if they are suddenly on your account as your repositories then I'd guess you have been hacked. But with limited information not more to say.

23

u/miheb1 Oct 29 '23

compromised

oh that what i'm scared of.. I was thinking there is some services that has the access to create repos without my consent, but I'm not sure if this is even possible..
which makes my account vulnerable

22

u/obiwan90 Oct 29 '23 edited Dec 03 '23

Other than what's been pointed out already (change password, enable 2FA, rotate SSH keys, check security logs): have a look at the personal access tokens associated with your account

and see if there's any you don't recognize.

Edit: and GitHub apps / OAuth apps while you're at it.

→ More replies (3)

4

u/Dave9876 Oct 30 '23

Also, just to be sure, did OP happen to hit the "fork" button on a bunch of repos? Just to be sure before going off on the "oh no, I'm hacked tangent"

2

u/CerberusMulti Oct 30 '23

Also a possibility or someone who has access to his computer, kid perhaps, if he has his login credentials saved in the browser, can't remember is forks show same as repositories you create or different to indicate they are forks.

1

u/miheb1 Oct 30 '23

not really, no kids & My family don't have an idea what I'm typing all the day on keyboard lol.

the forked repos are being mentioned that they are forked from xxx. but those spammed repos are not forked

26

u/antique_codes Oct 29 '23

Assuming you didn’t create them, it seems your account? is probably compromised

13

u/miheb1 Oct 29 '23

compromised

yeah I didn't create them.. they suddenly appeared all yesterday, I didn't noticed until I opened my account today.

I am sharing my profile by attaching a link in my freelance page (it is not popular thou) and in my resume. I won't imagine someone would be interested at all in my github to hack it in the first place.

it seems those repos get created by hacking automation tool or something. I think their purpose to download malwares for people who searching for these topics I guess

20

u/dewski Oct 29 '23

You can check your account’s audit log / security log to see repo.create events and where they occurred.

→ More replies (1)

2

u/miheb1 Oct 30 '23

Update: Now my account is flagged as spam :( . cannot use copilot, pushing to already repos, using 3rd party..

I'm contacting with the support and waiting for their reply. I wish they understand there was a malicious activity happened and it was not my intention for spamming those damn repos.

5

u/teamswiftie Oct 29 '23

HaX0rMaN strikes again

8

u/NatoBoram Oct 29 '23

Enable 2FA, change password then delete them

9

u/GilletteSRK Oct 29 '23

Just a heads up that this won't do anything for malicious app integrations, though it's good advice in general.

/u/miheb1 definitely needs to look at https://github.com/settings/installations & https://github.com/settings/apps to see what integrations/apps have access to their account as well.

Probably also prudent to rotate PATs (also under https://github.com/settings/apps).

1

u/akc3n Oct 30 '23 edited Oct 30 '23

I don't think you are the only account that's experiencing this?
Just take a look at all these accounts (with the same keyword tags as the ones you found in your account) with the same new repos being added. https://github.com/topics/pubg-hack?o=desc&s=updated

You can see most haven't had any of their earlier repos updated for quite some time. Now, all of a sudden they all have exact same repos and keyword tags being pushed in this recent timeframe.

1

u/miheb1 Oct 30 '23

Idk if a 3rd part authorized service can do this. or there a malware that takes an advantage over authorization to do this.

→ More replies (1)

2

u/BigPane Oct 30 '23

happened to a friend of mine, change password for your account and delete all the repos as soon as possible

1

u/reklis Oct 31 '23

If a repo is forked many times it starts to look very popular. When a repo is popular it starts to get listed in things like changelog nightly and other automated systems that watch GitHub data. By hacking accounts (probably bought a list of them off the dark web) they can use all the hacked accounts to fork the repo and effectively promote it and up the seo rank. Given that it’s listed as game cracks and cheats it’s probably actually all just malware / coin miners that is being marketed to people with gaming pc hardware getting them to install it and may never be able to get rid of it. Well that’s my guess anyway.

1

u/InkedGearhead Oct 31 '23

If you didn’t do it then I suggest changing passwords and enabling 2fa. Also if you use the same email and password on other sites then change those too.

1

u/[deleted] Nov 02 '23

your account was compromised and drafted into a botnet to farm engagement like stars and forks.

“welcome to the service private”

1

u/weveforgotten Nov 27 '23

Not saying this is whats happened but something like that wouldn't occur if you're using a p2p network portal and are or have changed source code on a client device that client may have realised something weird in the logs on the device they're using and somehow managed to get around any redirected websites and maybe written an email to the people at CISCO or something and said they never gave permission to make any changes to their personal device would it?