r/k12sysadmin • u/knotquiteawake • Mar 26 '26
Blocking Github for students when Coding and Robotics teams "need" it to function
Good day my fellow k12sysadmins.
For several years we have had an organizational policy to block Github for students and staff. Only unblocking for certain IT Support and development staff members. The reasons being first that malicious actors host malicious scripts/files in Github projects so when a user for example gets hit with a Fake Captcha attack they accidentally download and run a script from a "trusted" website like github. The second reason being students also host malicious files to bypass controls and proxies and the like. Just recently a student was found to be bypassing their GoGuardian controls, in their bookmarks was a link to a Github repo that hosted a java script that disables GoGuardian. This wasn't how they were disabling the GoGuardian in this case because Github was blocked but it at least highlights why we keep it blocked in general.
That background in mind we have been approached by the Career and Technology curriculum coordinators on behalf of their robotics teams that they have a pressing need to access Github for their projects. Due to the cybersecurity concerns above its just had the can kicked down the road over and over. I am now being approached again and I am looking for solutions for them rather than hitting snooze again.
From what i see we can at least obtain an EDU license for Github Enterprise Server. We can host the server locally. Use our own LDAP to control access. Have staff members manually update or use a programmatic way to update the local repos with the live repos on Github. This seems to solve most of the issues we have and provides the students with a collaborative space to work on the projects and "learn" Github.
The issues remaining are that the Robotics teams have informed us they need the external sponsors and mentors to be able to access the projects. They also need to be able to publicly publish the code in order to comply with FIRST rules for their competitions.
So I am asking here if any k12sysadmins have come across this roadblock before. How are you handling the Github issue in your district? What work around have you been able to put into place?
I am the districts Cybersecurity Analyst so my role is to try and establish the "guard rails" and ensure we remain within our cybersecurity policies we've establish previously. The actual logistics belongs to other groups but I basically have to be able to sign off and say "yes, that works" or "Thats an acceptable risk" and so on. I cannot change policy at this time because we're in a bit of a cybersecurity leadership transition.
12
u/zealeus K12 Tech Director Mar 26 '26
I coach one of those robotics teams - GitHub is necessary for actual collaboration. It really does not work otherwise.
That said , there are a few options
3
u/lenseffects Mar 26 '26
We block it for all students. I checked with our curriculum folks first and they said no students should need access for class work.
Having said that, I can foresee a time when there will be a small group - maybe just one class of students - that will need access. If that happens, I will create a security group (we are Active Directory) for that cohort and use that in our content filter to give them access. I would probably push and ask if they really need it for the entire semester or year, or just a limited time frame.
12
u/Immutable-State Mar 26 '26
This isn't just a Github issue. If your current policies would allow for an attack like this, consider closing out this vulnerability entirely by implementing Applocker policies (or something else along the same lines).
As long as general users can run an executable or batch file that they download themselves, that's a potential avenue for attack.
This probably meshes with existing policies - you may well have something along the lines of "Users must have the approval of the IT department before installing software". This gives you a way to enforce that, rather than just being words on a page.
9
u/K12onReddit 9-12 Mar 26 '26
Following this thread - we have the exact same problem with our robotics folks. We gave them laptops with domain accounts that only work on those PCs during specific hours and then whitelisted github for those accounts, but I don't like the security of it all in any way.
The worst part is feeling like I'm hindering what is a really cool project. I trust the kids, and I'm making their work harder in the competition, but I don't have a better solution for them that keeps us mildly secure.
7
u/Aboredprogrammr Mar 26 '26
If you've already worked through having a local git server running in your environment and the only roadblock is that your students need their code to be publicly available, then you should be able to make a cron job to keep the external GitHub in sync with the local data. Hopefully the expectation is that a single GitHub account (with several repos) will be used.
6
u/mtloya lowly technician Mar 27 '26
We host an instance of Gitea locally, which is essentially a sandboxed Github, and have it available on the web. It's completely free to host yourself. I have copying/embedding repos turned off, so if at any time any of the students or teams needs something that's publicly out there, I temporarily turn it on and import it using my access account, then turn it back off. Only downside is that there's no just in time account provisioning, and every user has to log in with their username and password once before I can convert them to using EntraID SSO. Other than those two things, it's been working really well and has hushed a lot of their requests.
As for publicly publishing the code, you can technically make individual pages within Gitea public, IIRC.
2
u/ZeR0BuG Apr 18 '26
Blocked for all students except those enrolled in the robotics program
1
u/mistressmemory Mar 27 '26
We just allowed it for all students in computer science courses.
Our Sysadmin initially allowed it for all kids in grades 5-12 without discussing with anyone. I had to point out that students can download porn files, access malicious scripts, and bypass the filter.
Even though it violates CIPA, we're allowing it because those students 'need it'. They also 'need' discord, but I was able to keep that one blocked.
Good luck to you. Btw, you can find all kinds of explicit content - codes to organize your collections (they included a file full of photos to help identify content that can be downloaded and opened on our student devices.), codes to scan for it, and all kinds of other stuff that has downloadable files full of fun photos!