OneDrive Known Folder Move can automatically copy Desktop and Documents content into cloud storage. In enterprise setups, that content lands in SharePoint Online, where inherited permissions and administrator access can expose secrets far beyond the original user. The issue is not the file type alone, but the sync path and access model.
Why This Matters for Security Teams
OneDrive Known Folder Move looks like a convenience feature, but in enterprise Microsoft 365 estates it can turn a user desktop into a hidden ingress path for sensitive material. When Desktop and Documents are synced into SharePoint Online, the data stops being a local user problem and becomes an organisation-wide access and retention problem. That matters because secrets are rarely isolated to code. They show up in notes, exports, screenshots, spreadsheet tabs, and copied configuration files, then inherit broader permissions than the original endpoint ever had. NHIMG research shows 62% of secrets are duplicated across multiple locations, which makes sync-driven spread especially dangerous, and 44% of NHI tokens are already exposed in common collaboration platforms and code paths. See the Guide to the Secret Sprawl Challenge and the 2025 State of NHIs and Secrets in Cybersecurity for the broader pattern. The control failure is usually not the file itself, but the storage destination, permission inheritance, and downstream searchability. In practice, many security teams encounter secret exposure only after a SharePoint search, support case, or tenant audit has already surfaced the data, rather than through intentional data classification.How It Works in Practice
The exposure chain is simple: a user saves a secret to Desktop or Documents, OneDrive syncs that folder to the cloud, and SharePoint Online becomes the system of record for the copied content. From there, the risk expands through inherited permissions, sharing links, indexing, eDiscovery, administrator visibility, and downstream integrations. Microsoft documentation makes the sync path explicit, while identity guidance such as the OWASP Non-Human Identity Top 10 reinforces that secrets should be treated as portable credentials, not benign documents. The practical issue is that a token pasted into a text file no longer lives in a user-managed folder; it can now be copied, versioned, retained, searched, and accessed by roles that never needed it. That is why file-type detection alone is weak. A workable control model usually combines:- endpoint and DLP rules that block secrets from known sync folders,
- tenant policies that restrict auto-sync for unmanaged locations,
- classification and scanning of SharePoint content for credentials and tokens,
- short-lived or revocable secrets so leaked copies are less useful,
- RBAC review for SharePoint admins, eDiscovery roles, and delegated helpdesk access.
Common Variations and Edge Cases
Tighter sync and scanning controls often increase friction for users who depend on offline work, shared folders, or rapid document collaboration, so organisations must balance usability against secret containment. There is no universal standard for exactly where to draw that line, but current guidance suggests treating privileged content differently from ordinary productivity files. The main edge case is mixed-content documents. A spreadsheet may contain both harmless budget data and a pasted API key, which makes coarse file blocking too disruptive and pure content scanning too unreliable. Another edge case is administrator access: even if the original user has limited sharing, tenant admins, compliance staff, and delegated support roles may still retrieve synced content. That makes SharePoint not just a storage layer but an access amplification layer. See also the CI/CD pipeline exploitation case study and Reviewdog GitHub Action supply chain attack for how exposed credentials spread once they leave their original context. External guidance from the Anthropic report also underscores how quickly sensitive material can be operationalised once it becomes accessible. The hardest cases are regulated environments with broad retention rules, because retention can preserve secrets long after the original user has deleted the local copy.Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Secret rotation and exposure handling are central to synced credential risk. |
| NIST CSF 2.0 | PR.AC-4 | SharePoint access inheritance can widen privilege beyond intended users. |
| NIST AI RMF | null | Governance is needed where automation changes the access and retention risk surface. |
Assign ownership for sync-driven data exposure and monitor for secret leakage in cloud storage.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on May 16, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org