← All articles

ARTICLE · DATA LEAK ACTIVE TESTING

Data leakage to personal cloud, Teams and Slack: what to test

  • By channel
  • 6 min read
  • Updated
Cloud of interconnected blue particles, an image of data flowing to the cloudFour everyday paths

The short version

  • Four paths to test: personal accounts, external shares, guests in Teams or Slack Connect, and public links.
  • Push a synthetic file down each one, then look for it in the audit logs, the proxy and the DLP console: refused, flagged, and how fast?

An analyst on a managed laptop opens a personal Google account in a second browser profile and drops a forecast into Drive to finish at home. Nobody meant any harm, and nothing fires: to the proxy, this kind of data leakage to personal cloud is just an encrypted request to an allowed domain. Teams guests, Slack Connect channels and open links leak just as quietly.

Four egress paths your users take every week

Diagram · four egress paths

Four everyday egress pathsA sensitive file can leave the organisation by four paths: a personal account where only the tenant changes, external sharing to an outside address, a guest whose access persists and a public link with no authentication. All of them travel over legitimate, encrypted channels.Personal accountSame domain, other accountExternal sharingOutside addressGuestsAccess that persistsPublic linkNo authenticationSensitive fileLegitimate, encrypted channels

Uploading to a personal account

The personal Google account sits one click away from the Workspace one. Same domain, same certificate; only the account changes. Personal OneDrive runs on its own endpoints, such as onedrive.live.com, but another organisation’s Microsoft 365 tenant sits behind login.microsoftonline.com and sharepoint.com, just like yours. A control that decides by domain lets the Google account and the outside tenant through. The sync client does the same outside the browser: add a second account and the folder copies itself.

External sharing from the collaboration tool

A file in a team space goes to a contractor, a former colleague, or the user’s own Gmail address. That last one looks like any other work share.

Teams guests and Slack Connect channels

A Teams guest, or another company in a Slack Connect channel, added for a three-month project can still be there a year later if nobody reviews the list. They see everything posted, including attachments nobody would have sent them by email.

Public links

An “anyone with the link” share is a document published on the Internet, with no sign-in and often no expiry date. Paste it into a ticket or a forwarded email and nobody can say who has it.

Why these leaks slip past conventional controls

A network DLP or a CASB with no TLS inspection and no way to tell tenants apart never sees a personal upload (see the blind spots of TLS inspection). MITRE ATT&CK files it under T1567.002, Exfiltration to Cloud Storage.

Content rules lean on classification, so a renamed, zipped or unlabelled file often trips nothing. Sharing settings are split between team owners, site admins and tenant defaults, and they disagree: the tenant says no, a legacy site says yes. A policy left in audit mode raises no alert, and a forgotten exception or an uncovered connector leaves no trace at all: the textbook case of DLP false negatives.

To find what a sharing test left behind, filter the Purview unified audit log on the test site and window. An anonymous link appears as AnonymousLinkCreated; a share to a named address, depending on the sharing mode, as SharingInvitationCreated or SecureLinkCreated then AddedToSecureLink. On Slack, filter the Audit Logs API (Enterprise Grid) on the file_shared, file_public_link_created and file_downloaded actions.

Three exits in one weekend

On Friday a sales manager drops the price list and part of the customer file into her personal storage, then shares the folder with her private address, just in case. On Monday she posts the final proposal in a Slack channel shared with a partner, where a guest from an old project is still a member.

None of it was malicious. Can you answer these?

  1. Was the upload to the personal account blocked, or at least logged with the file name?
  2. Did sharing to a private address trigger an alert or a refusal?
  3. Could the forgotten guest open the attachment? Does anyone know?

If the answer to the third question is a shrug, that former-project guest may well have the price list. Slack’s audit log would at least show a file_downloaded if they took a copy.

Personal cloud, Teams and Slack: checks to run

Run every row with synthetic data shaped like your sensitive files: a fake CRM export, a dummy price list.

Channel What to check Expected result
Personal storage from the browser Upload a sensitive decoy to a personal account on the same service Block or alert that tells your tenant from a personal one
Sync client Add a personal or third-party account to the sync client, then copy a decoy into its folder Account refused by policy (OneDrive: DisablePersonalSync, AllowTenantList; Drive for desktop: AllowedAccountPattern); failing that, an Endpoint DLP event naming the file
External sharing Share a labelled document with a Gmail or Outlook.com address Refused, or a justification prompt that gets logged
Guests and shared channels Post a decoy in a channel that includes a guest Rule applied to message and attachment (Purview DLP for Teams; Slack’s native DLP on Enterprise Grid, or a CASB via API, for Slack)
Public links Create an anonymous link to sensitive content Link refused or set to expire; owner alerted
Simple workarounds Same decoy renamed, compressed, pasted as text Still detected

Don’t skip the last row: renaming the file or pasting the text into a message is exactly what someone in a hurry does. Note the time of each attempt too; an alert that turns up three days later is not worth much. For the cloud and SaaS side, the CASB and SaaS DLP guide sets out the method.

Illustrative example, made-up figures: ten decoys uploaded to a personal Google Drive. Ten attempted, seven transmitted, seven collected in the test account. The proxy logged three refusals, which accounts for the missing three; for the seven that got through, the DLP console shows no alert. Three likely causes, each checkable: a rule in audit mode logs a match in Purview’s Activity explorer but blocks nothing; the decoy carries no label; or the proxy rule is keyed on drive.google.com with no tenant condition, so all seven show as allowed.

Before any tooling, try two sign-ins from a managed laptop. A personal Gmail account should be refused if your proxy inserts the X-GoogApps-Allowed-Domains header. An account from another Microsoft 365 tenant should be refused by Tenant Restrictions v2 (or the Restrict-Access-To-Tenants header). Each sign-in that works tells you which mechanism is missing or bypassed.

Next step

Drive uploads, from our demo to your network

Of the four paths, only the Drive upload is among the eight channels Enforcis tests; Teams, Slack and public links are yours to check by hand. The 30-minute demo shows a campaign across those channels on pre-built results, with nothing to install and no access to your environment. The POC, quick and usually free, runs a standard scenario with synthetic data from a machine on your network, through your real egress controls; a paid pilot covers a limited part of your production.

Fixes for personal cloud uploads and guest access

The fixes, in the order we would tackle them:

  • Allow approved tenants, not domains: Tenant Restrictions v2 in Microsoft Entra (or the older Restrict-Access-To-Tenants header), and the X-GoogApps-Allowed-Domains header for Google. Both headers need a proxy that inspects TLS, so an unmanaged device or traffic that skips the proxy gets round them. On managed devices, Tenant Restrictions v2 also works without a proxy, through Global Secure Access or Windows Group Policy.
  • Turn off “anyone with the link” sharing by default, or enforce a short expiry.
  • Review guests with Entra ID access reviews and switch on guest access expiration in SharePoint and OneDrive; in Slack, require admin approval for new Slack Connect channels.
  • Align the sharing settings of legacy sites and teams with the global policy.
  • Move validated rules out of audit mode, one by one.
  • Rerun the same decoy after each fix.

Lock everything down and people move to tools you see even less of; that is often where shadow IT begins. Better to know, from the logs, which of the four paths is still open, and to whom.

Frequently asked questions

Is a leak to a personal cloud necessarily malicious?

Rarely. The person doing it usually thinks they are being helpful, so an acceptable use policy will not stop them. You need a technical control, and a test that shows it works.

Are the native DLP features of Microsoft 365 or Google Workspace enough?

They cover some cases, if they are configured and enforced. They see little outside their own ecosystem, such as an upload to a competing service from the browser. A decoy uploaded to a personal Google account tells you whether that case is covered.

Can these scenarios be tested in production without risk?

For the data, yes: the payload is synthetic, never real business data. What remains is operational: a burst of alerts at the SOC or MSSP and a brief load on the test machines, which we agree with you in writing (time slots, named machines, who to warn).

How often should you retest?

After any change to policy, licensing or tooling. Between tests, pull the list of anonymous links and external guests; new teams and sites pick up defaults nobody has looked at.

Personal Drive uploads against your egress controls

We send synthetic decoys to Google Drive and our other test channels through your real egress controls, measure what was attempted, transmitted and collected, then help you put the fixes in order.