Skip to main content

PenTesting - Offensive Security Validation

This document establishes the technical and procedural framework for carrying out penetration testing (PenTesting), as a practice complementary to the continuous validation described in Chapter 10.


🌟 Objective​

To define:

  • When PenTesting must be applied;
  • How it must be planned and integrated into the lifecycle;
  • Which types of approach are possible (black-box vs grey-box);
  • How its results must be used to reinforce security;
  • How Chapter 10 can serve as a basis for preparation and scope.

🔍 What PenTesting is​

PenTesting is a manual and exploratory offensive validation, which simulates real attacks on a system with the objective of:

  • Identifying vulnerabilities that escape automated validation;
  • Assessing the effectiveness of implemented controls;
  • Measuring the application's real exposure.

🎯 Unlike SAST/DAST, which test systematically, the PenTest simulates adversarial reasoning, logic abuse and contextualised exploitation.


⚙️ Possible approaches​

There are two main ways of conducting a PenTest:

⚫ "Black Box" approach (Black Box)​

CharacteristicDescription
Prior knowledgeNone. The pentester acts as an external attacker.
Data providedOnly the URL or public entry point.
FocusExternal exposure, functional abuse, visible misconfiguration.
LimitationMay miss critical areas that are not directly exposed.

Relationship with Ch. 10:

  • Allows assessing whether the protection implemented (DAST, fuzzing) is effective;
  • Helps validate scanner coverage in a real context;
  • Useful as independent verification of the external posture.

⚪ "Grey Box" approach (Grey Box)​

CharacteristicDescription
Prior knowledgePartial. The pentester receives technical context.
Data providedSAST/DAST/SCA findings, SBOM, endpoints, credentials, API docs.
FocusTargeted exploitation, validation of fixes, real gaps.
BenefitGreater effectiveness with a risk-driven scope.

Relationship with Ch. 10:

  • Uses the findings from continuous validation as input;
  • Allows confirming the effectiveness of applied fixes and controls;
  • Supports targeted regression and verification of effective mitigation.

🔁 Integration with Chapter 10​

The PenTest does not replace continuous testing - it is a strategic complement to:

  • Validate the effectiveness of defences already applied;
  • Confirm the coverage of automated tests;
  • Identify abuses that escape systematic analysis.

Suggested integration cycle:​

  1. Before the PenTest

    • Consolidate findings from automated tests;
    • Map critical areas, recent changes, complex endpoints;
    • Share data with the PenTest team (grey-box preferred).
  2. During execution

    • Follow a structured methodology (e.g. OWASP Testing Guide);
    • Document vectors, payloads, impact, bypasses and anomalies;
    • Respect the agreed rules of engagement (e.g. scope, limits, reporting).
  3. After the PenTest

    • Record all findings as issues;
    • Associate each finding with a component, risk and real impact;
    • Apply the process of treatment, correction and continuous revalidation.

📋 Planning Checklist​

ItemVerified?
Scope defined on the basis of risk classification☐
Endpoints, APIs and versions documented☐
Secure and isolated test environment available☐
NDA and access agreements defined (if applicable)☐
Rules of engagement and reporting agreed☐
Previous results of continuous validation analysed☐
PenTest findings recorded with full traceability☐
Revalidation scheduled after fixes☐

📎 Difference between PenTest and other validations​

TypeCharacteristicsAutomated?Performed by
PenTestingManual, offensive, simulative❌ NoInternal/external offensive team
SAST/DAST/FuzzingContinuous, rule-based✅ YesCI/CD, QA, AppSec
IASTRuntime, execution-sensitive✅ PartialDev/Test
Red TeamPersistent, objective-driven simulation❌ NoInternal/Consultants
Bug BountyOpen, collaborative, reward per finding❌ PartialExternal community

✅ Conclusion​

PenTesting is an instrument of external and independent validation. Its effectiveness depends directly on its integration with internal security mechanisms.

To be useful, it must:

  • Rely on the data from continuous validation (Ch. 10);
  • Be traceable, documented and comparable with previous findings;
  • Feed improvements into the security lifecycle, architecture and requirements.

📌 The PenTest validates the application and also the organisation's maturity in managing, fixing and learning from detected failures - being a fundamental part of the continuous improvement cycle of the SbD-ToE model.