Higher frequencies, on the other hand, are not reflected back by the ionosphere and go straight out into space. That's why you typically use VHF frequencies (30-300 MHz) for things like EME "earth-moon-earth" or "moonbounce" communication, or communication via satellite. So if your concern is about radio waves making our planet a beacon for aliens, you should be more concerned about FM radio towers than AM ones.
We think we're blasting a firehose off into space but we're spitting from a straw.
in which case deflections from the intergalactic ambient hydrogen is the only hope of mankind that they don't invert the signal back to our solar system with our primitive space force.
Laser / maser signalling would probably be about the best we could do for now.
https://en.wikipedia.org/wiki/Defense_Support_Program https://en.wikipedia.org/wiki/Space-Based_Infrared_System
Don't you mean planetary security?