Answer: They come from the Creator Himself. It is written: “I created the evil inclination, I created the Torah as a spice for it” (Kiddushin 30b), which is the method for the correction of the evil inclination.
From where in the completely good Creator was evil born? This is the great mystery of the Creator. This is the work of creation.
The origin of evil from the good is called creation: “I created the evil inclination.” And then we learn that it is not evil at all, but it seems this way in relation to our closed, limited state.
From the Kabbalah Lesson in Russian 1/22/17