Weekly update #11

Well I missed the update last week s: Sorry guys, extremely overwhelmed with RL right now.. I have checked GitHub though, don’t seem to be any issues.

Weekly update #10

Still need to work on updating Cloudflare API… Getting an MRI today :O (Thursday 5 am)

Weekly update #9

Well, I didn’t get any extra work on Gamocosm done after the weekend >< Pretty stressed with problem set tomorrow and midterm on Friday :/ Might be able to do something after handing in the pset…

Weekly update #8

Reading break for school, hope to (finally) do more work this week. Preparing server upgrade (fixing version dependencies). Went through GitHub issues. Fixed GitHub settings so I should finally receive proper email notifications ><

Weekly update #7

I’ve updated the Security and Privacy page with information on user data being stored. I plan to add HTTPS on the Gamocosm server side (currently only HTTPS connection from user to Cloudflare) this week with Let’s Encrypt (during original development and deployment Let’s Encrypt was still in development). The reason this still hasn’t been done sooner is because there will be short downtime as I may need to redirect Gamocosm’s DNS temporarily for Let’s Encrypt verification. I want to make sure I do it properly and have been procrastinating it :sweat_smile:

Reason for delays: I have an important (and hard) midterm this coming week on Wednesday. I’ve also been having particularly bad headaches this past week.

Weekly update #6

This is late again :sweat_smile: but still it’s here now! I started writing up the Security and Privacy page on the wiki, procrastinating on digging up all the references I need :sweat_smile: (I’m intending to do it properly, so it’s not easy!)

Also, I recently got back into IRC, so you can possibly find me as user raekye on freenode.net or esper.net. The #gamocosm channel is on EsperNet, but I “should” always be connected via a “The Lounge” self-hosted IRC client (running 24/7 on a server), so you can direct message me. I’m not sure how often the IRC history “hmmmbot” dies to netsplits or something, and I haven’t seen how well The Lounge handles netsplits/other disconnections, so there’s a chance I lose messages but it should be extremely small. Anyways, the most reliable way to reach me is still by reddit PM. But IRC is back on the table!

Hmmm, not to turn this into a personal depression-blog, but I also have been having chronic headaches since the summer. I’ve seen an optometrist (because at first I thought it was related to my eyes), and have been seeing a GP for several months now (and a social worker and a therapist :sweat_smile: ). The headaches can be pretty bad - up to 6-7 days a week almost continuously (e.g. go to sleep with a headache, wake up with the same headache), and intense to the point I struggle to do any work. Today (Friday, real date of this blog post :sweat_smile: ) was one of those particularly bad days where I could barely even focus to do anything (and yet I still had to force myself to lecture and office hours and finish an abstract algebra problem set). Still haven’t found the cause… It should still be statistically unlikely to be something serious, but I will be getting an MRI sometime maybe in the next month or two. On the off chance I do go completely silent… maybe ‘so it goes’ :P

Weekly update #5

Well, this isn’t looking so good except for the fact I’m still coming back weekly :sweat__smile: Working on problem set and doing stuff for research project.. the Sunday night classic… Ok promise now, no more trolling. Update coming before next Sunday.

Weekly update #4

Still too swamped to get anything done >< But at least this time around (lack of updates) I haven’t forgotten about Gamocosm! Hope this week will be better *embarassed face*

Weekly update #3

A little late, been super busy these days. On the bright side, a week after the security incidence it seems things are running smoothly and there were no other problems. Schedule starts to loosen up a bit after Wednesday. Hope to write more about Gamocosm’s security on the weekend.

GitHub account compromise resolved and Security disclosure

The following is a preliminary review of my GitHub account compromise (not GitHub’s fault) and related Gamocosm security. Gamocosm is a project of transparency; I may not be professional, but I intend to be genuine. I will continue documenting the security status and practices of Gamocosm over the next while. As bad as this incident was, I would like to reiterate that Gamocosm servers and data were not compromised.

Around 12:00 noon eastern time on 2018 January 7, a hacker gained access to my GitHub account and deleted the Gamocosm organization along with all the repositories. He/she then attempted to logon to my personal Digital Ocean account, presumably to try to delete the Gamocosm servers. Digital Ocean detected suspicious activity, automatically blocked the logon, and emailed me.

Fortunately, I just happened to be checking my email and quickly changed all my passwords. Unfortunately, before I could save it, he/she also deleted my personal Gamocosm account. There was a small window he/she could have done more damage on GitHub, but it seems deleting Gamocosm was all.

This security breach was at no fault of GitHub’s; it was purely enabled by my own negligence of not protecting my logins and not enabling 2 factor authentication. I have updated all my passwords, enabled 2fa, and from this experience recommend all of you to too (I will look into adding 2fa to Gamocosm).

Fortunately, GitHub support was very helpful and able to restore the organization with all the old data such as the wiki and submitted issues. If they were not able to, I would have been able to restore Gamocosm itself (have copy of the source code), but we would lose some updated wiki pages and other data such as issues and discussions on them.

After thorough investigation (within my power), Gamocosm servers and data were not compromised. The servers and services used by Gamocosm were under better security than my personal accounts, though I’ve taken the time to tighten them up too. If Gamocosm’s database was breached, the following user data could be leaked:

  • emails
  • passwords salted and hashed with bcrypt (practically uncrackable; Gamocosm is following best practices)
  • Digital Ocean API keys (ability to destroy your servers and snapshots, or spawn many servers/use many resources)
  • any live server IPs, and the Minecraft Server Wrapper key (ability to start/stop/run commands on Minecraft server)

If Gamocosm’s server was completely breached, the following data would additionally be breached: - Gamocosm’s SSH key, able to log in as root on users’ servers to execute commands (run setup and update)

So the hacker(s) would have root access to your servers. This may be a huge oversight/something I should have made clear before, but there is no good way around it, and I considered Gamocosm to be very secure (possibly justified).

As of my GitHub account hack, it had no relation to the security of Gamocosm’s servers.

If the hacker chose to upload malicious code in the gamocosm-minecraft-flavours repository, he would be able to run said code as an unprivileged user on a new server. This step is performed before user SSH keys are uploaded (and root SSH keys are OS filesystem permissions protected), so the only sensitive data that could be leaked is the MCSW key. This could later be used to start/stop/run commands on the Minecraft server. The hacker could install his/her own SSH keys and other user level programs to continue snooping on a newly created server.

If the hacker tried to write malicious code in the primary Gamocosm repository (for the Gamocosm server), the Gamocosm server would only pull the code if someone with access to the server did so. This is a possibility if I am careless and do not review all git commits.

Further security documentation will be posted soon. Thank you again for your patience and support.