International naval forces have stopped numerous attacks and detained dozens of pirates .