Latvian man pleads guilty for role in computer virus infecting more than 1 million computers

A Latvian computer code writer who helped create a virus that spread to more than a million computers worldwide may be returning home soon after pleading guilty to a federal charge in New York.

The soft-spoken Deniss Calovskis pleaded guilty Friday to conspiring to commit computer intrusion. The 30-year-old hacker faces a likely prison term between 18 months and two years according to the terms of a plea deal with the U.S. government.

Calovskis admits he was hired to write code for the Gozi virus. He says he knew what he was doing was wrong.

Prosecutors say the virus infected 40,000 U.S. computers from 2005 to 2012, including 190 at the National Aeronautics and Space Administration.

Sentencing is set for Dec. 14.