Hat colours matter as much to hackers as they do to racegoers on Ladies Day at Royal Ascot. Black hat hackers are the bad guys – criminals out to steal and pillage. More ambiguous are grey hat hackers, who aren’t malicious but may break the law to uncover security flaws. That leaves the white hat hackers – unsung heroes who help to keep us all safe. We doff our cap to them.