Skip to content
DekkoSecure
All articles

Security Insights · Cloud security · 8 min read

Is OneDrive Secure? Encryption, Keys and Sharing Explained

Is OneDrive secure? What Microsoft encrypts, who holds the keys, what Customer Key and Double Key Encryption change, and the OneDrive sharing settings to check.

OneDrive is where many people and organizations keep their everyday files. Sooner or later someone asks whether it is secure enough for contracts, HR records or client documents, and the honest answer depends on what you need protection from.

This guide explains what Microsoft encrypts in OneDrive and SharePoint, who holds the keys, what Customer Key, Double Key Encryption and Personal Vault change, and why sharing settings deserve attention first.

Is OneDrive secure?

For most everyday work, yes. OneDrive encrypts files in transit with TLS and at rest with a unique AES-256 key per file, and supports multifactor authentication and sharing controls. The caveat: by default Microsoft manages the keys, and its service decrypts files to run features such as search, so for highly sensitive files the question is who can decrypt.

How OneDrive and SharePoint encrypt files

In transit. Microsoft's page on data encryption in OneDrive and SharePoint says connections to OneDrive over the internet use TLS, and data moving between Microsoft datacenters is also encrypted.

At rest. BitLocker encrypts the disks, and per-file encryption adds a separate layer. Each file is split into chunks, each chunk is encrypted with its own AES-256 key, and every update gets its own key too. The chunk keys are kept in a separate content database, and Microsoft says the content, the keys and the storage credentials sit in physically separate stores, each unusable on its own. For OneDrive for home, Microsoft's support article on how OneDrive safeguards your data says each file has a unique AES-256 key, protected by master keys stored in Azure Key Vault.

Who holds the keys?

Microsoft's page on service encryption and key management says that by default Microsoft manages all cryptographic keys, including the root keys, for SharePoint Online and OneDrive for Business. Its encryption risks and protections table names the threats this addresses: stolen or improperly recycled disks, and attackers trying to read files as storage blobs without the keys.

Encryption at rest isn't meant to keep the service out, because the service needs to read files to work: Microsoft notes that Microsoft 365 uses the keys for eDiscovery, anti-malware and search indexing. That suits everyday productivity, but for highly sensitive files it means Microsoft's service can decrypt them, as well as your own users and admins.

Human access is controlled separately. Microsoft's Customer Lockbox documentation says no Microsoft personnel have ongoing permission to access customer content, and engineer access needs a second person's approval. With Customer Lockbox, your own approver must also agree before an engineer can access content during a support case. Microsoft states that Customer Lockbox doesn't cover data requests from law enforcement agencies or other third parties, which it says it attempts to redirect to the customer.

What Customer Key and Double Key Encryption change

Customer Key

With Customer Key, your organization supplies the root keys in Azure Key Vault and Microsoft manages all other keys. It encrypts only data at rest, and the service still uses the keys to run its features. Microsoft's risk table describes Customer Key as "designed as a compliance feature; not as a mitigation for any risk." The value it lists is meeting compliance obligations and being able to leave the service and revoke Microsoft's access. Microsoft calls it complementary to Customer Lockbox, which controls access by Microsoft personnel.

Double Key Encryption

Double Key Encryption (DKE) uses two keys: one in your control, served from a key service you host, and one stored in Microsoft Azure. Viewing protected content requires both, and Microsoft says DKE-encrypted data isn't accessible at rest to Microsoft 365 services. That changes who can decrypt.

Microsoft lists the trade-offs. SharePoint and OneDrive can't process DKE-encrypted files, so they can't be opened in Office for the web, and co-authoring, eDiscovery, data loss prevention and search don't work for them. Microsoft intends DKE for the most sensitive data with the strictest protection requirements, not for all of your data.

OneDrive for home and Personal Vault

Customer Key, DKE and Customer Lockbox are for organizations on work or school accounts, and each needs specific licenses. OneDrive for home relies on the default encryption plus account controls, including two-step verification for your Microsoft account.

Personal Vault, available on OneDrive Basic, Personal and Family plans, is a protected area that requires two-step verification to open. It locks after 20 minutes of inactivity on the web and 3 minutes on mobile, blocks sharing, and on Windows 10 PCs syncs to a BitLocker-encrypted area of the drive. It helps against someone using an unlocked device and against accidental sharing; Microsoft's documentation doesn't say it changes who manages the keys in the cloud.

The practical risk: sharing links and settings

Encryption doesn't help once a file is shared with the wrong person, which makes sharing settings the main practical risk. Microsoft's guide to sharing settings for SharePoint and OneDrive says Anyone links let whoever has the link open the file without authenticating. Forwarded links keep working, and you can't track who has access or who opened the file.

In work or school accounts, admins can limit external sharing to guests who sign in or enter a verification code, or turn it off. They can also:

  • Require Anyone links to expire within a set number of days, and make them view only.
  • Set the default link type to Specific people or Only people in your organization.
  • Make guest access expire automatically, and limit sharing to or block particular domains.

In OneDrive for home, you choose the link type each time. Microsoft's guide to sharing OneDrive files and folders says Specific people links work only for the people you name, and Microsoft 365 subscribers can add an expiration date and a password.

For work or school tenants, Microsoft Entra security defaults require all users to register for multifactor authentication, and Microsoft enables them on new tenants by default.

OneDrive security features compared

Each protection answers a different threat. The last column is what matters for sensitive files.

ProtectionWhat it protects againstWhat it doesn't change (who can decrypt)
TLS in transitInterception on the networkThe service receives the file and can decrypt it
BitLocker and per-file AES-256 at restStolen disks, and reading storage blobs without the keysMicrosoft manages the keys by default and the service uses them for its features
Multifactor authenticationSign-ins with a stolen passwordWho holds the keys
Sharing controlsOversharing and forwarded linksRecipients and the service can still read the file
Personal Vault (home)An unlocked device, and accidental sharingNot described as changing key management
Customer LockboxEngineer access to content without your approvalAutomated processing, and third-party data requests
Customer KeyCompliance needs for customer-controlled root keys; revoking access when you leaveThe service still uses your keys to run its features
Double Key EncryptionMicrosoft 365 services reading content at restIt does change who can decrypt, at the cost of web viewing, co-authoring and search

Is OneDrive secure enough for government and regulated data?

Microsoft's IRAP documentation lists OneDrive for Business and SharePoint Online among the Office 365 services in scope, with assessments covering data classified up to and including PROTECTED. Each organization is still responsible for having its own implementation assessed; our guide to the IRAP assessment explains what that involves.

An assessment confirms that controls are in place; it doesn't change who holds the keys. For legal privilege, health records or investigation material, the narrower question is whether the provider should be able to read the file at all. If not, the options are DKE, with its trade-offs, or a service built on zero-knowledge encryption, where files are encrypted end to end before they leave the device.

Where DekkoCORE fits

A practical approach is to keep Microsoft 365 for everyday work and use DekkoCORE for the most sensitive files and external exchanges, where the provider must not be able to read the content. Files are encrypted on the user's device with AES-256 keys before they're uploaded, and every file has its own key. DekkoCORE stores only ciphertext and never has the keys to open files, so not even DekkoSecure can read them. Keys are handled automatically in the background, with no HSMs, key servers or key ceremonies.

DekkoCORE is a standalone platform, not an add-on to another storage service, and supports single sign-on with Microsoft Entra ID. Shares can have expiry dates and be revoked instantly, and External Members see only the folders shared with them. DekkoCORE is IRAP assessed to PROTECTED, and customers choose hosting in Australia, the United States or Canada. Our guide to secure file sharing covers the wider options.

Common questions

Frequently Asked Questions

Is OneDrive safe for confidential documents?

For most business documents, its encryption, multifactor authentication and sharing controls are substantial protection. For files the provider must not be able to read, remember that Microsoft manages the keys by default.

Can Microsoft see my OneDrive files?

Microsoft's service holds the keys by default and uses them for features such as search and malware scanning. Microsoft says no engineer has standing access, and Customer Lockbox lets work or school customers approve any engineer access during support.

Is OneDrive end-to-end encrypted?

Not in the usual sense. Microsoft documents encryption in transit and at rest with keys it manages by default, so the service can decrypt files. Double Key Encryption comes closer, because protected content isn't accessible at rest to Microsoft 365 services.

What does OneDrive Personal Vault protect?

It adds two-step verification to open, automatic locking and blocked sharing, and on Windows 10 PCs keeps synced files in a BitLocker-encrypted area. It is for OneDrive Basic, Personal and Family plans.

Are OneDrive "Anyone" links safe?

Anyone who has the link can open the file without signing in, including people it was forwarded to, and you can't track who used it. For sensitive files, use Specific people links with an expiry date.

Like to learn more?

Talk to our team about protecting your most sensitive files and evidence.