Similar ideas have been tried in the past, they always end the same way. The converted civilian ship has zero survivability and is sunk by the first passing warship to the embarrassment of all the planners involved.
Today such vessels are so susceptible to anti-ship missiles and submarines that they're laughed out of any serious military planning meeting where the participants aren't already desperate for tonnage.