Quick answer
Insects or silk inside dry food can suggest a stored-food pest. Not every insect seen in the kitchen is associated with food.
Look for the source
Check packaging and shelves for visible larvae, moths or beetles. More than one package may be involved.
Distinguish moths from beetles
Adult moths have wings that may be obvious in flight. Beetles often have a more compact outline and wing covers. A fuzzy larva is not necessarily a pantry moth.
Next steps
Discard food confirmed to be infested, clean cabinets and shelves, and seek identification if sightings persist or the source is unclear.