Malaysian police said Wednesday that they have detained four Westerners, including two Canadians, suspected of posing naked at the country's highest peak last month, just days before an earthquake killed 18 climbers on the mountain.

Police obtained a court order to detain them for four days while they're investigated for indecent behaviour, said Sabah state police chief Jalaluddin Abdul Rahman.

Two Canadian siblings, identified earlier as Lindsey Petersen and his sister Danielle Petersen of Saskatchewan, and a Dutch male surrendered themselves at a police station in Sabah on Tuesday evening, he said. A British woman was detained at a Sabah airport earlier Tuesday while trying to fly to Kuala Lumpur.

They were believed to be part of a group of 10 people who stripped naked before taking photos at Mount Kinabalu on May 30.

A magnitude-5.9 earthquake Friday sent rocks and boulders raining down the trekking routes on the 4,095-metre-high mountain in Sabah on Borneo island, killing 18 climbers.

The victims were nine Singaporeans, six Malaysians and a Filipino, a Chinese and a Japanese national.

The quake damaged roads and buildings, including schools and a hospital on Sabah's west coast. It also broke one of the twin rock formations on the mountain known as the "Donkey's Ears."

Sabah Deputy Chief Minister Joseph Pairin Kitingan has blamed the tragedy on the foreigners for showing "disrespect to the sacred mountain" by posing naked at the peak. He has said a special ritual will be conducted to "appease the mountain spirit."

The Department of Foreign Affairs said on Sunday that it was assisting two Canadians barred from leaving Malaysia.