Protecting hard-drive firmware