COMP-221 · Lesson 12 of 12 · 24 min

Building a target profile

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

On Friday, October 30, Dario booked the small meeting room for the whole afternoon and put one item on the agenda: finish the Prairiefold target profile. Version 1.0 had been circulated internally on October 16, covering the external footprint and early internal results. Since then the web, cloud and wireless work had added a great deal. Marguerite wanted version 2.0 by the end of the day, because the vulnerability analysis and attack planning for the remaining two weeks of the window would be built on it, and because Gwendolyn had asked for a short briefing on what the team had found so far.

This capstone lesson pulls together everything in the course. It shows how Ironwhistle structured the Prairiefold target profile, how the team turned evidence into prioritized hypotheses, and how the profile fed the next phase of work. It then gives you a second, smaller engagement to profile yourself, for Copperline Logistics, with worked answers. The lesson draws on all four domain 2 objectives and on attack path mapping in objective 2.2.

A timeline for 2026 with six events: September 14, authorization signed; September 21, passive OSINT begins; October 5, testing window opens; October 30, target profile complete; November 13, window closes; November 23, report delivered.
Where the target profile sits in the Prairiefold engagement.

What a target profile is, and is not

A target profile is the organized, evidenced result of reconnaissance and enumeration: a description of the client's attack surface detailed enough to plan testing, and honest about what is known, suspected and unknown. It is a working document for the test team and, in summary form, a deliverable for the client. It is not a list of every packet sent, nor a vulnerability report. Vulnerabilities are confirmed and scored in the next phase, covered by COMP-222, PenTest+: Vulnerability Discovery and Analysis. The profile says where to look and why.

Because a profile is effectively a guide to attacking the client, it is classified confidential, stored only on the encrypted engagement share, versioned, and shared on a need-to-know basis. Ana kept a distribution list on its cover page: the four Ironwhistle testers, Marguerite, and, for the summary only, Gwendolyn.

A box labeled target profile, confidential, version 2.0, branching to six sections: scope and constraints; external footprint; internal network; identity and directory; web and cloud; people and wireless. All six feed a box at the bottom: prioritized hypotheses for COMP-222 work, each with evidence, source, confidence and owner.
The six sections of the Prairiefold profile and the prioritized hypotheses they feed.

Section 1: scope and constraints

Every profile begins by restating what may be tested and how, so that anyone using it later works inside the lines. Ironwhistle's first section summarized the authorization, the in-scope items, the exclusions, the testing window and the rules that most affect later work. It also contained the out-of-scope register: every asset seen but not tested, with the reason.

Section 1 of the profile, abbreviated.
ItemEntry
AuthorizationSigned September 14, 2026 by G. Tran (sponsor) and M. Okonkwo-Lind (Ironwhistle)
WindowOctober 5 to November 13, 2026; passive OSINT allowed from September 21
In scopePublic block 203.0.113.0/26; head office and Branch 07 internal networks; staging member portal; Microsoft 365 tenant and Azure subscription (read-only); phishing simulation; physical test of Branch 07 and head office
ExcludedProcessor-hosted online banking (198.51.100.0/25); third-party SaaS platforms; neighboring networks
Key rulesDeclared source address; notify F. Aberdeen before active blocks; no password guessing against domain or cloud accounts; found credentials reported, used only with written approval; stop on instability, real compromise or member financial data
Out-of-scope register9 entries, including banking (processor CNAME), the stale record for 203.0.113.90, the help desk SaaS portal, and the off-site PFCU-Staff network seen in WiGLE

Section 2: external footprint

The external section combined OSINT, DNS, certificate transparency, discovery, port scanning and fingerprinting. Its core was a host table: one row per live external address, with names, open ports, confirmed services and versions, confidence, and pointers to evidence.

Selected rows of the external host table.
AddressNamesOpen services (confirmed)Notes
203.0.113.10mailSMTP 25 (relay to cloud mail)Expected
203.0.113.20vpnHTTPS 443, IKE 500/udpCurrent VPN gateway
203.0.113.21vpn-oldHTTPS 443, old SSL VPN portal, TLS 1.0Legacy; not on asset list
203.0.113.25wwwHTTPS 443Public website
203.0.113.30staging-portalHTTPS 443 behind WAFWeb test target
203.0.113.31(none)HTTP 8080, staging application originBypasses WAF
203.0.113.40sftp-statementsSSH 22, OpenSSH 7.4, weak key exchange offeredLegacy statement delivery
203.0.113.41(none)HTTPS 443 and 8443, firewall management and VPN portalManagement exposed to internet
203.0.113.44(none)RDP 3389, IIS 443, Windows Server 2019Vendor remote support server; switched off October 28

The section also listed external observations that were findings in themselves: DMARC at a policy of none, a former merger domain still accepting mail, the dangling careers CNAME, no CAA records, technology details in job postings, staff addresses in third-party breach notifications, and the contractor's repository with a revoked key.

Section 3: internal network

The internal section summarized discovery at head office and Branch 07, the comparison with the asset inventory, open services by count, protocol observations from passive capture, and segmentation results. The PowerShell reachability checks from lesson 11 showed that a Branch 07 workstation could reach SMB, RDP and SQL Server ports on most head office servers, so branch and server networks were not meaningfully separated. Passive capture showed LLMNR and NetBIOS name resolution in use. SNMP with a default community string answered on printers and the building automation controller. SMB signing was not required on the file server.

Section 4: identity and directory

This section drew on the authenticated enumeration in lesson 7: the password policy, privileged group membership, service accounts, stale accounts, share permissions, the svc_backup credential found and rotated, local administrator practices and the BloodHound attack path from branch users to Domain Admins through the IT Helpdesk group. Each edge in the path cited its evidence: the group membership export, the session data, and the access control entry granting the helpdesk group full control over Domain Admins.

Section 5: web and cloud

The web part summarized the staging portal's site map: 214 endpoints, three roles, the exposed OpenAPI description, the monitoring virtual host, the stack trace, the backup path and the origin bypass. The WordPress marketing site's outdated plugins were listed with versions. The cloud part covered the tenant's domains and sign-in type, the public marketing storage with the member event spreadsheet (exposure closed October 20 and passed to legal counsel), TLS 1.0 on the reports storage account, the broad pipeline service principal, seven subscription owners and the untracked proof-of-concept virtual machine.

Section 6: people and wireless

The people section held only what the phishing simulation design needed: the email address format with its confidence, counts of identifiable staff by department, and the observations about public technical detail. Individual names were kept in a separate restricted file. The wireless section recorded the Branch 07 survey: the approved networks and their settings, the rogue consumer router removed on October 22, the open building automation setup network, the guest network's reach into the car park, and the WiGLE observation treated as a hypothesis.

Turning evidence into prioritized hypotheses

The most important page of the profile was the last: a ranked list of hypotheses for the next phase. A hypothesis is a statement that might be true, supported by evidence, that testing can confirm or refute. Ranking used three factors: the likely impact if confirmed, the strength of the evidence, and how directly an attacker could reach the weakness from where they would start.

The top of the hypothesis list in profile version 2.0.
RankHypothesisEvidenceConfidenceNext step and owner
1An attacker with any branch user account can reach Domain AdminsBloodHound path with each edge evidenced; flat branch-to-server networkHigh for the path; untestedAgree with sponsor whether to demonstrate safely (D. Feldspar)
2Firewall management interface exposed to the internet could allow perimeter compromiseVersion detection and NSE on 203.0.113.41High for exposureVulnerability analysis of the identified version (D. Feldspar)
3Staging application can be reached without WAF protectionDirect response from 203.0.113.31 with no WAF behaviorConfirmedTest application authorization directly and through WAF (P. Haldane)
4Internal API endpoints in the OpenAPI description lack proper authorizationEndpoints documented but not used by the front endMediumAuthorization testing with both test roles (P. Haldane)
5Legacy services (vpn-old, sftp-statements) run unsupported softwareTLS 1.0, old SSH banner and algorithmsMedium; backports possibleVulnerability analysis, confirm with client patch records (T. Rennick)
6careers subdomain can be taken overDangling CNAME, provider name unclaimedMedium; record since removedConfirm removal; report as resolved during testing (P. Haldane)
7Default SNMP community strings expose device configurationRead responses from printers and controllerConfirmed for readReport; no write testing permitted (T. Rennick)

Each row has an owner and a next step, so the list is a plan as well as a summary. Some items were already confirmed findings and moved straight to reporting; others needed vulnerability analysis or, for the attack path, a decision by the client about whether to demonstrate it. Dario was clear that reconnaissance had done its job when the list was good enough to guide the remaining time, not when every hypothesis had been tested.

The briefing for the sponsor

Marguerite wrote the summary for Gwendolyn herself, in plain language and without tool names. It fitted on one page. It said that Ironwhistle had mapped Prairiefold's external and internal attack surface; that most public services were expected and reasonably configured; that several forgotten systems, including a vendor remote support server and the firewall's management interface, had been exposed to the internet and had been or were being fixed; that an ordinary branch account appeared to have a path to full control of the internal directory; that one marketing storage container had exposed a list of member event registrations, now closed and with legal counsel; and that detection had been strong at the perimeter but had missed internal enumeration entirely. It ended with the three changes that would most reduce risk: separate branch and server networks, fix the directory permissions behind the attack path, and establish an inventory of external and cloud assets that is checked every quarter.

Gwendolyn read it twice and asked one question: how much of this could an outsider have found without any of the access we gave you? Marguerite's answer, which also went into the final report delivered on November 23, was that everything in the external and cloud sections except the subscription review had been visible to anyone who looked.

Your turn: Copperline Logistics

Copperline Logistics, a fictional trucking and warehousing firm, has engaged Ironwhistle for a smaller external and warehouse network assessment. Tobias is drafting the target profile with Dario reviewing. Work through the evidence below and decide what goes in each section, then compare your answers with the worked solutions.

Evidence collected for Copperline Logistics.
ItemDetail
ScopePublic block 198.51.100.128/26; warehouse 3 network; domain copperline.example. Excluded: the fleet telematics provider's platform. Active testing only on weekends at warehouse 3.
OSINTJob posting for a controls technician mentions a named programmable logic controller family and remote access for the integrator. A public slide deck by Copperline's IT manager shows a network diagram with VLAN names.
DNS and CTNames include www, mail, vpn, mqtt, scada-remote and tracking. tracking is a CNAME to the telematics provider.
External scan198.51.100.140 (mqtt): 1883/tcp open, 8883/tcp open. 198.51.100.150 (scada-remote): 443/tcp open, 5900/tcp open (VNC).
Warehouse captureModbus/TCP traffic between a human-machine interface and three controllers; MQTT messages from conveyor sensors to the broker at 198.51.100.140.

Worked problem

Copperline task 1: scope and the register

Which names and addresses belong in the out-of-scope register, and which rule most affects warehouse work?

Show solution
  1. tracking is a CNAME to the telematics provider, which is explicitly excluded: register it, with the reason.
  2. Check that every other name resolves inside 198.51.100.128/26 (addresses .128 to .191); 198.51.100.140 and 198.51.100.150 are inside.
  3. The weekend-only rule for warehouse 3 governs all active work there; passive capture is also limited to those windows if it requires being on site.

Answer: tracking goes in the register; mqtt and scada-remote are in scope; warehouse activity must fit the weekend window.

Worked problem

Copperline task 2: rank the hypotheses

Using the evidence, write and rank three hypotheses for the next phase, with evidence and confidence.

Show solution
  1. scada-remote exposes VNC (5900) to the internet, probably the integrator's remote access mentioned in the job posting. Hypothesis: remote access to the warehouse control system is reachable from the internet with weak or no authentication. Evidence: port scan, job posting. Confidence in exposure: high. Rank 1, because it could affect physical operations.
  2. The MQTT broker accepts connections on 1883, the unencrypted port, from the internet. Hypothesis: sensor messages can be read or injected by anyone. Evidence: port scan and warehouse capture showing sensors use this broker. Confidence: medium until authentication settings are checked. Rank 2.
  3. Modbus/TCP has no authentication. Hypothesis: anyone on the warehouse network can read and write controller registers. Evidence: passive capture. Confidence in the protocol weakness: high; reachability from other networks unknown. Rank 3, with segmentation checks as the next step.

Answer: 1: internet-exposed VNC on scada-remote; 2: MQTT broker open on 1883; 3: unauthenticated Modbus on the warehouse network. All operational technology testing proceeds passively or with the lightest probes, with Copperline's controls staff present.

Worked problem

Copperline task 3: the defensive summary

Write the three recommendations a one-page summary for Copperline's management should lead with.

Show solution
  1. Remove direct internet exposure of remote access to warehouse controls; route integrator access through a VPN with multifactor authentication and session approval.
  2. Require authentication and TLS on the MQTT broker and restrict it to known sources.
  3. Segment warehouse control networks from corporate and internet-facing networks, and stop publishing network diagrams in public slide decks.

Answer: Close internet-exposed control access, secure the message broker, and segment control networks, with less detail shared publicly.

Closing the reconnaissance phase

A profile is finished when it is good enough to act on, but reconnaissance never stops entirely. New information during attacks often sends testers back to enumerate more. Ironwhistle kept the profile under version control and updated it twice more before November 13. At the end of the engagement, Ana's data handling checklist governed what happened to it: the final report kept only what was needed as evidence, personal data and working files were destroyed securely, and the destruction was recorded. COMP-224, PenTest+: Post-Exploitation and Lateral Movement, covers closing an engagement in full.

Tobias kept one thing: the CHECK THE SCOPE sticker, now on his own laptop.

Common mistakes

  • MistakePresenting hypotheses as confirmed vulnerabilities.

    InsteadLabel each item with its evidence and confidence, and confirm in the next phase.

  • MistakeLeaving out the out-of-scope register.

    InsteadRecord everything seen but not tested, with the reason, and report it to the client.

  • MistakeRanking hypotheses by how interesting they are.

    InsteadRank by impact, evidence strength and attacker reachability.

  • MistakeGiving executives a tool-by-tool account.

    InsteadSummarize the attack surface, key exposures and top recommendations in plain language.

  • MistakeKeeping working files indefinitely after the engagement.

    InsteadFollow the agreed data handling and destruction plan, and record it.

Summary and key terms

  • A target profile is the evidenced, organized result of reconnaissance, classified confidential and versioned.
  • It opens with scope, constraints and an out-of-scope register.
  • Sections cover external footprint, internal network, identity and directory, web and cloud, and people and wireless.
  • Evidence becomes hypotheses ranked by impact, evidence strength and reachability, each with an owner and next step.
  • A plain-language summary gives the sponsor the attack surface, key exposures and top recommendations.
  • Operational technology hypotheses are tested passively or with the lightest probes, with owners present.
  • The profile feeds vulnerability analysis and is retained or destroyed under the data handling plan.
Target profile
The organized, evidenced description of a client's attack surface produced by reconnaissance.
Hypothesis
A supported statement about a possible weakness that later testing will confirm or refute.
Out-of-scope register
A record of assets observed but not tested, with the reason each was excluded.
Attack surface
All the points where an attacker could try to enter or extract data from an organization.
Confidence
A recorded judgment of how strongly the evidence supports a statement.
Data handling plan
The agreed rules for storing, sharing, retaining and destroying engagement data.

Practice problems

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

  1. What three factors did Ironwhistle use to rank hypotheses?

    Show answer

    Likely impact if confirmed, strength of evidence, and how directly an attacker could reach the weakness.

  2. Why does the profile include an out-of-scope register?

    Show answer

    It records assets seen but not tested, shows the team respected scope, and tells the client about exposures it may need to raise with third parties.

  3. Name one external finding from Prairiefold that an outsider could have found with no special access.

    Show answer

    Any one of: the exposed remote support server, the firewall management interface, vpn-old, DMARC at none, the dangling careers CNAME, the public storage listing, the merger domain accepting mail.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz