<a href="https://www.thenationalnews.com/tags/germany/" target="_blank">German</a> police arrested an 18-year-old man suspected of having planned to carry out an attack in <a href="https://www.thenationalnews.com/tags/frankfurt" target="_blank">Frankfurt</a> near the border with <a href="https://www.thenationalnews.com/tags/austria" target="_blank">Austria</a>, as he attempted to leave the country for <a href="https://www.thenationalnews.com/tags/iraq/" target="_blank">Iraq</a> to join <a href="https://www.thenationalnews.com/tags/isis/" target="_blank">ISIS</a>, investigators said on Thursday. The German citizen, who has <a href="https://www.thenationalnews.com/tags/morocco" target="_blank">Moroccan</a> roots and grew up in Germany, was arrested on Wednesday at a motorway rest area near Passau, Frankfurt prosecutors and Hesse state criminal police said in a statement. The man, whose name was not released, is accused of having planned a shooting attack in Frankfurt, researching how to build explosive devices online and procuring a stabbing weapon that he kept in his parents' garage. His arrest stems from an investigation that started last summer. German authorities were alerted to the potential attack by a foreign intelligence service, which Thursday's statement did not identify. When the suspect's home was searched in August, investigators found depictions of the ISIS group's flag and pictures of fighting and executions, but could not immediately substantiate suspicions that he was planning an attack. Further investigations suggested that he had put off his plans for an attack in Frankfurt for fear of being discovered as well as being unable to afford a firearm, authorities said. Instead, he allegedly planned to leave Germany on Wednesday to travel overland to Iraq, where he hoped to join ISIS, “slaughter infidels” and fight state institutions. The suspect was arrested before he could leave the country and his home was searched again.