Al-Qaida fighters have been using secretive chat rooms and encrypted Internet message boards for planning and coordinating attacks — including the threatened if vague plot that U.S. officials say closed 19 diplomatic posts across Africa and the Middle East for more than a week.

It’s highly unlikely that al-Qaida’s top leader, Ayman al-Zawahri, or his chief lieutenant in Yemen, Nasser al-Wahishi, were personally part of the Internet chatter or, given the intense manhunt for both by U.S. spy agencies, that they ever go online or pick up the phone to discuss terror plots, experts say.

But the unspecified call to arms by the al-Qaida leaders, using a multilayered subterfuge to pass messages from couriers to tech-savvy underlings to attackers, provoked a quick reaction by the U.S. to protect Americans in far-flung corners of the world where the terror network is evolving into regional hubs.

For years, extremists have used online forums to share information and drum up support, and over the past decade they have developed systems that blend encryption programs with anonymity software to hide their tracks. Jihadist technology may now be so sophisticated and secretive, experts say, that many communications avoid detection by National Security Agency programs that were specifically designed to uncover terror plots.

A U.S. intelligence official said the unspecified threat was discussed in an online forum joined by so many jihadist groups that it included a representative from Boko Haram, the Nigerian insurgency that has loose and informal ties to al-Qaida. Two other intelligence officials characterized the threat as more of an alert to get ready to launch potential attacks than a discussion of specific targets.

One of the officials said the threat began with a message from al-Wahishi, head of the Yemen-based al-Qaida in the Arabian Peninsula, to al-Zawahri, who replaced Osama bin Laden as the core al-Qaida leader. The message essentially sought out al-Zawahri’s blessing to launch attacks. Al-Zawahri, in turn, sent out a response that was shared on the secretive online jihadi forum.

All three intelligence officials spoke on condition of anonymity because they were not authorized to discuss the threat.

Rita Katz, director of the Washington-based SITE Intelligence Group that monitors jihadist websites, said it’s all but certain that neither al-Zawahri nor al-Wahishi would communicate directly online or on the phone.

Al-Zawahri’s location is unknown, but he was last believed to be in Pakistan, and al-Wahishi is said to be in Yemen. Katz said it’s most likely they separately composed encrypted messages, saved them on thumb drives, and handed them off to couriers who disseminated them on secure websites.

“These guys are not living in a bubble,” said Katz, who has been watching al-Qaida and other jihadi communications for years.

Exactly how U.S. spy systems picked up the latest threat is classified, and Shawn Turner, spokesman for U.S. National Intelligence Director James Clapper, refused to confirm or deny Katz’s analysis on how it might have happened. Intelligence officials have suggested that the plot was detected, in part at least, through NSA surveillance programs that have been under harsh worldwide criticism for privacy intrusions in the name of national security.

Given al-Qaida’s global sprawl and attempts to fly under the radar, it’s certain that encrypted chat rooms and online sites are a mainstay for jihadi messages.