THE CIA knew Islamic State terrorists were plotting an imminent gun massacre just days before the Paris attacks, it has been revealed.

CIA director John Brennan admitted the agency was aware of terror “activity” last November but attempts to stop it were foiled by advanced jihadi technology.

Just days later, an ISIS terror cell murdered 130 people in multiple gun and suicide bomb attacks in the French capital.

The revelations came in Mr Brennan’s interview with US broadcaster CBS’ 60 Minutes program.

He told the show how “sophisticated” encryption meant the jihadis were able to communicate with one another without police cracking their code.

“We knew the system was blinking red,” Mr Brennan said of the days before the November 13 attacks.

“We knew just in the days before that ISIL was trying to carry out something,” he added, using an alternative name for ISIS.

“But the individuals involved have been able to take advantage of the newly available means of communication that are walled off from law enforcement officials.”

Mr Brennan revealed that he told his agents they would have to “work harder” to crack the jihadis’ communication following the Paris attacks, Newsweek reported.

And he also said he had no doubt ISIS were plotting an attack on the US in order to “find their mark”.

One hundred and thirty people died when at least nine EU citizens led by Belgium national Abdelhamid Abaaoud stormed venues in the French capital.

Seven of the jihadis died at the scene of the attacks, most of them blowing themselves up.

This article originally appeared in The Sun and was reproduced with permission.