Security & Privacy

Penetration testing

Also known as: pen testing, pentest, pen test, penetration test

Penetration testing, or pen testing, is an authorized simulated attack on an organization's systems, networks, applications, or people, carried out by security professionals to find weaknesses before criminals do.

Testers try to break in using the same techniques attackers use, then report what they found and how to fix it. While pen tests give a realistic view of risk, they're a snapshot in time, and their value depends heavily on scope and the skill of the testers.

Penetration testing, explained at three levels

At home

A pen test is like hiring a locksmith to try breaking into your house, with your written permission. They test each door and window, see how far they get once inside, then hand you a report listing which locks failed and how to fix them. In computing, the house is an organization's networks, websites, and staff accounts, and the locksmith uses the same tricks real criminals use.

At work

Penetration testing is an authorized, simulated attack on a company's systems by security professionals. Testers use the same tools and tricks as criminals to find weak passwords, unpatched servers, or website flaws, then show how far an attacker could get and how to fix each gap. Businesses buy pen tests to find problems before criminals do, and often to satisfy customers, insurers, or regulators.

Real-world examples

At home

Thomas, a computer science student in Waterloo, practised pen testing skills on legal online labs before landing a summer job at a security consultancy.

At work

Lena is security lead at a Toronto fintech startup. An annual pen test found that an old test server was exposed to the internet with default credentials, which her team shut down that week.

How it compares

featurePenetration testingVulnerability scanning
ApproachHumans actively try to break inAutomated tools list known flaws
DepthChains flaws togetherSurface-level findings
FrequencyPeriodic, often yearlyContinuous or weekly
CostHigherLower

Scanning finds known holes. Pen testing shows what an attacker could actually do.

For analysts

I'd tie pen test scope to real business risks, such as 'can an outsider reach payroll data?', instead of testing whatever is easiest. Then track every finding to closure.

History & origin

The US military and government ran 'tiger teams' to probe computer security in the late 1960s and 1970s, and a 1972 report for the US Air Force by James P. Anderson laid out methods for testing system defences. Security consultancies offered commercial penetration testing in the 1990s as businesses connected to the internet. Tools such as Nmap (1997), Metasploit (2003), and Burp Suite (2003) became standards. Payment card rules under PCI DSS, introduced in 2004, required regular penetration tests for businesses handling cards, pushing adoption. Certifications such as OSCP, launched in 2006, professionalized the field. In my view, a good pen test report is one of the most useful documents a security team can receive, provided someone actually fixes the findings.