According to the Bible, even false prophets can perform miracles.
Deut 13:1-5 13 If a prophet, or one who foretells by dreams, appears among you and announces to you a sign or wonder, 2 and if the sign or wonder spoken of takes place, and the prophet says, “Let us follow other gods†(gods you have not known) “and let us worship them,†3 you must not listen to the words of that prophet or dreamer. The Lord your God is testing you to find out whether you love him with all your heart and with all your soul. 4 It is the Lord your God you must follow, and him you must revere. Keep his commands and obey him; serve him and hold fast to him. 5 That prophet or dreamer must be put to death for inciting rebellion against the Lord your God, who brought you out of Egypt and redeemed you from the land of slavery. That prophet or dreamer tried to turn you from the way the Lord your God commanded you to follow. You must purge the evil from among you.