Five suspects, arrested in France on suspicion of planning attacks on security targets in and around the French capital, were directed remotely by Islamic State in Iraq and Syria, the Paris prosecutor says.
Authorities said earlier this week that attacks had been planned for December 1 against police and intelligence headquarters in Paris as well as the Disneyland Paris theme park.
The prosecutor's emphasis that France was under direct threat of attacks from Islamic State militants raised tension as the country went into a weekend of political campaigning and a vote on Sunday for a centre-right candidate for next year's presidential election.
France is already under a state of emergency, with soldiers patrolling the streets of the capital, following bomb and shooting attacks by Islamic militants in November 2015 which killed 130 people.
"An imminent attack was thwarted," Paris Prosecutor Francois Molins told a news conference on Friday.
"A Strasbourg commando team, and also a man arrested in Marseille, were given instructions to acquire arms. The instructions were given by a commander from the Iraqi-Syrian region via encrypted apps," he said.
Hand-written documents pledging allegiance to Islamic State and glorifying martyrdom were found at a house in Strasbourg, eastern France, Mr Molins said.
Two of the five suspects had travelled to the Turkey-Syria border via Cyprus in March 2015, he said. Four of the men are French, while a fifth is Moroccan.