There are norms the media choose to follow on their own accord.
Think for example how suicides are generally covered. Reputable organisations don't publish the details of the precise method, and they include a link/phone number to a help line for those who struggle themselves.
> What is the punishment if you break it?
The same as with most norms: Professional embarrassment, and loss of reputation among your peers.