A jobless man has admitted to entering unauthorised computer code into the Prime Minister's Office (PMO) website server on Nov 7 last year, among other offences.
A district court heard yesterday that Mohammad Azhar Tahir, 27, used a Google search bar embedded on the page to create a modified version that referenced international hacktivist group Anonymous.
He did this by entering HTML code instead of proper search terms.
Internet users who clicked a link containing the script, which he posted on various social media websites, would see a Guy Fawkes mask and two messages instead of what the search-results page would normally display.
The messages were: "It's great to be Singaporean today" and "ANONYMOUS SG WAS HERE B*****".
Mohammad Azhar pleaded guilty yesterday to seven of 59 charges under the Computer Misuse and Cybersecurity Act.
These included accessing a neighbour's wireless Internet service and modifying social media and e-mail accounts that belonged to Ah Boys To Men actor Muhammad Ridhwan Azman, 21.
Deputy Public Prosecutor April Phang told the court that there had been widespread concern because it seemed as if the PMO website had been defaced by hackers from Anonymous, although data on its server had not actually been altered.
Mohammad Azhar had effectively masked his identity by using his neighbour's Internet connection, said DPP Phang.
In two instances, he had used the actor's accounts to publicise the link containing the offending script.