The court said today that all the defendants were sentenced to eight years in prison and one was sentenced to four years to be served consecutively for membership of an armed group.
The six were arrested in January 2012 following a shootout when they tried to board the Patino, a navy supply ship. The Defence Ministry said the attackers possibly mistook the warship for a freighter.
The Patino was part of a European Union flotilla fighting piracy in the Indian Ocean.