Predator/Hellfire strikes could stop it tomorrow.
Catching pirates no the ocean is like catching ants one-by-one with tweezers at a picnic.
You go to the nest, and destroy it.
In the case of pirates, they cannot function without sanctuary in pirate ports. Their basic raiding boat is a 25 foot open boat with a big outboard. These are readily visible jammed together in the ports. Destroy them with Predator strikes. “Innocent Somali fishermen” will wail to the UN. Too bad.
The Brits wiped out piracy by wiping out the pirate ports. This is not something new, or rocket science.
All it takes is a Western leader with will. We already have Predators in the region, in Yemen and Djibouti and elsewhere.
Their technique of using rubber boats to circle their prey could be defeated by most any ship owners willing to put a few sharpshooters on board. Everything the pirates do can be easily defeated by the navies of many nations. The main complicating factor is the hostages.
They are able to continue only because nations have not gotten together and implemented a plant to end it.