There is no way for a cargo ship to arm itself against submarines.
The only way I see the landscape changing meaningfully in the direction you suggest (cargo ships going up against seafarers they are not able to defend themselves from) is if letters of marque were reinstated. At least one proposal has been floated -- and when we all stop laughing about it I grant that it might become a thing
Say, because Taiwan was being invaded?
And in the form of a blockade, of course.
Korean air lines flight over Russia, us shooting down Iranian jet in the gulf, Russia shooting down Malaysian air over Ukraine, Iran shooting down a Ukrainian jet over itself.
I presume gp means Not swept under the rug in terms of information suppression, swept under the rug in terms of very little diplomatic fallout
There's a list here that would be a reasonable starting point for any further digging you might wish to do:
https://en.wikipedia.org/wiki/List_of_airliner_shootdown_inc...