COMP-220 · Lesson 7 of 12 · 20 min

Testing approaches and team roles

▶ Video coming soon A video version of this lesson is on the way.

At the end of the threat modelling workshop, Gwendolyn asked a question that had clearly been on her mind: "Wouldn't it be more realistic if you went in knowing nothing, like a real attacker?" Dario said it would be more realistic in one way and less useful in several others, and spent ten minutes explaining why Ironwhistle recommended a grey box test. By the end, Gwendolyn agreed, and asked for one exception: the phishing simulation would be unannounced to everyone except herself, the head of HR and Felix.

This lesson covers the choices that decide how a test is approached: how much the testers are told, where they test from, who on the client side knows, and how the people on both sides divide the work. It maps to PT0-003 objectives 1.1 and 1.2, including the collaboration activities of peer review and stakeholder alignment.

How much the tester knows

PT0-003 and its predecessors describe three levels of knowledge, using both newer and older names. Clients often use the older ones.

Top row: three boxes along a spectrum. Unknown environment: names only; realistic, slower. Partially known: some accounts and diagrams; efficient. Known environment: full docs, code, configs; thorough. An arrow beneath reads more information supplied by the client. Bottom row: red team, emulates attackers and tests detection; blue team, defends, monitors, responds; purple team, red and blue work together and tune.
Knowledge levels and team colours.
The three knowledge levels.
ApproachAlso calledTester receivesStrengthsWeaknesses
Unknown environmentBlack boxLittle beyond the organization's name and the scopeShows what an outsider can learn and do; tests reconnaissance exposureSlow; time spent on discovery the client could have supplied; may miss deeper issues
Partially known environmentGrey boxSome information: credentials for a standard account, network diagrams, application rolesEfficient balance of realism and depth; simulates an insider or compromised accountLess realistic for pure outsider scenarios
Known environmentWhite box, clear boxFull documentation, architecture, configurations, sometimes source codeMost thorough; finds issues an attacker might take months to findLeast realistic about attacker effort; can be expensive

Dario's argument for grey box ran as follows. A real ransomware group might spend weeks on reconnaissance; Ironwhistle had six weeks for everything. Spending two of them discovering what Prairiefold could hand over in an hour would buy realism at the cost of depth. More importantly, the threat model said the most likely serious scenarios began with a compromised staff account, through phishing or credential theft. Giving the testers a standard account simulated exactly that starting point. Unknown environment work still had a place: the external phase began with only the organization's name and the external ranges, to see what an outsider could learn, before the testers looked at the internal documentation.

Knowledge levels also apply per component. Prairiefold's portal test was nearer to known environment: Priyanka received test accounts for each member role, the API specification and a walkthrough from the development lead, but not source code. The physical test was unknown environment apart from the addresses of the two sites. The final report stated the knowledge level for each component, because readers need it to judge the findings: an issue found with full documentation may take a real attacker much longer to find.

Where the tester starts

A second choice is the tester's starting position. An external test starts from the internet, as an outside attacker would. An internal test starts inside the network, typically from a workstation or a network port, simulating an insider, a compromised device or an attacker who has already got in. Many engagements, including Prairiefold's, do both. Internal testing can be done on site or remotely through a device the client deploys or a virtual machine on its network; Prairiefold's internal phase used a hardened Ironwhistle laptop shipped to head office and connected to a standard staff network port, plus on-site days for the branch work.

A related distinction is between an assumed breach test, in which the client hands the tester a foothold, such as a staff account and workstation, and asks what follows, and a full test that must first gain the foothold. Assumed breach work is efficient for internal goals and is common in grey box engagements.

Who on the client side knows

Penetration tests are usually announced to the people who need to know: the sponsor, IT operations and often the security operations team. Announcement reduces operational risk, since nobody pulls the network cable on a suspected attacker who turns out to be the tester, and lets the client distinguish real attacks from test traffic. Unannounced testing, where defenders are not told, measures detection and response more honestly but needs extra safeguards. Older terms describe the same idea: in a blind test the tester has limited information; in a double-blind test, neither the tester nor the client's defenders are told the details, and only a few leaders know the test is happening.

Prairiefold's monitoring was run by a managed security service provider. Gwendolyn decided the provider would be told the testing window and Ironwhistle's declared source address, with instructions to investigate and log alerts from that address as they would any other, then confirm with Gwendolyn before escalating further. This was a middle path: the provider's detection was measured honestly, but there was no risk of a full incident response being launched against the testers. The phishing simulation, as Gwendolyn requested, was unannounced to staff, with HR's consent, because measuring how staff responded was its whole purpose.

Red, blue and purple

Team colours describe roles in adversarial exercises. The red team plays the attacker. The blue team defends: monitoring, detecting, responding and hardening. A purple team is not a third group so much as a way of working: red and blue cooperate openly, with the red team running techniques and the blue team checking in real time whether they were seen, so that detections can be tuned during the exercise. Some organizations also use white team for the referees who set rules and oversee an exercise, and yellow team for builders and developers, but these are less common.

A penetration test is not the same as a red team exercise, as lesson 1 showed, but the vocabulary overlaps. During the Prairiefold engagement, Ironwhistle acted as a red team in the sense of playing the attacker; Prairiefold's IT team and its monitoring provider were the blue team. Gwendolyn planned a half-day purple team session for early 2027, after the readout, in which Dario would replay key techniques while the monitoring provider watched, to close the detection gaps the report identified.

Objective-based and compliance-based testing

Tests also differ in their driver. A compliance-based test is designed to satisfy a specific requirement, such as the card standard's annual test, and its scope and method follow that requirement. An objective-based or goal-based test pursues a business goal, such as "reach member loan documents from a branch workstation", by whatever route works within the rules. The Prairiefold engagement combined both: the segmentation test met a compliance requirement, while the internal phase was objective-based.

Roles on the testing team

Even a five-person firm assigns clear roles on each engagement. Ironwhistle's roles for Prairiefold were recorded in the RoE.

Ironwhistle roles for the Prairiefold engagement.
RoleResponsibilitiesPrairiefold engagement
Engagement principalSigns contracts; accountable for quality; writes or approves the executive summary; client relationshipMarguerite Okonkwo-Lind
Engagement leadPlans and coordinates testing; primary technical contact; makes stop and escalation callsDario Feldspar
Specialist testerTests a component in depthPriyanka Haldane (portal, API, cloud configuration)
TesterCarries out assigned test cases under supervision; documents evidenceTobias Rennick
Reporting and QA leadEvidence handling; report template; peer review of findings; final quality controlAna Sokolova-Reyes

Roles on the client side

The client needs equally clear roles, and part of the tester's job is to make sure they exist before testing starts.

Client roles named in the Prairiefold rules of engagement.
RoleResponsibilitiesPrairiefold
SponsorOwns the engagement; accepts risk; receives critical findings; approves scope changesGwendolyn Tran, CISO
Emergency and operations contactAvailable during testing; can stop testing; handles outagesFelix Aberdeen, IT operations manager
Legal contactContracts, authority to authorize, mandatory reporting questionsRuth Mbatha, legal counsel
Technical contactsProvide accounts, documentation and answersPortal development lead; network administrator
HR contactConsent and coordination for social engineeringHead of HR
Monitoring providerDetection and response; reports alerts during the windowManaged security service provider

Stakeholder alignment

PT0-003 objective 1.2 lists stakeholder alignment: making sure everyone with a stake in the test agrees on its goals, scope, timing and risks. Stakeholders are not only the sponsor. At Prairiefold they included the board's risk committee, which had asked for the test; IT operations, which carried the operational risk; HR, which worried about the effect of phishing on staff trust; branch managers, whose staff might meet the physical testers; and the portal team, whose launch date depended on the results.

Misalignment causes trouble later. If the board expects a pass-or-fail verdict and the sponsor expects a prioritized list of improvements, someone will be disappointed by the report. If HR has not agreed how phishing results will be used, staff who clicked may fear discipline, which damages the security culture the test was meant to improve. Ironwhistle's kickoff meeting on October 1, 2026 brought the stakeholders together, restated the goals and the rules, and recorded one significant agreement: phishing results would be reported by department, never by individual name, and would not be used for discipline.

Peer review

Objective 1.2 also lists peer review: having a second qualified person check work before it affects the client. In a testing firm peer review happens at several points.

Where peer review fits in an engagement.
What is reviewedWhyPrairiefold practice
Target lists and tool configurationsPrevents out-of-scope testing from a typoA second tester checked every range before scans started
Risky actionsA fresh view of whether an action could cause harmDario approved any exploitation of a production system
FindingsConfirms reproducibility, severity and accuracyAna or a second tester reproduced every high and critical finding
The reportQuality, clarity and consistencyAna reviewed all of it; Marguerite reviewed the executive summary

Peer review is how a team catches the mistakes individuals make. Tobias experienced this in his second week of testing, when Priyanka, checking his target file for the external scans, noticed that he had typed 203.0.113.0/24 instead of /26. The scan would have touched 192 addresses Prairiefold did not own. Nobody treated it as a disaster, because the review existed precisely to catch it.

Manual, automated and continuous testing

Clients increasingly ask how a penetration test relates to the automated tools and subscription services on the market. Automated vulnerability scanners and attack simulation platforms are fast, repeatable and cheap per run; they are good at finding known weaknesses across many systems and at checking that previously fixed issues stay fixed. Manual testing by skilled people is slower and more expensive, but it finds what automation misses: flaws in business logic, chains of individually minor weaknesses, design errors in access control, and the context that turns a scanner result into a business impact. Every professional engagement uses both, with tools doing the broad work and people doing the deep work and the judgement.

Some providers offer continuous testing or penetration testing as a service, in which a platform and a team test the client's external attack surface or applications on a rolling basis rather than once a year. This suits organizations whose systems change constantly. It does not remove the need for engagement management: continuous testing still needs a scope, authorization, rules of engagement, escalation paths and reporting, and the authorization must be kept current as the scope changes. Gwendolyn asked about such a service for the member portal after launch, and Marguerite suggested deciding after the readout, once Prairiefold could see which kinds of finding the annual test had produced.

Worked problem

Choosing an approach

A software company launching a new payroll application in eight weeks wants to know whether customers could see each other's payroll data. It offers source code, test accounts for each role and architecture diagrams. It has two weeks of testing budget. What approach should the tester recommend?

Show solution
  1. Identify the goal: find cross-tenant data exposure before launch, which means depth matters more than realism.
  2. Note the constraint: two weeks is too short to waste on discovery.
  3. Recommend a known environment test with role accounts, diagrams and targeted code review of the authorization logic.
  4. Record the knowledge level in the report so readers understand that an outsider would face a harder path.

Answer: A known environment (white box) application test, focused on authorization between tenants, using the documentation and code offered.

Common mistakes

  • MistakeAssuming black box testing is always the best value because it is most realistic.

    InsteadMatch the knowledge level to the goals and budget; grey box often gives more depth per hour.

  • MistakeRunning unannounced tests without any safeguards.

    InsteadTell enough leaders and the monitoring provider to prevent harmful responses while still measuring detection.

  • MistakeCalling every penetration test a red team exercise.

    InsteadRed teaming is goal-based and usually covert; most penetration tests aim for coverage.

  • MistakeLeaving HR out of phishing planning.

    InsteadAlign with HR on consent, reporting and the use of results before the simulation.

  • MistakeSkipping peer review for routine scans.

    InsteadA second check of target lists prevents out-of-scope testing.

Summary and key terms

  • Knowledge levels: unknown (black box), partially known (grey box) and known (white box) environments, each with trade-offs.
  • Tests may start externally or internally, and assumed breach tests begin from a supplied foothold.
  • Announced tests reduce operational risk; unannounced tests measure detection but need safeguards.
  • Red teams attack, blue teams defend, and purple teaming has them work together to improve detection.
  • Both firm and client need named roles: sponsor, emergency contact, legal, technical contacts and testers.
  • Stakeholder alignment and peer review are collaboration activities named in objective 1.2.
Unknown environment test
A test in which the tester receives little information beforehand; also called black box.
Partially known environment test
A test in which the tester receives some information, such as credentials or diagrams; also called grey box.
Known environment test
A test in which the tester receives full documentation and often code; also called white box.
Assumed breach
A test that starts from an access foothold supplied by the client.
Purple team
A cooperative arrangement in which attackers and defenders work together to improve detection.
Stakeholder alignment
Agreement among everyone with a stake in a test on its goals, scope, timing and risks.
Peer review
Checking of work, such as targets or findings, by a second qualified person.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Which knowledge level did most of the Prairiefold internal phase use, and why?

    Show answer

    Partially known (grey box), because the most likely serious scenarios began from a compromised staff account.

  2. What is a double-blind test?

    Show answer

    One in which neither the tester has detailed information nor the client's defenders know the details; only a few leaders know.

  3. What agreement did the Prairiefold kickoff record about phishing results?

    Show answer

    Results would be reported by department, not by individual, and not used for discipline.

  4. What mistake did peer review catch in Tobias's target file?

    Show answer

    A /24 typed instead of /26, which would have added 192 addresses the client did not own.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz