The British security expert who was hailed as a hero for stopping a global cyber-attack is spending the weekend in a US jail.