Idolatry not only refers to false pagan worship. It remains a constant temptation to faith. Idolatry consists in divinizing what is not God. Man commits idolatry whenever he honors and reveres a creature in place of God, whether this be gods or demons (for example, satanism), power, pleasure, race, ancestors, the state, money, etc. Jesus says, "You cannot serve God and mammon." (Mt 6:24) Many martyrs died for not adoring "the Beast" (Cf. Rev 13-14) refusing even to simulate such worship. Idolatry rejects the unique Lordship of God; it is therefore incompatible with communion with God (Cf. Gal 5:20; Eph 5:5).
CCC 2117
Human life finds its unity in the adoration of the one God. the commandment to worship the Lord alone integrates man and saves him from an endless disintegration. Idolatry is a perversion of man's innate religious sense. An idolater is someone who "transfers his indestructible notion of God to anything other than God." (Origen, Contra Celsum 2, 40: PGPatrologia Graeca (J. P. Migne) 11, 861)
Divination and magic
God can reveal the future to his prophets or to other saints. Still, a sound Christian attitude consists in putting oneself confidently into the hands of Providence for whatever concerns the future, and giving up all unhealthy curiosity about it. Improvidence, however, can constitute a lack of responsibility.
All forms of divination are to be rejected: recourse to Satan or demons, conjuring up the dead or other practices falsely supposed to "unveil" the future (Cf. Deut 18:10; Jer 29:8). Consulting horoscopes, astrology, palm reading, interpretation of omens and lots, the phenomena of clairvoyance, and recourse to mediums all conceal a desire for power over time, history, and, in the last analysis, other human beings, as well as a wish to conciliate hidden powers. They contradict the honor, respect, and loving fear that we owe to God alone.
All practices of magic or sorcery, by which one attempts to tame occult powers, so as to place them at one's service and have a supernatural power over others - even if this were for the sake of restoring their health - are gravely contrary to the virtue of religion. These practices are even more to be condemned when accompanied by the intention of harming someone, or when they have recourse to the intervention of demons. Wearing charms is also reprehensible. Spiritism often implies divination or magical practices; the Church for her part warns the faithful against it. Recourse to so-called traditional cures does not justify either the invocation of evil powers or the exploitation of another's credulity.
Irreligion
God's first commandment condemns the main sins of irreligion: tempting God, in words or deeds, sacrilege, and simony.
Tempting God consists in putting his goodness and almighty power to the test by word or deed. Thus Satan tried to induce Jesus to throw himself down from the Temple and, by this gesture, force God to act (Cf. Lk 4:9). Jesus opposed Satan with the word of God: "You shall not put the LORD your God to the test." (Deut 6:16) The challenge contained in such tempting of God wounds the respect and trust we owe our Creator and Lord. It always harbors doubt about his love, his providence, and his power (Cf. 1 Cor 10:9; Ex 17:2-7; Ps 95:9).
Sacrilege consists in profaning or treating unworthily the sacraments and other liturgical actions, as well as persons, things, or places consecrated to God. Sacrilege is a grave sin especially when committed against the Eucharist, for in this sacrament the true Body of Christ is made substantially present for us (Cf. CICCodex Iuris Canonici (Code of Canon Law), cann. 1367; 1376).
Simony is defined as the buying or selling of spiritual things (Cf. Acts 8:9-24). To Simon the magician, who wanted to buy the spiritual power he saw at work in the apostles, St. Peter responded: "Your silver perish with you, because you thought you could obtain God's gift with money!" (Acts 8:20) Peter thus held to the words of Jesus: "You received without pay, give without pay." (Mt 10:8; cf. already Isa 55:1) It is impossible to appropriate to oneself spiritual goods and behave toward them as their owner or master, for they have their source in God. One can receive them only from him, without payment.