I’ve seen this with really crappy solder flux lightly cleaned with isopropyl alcohol. It took some more alcohol, elbow grease and a PCB brush, but it came off.
It’s just solder flux that they didn’t bother to fully clean off. The header pins are usually hand soldered after the surface mounts parts are sent through the oven.
Just get some isopropyl alcohol, lightly soak a rag. Press on the surface flux to clean it off.
Let fully dry before powering it on.
Only way to avoid is to buy from reputable manufacturers like pololu.
That can be solder paste residues or flux does not damage the circuit as it does not conduct the electric current but aesthetically severe ugly you can clean it with clean contacts or isopropyl alcohol