Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

SaaS Incident Response: Design for Tenant Isolation Before an Incident

For a software-as-a-service provider, a security incident can become a customer-trust crisis when investigators cannot establish which tenant was affected.

For a software-as-a-service provider, a security incident can become a customer-trust crisis when investigators cannot establish which tenant was affected. A suspicious administrator session, compromised integration token or vulnerable API endpoint may be contained quickly, yet the organisation still needs to determine what was reachable, whether information crossed tenant boundaries and how customers’ normal work can resume safely.

Tenant isolation is therefore more than an application access-control feature. It must be designed into architecture, telemetry, incident decisions and recovery. The right questions are not simply “Do we use separate databases?” or “Is our cloud provider secure?” They are whether a customer identity can obtain another customer’s resource, whether privileged services can bypass that boundary, and whether the security team can prove what happened during an incident.

Map the paths that can cross tenant boundaries

Begin with a representative customer request. Trace the identity, API gateway, application service, database or object store, message queue and any background worker that handles it. Record where tenant identity is established and where it is checked again. A tenant identifier provided in an HTTP request is not, by itself, trustworthy. The server must validate that the authenticated principal is authorised for the requested object and operation.

Include internal support interfaces and automation. A support agent may legitimately assist several customers, but that does not justify unrestricted access without approval and auditability. An analytics service might aggregate records from many tenants, creating a different exposure from a customer-facing API. A backup or migration account may hold broad permissions, while a supplier tool may access production with credentials outside the ordinary login system. Identify each exception and the business reason it exists.

A good architecture record names the service owner, data classes, effective permissions and evidence source at every boundary. It distinguishes controls enforced by code, database policy, cloud configuration and operating procedure. An isolation diagram is only a hypothesis until representative permitted and prohibited requests have been tested.

Test object-level and property-level authorisation

OWASP’s 2023 API Security Top 10 places broken object-level authorisation prominently because APIs commonly work with caller-supplied object identifiers. In a controlled environment, create two synthetic customers with distinct resources. Authenticate as customer A and confirm that a normal request for A’s record succeeds; then attempt to access B’s record through the same permitted endpoint. The second request must be denied independently of whether the frontend displays a link.

Repeat the test for reading, updating and deleting resources where authorised. Check property-level controls as well: an endpoint may correctly restrict an order to its owner yet accept a field that changes its tenant identifier, approval status or financial value. Verify that the server enforces those changes according to business permissions, not merely the shape of the submitted JSON.

Use small named synthetic records and an agreed test scope. Do not enumerate real customer identifiers to demonstrate the weakness. Preserve the request identity, resource reference, expected result and actual response. A failure must be escalated to the relevant application owner with enough detail to reproduce it without exposing unrelated customer information.

Restrict privileged support and machine access

Multi-tenant applications rely on identities that do not look like ordinary customers: deployment pipelines, service principals, customer-support roles, reporting jobs and emergency administrators. Their effective access can be much broader than their displayed job title suggests. Build a register of these identities, including the systems they can reach, how credentials are issued, who may activate them and what happens when their owner leaves.

Where a function serves one tenant, constrain its permissions to that tenant or resource set. Where cross-tenant activity is necessary, require a documented purpose, stronger authorisation and detailed logging. Examine whether a compromised support account could grant itself new roles or export bulk data. Review third-party access separately; a contract with a reputable provider does not limit a token’s technical permissions.

Test removal and rotation as well as initial access. A former support contractor should not be able to reuse an old session or delegated app consent. A compromised integration token should be revocable without leaving all customer jobs in an unknown state. Record a safe fallback when revocation would interrupt important customer workflows.

Design an incident timeline investigators can actually build

To determine scope, analysts need correlated records from identity, API gateways, application authorisation, data stores, privileged changes and background workers. Those records should identify the relevant customer or tenant without indiscriminately copying sensitive payloads into a central monitoring system. Record event time, account or workload identity, resource, action, result and request correlation identifier where supported.

Run a supervised synthetic test: an authorised support account accesses one customer record and is denied another. Ask an analyst who did not watch the test to reconstruct both attempts using normal investigation tools. Can they determine which tenant was reached, whether data was returned and whether permissions changed? If events are missing from one service, the incident response plan should label the uncertainty instead of assuming the absence of harm.

Protect the evidence itself. Logs should not be alterable by every production application administrator, and retention must be appropriate for the organisation’s risks and obligations. Ensure the team can access essential records if a cloud account is suspended or a monitoring integration fails. A SaaS provider that cannot establish tenant scope after an alert may face a much larger communication and investigation burden than the original technical incident suggests.

Rehearse containment without disrupting every customer

Imagine a privileged automation account showing suspicious queries across multiple tenants. One proposal is to disable the account immediately. Another is to narrow the relevant API route while preserving unaffected processes. Both require evidence about the account’s reach, an authorised decision-maker and a clear operational consequence.

Create a containment matrix for ordinary customer identities, privileged support users, service accounts and deployment automation. Define which actions can be taken under a preapproved runbook, which need engineering approval and which may affect many tenants. Check whether a restriction can be applied to one tenant, one token or one API operation. If the platform only permits a service-wide shutdown, record that architecture limitation as a resilience risk with an owner.

A tabletop should include a customer service representative and privacy or legal adviser, not just security engineers. The team needs to decide how to describe confirmed access, possible exposure and continuing uncertainty. Customer updates should not claim every tenant was compromised merely because an elevated service principal had broad permissions; nor should they promise that all other tenants were unaffected without evidence.

Make recovery include authorisation and data integrity

Restoring a database snapshot is insufficient if it revives an unsafe permission, drops tenant-specific configuration or replays a compromised service token. Select a non-production environment with two synthetic tenants and restore representative data, policy configuration and application services. Confirm that each tenant can perform its legitimate workflow and still cannot access the other’s data.

Check reconciliation for background jobs that were paused during containment. A queued billing operation, email notification or data export may have been retried after the environment was restored. Test duplicate handling and idempotency so containment does not create a separate integrity failure. Identify who signs off application behaviour, security controls and customer support readiness.

The incident is operationally resolved when the team can demonstrate that suspicious access has stopped, the service is working for authorised users, and the evidence supports the customer-impact assessment. Any unresolved gaps should be recorded with owners and a date for retesting.

Build isolation assurance into every release

A once-per-year penetration test cannot keep pace with continuous SaaS deployment. Make a small set of isolation tests part of release gates: tenant A cannot access tenant B’s object; a standard support role cannot grant itself administrator rights; an expired supplier identity cannot reach production; and a rejected API operation produces a useful log event. Where automation is practical, run it in a controlled integration test suite. Keep human review for complex workflows, role delegation and multi-stage business logic.

Revisit the boundary map after adding analytics, AI assistants, external integrations or customer-specific automation. New services may gain cross-tenant visibility without anyone changing the main application login code. Assign an owner for those permission changes before deployment.

Test containment against two tenants with a shared support system

In a non-production SaaS test, seed separate customer tenants with distinctive records and grant a support identity access to one tenant for a time-limited case. Attempt a second tenant query through the same API token, cached session and background job. The expected answer is denial at the data service, even when the network path and authentication are valid. Record each request identifier and tenant context so an investigator can distinguish an attempted cross-tenant read from a completed export.

Practice isolating the affected customer without disabling authentication for unrelated subscribers. If a shared worker processes jobs from multiple tenants, the response team needs an explicit method for stopping only affected queues and preserving message order. Recovery should include replay safeguards, customer-level verification and removal of temporary support privileges. This is more informative than a generic cloud security certificate because it measures the boundary that defines the product’s promise to each customer.

Sources and further reading

Historical logging and incident investigation guidance: NIST SP 800-92 — log-management background (2006 publication).

Strengthen your security with Next Defence

Next Defence supports technology, saas & digital businesses organisations with practical assessment, technical implementation and validation through its Incident Response & Cyber Resilience practice.

Explore Incident Response & Cyber Resilience ↗

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].