Since I don’t know what the worms look like, I can’t tell you what kind they are. However, there are a few worms commonly found inside. Small, reddish-brown worms can be insect larvae, which are usually fund in cornmeal or flour. If you have a garbage spill or leakage, small white worms, or maggots, may be the problem. Also, your pets can carry worms into your house. Bottom line, thoroughly check for any spills or leakages and clean them. If your animals soil on the carpet, be sure to deep clean the area.