There is no biblical support to the idea that demons can attach themselves to physical objects. This belief is actually part of superstitious practices and occult beliefs found in animistic cultures and among those who practice the occult.
Some say that verses such as Acts 19:19, where former magicians burned their magic books, prove that objects can have demons. But the passage does not say that. It is more likely that these new believers were burning their magic books to prevent the spread of lies and to show that they were now believers in Jesus.
The Bible records accounts of demons afflicting or possessing unbelieving people. But there are no accounts of demons being in or attached to objects, and the Bible does not warn us about demons attaching themselves to objects. Occult practices may attract evil spirits, and, since certain objects are used in those practices, it might seem that the demons are attracted to the objects; however, this does not mean the demons are in the objects. It is the occult activity itself that attracts them. When people who have been involved in the occult come to Christ, they are often advised to get rid of their occult books and objects, not because the objects have demons in them, but because the books and objects would be a source for future temptation.
Believers in Christ are not to fear demons, although we are to be vigilant and alert for their temptations (1 Peter 5:8). The key is submission to God and walking in the truth of Christ daily: “Submit yourselves, then, to God. Resist the devil, and he will flee from you” (James 4:7). Those who have put their faith in Christ have nothing to fear, as the apostle John explained, “You, dear children, are from God and have overcome [Satan and his false prophets], because the one who is in you is greater than the one who is in the world” (1 John 4:4).