FILE - This Jan. 19, 2018 file photo shows hacker Kane Gamble in London. A British teenager has been jailed for two years for compromising the email and phone accounts of senior U.S. government officials in what a judge called acts of "cyber-terrorism." Prosecutors on Friday, April 20 said that in 2015-16, Kane Gamble, now 18, conned call centers into revealing information that got him into the accounts of then-FBI director Mark Giuliano, then-Secretary of Homeland Security Jeh Johnson and then-CIA chief John Brennan. (Victoria Jones/PA via AP)

FILE - This Jan. 19, 2018 file photo shows hacker Kane Gamble in London. A British teenager has been jailed for two years for compromising the email and phone accounts of senior U.S. government officials in what a judge called acts of "cyber-terrorism." Prosecutors on Friday, April 20 said that in 2015-16, Kane Gamble, now 18, conned call centers into revealing information that got him into the accounts of then-FBI director Mark Giuliano, then-Secretary of Homeland Security Jeh Johnson and then-CIA chief John Brennan. (Victoria Jones/PA via AP)

LONDON (AP) — A British teenager has been sentenced to two years in a youth detention center for compromising the email and phone accounts of senior U.S. government officials in what a judge called acts of “cyber-terrorism.”

Prosecutors say Kane Gamble conned call centers during 2015-16 into revealing information that got him into the accounts of then-FBI director Mark Giuliano, then-Secretary of Homeland Security Jeh Johnson, then-CIA chief John Brennan and other officials.

They say Gamble, who was part of a group of hackers called “Crackas With Attitude,” put some of the information he gathered online.

Gamble pleaded guilty last year. The 18-year-old was sentenced to youth custody on Friday in a London criminal court.

Judge Charles Haddon-Cave said his “nasty campaign of politically motivated cyber-terrorism” had left victims feeling violated.