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.