Pictured: Kane Gamble, aged 15, leaving the Old Bailey on Friday

A schoolboy hacker impersonated a CIA director to gain access to top secret military reports, a court heard yesterday.

Kane Gamble was just 15 when he posed as CIA chief John Brennan from his Leicestershire home, even taking control of his wife’s iPad.

The teenager gained access to passwords, personal information, security details, contacts lists and sensitive documents about operations in Afghanistan and Iraq.

Gamble, who founded the pro-Palestinian group ‘Crackas With Attitude’, taunted the security service on Twitter about his successes.

During the attacks, which spanned from June 2015 to February 2016, he made hoax calls to Mr Brennan’s family home and took control of his wife’s iPad.

His other targets included former deputy director of the FBI Mark Giuliano, secretary of Homeland Security Jeh Johnson and James Clapper, Director of National Intelligence under Obama.

He used the phone numbers he obtained to call and taunt his victims and their families, and take control of their devices.

Gamble, who is autistic, boasted about targeting Mr Clapper’s email account and said: ‘That’s where the juicy s*** is’.

He also pretended to be Mr Clapper to phone communications company Verizon and set up call-forwarding to divert calls to the Free Palestine movement.

Gamble used Clapper’s email to message other officials.

Inconspicuous: The teenager launched the attack on military security experts from the bedroom of his family's modest home in Coalville, Leicestershire

While speaking to an accomplice, he said: ‘This email of Clapper’s is very useful to fool these r****d into thinking I’m him. I can’t wait lmao [sic].’

He also boasted about carrying out ‘the best breach ever’ after accessing an FBI database to get the names of 1,000 staff, including the officer responsible for the controversial shooting of Michael Brown in Ferguson, Missouri.

The information Gamble collected was later used to carry out a ‘swatting’ attack on John Holdren, a science and technology adviser to President Barack Obama.

Gamble made a hoax call to Massachusetts police, resulting in armed officers being sent to the aide’s family home.

The information Gamble collected was later used to carry out a 'swatting' attack on John Holdren, a science and technology adviser to President Barack Obama

In the days before his arrest Gamble accessed the Department of Justice network using compromised details he gained from a former employee.

He gathered documents and information relating to offshore drilling rig Deepwater Horizon and details of more than 9,000 DHA officers and 20,000 FBI members of staff.

These details were posted online with the messages ‘This is Free Palestine’ and ‘Long live Palestine.’

The Department of Homeland Security spent 40,000 dollars to resolve the problem and suffered ‘substantial reputational damage’, the court heard.

Gamble was arrested in February 2016 at his council home in Coalville, near Leicester, at the request of the FBI after he hacked into the Department of Justice network.

Last October, Gamble, of Linford Crescent, Coalville, pleaded guilty at Leicester Crown Court to eight charges of performing a function with intent to secure unauthorised access to computers and two charges of unauthorised modification of computer material.

Prosecutor John Lloyd-Jones QC told a sentencing hearing at the Old Bailey: ‘Kane Gamble gained access to the communications accounts of some very high-ranking US intelligence officials and government employees.

‘The group incorrectly have been referred to as hackers. The group in fact used something known as social engineering, which involves socially manipulating people - call centres or help desks - into performing acts or divulging confidential information.’

‘The group frequently bragged on social media and subjected the victims to online harassment and abuse.’

The court heard Gamble ‘felt particularly strongly’ about US backed Israeli violence on Palestinians, the shooting of black people by US police, racist violence by the KKK and the bombing of civilians in Iraq and Syria.

Mr Justice Haddon-Cave described Gamble’s activity as ‘torture in the general sense - he got these people in control and played with them to make their lives difficult’.

Gamble was allowed to sit next to his mother behind his barrister rather than the dock when he appeared at the Old Bailey dressed in a dark blue coat.

Gamble also used an anonymous Twitter profile to talk to journalists.

Mr Lloyd-Jones said: ‘He told a journalist, “It all started by me getting more and more annoyed at how corrupt and cold-blooded the US government are. So I decided to do something about it”.’

He is due to be sentenced at the Old Bailey at a later date.