According to the lawmakers comprising the ruling coalition, the preventive detention measure stipulated by the bill is necessary given a threat that the Islamic State (ISIL) militant group poses to the country’s security, New Straits Times reported.
The opposition parties view the new law as a violation of human rights, according to the news outlet.
On Sunday, 17 people were detained by Malaysian security forces on suspicion that they had been preparing a series of terrorist attacks in the capital Kuala Lumpur. Most of the terror suspects were ardent supporters of the ideology propagated by ISIL.
A total of 92 people with suspected links to the ISIL have been detained in Malaysia since February 2012, according to the newspaper.
Indonesia is the world's most populous Muslim nation and its citizens are being lured en masse by IS's hard-line Sunni extremism.
In January 2014, Indonesia’s counter-terrorism agency estimated that about 50 Indonesians had gone to fight in Syria, although it is not known how many of them joined the Islamic State militant group.