– Saudi Arabia put into effect a sweeping new counterterrorism law Sunday that human rights activists say allows the kingdom to prosecute as a terrorist anyone who demands reform, exposes corruption or otherwise engages in dissent.

The law states that any act that "undermines" the state or society, including calls for regime change in Saudi Arabia, can be tried as an act of terrorism. It also grants security services broad powers to raid homes and track phone calls and Internet activity.

Human rights activists were alarmed by the law and said it is clearly aimed at keeping the kingdom's ruling Al Saud family firmly in control amid the demands for democratic reform that have grown louder since the Arab Spring protests that shook the region in 2011 and toppled longtime autocrats.

Saudi activist Abdulaziz al-Shubaily called the law a "catastrophe." And Human Rights Watch researcher Adam Coogle warned: "The new law is draconian in spirit and letter, and there is every reason to fear that the authorities will easily and eagerly use it against peaceful dissidents."

The measure was approved by the Cabinet on Dec. 16 and ratified by King Abdullah. It was published in its entirety for the first time on Friday.

The Saudi minister of information, Abdel Aziz Khoja, said the legislation strikes a balance between preventing crimes and protecting human rights under Islamic law.

Saudi Arabia is one of the world's last absolute monarchies. All decisions are centered in the hands of 89-year-old King Abdullah. There is no parliament. There is little written law, and judges have broad leeway to impose verdicts and sentences.

An attempt to pass a similar counterterrorism law in 2011 was shelved after rights groups in Saudi Arabia and abroad leaked a copy online.

Since then, dozens of activists have been detained, a prominent rights organization was shut down, and authorities more aggressively monitor social media websites, where jokes about the aging monarchy are rife and anger over corruption, poverty and unemployment is palpable.

The new law defines terrorism as any criminal act that "destabilizes the society's security or the state's stability or exposes its national unity to harm." It says that terrorist acts include disabling the ruling system or "offending the nation's reputation."

Activists said that simply exposing corruption could be a violation.

The law also says only the interior minister can order the release of a person on trial; judges have no say.

Other worrying aspects, activists said, include an article that says police can raid homes and offices on suspicion of anti-government activity without prior approval from a judge or even a superior. Suspects can also be held incommunicado for 90 days, and lawyers are not required to be present during the initial interrogation.

Coogle said the law "enshrines some of the unlawful practices that Saudi authorities were already committing," such as detention of suspects for many years without trial. He said it does not specify the punishment for crimes committed under the new law.