You might be thinking of bread beetles aka biscuit beetles. They are rather small, they can penetrate packaging and infest all kind of cereals, flour and other foods.
It depends where you find them, but if they are anywhere near wheat products they could be biscuit beetles - we had an infestation which was centred around a wheat bag!