The serpent mentioned in Genesis is the symbolic appearance of Satan. Satan takes several form throughout his reign.
The story of Genesis and creation is related to Moses through divine inspiration. Moses wrote the first Five books in the Old Testament . Genesis, Exodus, Leviticus, Numbers and Deuteronomy.. all divinely inspired by God.