PARIS - Four long-time friends in their 30s, living in the same French city and communicating through a closed phone line, were planning a terror attack in France as early as next week on orders from an Islamic State of Iraq and Syria member in Iraq or Syria, Paris prosecutor Francois Molins said Friday.

The “commando” of four arrested on Sunday in the eastern city of Strasbourg plotted to carry out an attack on Dec. 1, but investigators have not yet determined “the specific chosen target among all those considered by the group,” Molins said.

A fifth suspect was arrested in the southern city of Marseille at the same time as the Strasbourg suspects. Molins told reporters that suspect was not in direct touch with the other four, but was “given guidance remotely” from the same ISIS member.

Get Breaking News Delivered to Your Inbox

The prosecutor didn’t name any targets, but security was tightened this week at the Paris headquarters of France’s criminal investigations police, reportedly among the locations studied. French President Francois Hollande said a “large-scale attack” was thwarted.

The night they were arrested, two of the Strasbourg group had just downloaded the Periscope application, which allows people to stream live on Internet with a cell phone. The app activity suggests they were preparing an “imminent” attack, Molins said.

The four Strasbourg suspects also were in possession of guns and ammunition, he said. Among the weapons seized during home searches were two handguns, two automatic rifles, several cartridge clips and dozens of cartridges of different calibers.

Investigators also found instructions for a money transfer, GPS coordinates and detailed explanations for obtaining more weapons on one suspect’s USB stick.

All five men had a “clear will to find and to identify targets to commit an act in the very short term,” Molins said.

In addition, the five “had common instructions to obtain weapons, instructions given by a person from the Iraqi-Syrian zone through encrypted applications popular among terrorists,” he said.

Investigators recovered a notebook that contained 12 pages of writing that referred to an armed jihad, death in martyrdom and Abu Bakr al-Baghdadi, the Islamic State of Iraq and Syria leader, the prosecutor said.

After being held in custody since Sunday, the five were moved Friday to the Paris courthouse where they were to appear before counter-terrorism investigating judges. The Paris prosecutor asked magistrates to hand the five preliminary charges of taking part in a “terrorist criminal association” and to jail them.

Molins was speaking the day after anti-terrorism authorities took the unusual step of holding the men in custody without charge beyond the normal maximum period, relying on a recent anti-terrorism measure.

The five were later placed under investigation on preliminary charges of criminal terrorist association with a view of preparing attacks, a judicial official said. Three of the Strasbourg group were also charged with acquiring, possessing and transporting arms in relation with a terrorist enterprise. The official was not authorized to speak publicly about the case and asked not to be named.

The four arrested in Strasbourg were two French citizens, both age 37; a 36-year-old Franco-Tunisian; and a 35-year-old Franco-Moroccan. Two of them had several criminal convictions in France, Molins said. The man arrested in Marseille was a 26-year-old Moroccan.

Two of the Strasbourg suspects traveled to the Turkish-Syrian border via Cyprus in March 2015, then prosecutor said. The Marseille suspect left Morocco in 2013 and made multiple trips across Europe with fake ID documents. In 2015, the Turkish authorities prevented him from entering Turkey, he said.

France remains under a state of emergency imposed after ISIS attacks in Paris in November 2015 that killed 130 people.