Pirates attacked a South Korean-flagged cargo ship in the South China Sea early on Monday, stealing thousands of dollars in cash and even the sailors’ shoes, South Korean authorities said.