Of course you knew I would pipe in sooner or later
The vision of cosmic struggle, forces of good contending against forces of evil, derived originally from Jewish apocalyptic sources and was developed by sectarian groups like the Essenes as they struggled against the forces they saw against them.
This revision of earlier monotheism also involved a split in society, divided between ‘sons of light' against ‘sons of darkness'. Followers of Jesus adopted the same pattern. Each of the gospels in its own way invokes this apocalyptic scenario to characterize conflicts between Jesus' followers and the various groups each author perceived as opponents.
The Devil does not come from Judaism, it is rather a pagan influence. The Zoroastrians believed that there were two gods, one good and one evil, in constant opposition and competition for human souls. Zoroastrianism influenced Judaism during the time period before Christianity arose.
In no part of the canonical books of the "Old Testament" are we given the Devil in the Christian sense—the once favored angel that sought to lead a rebellion to overthrow God, was cast from heaven into hell, and now seeks to tempt/trick/torture human beings in opposition to God's will.
The term ha-Satan means literally the-Adversary, and the term is used in a number of contexts that mean adversary in general. The closest thing that we find to the Christian concept is its use as the title (though not the name) assigned to an angel in Yahweh's court.
He was a prosecutor for God against human individuals, with God as the Judge. Ha-Satan could not act without God's permission and did not cause people to sin, though God may have ha-Satan test a person, as in the case of Job. Ha-Satan's primary role was to record and point out the sins people committed and argue against them in the holy court in accordance with God's will. In the (apocryphal) book of Enoch, Satanael/Samyaza is the leader of the Grigori, who again were cast out of heaven for sleeping with human women and producing a race of giants.
The mentioning of Lucifer immediately brings to mind the concept of the Christian Devil. It is suggested that this results from a misinterpretation of Isaiah 14:12, which referred to the king of Babylon. However, a brief review of the origin of the name Lucifer shows this is also untrue. In legend Lucifer retains its Latin meaning "bearer of light" or "light bearer" designating the Morning Star. Christianity assigned Lucifer the position of the Prince of Darkness.
Lucifer means "light bringer," meaning a Morning Star god announcing daily birth of the sun. The Canaanites called him Shaher, the Hebrews Shaharit, Morning Service, still commemorating him. His twin brother, Shalem, the Evening Star, announced the daily death of the sun. These two may be identified as the heavenly twins of the Greeks, Castor and Pollux, born of Leda's world egg. They also played a prominent role in Persian sun worship as two torch-bearers, one with an ascendant torch, the other pointing downward.
In Canaanite legend Shaher and Shalem were born of the great mother Asherah, in her world-womb aspect as Helel, "the Pit." Shaher coveted the superior glory of the sun god and attempted to usurp his throne, but was defeated and cast from the heaven like a lightening bolt.
There is a seventh century BCE scriptural account of this story of the Morning Star, which eventually became Isaiah 14:12-15. Lucifer is told, "Thou shall be brought down to hell, to the sides of the pit." The pit, here, is symbolizing, or the same as, Helel, the Mother-bride's womb. In this version Lucifer, the light-bringer, is cast from heaven by the solar sun, Christian God, because he was competing for the sexual favors of the Mother. In the Bible, the sin of Lucifer is pride, whereas, in nature, it was sexual.
The Morning Star was the god, at times referred to as a bird, Benu to the Egyptians. He was the dying-and-reborn bird Phoenix, called the "Soul of Ram" who died on the World Tree in order to renew himself so to "shine on the world." It is said his spirit dwelled in the phallic obelisk, called Benu or the Benhen Stone, representing the god's sexual union with the Mother.
One finds Plato knew the morning star as Aster that appeared in a different position as the evening star (actually the planet Venus). He saw Aster as a dying-and-reborn deity. Of it he wrote, "Aster, once, as Morning-Star, light on the living you shed. Now, dying, as Evening-Star, you shine among the dead."
The Gnostic Christians too believed in the light of Lucifer which they viewed as the enlightenment which he as the Serpent, also an Egyptian phallic form as the serpent Ami-Hemf "Dweller in the Flame," who enlightened the first parents, Adam and Eve, against God's will. Here Lucifer is likened to Prometheus who stole fire from heaven to give civilization to humanity. God denied the first two people the fruit of the tree of knowledge, but Lucifer gave them the light of wisdom.