Circuit Times
Subscribe

Penetration Testing Explained: Types and Process

Penetration testing explained in plain words: types, process, tools, a runnable lab with real findings, reports, costs and careers.

  • 39 min read
  • 39 sections
  • Published November 25, 2026
Lena Marlowe

Explainer

Penetration testing, often called pen testing, is an authorized attempt to break into a system, carried out so that the owner can find weaknesses before a real attacker does.

A tester uses the same kinds of tools and tricks an adversary would, then reports what worked, how bad it was and how to fix it.

Most explanations of penetration testing are lists of phases and buzzwords. This guide adds something you can see.

I built a small web application with deliberate flaws, wrote a simple scanner, tested the application, fixed it in two rounds and tested it again.

The results, including a mistake my own scanner made, show what a test finds, what it misses and how the findings are scored.

I ran the lab again on November 19, 2026, on my own machine, and the published output is from that run. Both applications listen only on the local address, so nothing in it touches anyone else’s system.

The statements about the UK’s National Cyber Security Centre come from its published guidance. The effort model for scoping a test is invented, and a script at the end reproduces the whole lab.

The short answer

A penetration test is a time-boxed, authorized attack on a defined set of systems, followed by a written report. It gives you evidence about how your defenses hold up.

It does not replace routine vulnerability management, and it cannot prove that a system is secure.

Before any test, get written authorization and agree on scope, timing and rules. After it, fix the findings in order of real risk, and retest the fixes.

In my lab, the first scan of the vulnerable application found 12 issues, one critical and three high. A rescan after two rounds of fixes found one informational item.

Good to know: Only test systems you own or have written permission to test. The lab here runs on a local address for that reason. Laws and contracts differ by country, so confirm the rules that apply to you.

What penetration testing is

The UK’s National Cyber Security Centre defines a penetration test as a way of gaining assurance in an IT system’s security. Testers try to breach some or all of its defenses with the tools and methods an adversary might use.

The NCSC adds an important point. It says a penetration test should be seen as a way of checking your vulnerability assessment and management processes, not as the main way of finding vulnerabilities.

It compares a test to a financial audit: your team tracks money every day, and an outside audit checks that its processes are sound.

What a test can and cannot tell you

The NCSC says a well-scoped test can give confidence that the tested products and controls follow good practice and that no common or publicly known vulnerabilities existed in them at the time of the test.

That is a narrow and useful claim.

It is also a snapshot. The systems change after the test, new flaws are published and the testers had limited time.

The NCSC also notes that it is impossible to guarantee that no unexpected reactions occur during testing, so plan for that.

Penetration testing vs vulnerability scanning and other neighbors

Several activities get confused with penetration testing. This table is our summary.

ActivityWhat it doesTypical depthMain output
Vulnerability scanSoftware checks systems against a list of known flawsBroad and shallowA list of possible issues
Penetration testPeople try to exploit weaknesses and chain them togetherNarrower and deeperConfirmed findings with evidence
Red team exerciseA team simulates a real adversary against people, process and technologyGoal-driven, often covertLessons about detection and response
Bug bountyOutside researchers report flaws for rewardsOpen-ended, continuousIndividual reports
Security auditReview of controls, evidence and technical configurations against requirementsBroad, depends on scopeCompliance findings
Code reviewExperts read the source code for flawsDeep on code, blind to deploymentCode-level findings

A scanner finds what is on its list. A person finds what is on its list plus the unexpected, such as a sensible-looking feature that can be combined with another to cause harm.

You usually need both, and the scan comes first.

Why organizations test

Customers, regulators and insurers often ask for evidence of testing. Beyond that, a test shows whether your fixes work, whether your monitoring notices an attack and whether your team knows what to do.

A contract, a regulator or an insurer may also set a testing requirement for you. I did not review any specific regime for this guide, so read the one that applies to you.

Types of penetration test

Tests are grouped by what is tested, by how much the tester knows and by where the tester starts.

By target

TypeWhat is testedTypical findings
NetworkServers, firewalls, services and segmentationOpen services, weak configurations, missing patches
Web applicationSites and portalsInjection, broken access control, weak sessions
APIInterfaces used by apps and partnersMissing authorization, excessive data exposure
MobileApps on phones and their back endsInsecure storage, weak transport security
CloudAccounts, storage, identity and settingsOver-broad permissions, public data stores
WirelessWi-Fi and related devicesWeak encryption, rogue access points
Social engineeringPeople: email, calls and messagesStaff who give away access
PhysicalBuildings and devicesUnsecured entrances and equipment

Our cloud security guide shows what a configuration scanner finds in cloud settings, which is the first step before a cloud test.

By knowledge

ApproachWhat the tester knowsStrengthWeakness
Black boxNothing beyond what an outsider knowsRealistic outside viewTime goes on discovery
Grey boxSome details, such as a user accountGood balance of depth and realismNeeds careful setup
White boxFull documentation and sometimes source codeDeepest coverageLess like a real outsider

The NCSC notes that how much knowledge testers get, and how much the administrators know about the test, can vary within the same test regime. Choose based on what you want to learn, not on what sounds most realistic.

By starting position

  • External: The tester starts on the internet, as an outsider would.
  • Internal: The tester starts inside the network, as a visitor, a contractor or a compromised laptop would.
  • Assumed breach: The tester is given a foothold, such as a normal user account, and tries to go further.

Assumed breach tests are efficient. They skip the hours spent getting in and focus on what an attacker could do once inside, which is often the question that matters.

The process, from scope to retest

Every engagement follows a similar path, though names vary. This is our summary of the stages.

StageWhat happensOutput
ScopingAgree targets, goals, limits and datesWritten scope
AuthorizationSign permission and rules of engagementSigned agreement
ReconnaissanceGather public and technical information about the targetMap of the surface
Scanning and enumerationFind hosts, services and likely weaknessesCandidate issues
ExploitationTry to use weaknesses in a controlled wayConfirmed findings
Impact assessmentShow what an attacker could reach from thereEvidence of consequence
ReportingWrite findings, ratings and fixesReport
Remediation and retestFix problems, then test againClosure evidence

The OWASP Web Security Testing Guide is the best-known free resource for the web application part. It describes a structured set of tests, and testers use it as a checklist.

For general planning and conducting of technical security tests, NIST published Special Publication 800-115 in 2008.

Rules of engagement

Written rules protect both sides. A good agreement covers these points.

ItemWhat to write down
ScopeSystems, addresses, applications and accounts that are in and out of bounds
Dates and hoursWhen testing may happen, and blackout periods
Allowed techniquesFor example, whether denial of service or social engineering is permitted
Data handlingHow findings and any captured data are stored, shared and destroyed
ContactsWho to call if something breaks, and an emergency stop procedure
Third partiesPermission from hosting or cloud providers where their rules require it
ReportingFormat, timing and who receives it
RetestWhether fixes will be verified, and when

The NCSC points out that a test may identify extra systems that lie outside the agreed scope. The usual choice is to change the scope, which affects time and cost, or to leave the new systems out.

Decide who may approve a change before the test starts.

Authorization is what separates a penetration test from an attack. It should be written, signed by someone with the authority to grant it and specific about what is allowed.

A casual message from a manager is not enough when the systems belong to several teams or to a supplier.

An authorization document should name the organization giving permission, the testing firm or individuals, the exact systems and addresses, the dates and hours, the permitted methods and an emergency contact.

It should also say who may stop the test and who may approve changes.

Systems you do not fully own need extra care. If your application runs on a cloud or hosting provider, read the provider’s rules on security testing before you start.

If a vendor operates part of the system, you may need its permission as well.

Testers may see sensitive data, including personal data. Agree how they will handle it, how long they will keep it and how they will destroy it. Ask whether your own legal and privacy obligations apply to the testing work.

Written permission is necessary. It is not always sufficient. Authorization from the system owner does not override the law, a hosting provider’s terms, privacy obligations or agreements with third parties.

A test that is authorized can still breach a contract or a data protection duty if it goes about things the wrong way. I am not a lawyer, and you should check the rules for your country and sector.

A hands-on lab

To show what testing looks like, I built two versions of a small web application and tested both. The first is deliberately vulnerable. The second applies fixes.

Both are written in Python with its standard library, store data in a throwaway in-memory database and listen only on the local address.

The application has a few pages: a product search, a greeting page, an invoice lookup, a login form and a few files and folders. Those are enough to show the most common classes of web flaw.

The scanner is also my own simple script, so it checks only what I told it to check.

What the scanner does

It follows the stages above, in miniature.

  • Port check: Tries to connect to the two lab ports and notes which are open.
  • Banner and headers: Reads the response headers, and notes what the server reveals and which protective headers are missing.
  • Exposed files: Requests a backup file and a source control file that should not be public.
  • Admin function: Asks for the administrator’s user list without signing in.
  • Search test: Sends a malformed term to see whether the database leaks an error, then a crafted term that tries to read the users table.
  • Output test: Sends a script element and checks whether it comes back unescaped in an HTML page.
  • Access test: Signs in as an ordinary user, keeps her session cookie and asks for two other users’ invoices. It repeats the request with a forged identity header.
  • Privilege test: Uses the same ordinary session to try an administrator action.
  • Login tests: Tries the default administrator password, inspects the session cookie and makes 12 wrong attempts.

Each finding is backed by something the scanner actually did. When it reports a default password, it signs in, reads the user list and changes a price. It does not assume the impact.

Every check is a basic version of something a real tester does by hand and with specialist tools. Real engagements go much further.

Run 1: the vulnerable application

The scan found 12 issues. I scored each with the CVSS 3.1 calculator from our CVE and CVSS guide, using a base vector I assigned from the evidence. The formula is in the FIRST specification.

The vectors are my judgment, and another tester could reasonably choose differently. They mix two kinds of evidence, which the next section separates: impact the scan demonstrated, and potential impact reasoned from a known attack path.

ScoreRatingFindingWhat the scan showedCVSS 3.1 base vector
9.1CriticalDefault administrator password acceptedSigned in as admin, read the user list and changed a priceCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
7.5HighAdmin user list readable without signing inFour user records returned, with stored passwordsCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
7.5HighDatabase backup downloadableA dump with ten rows of data, including usersCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
7.5HighSQL injection reads the users tableThe search returned four user recordsCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
6.5MediumOther users’ invoices readableAn ordinary session read two invoices it does not ownCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
6.1MediumReflected cross-site scriptingA script element came back unescaped in an HTML pageCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
5.4MediumProtective security headers missingThree headers absentCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
4.8MediumNo limit on repeated failed loginsTwelve wrong passwords, never refusedCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.2MediumSession cookie lacks protective flagsHttpOnly, Secure and SameSite all missingCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
0.0InformationalDatabase error message leakedA generic syntax error from the databaseCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
0.0InformationalRepository metadata exposedOne file revealed the branch name onlyCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
0.0InformationalServer banner states a versionA product and version string in the headerCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N

That is 1 Critical, 3 High, 5 Medium and 3 informational findings.

One check found nothing even in the vulnerable version. An ordinary user could not change prices, because that function checks the user’s role.

How the scores line up with the evidence

CVSS rates what a flaw could allow, not only what one test observed. So each score below is labeled as demonstrated or as potential.

Impact the scan demonstrated

The default password scored 9.1, not the 9.8 often quoted for this class of flaw. The scan showed full read and write access. It did not show any effect on availability, so that metric stays at none.

SQL injection scored 7.5 for the same reason. The injected query read the users table, which is a high confidentiality impact. The vulnerable statement only reads data, and the scan changed nothing, so integrity stays at none.

The admin user list and the backup each scored 7.5. Both returned user records to a caller with no session.

The invoice flaw scored 6.5 because the attacker needs an ordinary account first.

Impact reasoned from an attack path

Four findings were not exploited by the scan. Their scores rest on what the weakness would let an attacker do next.

FindingWhat was observedAttack path behind the score
Reflected cross-site scripting, 6.1A script element returned unescaped in an HTML pageA victim who opens a crafted link runs the attacker’s script in their own session
Security headers missing, 5.4Three headers absentWithout a content security policy or frame protection, injected script and framing attacks are easier, and both need a victim’s action
No login limit, 4.8Twelve wrong passwords accepted without refusalUnlimited guessing can reach a weak password. Complexity is high because it depends on the password
Cookie flags missing, 4.2Three attributes absentA script or an unencrypted connection could expose the session cookie, which needs another weakness first

The scanner did not run the script element in a browser. That finding is confirmed reflection in an executable position, not observed execution.

Findings with no demonstrated impact

Three findings scored 0.0 and are recorded as informational.

The database error was a generic syntax message. It showed that input reaches the database, which is a useful lead, but it exposed no data. The repository file revealed a branch name, not source code or secrets.

The banner states a version. That helps an attacker choose a target, and on its own it exposes nothing.

My scanner got it wrong first

When I first built this lab in October 2026, the scan reported 11 findings. It missed the SQL injection.

My test used a crafted search term that turned out not to change the query in that application, so the scanner said nothing was wrong.

I only noticed because I had written the flaw into the application. I changed the test string to one that works and the finding appeared. That is a false negative, and it is a real limit of any tool.

A scanner reports what its tests can detect, and a clean result means only that nothing it checks was found.

A reviewer then found a second gap in my own lab. The hardened version checked invoice ownership against a name the caller supplied in a header, so anyone could claim to be the owner.

The scanner had not tested that, so it reported the flaw as fixed. The published version takes the identity only from the server-side session, and the scanner now tries the forged header.

The same applies to professional tools and professional testers. A test report should say what was tested and how, and you should not treat a test as proof that nothing else is there.

Fixes and a retest

I fixed the application in two rounds, with a rescan after each.

Round 1: fix the code

For the first hardened version, I made these changes.

  • Queries use parameters: User input is passed to the database as data, never joined into the command text.
  • Output is escaped: Special characters in user input are converted before they reach the page.
  • Ownership is checked: An invoice is returned only to the signed-in user who owns it, and the identity comes from the server-side session.
  • The admin list needs the admin role: It is refused without a session and to ordinary users.
  • Errors are generic: The application returns a short message instead of database details.
  • Sensitive files are gone: The backup and the source control file are not served.
  • Headers are added: The application sends a content security policy, a content type option and a frame option.
  • Cookies are protected: The session cookie is marked HttpOnly, Secure and SameSite, and each login gets a new random identifier.
  • Logins are limited: After five failed attempts from one address, further tries are refused for 15 minutes. A successful login clears the count.
  • Passwords are hashed: Stored passwords use PBKDF2-HMAC-SHA256 with 600,000 iterations and a random salt for each password. That is the work factor OWASP recommends when PBKDF2 is required. OWASP’s general preference is Argon2id, as its password storage guidance explains.
  • The banner is shortened: The server no longer states its product version.

Two limits apply to the hardened version. The lab has no TLS, so the Secure cookie attribute is shown in the response header only. And the sessions are kept in memory with no expiry, which a real application would need.

The login limit is a lab simplification too. It counts by address in memory, so it would block everyone behind a shared address and forget everything on restart. It is not a production rate limiter.

Round 2: change the default password

The second round changed one thing: the administrator’s default password was replaced with a long passphrase.

Run 2 and run 3

RunApplicationFindingsCriticalHighMediumInformationalChecks that found nothing
1Vulnerable version1213531
2First fixes, default password still admin210017
3Default password replaced100018

The second scan found two issues. One was the default administrator password. I had hashed it but not changed it, so it still accepted the old value and still opened the admin functions.

I had fixed how the password is stored and forgot to change the password itself. A retest caught it.

The other was the server banner. I had removed the product version, but the Python standard library adds its own version string to the header. After I replaced the default password, the third scan found only that banner.

I left it, because removing it would mean overriding part of the server code, and I wanted to show how a finding can remain as a documented, accepted item.

The last column matters as much as the findings. In the third run, eight checks found nothing, including the forged-header test: the ordinary user’s session was refused both other invoices.

What the lab teaches

  • Retesting matters: The second scan found a flaw that the first round of fixes missed.
  • Fixes can be partial: Hashing a default password does not make it strong.
  • Score what you showed: The default password rated 9.1, not 9.8, because availability was never tested.
  • Scanners have blind spots: Mine missed one flaw on its first try and one broken fix until a reviewer pointed it out.
  • Some findings stay: A report can record an accepted item with a reason.

What the scanner cannot find

My scanner tests a handful of known patterns on a small application. Real testing covers much more, and some problems need a human.

  • Business logic flaws: A discount code that can be reused, or a refund that can exceed the purchase.
  • Chained issues: A low-rated flaw that becomes serious when combined with another.
  • Authorization across roles: Whether every action checks the right permission, in every place.
  • Authenticated areas: Deep features behind a login that a simple scanner never reaches.
  • Race conditions: Actions that fail only when two requests overlap.
  • People and process: Whether staff notice and report an attack.

Penetration testing tools

My scanner is a teaching toy. Real testers use established tools, and each does one job. The descriptions come from each project’s own site.

ToolKind of workWhen it is usedLimit
NmapDiscovery: which hosts and ports answer. Free and open sourceAt the start, to map what is in scopeIt shows what is reachable, not what is exploitable
Burp SuiteManual testing: intercepting and replaying web traffic. Community Edition is freeThroughout a web test, for logic and access flawsThe free edition has no scanner and cannot save projects.

Those need the paid Professional edition |

ZAPAutomated scanning of web applications. Free and open source, sponsored by CheckmarxFor a first pass and in build pipelinesAutomated scans miss logic flaws and need tuning
Metasploit FrameworkExploitation: running known exploits. Free and open source, hosted under Rapid7To prove a known flaw is exploitableIt covers published exploits only. Metasploit Pro is a separate commercial product

Not every engagement needs every tool. A web application test may never use Metasploit, and a network test may never use Burp.

Tools do not make a test. A scanner run with no human judgment is a vulnerability scan, whatever the invoice calls it. I did not benchmark these tools against each other.

Standards and methodologies

A good provider follows a written method. Ask which one.

  • NIST SP 800-115, the Technical Guide to Information Security Testing and Assessment. Published in September 2008 and still the final version.

It is a foundational reference for planning and reporting, not a guide to modern cloud, API or application testing.

The flaws in the lab, and how developers fix them

The lab shows the most common web flaws in small form. This table explains why each happens, how a tester spots it and what the fix looks like. It is a simplified overview.

FlawWhy it happensHow a tester spots itThe fix
SQL injectionUser input is pasted into a database commandOdd characters change results or cause errorsPass input as parameters, so the database treats it as data
Cross-site scriptingUser input is placed into a page without escapingA harmless marker comes back as live markupEscape output, and add a content security policy
Broken access controlThe code checks who you are but not what you may seeChanging an identifier shows another user’s recordCheck ownership on every request, using the identity from the server-side session
Default credentialsSetup accounts are never changedThe documented password worksForce a change at first use, and remove demo accounts
Missing function-level checkAn admin function trusts that only admins know its addressThe function answers without a sessionCheck the role on the server for every admin action
No login limitRepeated attempts are never countedMany wrong guesses get the same replyRate-limit and lock out, with alerts
Exposed filesBackups and tools are left on the serverCommon paths return contentKeep them out of the web root, and review deployments
Missing headersDefaults are usedThe response lacks protective headersSet a baseline set of security headers
Weak cookiesSession settings are not hardenedThe cookie lacks protective flagsMark session cookies HttpOnly, Secure and SameSite

Broken access control tops the OWASP Top 10 list for 2021, and our multi-tenant SaaS guide shows a test where a forgotten filter returned another customer’s invoice.

Our guide to SaaS authentication covers the sign-in side, including password storage and rate limits.

How to read a penetration test report

A good report lets two audiences act: leaders who decide on spending and engineers who fix problems. This is our outline of what it should contain.

SectionWhat it should say
Executive summaryOverall result, the most serious risks and recommended priorities, in plain language
Scope and methodWhat was tested, what was excluded, dates, the knowledge given to testers and the approach
FindingsEach issue with a title, rating, description, evidence and affected assets
Risk ratingHow each rating was reached, and what factors changed it
RemediationSpecific steps to fix each issue, in priority order
Positive notesWhat worked well, so you keep it
LimitationsWhat the test could not cover
Retest planHow fixes will be verified

A finding template

A single finding should be clear enough that an engineer who was not there can reproduce it. These are the fields to look for.

  • Title: A short description of the problem.
  • Affected asset: The address, page or component.
  • Rating and vector: Severity, with the scoring inputs.
  • Description: What is wrong, in plain words.
  • Evidence: Steps and output that show the issue.
  • Impact: What an attacker could do, in the context of this organization.
  • Fix: A specific change, and a way to confirm it worked.

Warning signs in a report

  • A list of scanner output with a cover page: Real tests include judgment and evidence.
  • No limitations section: Every test has limits.
  • Ratings with no explanation: Severity needs reasoning.
  • Generic fixes: Advice should name your systems.
  • No mention of scope changes: The scope often shifts during a test.

Rating findings in context

A CVSS base score describes a flaw’s general characteristics. Your context does not change that score. It changes how urgently you should act, which is a separate business decision.

Our CVE and CVSS guide analyzed CISA’s catalog of exploited vulnerabilities as of October 27, 2026. Of the 1,681 entries with a version 3 score, 202 were rated Medium, which is 12.0 percent. Attackers used them anyway.

For each finding, ask four questions. Is the affected system exposed to the internet? Is the flaw known to be exploited, or likely to be? What data or control would an attacker gain?

Are there other controls that would stop or detect an attack? A Medium issue on a public system that holds customer data can outrank a Critical one on an isolated test machine.

Choosing a testing provider

Whether you use an outside firm or an internal team, ask these questions. I did not evaluate any provider, and I do not recommend one.

QuestionWhy it matters
Who will do the work, and what is their experience?Quality depends on the people, not the brand
How do you scope and price?Understand what drives cost
What does the report look like?Ask for a redacted sample
How do you handle findings that need urgent action?Critical issues should not wait for the final report
What are your rules on data handling?Testers see sensitive material
Do you include a retest?Verification closes the loop
What will you not test?Every test has limits
Can I speak to a past client?References show how engagements go

Six further checks separate a testing firm from a scanner reseller.

  • Named testers: Ask for the people, their experience and who will actually be on your job.
  • Specialist skills: Web, cloud, mobile and internal network testing are different skills.
  • Subcontracting: Ask whether any work is passed to another company.
  • Insurance: Ask for proof of professional indemnity cover.
  • Independence: The firm should not be testing its own build or selling you the fix as a condition.
  • Escalation: Agree how a critical finding reaches you on the day it is found.

A reseller sends a scanner’s output with a logo on it. A tester’s report shows manual work: attack paths, evidence from your system and findings a scanner cannot produce.

Look for recognized professional certifications and references, but do not treat a certificate as proof of quality. The NCSC’s guidance describes how to commission and use tests, and it is worth reading before you buy one.

How to scope a test

Price and duration follow scope. I built a simple effort model to show how the drivers add up. Every number is invented, and real firms price differently.

ItemTester days per itemCount in scopeDays
Planning and reporting212
Web application428
API313
Network range212
Cloud account313
Total, black box18

Giving the testers more knowledge saves discovery time. I assumed factors of 0.85 for grey box and 0.8 for white box, so the same scope would take about 15.3 and 14.4 days.

At an assumed day rate of $1,200, the grey box test would cost about $18,360.

The point is the shape. More applications, more interfaces and deeper testing add days, and shared knowledge reduces them. When you request quotes, give each provider the same scope, so the prices are comparable.

How often to test

Test when something significant changes, not only on a calendar. Good triggers include a major release, a new internet-facing service, a change of cloud provider, a merger, a large change to authentication and a serious incident.

A yearly test is a common policy choice. It is not a rule that fits everyone, and the NCSC notes that tests are often a year or more apart, which leaves long gaps.

In the gaps between tests, keep scanning, patch quickly and add code review and automated build checks.

For dependency and pipeline checks, see our software supply chain security guide, and for patch speed and priority models, see our zero-day vulnerability guide.

After the test

  • Fix by risk: Start with exposed, critical and exploited issues.
  • Assign an owner and a date: Every finding needs a person responsible.
  • Track exceptions: Record accepted risks with a reason and a review date.
  • Retest: Confirm each fix, as my lab did.
  • Learn from patterns: Repeated findings point to process gaps, such as missing code review.
  • Feed the response plan: Our incident response plan guide explains how to prepare for the attacks a test shows are possible.

Preparing for a test

Preparation saves money and improves results. Do these things before testers start.

  • Decide whether to fix known issues first: If the test should measure your current exposure, leave things as they are. If it should validate a hardened system, scan and fix first.
  • Take a backup: Test systems that hold real data may be changed or disrupted.
  • Set up test accounts: Create ordinary users and an administrator for grey box work.
  • Tell the right people: Inform operations, support and your monitoring team, unless the test is meant to check detection.
  • Prepare the contacts: Make sure someone can answer questions quickly during the test.
  • Choose a testing window: Avoid peak periods and releases.
  • Decide what happens if something breaks: Agree on how to stop and restore.
  • Document the system: Diagrams and a list of interfaces make testing faster and cheaper.

Testing on a small team’s budget

Small teams cannot always buy a full engagement, but they can still learn a lot.

  • Use a free checklist: The OWASP Web Security Testing Guide lists tests you can run against your own application.
  • Test your own code in a lab copy: Do what my lab did on a copy of your app, never on the live service.
  • Add automated checks to your build: Dependency, secret and configuration scanners catch common issues early.
  • Start with a narrow external test: Pick your most exposed application, and test it deeply.
  • Use assumed breach: Give testers a normal account and ask what they can reach.
  • Fix first, retest second: Small budgets go further when testers verify fixes.

Even a modest test needs written permission and a clear scope. Never test a system you do not control, and never test a live service without telling the people who run it.

Penetration testing jobs, salary and certifications

Penetration tester is a specialist role inside the wider security field. I have not surveyed job listings, so the only pay figure here is an official one for the wider occupation.

The US Bureau of Labor Statistics reports a median annual pay of $129,180 for information security analysts in May 2025. It counts 192,900 jobs in 2025 and projects 21 percent growth from 2025 to 2035.

That category is broader than penetration testing. The bureau’s page does not list penetration testing as a duty by name, and it publishes no separate figure for testers. Treat any single “pen tester salary” number you see elsewhere with care.

Two certifications come up often. The details are from each provider’s own page.

CertificationProviderExam format
OSCPOffSecA proctored 24-hour hands-on exam: three standalone machines and one Active Directory set. The standalone exam is listed at $1,699
PenTest+CompTIAExam PT0-003: up to 90 multiple-choice and performance-based questions in 165 minutes, passing score 750 on a scale of 100 to 900

A hands-on exam shows a person can break into a lab under time pressure. It does not show they write a clear report or scope a test well, which is what a buyer needs.

Ask for a sample report as well.

UK testing approval schemes

CHECK is different from a personal certification. It is an assurance scheme run by the UK’s NCSC for companies and testers. The NCSC’s guidance recommends that UK government bodies use testers from it.

A book to start with

Penetration Testing: A Hands-On Introduction to Hacking, by Georgia Weidman, was published by No Starch Press in June 2014 and runs to 528 pages. It is a well-known starting text.

It is also more than a decade old, so its tool versions and target systems are dated. Use it for method and mindset, and use current documentation for commands.

Common mistakes

  • Testing without written permission: It can cause harm and legal trouble.
  • Scope too narrow: Testers cannot find what they are not allowed to touch.
  • Being unclear about the goal: Decide whether you want a picture of today’s exposure or a check on a hardened system.
  • Treating the report as the goal: The fixes are the goal.
  • Skipping the retest: My own lab missed a fix until the rescan.
  • Hiding information from testers by default: Some knowledge saves time and money.
  • Ignoring Medium findings: They can matter in context.
  • Relying on one tool: Every tool has false negatives.
  • Confusing a scan with a test: They answer different questions.

Reproduce the lab

The lab is one shell script. It is published with this guide: the script and the output of my run on November 19, 2026.

Run it with bash on a machine with Python 3. I tested it with Python 3.13 on Ubuntu 24.04. It uses only the Python standard library.

It needs no internet connection. It does use local loopback networking, because the scanner talks to the application over ports 8080 and 8081 on the local address.

The script writes the lab application, the scanner and the scoping model to a folder. It starts the application three times, scans it each time and prints every finding with its evidence and vector.

It stops at the first error, cleans up the application if interrupted and refuses to start if a port is already in use. It prints a final line only when all three scans and the scoping model completed.

The findings, scores and vectors should match mine. One evidence string will differ: the server banner includes the real Python version of your machine, so the output is not identical character for character.

The lab listens only on the local address. Never point the scanner at a system you do not own or have written permission to test.

#!/usr/bin/env bash
# Local penetration testing lab. Everything binds to 127.0.0.1.
# Never point the scanner at a system you do not own or have written permission to test.
set -euo pipefail

mkdir -p lab && cd lab

cat > lab_app.py <<'APP'
"""A small web application with deliberate flaws (vulnerable) and with fixes (secure)."""
import hashlib
import hmac
import html
import json
import secrets
import sqlite3
import sys
import time
from http.cookies import SimpleCookie
from http.server import BaseHTTPRequestHandler, HTTPServer
from urllib.parse import parse_qs, urlparse

SECURE = len(sys.argv) > 1 and sys.argv[1] == "secure"
PORT = 8081 if SECURE else 8080
ADMIN_PASSWORD = sys.argv[2] if len(sys.argv) > 2 else "admin"
MAX_FAILED_LOGINS = 5
PBKDF2_ITERATIONS = 600000   # OWASP-recommended work factor when PBKDF2-HMAC-SHA256 is required
LOCKOUT_SECONDS = 900        # failed attempts are forgotten after this window

db = sqlite3.connect(":memory:", check_same_thread=False)
db.executescript("""
create table products (id integer primary key, name text, price integer);
insert into products values (1,'Starter plan',19),(2,'Team plan',49),(3,'Business plan',199);
create table invoices (id integer primary key, owner text, amount integer);
insert into invoices values (1,'alice',19),(2,'bob',49),(3,'carol',199);
create table users (name text primary key, password text, role text);
""")


def store(password):
    """Vulnerable: plain text. Secure: PBKDF2 with a random salt per password, stored as salt$hash."""
    if not SECURE:
        return password
    salt = secrets.token_bytes(16)
    return salt.hex() + "$" + hashlib.pbkdf2_hmac("sha256", password.encode(), salt, PBKDF2_ITERATIONS).hex()


def check(password, stored):
    if not SECURE:
        return hmac.compare_digest(password, stored)
    salt_hex, digest = stored.split("$")
    attempt = hashlib.pbkdf2_hmac("sha256", password.encode(), bytes.fromhex(salt_hex), PBKDF2_ITERATIONS).hex()
    return hmac.compare_digest(attempt, digest)


for user, password, role in (("admin", ADMIN_PASSWORD, "admin"), ("alice", "alice-lab-pass", "user"),
                             ("bob", "bob-lab-pass", "user"), ("carol", "carol-lab-pass", "user")):
    db.execute("insert into users values (?, ?, ?)", (user, store(password), role))

sessions = {}     # session token -> user name, kept on the server
failures = {}     # client address -> times of recent failed logins. Lab only: in memory, per address


class Handler(BaseHTTPRequestHandler):
    # The vulnerable banner names a product version. BaseHTTPRequestHandler also appends
    # the real Python version of the machine running the lab, in both applications.
    server_version = "LabServer" if SECURE else "LabServer/2.3.1"

    def log_message(self, *args):
        pass

    def send(self, code, body, kind="text/html", extra=None):
        data = body.encode()
        self.send_response(code)
        self.send_header("Content-Type", kind + "; charset=utf-8")
        self.send_header("Content-Length", str(len(data)))
        if SECURE:
            self.send_header("Content-Security-Policy", "default-src 'self'")
            self.send_header("X-Content-Type-Options", "nosniff")
            self.send_header("X-Frame-Options", "DENY")
        for key, value in (extra or {}).items():
            self.send_header(key, value)
        self.end_headers()
        self.wfile.write(data)

    def current_user(self):
        """Identity comes only from the server-side session, never from a request header."""
        cookie = SimpleCookie(self.headers.get("Cookie", ""))
        token = cookie["sid"].value if "sid" in cookie else ""
        return sessions.get(token)

    def role(self, user):
        row = db.execute("select role from users where name = ?", (user,)).fetchone()
        return row[0] if row else None

    def do_GET(self):
        u = urlparse(self.path)
        q = parse_qs(u.query)
        user = self.current_user()
        if u.path == "/search":
            term = q.get("q", [""])[0]
            try:
                if SECURE:
                    rows = db.execute("select name, price from products where name like ?", (f"%{term}%",)).fetchall()
                else:
                    rows = db.execute(f"select name, price from products where name like '%{term}%'").fetchall()
            except sqlite3.Error as error:
                return self.send(500, "search failed" if SECURE else f"Database error: {error}")
            return self.send(200, json.dumps(rows), "application/json")
        if u.path == "/hello":
            name = q.get("name", ["guest"])[0]
            return self.send(200, f"<p>Hello {html.escape(name) if SECURE else name}</p>")
        if u.path == "/invoice":
            if not user:
                return self.send(401, "sign in first")
            row = db.execute("select owner, amount from invoices where id = ?", (q.get("id", ["0"])[0],)).fetchone()
            if not row:
                return self.send(404, "not found")
            if SECURE and row[0] != user:
                return self.send(403, "forbidden")
            return self.send(200, json.dumps({"owner": row[0], "amount": row[1]}), "application/json")
        if u.path == "/admin/users":
            if SECURE and self.role(user) != "admin":
                return self.send(403, "forbidden")
            rows = db.execute("select name, role, password from users").fetchall()
            return self.send(200, json.dumps(rows), "application/json")
        if not SECURE and u.path == "/backup.sql":
            dump = "\n".join(db.iterdump())
            return self.send(200, dump, "text/plain")
        if not SECURE and u.path == "/.git/HEAD":
            return self.send(200, "ref: refs/heads/main", "text/plain")
        return self.send(200, "<p>home</p>") if u.path == "/" else self.send(404, "not found")

    def do_POST(self):
        path = urlparse(self.path).path
        length = int(self.headers.get("Content-Length", 0))
        form = parse_qs(self.rfile.read(length).decode())
        if path == "/admin/price":
            if self.role(self.current_user()) != "admin":
                return self.send(403, "forbidden")
            db.execute("update products set price = ? where id = ?", (form.get("price", ["0"])[0], form.get("id", ["0"])[0]))
            return self.send(200, "price updated")
        if path != "/login":
            return self.send(404, "not found")
        name = form.get("name", [""])[0]
        password = form.get("password", [""])[0]
        address = self.client_address[0]
        recent = [t for t in failures.get(address, []) if time.time() - t < LOCKOUT_SECONDS]
        failures[address] = recent
        if SECURE and len(recent) >= MAX_FAILED_LOGINS:
            return self.send(429, "too many attempts")
        row = db.execute("select password from users where name = ?", (name,)).fetchone()
        if row and check(password, row[0]):
            if SECURE:
                # Random identifier per login. The lab has no TLS, so the Secure attribute is
                # shown in the response header only; a browser would not return it over HTTP.
                token = secrets.token_urlsafe(32)
                cookie = f"sid={token}; HttpOnly; Secure; SameSite=Strict"
            else:
                token = "sid-" + name          # predictable on purpose
                cookie = f"sid={token}"
            sessions[token] = name
            failures[address] = []          # a successful login clears the count
            return self.send(200, "welcome", extra={"Set-Cookie": cookie})
        failures[address].append(time.time())
        return self.send(401, "invalid")


HTTPServer(("127.0.0.1", PORT), Handler).serve_forever()
APP

cat > mini_pentest.py <<'SCAN'
"""A teaching scanner. It checks only what is written here. A clean result proves nothing more."""
import json
import math
import socket
import sys
import urllib.error
import urllib.parse
import urllib.request

BASE = sys.argv[1]
ADMIN_PASSWORD_GUESS = "admin"
WRONG_ATTEMPTS = 12


def call(path, data=None, headers=None):
    body = urllib.parse.urlencode(data).encode() if data is not None else None
    request = urllib.request.Request(BASE + path, data=body, headers=headers or {})
    try:
        with urllib.request.urlopen(request, timeout=10) as reply:
            return reply.status, reply.read().decode(), dict(reply.headers)
    except urllib.error.HTTPError as error:
        return error.code, error.read().decode(), dict(error.headers)


def roundup(value):
    integer = int(round(value * 100000))
    return integer / 100000.0 if integer % 10000 == 0 else (math.floor(integer / 10000) + 1) / 10.0


def base_score(vector):
    m = dict(part.split(":") for part in vector.split("/")[1:])
    changed = m["S"] == "C"
    weight = {"H": 0.56, "L": 0.22, "N": 0.0}
    iss = 1 - (1 - weight[m["C"]]) * (1 - weight[m["I"]]) * (1 - weight[m["A"]])
    impact = 7.52 * (iss - 0.029) - 3.25 * (iss - 0.02) ** 15 if changed else 6.42 * iss
    privileges = {"N": 0.85, "L": 0.68 if changed else 0.62, "H": 0.5 if changed else 0.27}[m["PR"]]
    exploitability = (8.22 * {"N": 0.85, "A": 0.62, "L": 0.55, "P": 0.2}[m["AV"]] * {"L": 0.77, "H": 0.44}[m["AC"]]
                      * privileges * {"N": 0.85, "R": 0.62}[m["UI"]])
    if impact <= 0:
        return 0.0
    total = impact + exploitability
    return roundup(min(1.08 * total if changed else total, 10))


def rating(score):
    return "Info" if score == 0 else "Low" if score < 4 else "Medium" if score < 7 else "High" if score < 9 else "Critical"


findings, passed = [], []


def finding(name, vector, evidence):
    findings.append((name, "CVSS:3.1/" + vector, evidence))


host, port = urllib.parse.urlparse(BASE).hostname, urllib.parse.urlparse(BASE).port
open_ports = []
for candidate in (8080, 8081):
    with socket.socket() as probe:
        probe.settimeout(1)
        if probe.connect_ex((host, candidate)) == 0:
            open_ports.append(candidate)
print("open ports in the lab range:", open_ports)

# Banner and headers
status, body, headers = call("/")
banner = headers.get("Server", "")
if any(ch.isdigit() for ch in banner):
    finding("Server banner states a version", "AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N", banner)
missing = [h for h in ("Content-Security-Policy", "X-Content-Type-Options", "X-Frame-Options") if h not in headers]
if missing:
    finding("Protective security headers missing", "AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N", ", ".join(missing))

# Files that should not be public
status, body, _ = call("/backup.sql")
if status == 200 and "INSERT INTO" in body:
    finding("Database backup downloadable, including user records", "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            f"{body.count('INSERT INTO')} rows of data in /backup.sql")
status, body, _ = call("/.git/HEAD")
if status == 200:
    finding("Repository metadata exposed", "AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N", f"/.git/HEAD returned: {body.strip()}")

# Admin function without a session
status, body, _ = call("/admin/users")
if status == 200:
    finding("Admin user list readable without signing in", "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            f"{len(json.loads(body))} user records returned, with stored passwords")
else:
    passed.append(f"admin user list refused without a session (HTTP {status})")

# Search: error leak and SQL injection that reads another table
status, body, _ = call("/search?q=" + urllib.parse.quote("'"))
if status == 500 and "error" in body.lower():
    finding("Database error message leaked", "AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N", body[:60])
union = "zzz' union select name, password from users --"
status, body, _ = call("/search?q=" + urllib.parse.quote(union))
leaked = [row[0] for row in json.loads(body)] if status == 200 else []
if "admin" in leaked:
    finding("SQL injection reads the users table", "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            f"search returned {len(leaked)} user records")
else:
    passed.append("search did not return user records for the injection string")

# Output handling: a script element returned unescaped in an HTML response
payload = "<script>labmarker7x()</script>"
status, body, headers = call("/hello?name=" + urllib.parse.quote(payload))
if payload in body and "text/html" in headers.get("Content-Type", ""):
    finding("Reflected cross-site scripting", "AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
            "script element returned unescaped in an HTML page (not executed in a browser)")
else:
    passed.append("script element was escaped in the HTML response")

# Sign in as an ordinary user and keep her cookie
status, _, headers = call("/login", {"name": "alice", "password": "alice-lab-pass"})
alice_cookie = headers.get("Set-Cookie", "").split(";")[0]
if status != 200 or not alice_cookie:
    raise SystemExit("scanner error: could not sign in as the lab user alice")
absent = [flag for flag in ("HttpOnly", "Secure", "SameSite") if flag.lower() not in headers.get("Set-Cookie", "").lower()]
if absent:
    finding("Session cookie lacks protective flags", "AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N", "missing " + ", ".join(absent))
else:
    passed.append("session cookie carries HttpOnly, Secure and SameSite")
own, _, _ = call("/invoice?id=1", headers={"Cookie": alice_cookie})
if own != 200:
    raise SystemExit("scanner error: alice could not read her own invoice")
others = [i for i in (2, 3) if call(f"/invoice?id={i}", headers={"Cookie": alice_cookie})[0] == 200]
spoofed = [i for i, owner in ((2, "bob"), (3, "carol"))
           if call(f"/invoice?id={i}", headers={"Cookie": alice_cookie, "X-User": owner})[0] == 200]
if others or spoofed:
    finding("Other users' invoices readable", "AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
            f"alice's session read invoices {sorted(set(others + spoofed))}")
else:
    passed.append("alice's session was refused invoices 2 and 3, also with a spoofed X-User header")
status, _, _ = call("/admin/price", {"id": "1", "price": "1"}, {"Cookie": alice_cookie})
if status == 200:
    finding("Ordinary user can change prices", "AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N", "alice changed a product price")
else:
    passed.append(f"alice was refused the price change (HTTP {status})")

# Default administrator password, and what it gives access to
status, _, headers = call("/login", {"name": "admin", "password": ADMIN_PASSWORD_GUESS})
if status == 200:
    admin_cookie = headers.get("Set-Cookie", "").split(";")[0]
    read, body, _ = call("/admin/users", headers={"Cookie": admin_cookie})
    write, _, _ = call("/admin/price", {"id": "3", "price": "1"}, {"Cookie": admin_cookie})
    finding("Default administrator password accepted", "AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
            f"admin/admin signed in, read the user list (HTTP {read}) and changed a price (HTTP {write})")
else:
    passed.append("default administrator password was refused")

# Repeated wrong passwords
codes = [call("/login", {"name": "admin", "password": f"wrong{i}"})[0] for i in range(WRONG_ATTEMPTS)]
if 429 not in codes:
    finding("No limit on repeated failed logins", "AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
            f"{WRONG_ATTEMPTS} wrong passwords, never refused")
else:
    passed.append(f"login refused after {codes.index(429)} wrong passwords")

print(f"\nFindings against {BASE}: {len(findings)}")
for name, vector, evidence in sorted(findings, key=lambda f: (-base_score(f[1]), f[0])):
    score = base_score(vector)
    print(f"  {score:>4} {rating(score):8} {name} | {evidence} | {vector}")
print("Checks that found nothing:", len(passed))
for line in passed:
    print("  ok:", line)
SCAN

cat > scoping.py <<'SCOPE'
"""An invented effort model for scoping a test. The inputs are illustrations, not industry prices."""
ITEMS = {  # item: (tester days per item, count in scope)
    "Planning and reporting": (2, 1),
    "Web application": (4, 2),
    "API": (3, 1),
    "Network range": (2, 1),
    "Cloud account": (3, 1),
}
KNOWLEDGE_FACTOR = {"black box": 1.0, "grey box": 0.85, "white box": 0.8}
ASSUMED_DAY_RATE = 1200
for name, (days_each, count) in ITEMS.items():
    print(f"  {name}: {days_each} x {count} = {days_each * count} days")
base_days = sum(days_each * count for days_each, count in ITEMS.values())
print("scoping model: tester days", base_days)
for name, factor in KNOWLEDGE_FACTOR.items():
    print(f"{name} {base_days * factor:.1f} days")
print("at an assumed day rate of", ASSUMED_DAY_RATE, "the grey box test costs",
      round(base_days * KNOWLEDGE_FACTOR["grey box"] * ASSUMED_DAY_RATE))
assert base_days == 18
SCOPE

APP_PID=""
cleanup() {
  if [[ -n "$APP_PID" ]]; then kill "$APP_PID" 2>/dev/null || true; fi
}
trap cleanup EXIT
trap 'exit 130' INT
trap 'exit 143' TERM

port_is_free() {
  python3 -c "import socket,sys; s=socket.socket(); sys.exit(0 if s.connect_ex(('127.0.0.1', int(sys.argv[1]))) != 0 else 1)" "$1"
}

start_app() {   # start_app MODE PORT [ADMIN_PASSWORD]
  if ! port_is_free "$2"; then echo "Port $2 is already in use. Stop that program and run again." >&2; exit 1; fi
  python3 lab_app.py "$1" ${3:+"$3"} &
  APP_PID=$!
  for _ in $(seq 1 50); do
    if ! port_is_free "$2"; then return 0; fi
    sleep 0.1
  done
  echo "The lab application did not start on port $2." >&2; exit 1
}

stop_app() {
  kill "$APP_PID" 2>/dev/null || true
  wait "$APP_PID" 2>/dev/null || true
  APP_PID=""
}

echo "python: $(python3 -c 'import sys; print(sys.version.split()[0])')"
echo "RUN 1: vulnerable application"
start_app vulnerable 8080
python3 mini_pentest.py http://127.0.0.1:8080
stop_app

echo "RUN 2: first round of fixes, default password still in place"
start_app secure 8081
python3 mini_pentest.py http://127.0.0.1:8081
stop_app

echo "RUN 3: default password replaced"
start_app secure 8081 "a-long-random-lab-passphrase-41"
python3 mini_pentest.py http://127.0.0.1:8081
stop_app

python3 scoping.py
echo "All three scans and the scoping model completed."

Frequently asked questions

What is penetration testing?

An authorized attempt to break into a system, carried out to find weaknesses before real attackers do, followed by a report with ratings and fixes.

What are the penetration testing steps and phases?

Scoping, authorization, reconnaissance, scanning and enumeration, exploitation, impact assessment, reporting and retest. Names vary between firms.

What are the types of penetration testing?

Network, web application, API, mobile, cloud, wireless, social engineering and physical tests, and black box, grey box and white box approaches.

What is the difference between a pen test and vulnerability scanning?

A scan is automated and finds known issues on a list. A penetration test uses people to confirm and chain weaknesses and shows real impact.

What is the difference between penetration testing and red teaming?

A penetration test searches for as many weaknesses as possible in a scope. A red team exercise pursues a goal like a real adversary and also tests detection and response.

How often should you do penetration testing?

After significant changes and at regular intervals, such as yearly. Between tests, scan and patch continuously.

What should a penetration test report include?

An executive summary, scope and method, findings with evidence and ratings, fixes, limitations and a retest plan.

Is penetration testing legal?

Only with written authorization from the owner, within the agreed scope. Permission is necessary but does not settle everything: hosting terms, privacy law and third-party agreements still apply. Laws differ, so confirm yours.

What does a penetration test cost?

It depends on scope, depth and the provider. My effort model shows how scope drives days, but its numbers are invented, so request quotes.

Can a penetration test prove a system is secure?

No. It shows what the testers found in the time and scope they had. The NCSC describes a well-scoped test as giving confidence about common and publicly known weaknesses at that time.

What is a false negative in security testing?

A real flaw that a test fails to report. My own scanner had one on its first run.

A quick checklist

  • Get written authorization and agree the scope.
  • Decide whether the test measures current exposure or a hardened system.
  • Choose a depth that matches your question.
  • Rate findings in context, not by score alone.
  • Retest every fix.

Conclusion

A test shows what an attacker could do, and a plan shows how you will respond. Read our incident response plan guide to prepare for it, and our cloud security guide to reduce what a test would find.

From circuittimes.com/security/what-is-penetration-testing/

Was this guide helpful?

Keep going

More in Threats & Malware

See all

The briefing, without the noise.

The stories that matter in technology, every weekday morning.

Free. Unsubscribe in one click.