An application owner’s authority to commission a pentest does not authorize testing everything that answers on its domain. A public request may pass through a DNS provider, CDN, WAF, shared edge, load balancer, customer cloud account, origin, and external SaaS. Different parties own these layers and different rules govern them.
Before active testing, the team needs more than a URL list. It needs a map of assets, owners, and permitted actions. The map shows where customer code is tested, where shared-platform behavior is only observed, and where separate approval is required.
Do not treat a domain as one asset
app.example.com is a route name, not proof of ownership for every responding component. Record the DNS chain, CNAME, edge addresses, origin, cloud project, SaaS tenant, and third-party integration functions. For each element, identify the contractual owner, technical administrator, and party authorized to permit an action.
Timestamp the snapshot because DNS, CDN configuration, and origins change. Authorization for an application usually covers requests to its public logic. It does not automatically cover scanning a provider range, neighboring tenants, or a provider control plane. Teams can record the boundary in the pentest scope form.
Separate edge, origin, and external services
At the CDN/WAF layer, test how the customer configuration handles customer traffic without attacking shared-platform isolation unless explicitly authorized. At the origin, test customer-owned hosts and services under separate identifiers. DNS may allow passive record analysis while prohibiting active hijacking or zone walking. SaaS requires both the provider’s rules and tenant-owner authority.
Record traffic direction as well. Permission to test a destination application may not allow tooling to originate from a particular cloud. Owning the scanner does not authorize effects on someone else’s target. The guide to pentest contracts and acceptance gives the general boundary; this article turns it into a layer-specific shared-platform map.
Obtain authority from the correct owner
For every layer, ask who owns the resource, who accepted the provider terms, and who can authorize the tester’s action. A customer can authorize testing of its endpoints, accounts, and configuration. The provider decides whether prior notice is required, which services are permitted, and which activities remain prohibited despite customer consent.
Do not mistake “no prior approval required” for “no rules apply.” Cloud policies may allow tests of customer resources without a ticket while still prohibiting DoS, DNS attacks, social engineering, or testing the provider service itself. Save the policy version and review date; a bare link without the applicable clause ages poorly.
Maintain an action ledger, not only a target list
Scroll sideways to compare
| Layer | Identifier | Permitted action | Authorizer | Evidence |
|---|---|---|---|---|
| DNS | Zone and specific names | Passive resolution and configuration checks | Zone owner plus DNS-provider rules | Zone export, owner letter, policy version |
| CDN/WAF | Zone/account ID and hostname | Requests to the application at the agreed rate | Account owner plus CDN policy | Route snapshot, limits, stop contact |
| Origin | Account/project/resource ID | Scanning and exploitation within the application | Resource owner and cloud ROE | Resource tags, letter, testing window |
| SaaS | Tenant ID and test accounts | Scenarios contained in the tenant | Tenant owner plus SaaS provider | Service terms and account list |
| Third-party API | Contract and endpoint | Only agreed safe requests | API owner | Separate authority or exclusion |
| Shared platform | Provider service | Observation; active breakout only if rules allow | Provider | Applicable policy and stop condition |
The verb matters more than the target name. “Test the CDN” may mean send ordinary requests to one hostname, change a WAF in the customer account, scan edge IPs, or attempt a shared-container breakout.
Build a provable scope packet
The packet contains the route map, account and resource IDs, test domains, authorized roles, tester source IPs, window, rate, methods, prohibitions, and stop contact. Attach written authority from each resource owner and provider rules captured for the test date. For dynamic addresses, use stable resource IDs and tags rather than only IPs.
List evidence that must not be collected: neighboring-customer data, shared-control-plane contents, or load metrics without special approval. If routing changes during the engagement, stop new active actions and update the map. The packet becomes an attachment to the rules of engagement rather than a tester’s informal note.
Preserve an authorized reference request: DNS result, TLS name, routing headers, trace ID, and matching CDN and origin records. These associate an observation with a layer; an IP, ASN, or certificate does not prove authority. Console access does not authorize configuration changes, so record the test role and permitted changes.
Every authorization needs an expiry and recheck trigger. Deployment, CNAME, account, WAF, or failover changes may move traffic to another owner’s resource. Automation can compare IDs before a new technique, but a named person decides whether to continue. A mismatch puts the action “on hold pending confirmation”; analogy cannot expand scope.
Keep the packet available. After an abuse notice, provide the engagement ID, target owner, source addresses, and authorized method without unnecessary customer data.
- Resolve the routeRecord DNS, CDN, origin, tenants, and third-party transitions.
- Assign the ownerBind each resource to its contractual and technical owner.
- Check the policyMatch each action to current rules for every provider.
- Grant authorityRecord method, rate, window, source, and stop contact.
- Watch for changeRecheck route and identifiers before active testing.
Walk through a shared-CDN conflict
Suppose a company authorizes testing shop.example.com. DNS points to a shared CDN and then to an origin in its cloud project; checkout calls an external SaaS. Company authority covers store logic and its origin, while the cloud policy permits testing customer-owned resources. It still does not authorize scanning the whole edge range or testing isolation between CDN tenants.
The team sends safe requests only to the hostname, rate-limits traffic, ties CDN observations to customer-account configuration, and tests the origin by resource ID. The payment SaaS stays excluded until separately authorized and is replaced by a test adapter. An unusual edge response is recorded as an observation. The team does not attempt access to a shared control plane unless the policy explicitly permits it. This is an illustrative scenario, not a real provider test.
Define stop and escalation conditions
Stop immediately if another customer’s data appears, an unlisted resource is affected, a shared service degrades, routing changes to an unknown provider, or an abuse team sends notice. Preserve minimum evidence, cease further effect, and use the agreed notification channel. Discovering a vulnerability does not expand authorization.
Before testing, name a reachable contact, a method for identifying test traffic, and a process for revoking authority. If a provider requires a separate request for C2, DDoS simulation, or another event, an application owner’s letter does not replace it. A decision not to test a layer must also appear as a report limitation.
Bind conclusions to the layer actually tested
The report should distinguish application behavior behind a CDN, customer-account configuration, origin exposure, and shared-platform properties. A WAF bypass through the origin describes the route and customer configuration; it does not prove compromise of the CDN. No finding on the public hostname does not establish security of an excluded SaaS or shared console.
Pentest.red can perform an independent penetration test after layer-specific authority is assembled. Teams can align boundaries, limitations, and evidence with the sample report. The final record should reconstruct who authorized each method, under which policy version, against which resource, and when. Without that chain, a technically accurate finding is unsuitable for acceptance.
PENTEST.RED
Discuss pentest scope and pricing
We start by agreeing on systems, access, constraints and the expected evidence.
Based on in-depth research, edited for clarity and practical use.