Infested blocks get red corner marks and suspicious sand and gravel get orange ones, so you never mine the wrong block.