# Penetration Testing

> Hiring people to break in on purpose. They find the holes first.

**Field:** Software Development  
**Category:** Security  
**Also known as:** Pen Test, Pentest, Penetration Test, Ethical Hacking

## Think of it like

Think of it like asking a kind thief to try your locks.

## Definition

A pen test is a planned attack on your own system to find its holes, and it is allowed. Testers use the same tools and tricks as real attackers. They work within rules agreed in writing first. At the end, they write a report of every hole they found and how to fix it. Many companies run one before a big launch, and then on a regular schedule.

## Example

A bank hires testers before it launches a new app. In a week they find a page that skips the login check, and it is fixed before launch.

## Why it matters

Scanners find known patterns. A skilled tester finds the odd chain of small flaws that adds up to a break-in.

## Common mistake

Testing a system without written permission. Even with good intent, that can be a crime.

## Three principles

- **Allowed in writing.** Rules and scope are agreed first.
- **Think like an attacker.** Use real tools and tricks.
- **Report and fix.** Every finding gets a fix.

## Related terms

- [Security Vulnerability](https://learn.benibix.com/term/development/vulnerability)
- [Threat Modeling](https://learn.benibix.com/term/development/threat-modeling)
- [Exploit (Security)](https://learn.benibix.com/term/development/exploit)
- [OWASP Top 10](https://learn.benibix.com/term/development/owasp-top-10)
- [Dependency Scanning](https://learn.benibix.com/term/development/dependency-scanning)

![Five steps in a row: design, write code, push, build and launch. Lit-up boxes hang under four of them: threat modeling under design asks what could go wrong, secret scanning under push asks if keys were left in the code, a dependency scan under build asks if packages have known holes, and a pen test under launch asks if a skilled attacker can get in. A note says the earlier a hole is caught, the cheaper it is to fix.](https://learn.benibix.com/diagrams/dev2-security-checks.svg)

---

Source: https://learn.benibix.com/term/development/penetration-testing
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
