The NSW Department of Education is working to restore online access after a debilitating cyberattack that threatens to disrupt students working online.