The Indonesian navy has arrested the alleged mastermind behind the hijacking of a Malaysian oil tanker in June.

Navy spokesman Colonel M Zainudin said his forces had apprehended an Indonesian suspect, identified as Albert Yohanes, at an apartment in West Jakarta.

"AY (Albert Yohanes) is suspected of being the mastermind behind the hijacking drama of the Malaysian-flagged vessel," he added, according to the Jakarta Post.

"He did not resist when he was arrested. It seems that he was aware that we had been tracking him for a while."

He said he could not confirm if the suspect would be tried in the country or extradited to Malaysia.

"We are still waiting on further coordination. Rest assured that we will hand him over to the police. The other eight suspects are also still under the watch of Vietnamese authorities," Zainudin said.

In June, eight men were held on Vietnam's southwestern Tho Chu Island, on the same day Malaysian law enforcers reported that pirates commandeering the 7,301-dwt Orkim Harmony (built 2009) had managed to escape.

The suspects were identified as Indonesians.

Orkim Harmony was reported missing on 12 June after leaving Malacca on peninsula Malaysia's west coast for Kuantan on the east coast.

The ship was reportedly carrying 5,879 tonnes of RON95 fuel worth MYR 21m ($5.5m), which belonged to state-owned oil company Petronas.