Keith Butterfield, Yacht and Marine Surveyor. Costa del Sol, Spain.

The solution involves removal, cleaning and fully bedding the entire base of the hardware. That is, instead of applying bedding compound only to the areas where fasteners pass through, the whole base area should be liberally bedded with sealant that will both create a watertight seal and exclude water that could migrate.  Exclusion of the water is the key to preventing staining.

In addition to bedding, polishing rough or irregular stainless steel will minimise surface staining (polishing removes micro-pits where corrosion gets its start).  Avoiding water traps in recesses where (often undersized) fasteners are installed will also aid in prevention of crevice corrosion and staining. Fastener heads should fill the hole and countersink in any hardware, always use the largest screw that will fit, and it should be fully bedded.  Even then, fastener recesses can form water traps which lead to staining.  Using 316 stainless alloy fasteners, as well as polishing fastener heads, will reduce the incidence of staining.