Skip to content

Penetration Testing

Penetration testing (pen testing) is authorised, simulated attack activity designed to identify exploitable vulnerabilities before real attackers do. It is a key assurance mechanism — complementing automated scanning with human creativity and adversarial thinking.

Types of penetration testing

TypeDescription
External networkAttack the organisation from the internet; identify exposed services and vulnerabilities
Internal networkSimulate an insider or post-breach attacker; test lateral movement controls
Web applicationTest a specific web application for OWASP Top 10 and custom vulnerabilities
APITest REST/GraphQL/SOAP APIs for authentication, authorisation, and injection flaws
Mobile applicationTest iOS/Android apps for client-side vulnerabilities, insecure storage, API weaknesses
Social engineeringPhishing, vishing, or physical intrusion attempts
Red team exerciseFull-scope, goal-based adversary simulation (see below)
Cloud configuration reviewReview cloud IAM, storage, and network configuration for misconfigurations

Knowledge levels

LevelTester knowledgeSimulates
Black boxNo prior knowledgeExternal attacker
Grey boxPartial knowledge (e.g., low-privilege account)Insider or post-phish attacker
White boxFull knowledge (architecture docs, source code)Insider or thorough assessment

Red team vs penetration test

DimensionPenetration testRed team
ScopeDefined (specific systems/apps)Goal-based (e.g., "access payroll data")
DurationDays to weeksWeeks to months
StealthNot requiredFull stealth; avoid detection
Blue team knowledgeUsually notifiedCovert (no advance notice)
Primary outputVulnerability listAssessment of detection and response capability
CostLowerHigher

UK certification schemes

CREST

CREST (Council of Registered Ethical Security Testers) is the primary UK/international professional body for penetration testing organisations and individuals. CREST certifications:

  • CRT (CREST Registered Tester) — entry level
  • CCT (CREST Certified Tester) — App/Infra specialisation
  • CCSAS (Simulated Attack Specialist) — red team
  • CCSAM (Simulated Attack Manager) — red team management

CHECK

CHECK is a UK government scheme for penetration testing of HMG (His Majesty's Government) and CNI systems. Required for government contracts involving sensitive systems:

  • CHECK Team Leader — leads CHECK engagements
  • CHECK Team Member — conducts testing under a Team Leader

Cyber Scheme

CSTL (Cyber Scheme Team Leader) and CSTM (Cyber Scheme Team Member) — an alternative to CHECK for government work.

TIGER

TIGER Scheme provides individual certifications with a practical examination component.

Scoping a penetration test

A well-scoped test produces more actionable results. Define:

  • Scope — specific IP ranges, domains, applications in scope; explicitly excluded systems
  • Test type — external/internal/application/red team
  • Start and end time — testing window; any blackout periods (e.g., avoid month-end close)
  • Rules of engagement — what is and is not permitted (DDoS? Destructive testing? Social engineering?)
  • Emergency contact — who to call if a tester finds active compromise or causes an outage
  • Data handling — how pentest reports and discovered credentials are stored and destroyed

Get-out-of-jail card

Always issue a signed letter of authority to testers, specifying:

  • Organisation name
  • Tester name/company
  • Scope
  • Authorised activity
  • Date range

This protects both the organisation and the testers.

Using pentest findings

A pentest report is only valuable if acted upon:

  1. Triage findings — validate and prioritise by exploitability and business impact
  2. Assign owners — each finding must have a responsible remediation owner
  3. Remediate — fix within the SLA defined by severity
  4. Verify — re-test to confirm remediation (most pentest contracts include a free re-test)
  5. Track metrics — number of findings; average time to remediate; severity trend over time

Testing frequency

ActivityRecommended frequency
External network pentestAnnually minimum; after major infrastructure changes
Web application pentestAnnually; after major application releases
Internal network / red teamAnnually for large/high-risk organisations
Cloud configuration reviewAfter significant cloud architecture changes
Social engineeringIncluded in annual red team or run separately

Further reading

Released under the MIT Licence.