A role catalog rarely gives a complete view of data security. A customer table may be closed to an ordinary employee yet remain available through a BI report, service account, API, object-storage copy, or scheduled transfer to a contractor. A useful audit therefore does more than ask who has a role. It shows who can actually obtain a named dataset, through which route, and what evidence supports that conclusion.
The assessment should be commissioned around selected data flows. Its central result is a testable connection between a dataset, its owner, approved consumers, technical routes, controls, and observed tests. That focus separates current access and transfer from an audit of deletion and recovery in a personal-data system. Retention remains important, but the subject here is the live path used to read, transform, and export data.
Start with a data flow, not a system list
An asset list is necessary, but it does not define a sufficient scope. One business dataset often passes through an application, API, queue, database, analytics model, and file export. Identities, roles, and control owners can change at every transition. If the brief only names platforms, an assessor can review each configuration separately and miss a route created at the boundary between them.
For every selected flow, define its start and end: where the data enters, where it is transformed, who consumes it, and when it leaves the managed environment. Record the business purpose, data class, permitted recipients, and time period under review. The buyer should also state the conclusion it needs: confirmation of an approved route, discovery of unintended routes, or verification after a specific change.
The boundary often includes more than production applications. Storage services, BI platforms, analysts’ notebooks, job queues, file gateways, fallback integrations, and manual workarounds can all matter. A source code security audit can explain transformations and API logic, but it does not replace a review of deployed permissions, scheduled exports, and actual infrastructure access.
Map datasets, owners, consumers, and machine identities
A minimum inventory records the dataset name, purpose, classification, owner, source system, copies, and consumers. Users, groups, service accounts, integration tokens, and contractors should be separate entries. Every entry needs an accountable person who can confirm the business need. An assessor may identify a technical capability without an owner, but the buyer will still lack someone authorized to decide whether that capability is acceptable.
Automated discovery and classification are useful sources of hypotheses, not proof of completeness. A scanner may use sampling, lack a decryption key, exclude a region, or fail to support a format. A lineage catalog also has boundaries: dynamic queries, unsupported sources, and hidden transformations can break the graph. The inventory should therefore distinguish discovered, not assessed, inaccessible, excluded, and the reason for each status.
The strongest reconciliation combines three views: the business register, platform configuration, and observed use. Any mismatch is itself a finding. For example, the owner says a data mart is only for finance, the access group also contains support engineers, and logs show a service job reading it regularly. The audit should preserve all three facts rather than treating any one of them as the full truth.
Define allowed and forbidden routes before testing
Build an expected actor-resource-action model before executing tests. An actor may be a person, group, service, or supplier; a resource may be a table, object, report, or API object; an action may be read, bulk retrieval, download, transfer, or modification. For a sensitive flow, write both positive examples and negative rules. Support may view one record during an active case but must not list all customers; an analytics service may read a de-identified mart but must not query the source table.
Test policy at its enforcement points. These may include the API gateway, database query layer, BI row filter, bucket permission, export function, and recipient-domain check. The same person can receive different outcomes through different points. An IAM role or spreadsheet entry therefore does not establish how the complete chain behaves.
This agreed model becomes the acceptance basis. It identifies test roles, permitted actions, the expected denial, and required evidence in advance. Where APIs or applications are in scope, the pentest scope builder can help define the technical test surface and keep it distinct from interviews and process analysis.
Test actual access, not only assigned roles
Every route needs positive and negative tests. A positive test confirms that an approved consumer receives the intended volume and fields. A negative test uses a valid account without the required role, a different tenant, or an object outside the actor’s range and confirms denial. API tests should repeat read, update, delete, list, and bulk operations where present: correct control on one object does not prove that a collection or batch endpoint is protected the same way.
The assessment must cover human and machine identities. A service account sometimes has broader privileges than the application uses during its normal workflow. The assessor compares the stated purpose of the process with its token, observed queries, and accessible tables. If a safe test cannot be run, the result is an explicit limitation rather than a pass.
Logs can show that a control executed and that an event is investigable, but a missing event does not establish that access was impossible. First verify that the test action creates a record with the actor, resource, action, outcome, and time. Then use that record as evidence. For a high-risk route, link the configuration, test response, and log entry for the same request.
Trace exports and contractors as separate control boundaries
An export creates another control boundary. A CSV button, scheduled report, bucket copy, SFTP transfer, email attachment, shared drive, and analyst notebook can expose the same data through different routes. Record the initiator, recipient, authorization, included fields, frequency, destination, and post-transfer access control for each one. This is a review of current transfer; later deletion policy remains a separate engagement.
Bulk actions and bypasses deserve specific tests. A user interface may display only one record while the list API returns thousands. A BI view may hide a column on screen yet include it in a download. A supplier may receive a public-style shared link although the approved design required a named account. Test the resulting artifact: its fields, destination ACL, link lifetime, and receipt event.
For external recipients, the buyer must name an exchange owner and the point where its technical control ends. An audit can show that a file reached an approved account and is available only to the agreed recipients. Without separate access, it cannot establish every downstream copy made inside the supplier. The report should make that boundary visible.
Use a route-control-evidence matrix for acceptance
The central acceptance artifact links each route to its control and evidence. It should let the data owner make a decision without reading every technical log and let the remediation team reproduce the test. A passed status belongs only where expected behavior was compared with observed behavior. Not assessed and blocked should remain distinct from no finding.
Scroll sideways to compare
| Data route | Expected control | Test | Evidence | Owner and status |
|---|---|---|---|---|
| CRM API → BI mart | Service reads only approved fields | Request with normal token and token lacking scope | Scope configuration, API responses, log entry | CRM owner; pass/defect |
| BI mart → CSV | Export limited to finance group | Download with two roles and compare fields | Test files, group membership, export log | Data owner; pass/defect |
| CSV → supplier | Named recipient and restricted link | Check ACL, expiry, and outsider access | ACL capture, negative test, receipt event | Exchange owner; pass/limitation |
| Database → service job | Least privilege and scheduled volume | Run in test window; query unrelated table | Policy, SQL audit, denial result | Platform owner; pass/defect |
The statement of work should require these columns, define evidence redaction, specify retesting, and explain how disputed results are handled. A sample penetration-test report illustrates a usable technical evidence package. For a data audit, add the dataset owner, the business decision, and the status of every route.
Hypothetical example: a quarterly supplier export
Suppose finance sends a payment list to a supplier every quarter. The register identifies a de-identified mart, but the scheduled export queries the source table through an old service account. It saves a file to a bucket and sends a link to two named supplier employees. This is a hypothetical illustration of the method, not a client case.
- SourceSource payment table and the approved de-identified mart
- ProcessingA service job selects fields and creates a CSV file
- TransferThe file enters a restricted bucket with a named-recipient link
- EvidencePermission tests, file contents, and logs are tied to an owner
The assessor first compares the job query with the approved mart, then tests the service identity’s least privilege and the output fields. Next come the approved and outsider access tests, link expiry, and logging checks. If the job can read the source table contrary to the agreed access model, that is a separate defect even when the final file ACL is correct: a destination control does not cancel excessive source access.
Acceptance does not end with the phrase access is restricted. The finance owner confirms permitted fields and recipients, the platform owner removes the excess privilege, and the assessor reruns the negative test. A downstream stage inside the supplier that is unavailable to the assessor remains a stated limitation with a reason.
Specify the deliverables and the limit of assurance
The brief should identify flows, test roles and service accounts, test windows, permitted actions, treatment of sensitive evidence, and status criteria. Deliverables should include the current route map, dataset and owner register, positive and negative test results, the matrix, unassessed areas, and a retest plan. Agree separately which configurations and logs may be retained and which must be redacted.
The resulting assurance applies only to the selected period, datasets, identities, and routes. Sampling is not a complete review; no detected sensitive data does not mean none exists; a correct role does not exclude an unknown export. The legal basis for a transfer depends on jurisdiction, contract, and processing context. A technical report should give facts to the owner and counsel rather than present a universal legal conclusion.
If the leading risk lies in an API or web application, Pentest.red can help define a testable technical boundary and run controlled access tests. If the main issue is the data catalog, organizational approvals, or a supplier environment that is not accessible, the buyer first needs an accountable data owner and the appropriate audit process; penetration testing covers only the agreed technical portion.
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.