A penetration test, or pen test, is a simulated cyberattack on a system, network, or application to identify vulnerabilities that could be exploited by attackers. Pen tests help organizations assess their security posture, validate defenses, and identify areas for improvement. They are an essential component of a comprehensive security program.