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

Multi-Tenant Analytics Access-Control Negative Tests

A finance analytics product may legitimately let one corporate group consolidate results from several subsidiaries. A user authenticates successfully, selects a reporting entity and exports a CSV.

A valid analytics session can still expose another customer’s figures

A finance analytics product may legitimately let one corporate group consolidate results from several subsidiaries. A user authenticates successfully, selects a reporting entity and exports a CSV. The danger is not merely an unauthenticated request. A user authorised for Group A can sometimes alter an entity number, cached report identifier or background export job to retrieve Group B’s transactions. Authentication may work exactly as designed while object-level authorisation is absent at the route that returns the report.

The negative-test workbook should make tenant isolation observable. It needs two unrelated synthetic customer tenants, one parent group with permitted subsidiary access, multiple role levels and realistic workflows for saved reports, asynchronous exports and scheduled delivery. Use invented financial records with distinctive account markers so cross-tenant leakage can be detected without accessing real customer information. The product security owner must define which cross-entity access is legitimate; testers cannot infer the entitlement model from numeric ID formats.

Establish the actual authorisation graph

Document tenant, legal entity, group, user, role, reporting workspace, dataset and export job as separate objects. A parent group may be allowed to compare two subsidiaries without being allowed to inspect employee-level transactions. A delegated accountant may be authorised for one entity during a limited engagement. A finance executive may see aggregated totals but not payroll detail. These distinctions should be enforceable by server-side policy, not by hiding report buttons in the browser.

Draw the paths for report creation, report retrieval, filtering, scheduled generation, downloaded objects and email delivery. Record where each service determines the caller’s tenant and permissions. A report service that accepts the tenant_id field in a request and trusts it without correlating the authenticated principal is a design defect. The same applies when a signed export URL points to a file whose permissions were calculated before a user’s access was revoked.

Include the case of a group reorganisation. If a subsidiary is sold or its reporting relationship changes, saved schedules and cached aggregates must be reevaluated. Otherwise the original permission may persist in an export worker that never calls the current policy service. Access-control assurance is therefore a lifecycle exercise, not a single endpoint test.

Build a test dataset that reveals cross-boundary mistakes

In a non-production environment, create Tenant A and Tenant B with visibly different synthetic ledger rows, unique invoice references and report totals. Under Tenant A, create Subsidiaries A1 and A2; allow one analyst to access both and another to access only A1. Give Tenant B a similar numeric entity ID to tempt accidental identifier substitution. Record an entitlement matrix showing the expected response for each principal and object. Include a support operator with time-limited troubleshooting access and a former analyst whose role has expired.

Test the authorised baseline before the denials. The Group A analyst should receive permitted subsidiaries and appropriate aggregation; the A1-only analyst should obtain an A1 report; Tenant B’s customer should see its own records. Confirm that report values match the seeded ledger. A test that returns HTTP 200 but omits half the authorised rows could be an availability or correctness fault, not evidence of good access control.

For the negative cases, send a Tenant A token with a Tenant B report ID, change a report filter’s entity parameter, reference another user’s saved-query key and request a supposedly private export object. Run the same checks through the normal browser workflow and through a controlled API client. Record whether the server returns a denial without exposing report metadata, titles or row counts. Some systems reveal confidential relationships through existence checks even when final downloads are blocked.

Follow authorisation beyond the request handler

Asynchronous processing creates a second boundary. An HTTP request may enqueue a job under a service principal; the worker later resolves dataset permissions using a stored tenant key. Verify that the originating user’s entitlement is bound to the job and evaluated according to the product’s documented policy at execution time. If the user loses access after scheduling, decide deliberately whether the job should cancel, produce a redacted result or remain permitted under an approved snapshot policy. Whatever choice is made needs owner approval and testing.

Check export destinations. A temporary object-store URL may remain usable by anyone holding the link. Email scheduling can send an otherwise correctly restricted report to an address outside the customer’s domain. A cache keyed only by report_id, without tenant and permissions in its isolation design, can return a previous user’s answer. Include pagination, search facets, embedded analytics widgets and CSV column selection; authorisation must survive transformations that alter the representation.

Evidence for the defect and for the fix

Capture the synthetic user identity, entitlement snapshot, tenant context, report identifier, API route, server decision and outbound row fingerprint. Avoid copying real commercial figures into a ticket. Logs should show the denial and the policy decision without placing bearer tokens or full financial datasets in the audit trail. Redact sample requests before sharing them with suppliers. Reproduce failures in a controlled environment and do not continue probing an unrelated production tenant.

When engineering changes the policy enforcement point, repeat the same negative cases and the originally permitted workflows. A fix that prevents all exports does not satisfy the business requirement. Regression tests should exercise parent/subsidiary relationships, revoked permissions, queued jobs, report caches and direct object downloads. Reviewers should also verify that support access expires and cannot be silently renewed by a service account.

Workbook example: ownership changes during a reporting job

Consider Group A, whose parent company owns Subsidiaries A1 and A2, and Group B, which is unrelated. The analytics platform has a nightly scheduled report created by an A1 analyst. Before execution, the analyst is transferred to A2 and loses A1 permissions. A simplistic system may cache the original tenant list when the report was configured, then use a privileged background account to generate and email A1 details after the analyst’s role changes. The correct policy is not universal: some products intentionally permit scheduled reports under a separately authorised service identity. The product owner needs to decide which principal carries the authority and what happens when the human creator departs.

The workbook should model that difference. Record the scheduling principal, execution principal, current group relationship, intended recipient, source dataset and rule version. Try an A2-only execution against an A1-only report, a valid Group A aggregate, a Group B report with a similar identifier and a previously authorised export whose download link has not expired. The expected decisions must be specified before running the test; otherwise developers can rationalise surprising results as features.

The evaluator should inspect several output forms. A PDF may be correctly restricted while a CSV endpoint leaks rows. A download URL may deny access but a thumbnail or preview API may show company names. Search-autocomplete can reveal private report titles or entity identifiers. Aggregate charts can leak information when a query isolates a single person or subsidiary. These are distinct paths to the same business information, and a robust matrix records them separately.

Evidence table fields and failure triage

Build the negative-test register with fields for case ID, synthetic caller, original tenant, target tenant, requested operation, policy version, expected decision, actual outcome, API trace, eventual object state and reviewer. Use identifiers that are meaningless outside the test environment. Assign each defect a classification: cross-tenant disclosure, excessive support privilege, stale scheduled authority, public link exposure, missing audit or legitimate-workflow regression. The classification helps engineering choose the correct enforcement point instead of adding a superficial browser check.

A useful follow-up test is to insert the same synthetic request via a direct API call and the UI. If the API exposes Group B data while the UI hides the link, the fix should be server-side. If both refuse access but a scheduled job still exports the data, examine the worker’s identity and object-store permissions. If the correct tenant is returned but with unnecessary payroll columns, examine field-level policy and data minimisation. The evidence should point to the route that produced the unwanted result.

A failure should remain open until the remediation has been demonstrated against both previously denied and legitimately allowed paths. Record whether old export objects must be destroyed, links invalidated or affected users informed in a real incident. Where the review identifies a plausible design weakness but no actual data exposure, describe it accurately as a risk finding rather than a confirmed breach.

Testing limits and data integrity

Automated tests should run in CI on seeded tenants and record regressions, but the dataset needs periodic review as the product adds business hierarchy features. A new delegated accountant role or reporting merger can invalidate assumptions that were correct at launch. Use intentionally similar subsidiary IDs and reassigned roles to make shallow ownership checks fail visibly. Maintain the test inventory without storing production tokens, financial records or customer spreadsheets in pipeline logs. A defensible access-control programme can explain not only which requests were blocked, but why legitimate cross-entity reporting still works.

Review an ordinary business change as a regression trigger

When a finance customer acquires a subsidiary, analysts may need new group reports without seeing historical records from an unrelated entity. Have the product owner authorise a staged entitlement change, then compare report outputs before and after the new hierarchy is applied. Cached reports should not acquire wider access merely because an account administrator changes a parent identifier. The regression pack must include direct downloads and scheduled delivery because those paths often remain active outside the user interface. Treat every new enterprise hierarchy feature as an opportunity for a boundary mistake, and include it in release acceptance rather than relying on last year’s test tenants.

Turn results into an acceptance matrix

Create a row for each combination of principal, tenant, subsidiary, action and data classification. The expected result should be one of allow, deny, masked view or escalation, with a named policy owner. Add fields for observed response, storage artefact, worker job ID, relevant log record and defect owner. Do not treat a missing audit event as a pass: the absence of evidence makes it harder to establish whether a cross-tenant attempt was blocked at the right place.

The release gate should require zero cross-tenant records in any permitted response, appropriate denials for object substitution, no accessible orphaned exports and successful authorised group reporting. Re-test after changes to hierarchical entities, bulk export code, caching and delegated support tooling. The purpose of negative testing is not to collect 403 responses. It is to prove that every path producing a finance result applies the business’s actual authority model.

Sources and further reading

How Next Defence can help

Build an approved acceptance exercise around demonstrating an authorised analytics query and a rejected cross-tenant object substitution. Keep tenant-scoped response data, query identifiers and denied export paths with the acceptance record. Application Security & DevSecOps can help scope the tests and clarify who must authorise any live-system change.

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].