Plugging the holes in port security