It would be great if the AI factions could also do it, but I've never seen them attack my ships in port. Either the bug/feature must be removed or the AI must be changed to make use of it.