Rancid flour has a sour smell to it. Almond flour is high in natural oils, so when it goes bad, it gives a sour, musty smell. But if you think your flour has gone bad, look for signs of discoloration which is a clear indicator the flour has gone bad.