Long version:
https://www.intechopen.com/books/ma...ion-and-surface-treatment-of-magnesium-alloys
http://www.totalmateria.com/Article19.htm
short answer: it's very prone to galvanic reaction/attack unless protected. I was reading somewhere that you shouldn't even scrub it with a wire brush because it can embed in the magnesium and will continue to corrode even after covered/painted (dissimilar metals). That might be an extreme case though.
There are environmental factors that can accelerate the process.
Concrete is definitely not good. I assume due to moisture, and just general abrasion wearing off the protective paint.
Trying to find someone now to tig weld a gas tank on a super 250 that has a finger size hole in it due to general corrosion. Will have to seal up the tank with something after, the entire interior of the tank looks like the moons surface. Might end up being a JB Weld job...