These "worms" are the larvae of the common moth that also eat woolen cloth,and that you use mothballs against. Horn being only a compressed form of hair; throw a few mothballs in your trunk style gun cases to keep them at bay. A few in the gun room can't hurt either, just smells bad.

All the best, Mal