That's Hollywood stuff. As the owner of the cargo going overseas, you're not likely to be on board to protect it. But there are some things you can do to reduce the likelihood of it being stolen or to increase the likelihood of retrieving it if it is. Steer clear of the smaller, single-ship companies whose owners don't care too much about the integrity and seaworthiness of the boat. This means shipping your goods on the better-known lines based in Europe, the United States, and Asia.
Most piracy involves whatever the pirates can carry away.
The ship is seldom stolen. While underway, pirates armed with machetes and knives boarded a container ship and proceeded to the master's cabin. Piracy is most frequent where local law enforcement is lax or unable to respond to the incident for one reason or another. Five pirates armed with guns and knives boarded a bulk carrier, broke into the paint locker, stole ship's stores, and escaped in a boat. Attempts by the master to contact the police failed.