Former CIA Director David Petraeus and other top intelligence officials were kept out of the loop on secret raids in Libya which may have triggered the attacks on the U.S. Consulate last year, according to a new book out Tuesday.

According to the authors — a former Navy SEAL and former Army Ranger — the man tapped by President Obama to lead the CIA in his second term, White House counterterrorism adviser John Brennan, was behind those classified “combat operations” which were allegedly conducted in the run-up to the September 2012 terror attack.

The e-book, called “Benghazi: The Definitive Report,” covered a number of behind-the-scenes claims, including that Petraeus was ensnared by a “palace coup” at the CIA that ultimately helped expose his affair with biographer Paula Broadwell.

But the fresh claims about Benghazi fuel a debate that has simmered steadily since last year about what led to the Benghazi attack. Brennan is fielding questions in a classified Senate committee meeting Tuesday, as part of his nomination to lead the CIA and Libya is likely to come up.

The new book, by Jack Murphy and Brandon Webb, describes highly classified operations that were conducted against Libya militants after the fall of Muammar Qaddafi.

“Brennan waged his own unilateral operations in North Africa outside of the traditional command structure,” the book says, calling it an “off the books” operation not coordinated with Petraeus and the CIA.

The authors then claim that these raids were a “contributing factor” in the militant strike on the U.S. Consulate and CIA annex on Sept. 11.

The raids, they said, “kicked the hornets’ nest and pissed off the militia.”

Ambassador Chris Stevens, who was killed in the attack, “was kept in the dark and ultimately killed in a retaliation that he never could have seen coming,” they wrote. “Likewise, the CIA never knew what hit them.”

While highly critical of Brennan, the authors also go on to detail tensions at the highest levels of the CIA.