The Windows Data Protection API, typically referred as DPAPI, is the built in Windows way to encrypt and decrypt data. In this post we will explore how the DPAPI works, and how, as offensive security professionals, we can abuse in several different scenarios, such as decrypting secrets, obtaining a victim's browser cookies and take over their sessions, etc.