my mother used to tell me how to rid of this problem. Some people say it is an old wives tale; but it works!!! These small black bugs are called weevils. They are not deadly, just annoying! First, throw out any of your boxed food with the bugs in it. After cleaning your pantry, either keep dry box food in ziplock bags, or all you have to do is put a couple of bay leaves in with your dry box food. I put a couple of bay leaves in my flour, rice, and other dry foods. You never have to deal with weevils again!!! If you do not know where to find this, bay leaves are in the spice section of your grocery store. They give excellent flavor when making homemade sauces. Put a couple in while cooking. Remove them and throw away after cooking.
Ask a expert or spray bug spray around but you need to take the hamsters out of the room when you spray
First thing would be to clean your pantry of all dry foods and instead of storing them in their original containers buy containers in which to store your dry and boxed foods, times back people used tins such as the large tins in stores containing popcorn, pretzels etc. They stored sugar, flour, pasta etc. Clean any spills immediately The best to you
Once ours had this too and I'm not sure what they were either. I threw out allthe food, cleaned the cage and sweep and mopped the room they were in. I also gave it a 'bath'. To make sure there were no eggs in the fur. It was really creepy. I'm convinced it was in the food when we bought it or it hatched out in there later. EWWWWWW.
What area of the country are you located? Can you give me alittle more detail description of what they looked like? Possibly could have been termite swarmers. Swarmers will detach their wings once they land but not right away. You will notice some with wings and some without. Seen you asked your question about 2 months ago. That is right in the middle of swarm season.