Patrick Ricciardi, 46, the former chief information technology officer for the City of Hoboken, N.J., has admitted intercepting e-mails sent to city mayor Dawn Zimmer and other top officials, then forwarding those communications to other e-mails.

Ricciadri has pleaded guilty to accessing a computer without authorization, interception of wire and electronic communications and disclosure of intercepted wire and electronic communications.

As part of his job, Ricciardi had access to city e-mail accounts, as well as other aspects of the city's computer network. In early 2010, according to the U.S. Attorney's Office for the District of New Jersey, he created an archive file on his computer which stored all e-mails sent to and from the mayor and specific city officials.

Ricciardi admitted that the archive was set up in order to spy on the mayor and the other officials to determine whether his job was secure, and that he forwarded some of the archived e-mails to other current and former city officials.

"Apparently, breaking federal law to find out if your job is secure is not a good way to ensure that your job remains secure," writes Sophos' Lisa Vaas.

Ricciardi is scheduled to be sentenced on July 1, 2013. He faces a sentence of up to 15 years in prison and a fine of up to $750,000.