The outgoing head of the FBI fears another 9/11-style attack on the US, saying the fallout from the Arab Spring has bred a number of "violent extremists".
Robert Mueller, who leaves his post on September 4, said that he fears terrorists will target planes, or attack America using a weapon of mass destruction.
He warned that the US does not have the capability to defend a cyberattack on the country's energy sector.
Mr Mueller said: "I always say my biggest worry is ... an attack on a plane. And secondly, it's a weapon of mass destruction in the hands of a terrorist and that includes a cyber capability that trumps the defences that we have."
The underpants bomber's plot was foiled during Mr Mueller's tenure The FBI director said terrorism has shifted from Osama bin Laden's global brand in the aftermath of the 2001 attacks to splintering threats arising in the fallout from Middle East uprisings.
He said: "Every one of these countries now has cadres of individuals who you would put in the category of extremists, violent extremists, and that will present threats down the road."
Mr Mueller, who started as FBI head a week before 9/11, has been credited as the architect of the bureau's transformation into a terrorism-fighting agency in his 12 years at the helm.
He said: "I had in my own mind some ideas about where the bureau needed to go and then a week later we had September 11.
"I did not expect I would be spending my time preventing terrorist attacks."
During Mr Mueller's time at the bureau US authorities have had dealt with significant terror threats and attacks, including the underpants flight bomber in 2009 and the cargo plane printer bomb threat in 2010.
Authorities capture a suspect after the Boston Marathon bombings He has also dealt with the Boston Marathon bombing, and the 2009 shooting that killed 13 and injured more than 30 at Fort Hood, Texas.
Speaking to reporters at the FBI headquarters, Mr Mueller also defended the National Security Agency's classified surveillance programmes, exposed by whistle-blower Edward Snowden.
He said it was "tremendously important to the protection, not only from terrorist attacks, but from other threats to the United States".
Mr Mueller made the comments on the same day that a new round of revelations about the surveillance showed that the NSA scooped up as many as 56,000 emails and other communications annually over three years by Americans not connected to terrorism.
The director's last day on the job is September 4. His successor, former Justice Department official James Comey, will be on hand next week for the transition.
Girls who survived the apparent attack take refuge in a mosque
A child received treatment in a make-shift hospital
Activists inspect the bodies of the victims of the alleged gas attack
A map showing the area targeted in the apparent chemical attack
The chemical weapons inspectors arrive in Damascus
Pupils with their results at St Mary Redcliffe and Temple school in Bristol
Major overhaul: Michael Gove
A survivor rests inside a mosque near Damascus
Jermain Defoe
Manning will serve his sentence in a military prison
Julian Assange has called the sentence a 'tactical victory'
Manning supporters have called for his release
Sian Green was with a friend when she was hit. Pic: Instagram
A street vendor helps by packing the severed foot with ice. Pic: NBC
Dr Mehmet OZ and plumber David Justino. Pic. Facebook
A friend witnesses the accident. Pic: NBC
Ms Green is taken to hospital on a stretcher. Pic: NBC
Ms Green, 23, had reportedly just started her holiday. Pic: Instagram
One of the lifeguards involved in the rescue spots the stranded group
Two of the youngsters are taken to shore in an RNLI inshore rescue boat
Activists posted videos showing children apparently hurt in the attack
The YouTube images cannot be authenticated by Sky News
Casualties are much higher than in previous allegations of chemical attacks
The Queen has the right to own any swan in the UK she chooses
The first record of the swan as a Royal bird dates back to the 12th century
Prince William has given his first full interview since the birth
William and Kate left hospital cradling the new prince
Prince William said that driving his young son home was important
A protester is removed from the Cuadrilla HQ in Lichfield
Protesters' tents outside the office in Lichfield
Ms Steenkamp was shot dead at Pistorius' home in February
Princess Diana and Dodi al Fayed leaving the Ritz Hotel on August 31, 1997
The wreckage of the Mercedes the pair were travelling in when it crashed
Brotherhood supporters had barricaded themselves inside
State TV ran an English 'Egypt fights terrorism' caption as the PM spoke
Keir Starmer released guidelines for prosecutors on assisted dying
Sir Edward and Lady Joan Downes
HMS Illustrious docks at Rota naval base on Gibraltar
The border checks have led to massive queues in recent weeks