Malaysian authorities said on Friday they have arrested six people, including four foreigners, suspected of planning attacks or being members of militant groups.