There are millions of psychopaths out there.
There are millions of computer users out there.
There is an intersection of these, the psychopaths who use computers.
When they are caught, as others above have said, it depends on jurisdiction as to what is done. For these psycopaths, we can't do the things that make us feel secure on airplanes, like ensuring anyone with the appropriate skin tone or name is screened more carefully... So, the best we can do is use anti-virus measures, and hope that the ones bright enough to bypass the protections get a conscience before they do it.