SINGAPORE (Reuters) - Singapore has deported the majority of the 70-odd foreigners it has investigated for suspected radicalism in the past two years, although none planned to carry out attacks in the city-state, the ministry of home affairs said on Monday.

Singapore, which has never seen a successful attack by Islamist militants, has been on heightened alert in recent months, with authorities telling the population that such an event was a matter of “when” not “if”.

Earlier this year, Indonesian police arrested six suspected militants believed to be linked to the Islamic State group and plotting an attack on Singapore. The city-state has also jailed six Bangladeshi workers who were charged with contributing money for attacks in Bangladesh.

Most of the foreigners deported were radicalized through “exposure to radical propaganda on social media,” and some used it to radicalize others, the ministry said in a statement. It did not specify their nationalities.

“None of them had any plans to carry out acts of violence in Singapore at the time they were investigated, but as they were in various stages of radicalism, their presence posed a security concern for Singapore,” the statement said.

“Consequently, they were deported after the authorities in their home countries were informed of their cases.”

Five of those deported were maids working in Singapore.

Dian Yulia Novi, who was arrested in an anti-terror raid this month for plotting to attack the presidential palace in Jakarta, worked in Singapore as a maid in 2008-09, but at the time did not show signs of being radicalized, the ministry said.

“Our security agencies are in contact with their (Indonesian) counterparts regarding her case,” it said.

Earlier this month, Law and Home Affairs Minister Kasiviswanathan Shanmugam said the threat of an extremist attack was higher than earlier this year as hardline Islamists were increasingly pushing their agenda in neighboring Indonesia.