Although we may still see others' defilements such as anger, hatred, jealousy, desire and ignorance, our recognition of these defilements is actually the wisdom. The transformation of a particular defilement produces a particular wisdom. The five wisdom are the transformation of the five defilements. A defilement, if not recognised, creates confusion and suffering. If we are able to recognise the nature of defilement, then it is wisdom.
Defilements come from our own consciousness.
Its nature has the potential to become the Dharmakaya. And defilement itself has the potential to become Sambogakaya and Nirmanakaya. Many people still have doubts whether Vajrayana is Buddhism or Hinduism. It seems reasonable to think that Vajrayana Buddhism was influenced by Hinduism because when compared, they look alike. Before Buddhism, there was Hinduism in India then.