A SaaS provider is responsible for the platform’s code and infrastructure, but much of the effective access originates in the customer tenant. The customer decides who may invite guests, whether shareable links are allowed, which applications receive OAuth access, how administrators are created, and what happens after someone leaves. A failure on this side needs no vulnerability in the provider’s product: an excessive setting, a stale grant, or incomplete offboarding is enough.
An assessment of SaaS in use therefore examines the organization’s own service instance and the identities connected to it. It does not replace the provider’s SaaS product penetration test or authorize a customer to test third-party infrastructure. Its useful outcome is a reproducible account of who can actually reach company data and actions, and by which route.
Draw the responsibility boundary
It helps to split the service into three layers. The provider controls the shared service: fixing code, protecting infrastructure, and isolating customers. The customer controls its tenant: roles, guests, domains, sign-in methods, links, applications, and retention policies. A shared layer sits between them: the provider supplies controls, documentation, and logs; the customer selects settings, buys the required licence, and checks whether each control has the intended effect.
That boundary also determines the test method. An assessor can read configuration, export permitted inventories, create controlled users, and safely test access in the customer’s tenant. Trying to cross into another customer or scan the provider’s infrastructure requires separate explicit authorization. Reviewing the provider’s assurance material answers another question and belongs in a third-party risk assessment.
Establish the applicable baseline first
There is no universal set of “correct switches.” The same service may be a partner-facing workspace in one organization and a closed repository for financial documents in another. Start with a tenant profile: edition and licences, connected identity provider, enabled modules, data types, administrative roles, external collaboration cases, integrations, and decision owners.
A published configuration baseline can expose drift quickly. For example, tools in CISA’s SCuBA family compare Microsoft 365 settings with documented baseline policies. Even that output is not a security conclusion. Some checks depend on licences, some require manual work, and exclusions in conditional policies can leave a real user or device context uncovered. Every unavailable or inapplicable control needs an explicit disposition: business rationale, compensating measure, owner, and review date.
A useful baseline stores scope as well as the desired value. An MFA policy for employees says nothing about guests, service identities, or emergency administrators. An organization-wide external-sharing rule may be narrowed at a site, while a local choice may be constrained by a stricter parent policy. The assessment must calculate the effective rule for a specific group, resource, and application.
Test guests, external domains, and sharing links
A list of guest accounts is only a starting point. Access may come from group membership, a workspace invitation, a direct object grant, a trusted domain, a public publication, or an “anyone with the link” URL. The review should therefore work back from sensitive resources to access methods, rather than only forward from directory users to their roles.
For each external route, record an internal sponsor, business purpose, recipients, allowed actions, expiry, and whether the recipient may reshare. Then run two tests: an authorized external persona opens a controlled object, while an unrelated or removed persona is denied. Test the reverse transition too. Some platforms can block external access through a restrictive policy while retaining the underlying object permission; relaxing the policy later can restore the old access. A temporary block and removal of the grant are different evidence.
Banning all collaboration can also fail because users move to unmanaged channels. A better design creates governed spaces where external sharing is allowed, disables it in sensitive areas, and makes link types obvious. The report should cover anonymous links, pending invitations, groups containing outsiders, permitted domains, and externally shared objects with no accountable owner, as well as current guests.
Treat OAuth apps and service integrations as identities
Treat an integration as a separate access path, including when it acts on behalf of a user. Delegated OAuth access may act for a person, while application permissions may operate without that person signing in. API keys, webhooks, marketplace apps, bots, and synchronization accounts create more paths. Deleting an employee does not guarantee that all of them disappear.
The integration register should map each technical client identifier to a business owner, vendor, environment, consent type, exact permissions, reachable data, affected users, secrets, last use, and shutdown method. A friendly display name and a “verified publisher” badge help identify an app but do not decide whether its access is acceptable. Mail and file reading, message sending, object modification, domain-wide reach, and administrative permissions deserve particular scrutiny.
The consent policy must answer two questions: what users may approve themselves and who approves riskier permissions. Some platforms provide multiple independent authorization mechanisms for consent; checking one role does not prove the absence of another route. When an app is retired, verify behavior: a request with the old token is denied, no fresh token can be issued, webhooks stop receiving or sending events, and the dependent business process has an agreed replacement.
Prove offboarding beyond disabling the account
Lifecycle control starts at onboarding. Every employee, contractor, and guest should have an assignment source, owner, review date, and terminating event. Automated creation through SSO or SCIM helps only when the reverse path—deactivation inside the SaaS application—is configured and observable too.
When someone leaves, first prevent new sign-in and new authority, then address existing sessions, tokens, and application credentials. An identity provider may revoke its refresh tokens, yet it cannot directly destroy a session cookie issued by the SaaS application itself. A departing user may also leave mobile sessions, personal API tokens, automation ownership, delegated mailboxes, sharing links, and apps to which they previously granted consent.
Closure is proven when the former control path fails and required data and processes have a new owner. Applications without automated deprovisioning need a manual task with a responsible person and deadline. If immediate revocation is impossible because a device is offline or a token must expire, record the limitation as residual risk instead of marking the control complete.
Build the test plan and evidence matrix
Use two passes. First, make read-only exports of settings, users, groups, guests, links, applications, and logs. Then agree safe canaries: invite a test guest, create a link to a synthetic document, grant a low-risk OAuth permission, and disable a test user. The penetration-test scope planner can capture systems and constraints, but a SaaS-tenant assessment should add licences, parent policies, and permitted configuration changes.
- SnapshotRecord platform, licences, settings, exceptions, and owners without changing state
- RouteConnect a user, guest, or application to its permission, resource, and expected decision
- CanaryRun an allowed and denied test on synthetic data, then inspect downstream effects
- ClosureRemove the grant, revoke the session or token, and repeat the test while preserving evidence
Scroll sideways to compare
| Area | Provider responsibility | Customer-side test | Acceptance evidence | Reasonable constraint |
|---|---|---|---|---|
| Guests | Invitation and authentication mechanism | Who can invite, to what, and for how long | Assignment export plus allowed and denied canaries | Manual review when automation is unavailable |
| Sharing links | Link types and policy enforcement | Where anonymous and domain links are allowed | Controlled object fails after the link is deleted | Disable external sharing in sensitive zones |
| OAuth | Consent, token, and logging model | Approved apps and exact permissions | Old token denied and no new token issued | Limit the app to a named group |
| Offboarding | Deactivation API and session handling | Trigger, sequence, and ownership | Sign-in, API, and active session tested separately | Documented expiry with new issuance blocked |
| Baseline | Available settings and licensed features | Applicability, exceptions, compensation | Value, effective scope, and behavior test | Compensating control with review date |
Hypothetical example: an agency project ends
Consider a company using a document SaaS. An external agency receives three guest identities, a project folder, and an integration that uploads design files. Six months later the project ends. An administrator removes the guests from the shared group and closes the ticket.
The assessment finds three more routes. One file was granted directly to a former participant, a folder was published through a no-sign-in link, and the integration can read every document belonging to the employee who installed it. The tenant’s top-level policy currently blocks external sharing, but the direct file permission remains stored and could become effective if the policy is relaxed later.
The team assigns an owner to the archive, removes direct grants and the anonymous link, moves required records to an internal space, and blocks the OAuth client. The external control account can no longer open the file, the integration’s old token is denied, and the internal owner still reaches the archive. This scenario is hypothetical, but its acceptance rule is concrete: close each access route rather than only visible accounts.
Accept a result you can reproduce
A useful report makes every conclusion repeatable. Each finding identifies the object, actual access route, expected rule, observed result, risk, remediation owner, and retest method. Attach the baseline version, exception inventory, role matrix, external-sharing and integration registers, canary results, and explicit limitations. Aligning the format with a sample penetration-test report in advance helps turn access evidence into specific remediation work.
An internal review is often enough when the team can obtain complete exports, perform safe canaries, and approve exceptions independently. An external cloud security assessment is useful when controls span an identity provider and several SaaS products, negative paths need verification, or implementation and acceptance should be separated. Pentest.red can agree a customer-controlled scope, test effective routes inside an authorized tenant, and deliver evidence with stated limitations. That work does not assess the provider’s source code or claim assurance for the whole platform.
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.