Hacking is a key part of offensive security, which differs from defensive security in a couple of key ways. Defensive security is reactive. It involves preventing attacks, but also finding and responding to breaches when they occur. Offensive security is proactive and uses penetration testing, also known as ethical hacking. In penetration testing, developers simulate a hack on a system to see first, if they can hack it, and secondly, what happens if they do.
PUBLICATION PERMISSIONS: Original video was published with the Creative Commons Attribution license (reuse allowed). Link: https://www.youtube.com/watch?v=yO3oS61M3aE