Tenant isolation comes first
Set up at least two tenants with users in each role. Then replay every object-access request from tenant A against tenant B's identifiers: records, files, invoices, exports, webhooks and audit logs. Check background jobs too: report generation or export endpoints often run with elevated privileges and skip tenant filters. A single cross-tenant read is usually a critical finding.
Other SaaS-specific risks
- Role escalation inside a tenant: a member inviting themselves as owner, or changing their role through mass assignment.
- Invitation and SSO flows: accepting invitations for other tenants, or linking an identity to the wrong account.
- Integrations: webhook URLs and import-from-URL features are classic SSRF sinks.
- API keys and tokens: scope, rotation and whether a key from one tenant works against another.
- File handling: uploads, previews and exports served from shared storage.
What good evidence looks like
For a cross-tenant finding, record the two tenants, the account used, the request, and the response containing the other tenant's data, alongside a control request for a non-existent ID. Redact real customer data in the report; test against staging tenants you create wherever possible.
Testing cadence
SaaS products ship weekly or daily, so a yearly test covers a small fraction of the code customers use. Continuous or per-release automated testing, plus a deeper manual test each year or after major architectural changes, is a common pattern. Retests after fixes close the loop for auditors.
How Pentest-Swarm and Armur test SaaS applications
Pentest-Swarm tests the web app and APIs behind a SaaS product, focusing on the authorisation classes that cause cross-tenant leaks. Armur's managed version adds the operational layer SaaS vendors usually need.
- Differential proof of object-level access: the victim's identifier against a non-existent control.
- Mass-assignment proof for privilege fields such as role or is_admin smuggled into JSON bodies.
- Out-of-band SSRF proof on webhook, image and import URL parameters.
- Managed: continuous scheduled pentests, human-reviewed reports, compliance-ready reporting for SOC 2, ISO 27001, PCI DSS and HIPAA, and retests after fixes.
- The managed platform verifies ownership of each asset before testing.
Where it falls short
Automated testing needs test tenants and accounts to prove isolation failures; it cannot infer which data belongs to whom from a single account. Pentest-Swarm does not currently test SSO and OAuth flow abuse, CSRF or business-logic flaws such as billing manipulation automatically. A report supports your SOC 2 or ISO 27001 evidence but does not make you compliant; auditors assess your whole control set.
Questions
What is the most important test for a SaaS app?
Tenant isolation: proving that no user in one tenant can read or change another tenant's data through the UI, the API or background jobs.
Does SOC 2 require a penetration test?
SOC 2 does not mandate a pentest by name, but auditors commonly expect one as evidence for monitoring and risk-assessment criteria, and enterprise customers often ask for the report.
Should we test production or staging?
Staging with production-like configuration is safest. If you must test production, use dedicated test tenants and agree limits in advance.