Sarah
Since you had the cat food in a closed container, the cat food was already contaminated. Many times the warehouses where the dry foods - cat or human - are stored have problems with dry food insect and rodent pests. So your cat food bag either had eggs on the package that got transferred into your container or eggs were laid in the bag on the cat food.
To rescue the food you have you can put it in the freezer for a week, bring it out for 2 weeks then back in the freezer for a week. The freezing kills the bugs, then out of the freezer allows any eggs to hatch then back in the freezer to kill any remaining larva. --Or you can pitch that cat food out and hope the new stuff is not infested.
Other insects also can get in pet food - like Indian meal moths, saw toothed grain beetles, etc. The freezer techique works for all of them.
To prevent infestations there are Pantry Pest sticky traps for the moths and beetles but not very effective on dermestids. :-( Sorry.
Our local Pest Control company has them or find them online.
Better luck on the next bag of cat food...also might try smaller bags, so it is used before the beetle larva can develop.
Bug by: Sarah
I found about 50 of them in my cats catfood and i asked everyone if they knew what it was and they didn't know. So i looked it up on here and this is what i thought it looked like. I have my catfood in a tote with a lid and when i first opened it there wasn't anything in the catfood, i have the tote on my bakers rack and it still got to it.
Dermestid beetle larvae by: Moni
Corey
Without more information on size, where you found it, what it was doing, and a clearer photo showing the top, legs, and head better, I believe this is probably a dermestid larva. The dermestid larvae turn into small beetles that feed on fats and proteins.
This group of beetles can be found in homes as well as on animal carcasus outdoors. They feed on debris in homes such as dander, hair, wool, silk, leather or hide carpets, or other materials with proteins and fats like dog food, dead insects, oils and pantry foods, etc.
Hope that helps!