Hard to say without an image but if they are regular maggot sized either blowfly larvae and you have a dead rat or animal in the structure or a carpet beetle larvae. All I can say is you have a larvae but if that's the case you should see some type of insect adult as well.
Take your dog to a vet and find out from a professional rather than ask for answers from total stragers.
Maggots of houseflies look like little white worms, about a quarter inch long, and they move constantly. Maggots of horse flies are much larger and a darker color.
i found tiny dark worms in my dogs bed,blanket this morning they look like pin worms what are they?
If you have bugs that look like maggots in your microwave, they could be pantry moths or larvae. You can use insecticides like permethrin chemical to get rid of them.
they look like tape worms just in your lungs.
Humans are susceptible to roundworms, hookworms and tapeworms, all of which may also infest dogs. However, the human worms and the dog worms are different species and for the most part a worm from a dog cannot infect a human, and vice versa. Humans can also get pinworms, which are not found in dogs.
Chlamydia does not look like worms. It's caused by a microscopic bacterium.
Every bacterium is unique. Some do look like worms, some look like lunar landing modules, and some look like octopuses.
They are like that/
What does Cato ler worms look like
squashed worms :)
Catobler
caddis fly larva