Schools are having to spend tens of thousands of dollars to boost their cyber defences as increasingly sophisticated attackers seek out sensitive student data.