The essentials in 30 seconds
- A CASB controls SaaS through an API, after the fact, or in inline mode, during the transaction: two different promises.
- An “active” policy rests on a chain of conditions: one link gives way and the rule never applies, with no alert.
- The test crosses applications, user actions and contexts with synthetic data, then is replayed, because SaaS changes without you.
A CASB (Cloud Access Security Broker) applies DLP rules to SaaS applications, either through an API (analysis of data already stored) or in inline mode (control of the flow at the moment it is sent). Testing a CASB DLP means checking, with synthetic data, that each application, each mode and each user action does trigger the expected block or alert. Without this test, you know what is configured, not what is actually covered.
Two modes, two different promises
Most disappointments around CASB come from confusing its deployment modes. They do not protect the same thing, and they are not tested the same way.
Diagram · when the control acts
| Criterion | API mode | Inline mode (forward or reverse proxy) |
|---|---|---|
| When the control acts | After the fact, once the data is stored in the SaaS application | During the transaction, before the data leaves the workstation or reaches the application |
| Blocking capability | Remediation after the fact (quarantine, removal of a share) | Real-time blocking possible |
| Applications covered | Only the SaaS applications whose API is connected to the CASB | Any traffic that actually passes through the proxy |
| Typical blind spot | Analysis latency, API quota limits, file types not inspected | Workstations or networks that bypass the proxy, applications that pin their certificates, unmanaged devices |
| Question to test | How long does the data remain exposed before remediation? | Is the flow really intercepted on every path? |
What the console does not tell you
A CASB policy shown as “active” in the console rests on a chain of conditions. It only takes one link to give way for the rule never to apply. The most common breaks:
- The API connector has lost its rights after a token renewal or a change of administrator on the SaaS side.
- The instance is not the right one: the company protects its official tenant, but not the personal instance or a partner’s instance opened in the same browser.
- The inline proxy does not see everything: a roaming workstation outside the tunnel, a desktop application that ignores proxy settings, a personal phone.
- The detection engine does not recognise the content: compressed file, password-protected document, image containing text, proprietary business format.
- The action is not covered: the rule targets uploads, but not copy and paste into a web form, nor the creation of an external sharing link.
These failures belong to the same family as those described in our article on DLP false negatives: the rule exists, it does not fire, and nobody is told.
Building a SaaS coverage matrix
Testing a CASB is not about launching a test file and seeing whether an alert comes up. It is about methodically crossing three dimensions.
1. The applications
Start from the real inventory, not the contractual list. Classify SaaS applications into three groups: sanctioned (email, storage, CRM, collaboration tools), tolerated (applications used without formal approval) and unauthorised. The CASB must treat each group differently, and each treatment must be verified. For the usage that the IT department does not see, the article on shadow IT and the browser details the paths to inventory.
2. User actions
- uploading a file;
- pasting text into a field or a message;
- creating a public or external sharing link;
- synchronisation by a desktop client;
- downloading to an unmanaged device.
3. The contexts
Managed workstation in the office, managed workstation working from home, personal device, alternative browser, personal tenant of the same application. A rule that works in a single context covers only a fraction.
The product of these three dimensions quickly gives several hundred cases. That is normal. Prioritise by the sensitivity of the data actually present in each application and by likelihood of use.
A concrete scenario: a customer spreadsheet to cloud storage
Take a mid-sized company (ETI) whose policy prohibits files containing customer data from leaving for unsanctioned storage. The test runs as follows:
- Prepare a decoy: a spreadsheet of synthetic data, realistic in format (names, fictitious IBANs in a valid format, contract numbers), marked with a fingerprint that only you recognise. The method is described in the article on synthetic data in production.
- Replay the action on the sanctioned tenant, then on a personal instance of the same application, then on an unauthorised application.
- Vary the context: from the corporate network, then outside the tunnel.
- Vary the form: raw file, compressed file, pasted content.
- Record three results per case: blocked or not, alert generated or not, delay between the action and the reaction.
The most instructive result is rarely “everything is blocked” or “nothing is blocked”. It is the line where the official tenant is protected and the personal instance is not. Or the one where the alert exists but reaches the SOC hours later, with nobody handling it. The link with the detection chain is developed in the article detecting exfiltration on the SOC side.
Next step
Does your CASB really cover every application?
A 30-minute guided demo, on pre-built result sets: the campaign across the 8 channels covered, the report and its detail, nothing to install. The POC then replays one standard scenario with synthetic data, from a representative machine in your network, through your real egress controls. What actually gets out through your egress paths is what the pilot shows you.
Checklist before declaring a SaaS application “covered”
- The control mode (API, inline, both) is documented for this application.
- The API connector has been verified as working recently, not only at installation.
- Unofficial instances of the same application are distinguished and handled.
- The five user actions listed above have been tested.
- At least one context outside the corporate network has been tested.
- The remediation delay in API mode is measured and judged acceptable.
- Alerts arrive in the tool where the SOC actually works.
- The test is replayed after every major change (new application, CASB update, tenant evolution).
Why a one-off test is not enough
SaaS changes without you. The vendor adds a sharing feature, modifies an API, launches an AI assistant feature that opens a new channel (see Generative AI and data leakage). Your CASB is not necessarily informed, or not at the same pace. Coverage verified in January may have degraded by April without any configuration having changed on your side. Only regular replay makes this drift visible, and makes it possible to track a posture over time rather than a snapshot.
This test is part of a broader data exfiltration testing approach, which also covers the endpoint, the network and email.
Frequently asked questions
Can a CASB’s API mode block a leak?
Not in the strict sense. It acts on data already present in the application: removal of a share, quarantine, alert. It reduces the exposure time, it does not prevent it. Real-time blocking is a matter for inline mode.
Do you need to test with real sensitive data?
No. Synthetic data in a realistic format is enough to trigger the detection engines, and it eliminates any risk of a real leak during the test.
How often should a CASB be retested?
At a minimum after every significant change on the SaaS side or the CASB side, and ideally continuously on the priority scenarios, because applications evolve without notice.
Does the CASB replace endpoint DLP?
No. It covers flows to cloud applications, not USB sticks, printing or non-SaaS network channels. The two complement each other and are tested separately.

