Singapore amends law to counter cyberattacks