Chapter 15: Leveraging Pentesting for Defensive Security
"Companies have to invest time and resources in defensive security to identify new vulnerabilities that allow them to anticipate the movements of the adversary. As Sun Tzu says in The Art of War: "To know your enemy, you must become your enemy."
– Dagoberto Herrera, University Dean
While pentesting is a task normally reserved for offensive security teams (also called red teams), the truth is that as a master in defensive security, you also need to know at least the basics of pentesting.
In fact, this chapter is not aimed to make you a pentester. Instead, the goal of this chapter is to show you the most popular tools used by pentesters (and attackers) to show you how easy and dangerous those attacks can be.
The chapter starts with some mandatory theory to be able to then move on to some exacting labs in which you can experiment using your own hands with the simplicity and power of those offensive...