We used to get pantry moths. They loved all dried goods such as couscous, laid their eggs which turned into tiny worms. Plus cobwebby stuff. So you had to keep all dried goods in closed containers.
That's assuming they weren't already infested, like yours nomoss.
I haven't seen pantry moths here yet, but you never know, with global warming.