There were many instances of POW transports, known as hellships, being sunk by allied forces. The ships were not marked as carrying prisoners, no red crosses or other identification so were considered legitimate targets.
https://www.warhistoryonline.com/instant-articles/allies-killed-20000-countrymen-sank-japanese-hell-ships-transported-m.html?chrome=1