Skip to content
Glossary · Identity and security

Penetration test (pen test)

Also called pen test, pentest, ethical hacking.

Definition

An authorised, simulated attack on a system by security testers, to find weaknesses that a real attacker could use.

Last updated

What it is.

In a pen test, testers try to get around a system's security the way an attacker would, often using the same tools and chaining small weaknesses into bigger access. NIST's glossary describes it as testing where assessors try to circumvent or defeat a system's security features.

Tests are scoped up front: which apps, APIs and environments, black box or with credentials and source access, and what is off limits. The result is a report of findings ranked by severity, which the team fixes and then has retested.

Why it matters

Code review and scanners miss logic flaws, such as one customer reading another's data by changing an ID. A pen test finds those. Enterprise buyers, SOC 2 auditors and card rules often ask for a recent test, and a clean retest is good evidence in a security review.

In a product build

We give testers a staging copy with realistic data and test accounts for each role, fix findings by severity, and add a test for each one so it cannot come back. Common issue types, like broken access checks, feed into code review checklists.

Watch out

Common mistakes.

  1. 01

    Testing production without agreement, or with real customer data.

  2. 02

    Scoping only the web front end and leaving the API and admin tools out.

  3. 03

    Filing the report and not scheduling the retest.

Sources

Read the official text.

Primary sources this definition is based on.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab