text: Countermeasures involve using alloys not susceptible to grain boundary depletion, using a suitable heat treatment, altering the environment (e.g. lowering oxygen content), and/or use cathodic protection.