How do company files end up public?
Google Drive files can be shared as “Anyone with the link”. Anyone on the internet who has that link can open the file without signing in Google Drive Help. If the link is posted on a public page, a forum or a code repository, search engines can find it. Published Sites and Forms are public by design, and old ones are easy to forget.
How does this check work?
- It reads your domain’s mail (MX) records. Mail handled by Google usually means Google Workspace.
- It builds Google searches limited to Google’s own services, for your domain and for email addresses on it.
- It adds GitHub code searches for shared document links, and Wayback Machine searches for old
/a/yourdomain/addresses used by legacy Google Sites and Docs.
The method follows Aman Bhuiyan’s write-up for bug bounty hunters Aman Bhuiyan, Medium (28 Jun 2026). For the wider set of operators, see our dorking reference.
How do I close the gaps?
- Fix each file: set sharing back to Restricted. Business and Education accounts show an “External” badge on files open outside the organisation Google Drive Help.
- Change the default: admins can limit or block sharing outside the organisation for all users or by group Google Workspace Admin Help.
- Check who looked: Drive log events record changes to a file’s visibility, which admins can search in the audit and investigation tool Google Workspace Admin Help.
- Rotate secrets: if a file held passwords or keys, change them, even after the file is closed.