Compliance Mode vs Governance Mode: The One Setting That Matters
Object Lock has two modes. One can be overridden by an admin and one can't. Here's which one actually protects a distributor's backups.
If you store backups in Amazon S3 or an S3-compatible service, you'll run into a feature called Object Lock. It's one of the best tools for protecting backups from ransomware. But there's one setting inside it that decides whether it actually protects you: compliance mode vs governance mode.
The two modes in one sentence each
- Governance mode: Backups are locked, but users with a special permission can remove the lock or delete the file early.
- Compliance mode: Backups are locked, and nobody can remove the lock or shorten the retention until it expires. In AWS, that includes the account's root user.
Governance mode is a lock with a master key. Compliance mode is a time-lock safe.
flowchart LR
subgraph compliance["Compliance mode"]
direction TB
U1["Root or admin delete request"]
L1["Object Lock is on"]
R1{"Retention expired?"}
NO1["Delete refused"]
YES1["Delete allowed"]
U1 --> L1
L1 --> R1
R1 -->|"No, still inside the window"| NO1
R1 -->|"Yes, window is over"| YES1
end
subgraph governance["Governance mode"]
direction TB
U2["Admin with bypass permission"]
L2["Object Lock is on"]
OK2["Delete succeeds anyway"]
U2 --> L2
L2 --> OK2
end
classDef refused fill:#f8d7da,stroke:#842029,color:#5c1a1a
classDef allowed fill:#d4edda,stroke:#2f6f3e,color:#16321c
classDef warn fill:#fff3cd,stroke:#8a6d1b,color:#4a3b0b
class NO1 refused
class YES1 allowed
class OK2 warnSwipe sideways to see the whole diagram.
Why the difference matters against ransomware
Governance mode exists for good reasons. It lets admins fix mistakes, and it's handy for testing. But think about how a ransomware attack actually goes. The attacker's whole goal is to become an admin. Once they have admin-level credentials in your cloud account, the permission that bypasses governance mode is just one more thing they can use or grant themselves.
Compliance mode takes that option away. Delete requests are refused until the retention date, no matter whose credentials are used. That's the behavior you want when you assume the worst: that someone has your keys.
Other clouds have similar ideas under different names. Google Cloud Storage lets you set a retention policy on a bucket and then lock it with Bucket Lock, after which the policy can't be removed or shortened. Azure has locked immutability policies. Whatever the platform, look for the version that even an administrator can't undo.
An example: the override nobody noticed Illustrative composite
A 35-person distributor's MSP set up S3 backups with Object Lock for the ERP and the shared drive. The setup used governance mode so the MSP could clean up mistakes. The MSP's admin account had the bypass permission, as did an automation account that ran on the backup server.
During a tabletop exercise, the MSP walked through the scenario: an attacker compromises the backup server and grabs the automation account's keys. With the bypass permission, the attacker could delete every locked backup. On paper the backups were "locked," but in practice they were one stolen key away from gone.
They switched new backups to compliance mode with a 30-day retention, removed the bypass permission from the automation account, and kept a short governance-mode bucket only for testing. The extra storage cost was modest. The protection went from "depends on the keys" to "nobody can delete it for 30 days."
What to watch out for with compliance mode
Compliance mode is serious, so set it up thoughtfully:
- Pick retention carefully. You can't shorten it later. Too long, and you pay to store data you don't need. Too short, and clean backups may expire before you discover an attack. Many small businesses start in the 30–90 day range and adjust from there.
- Test in a sandbox first. Try it on a test bucket with a one-day retention so you see exactly how it behaves.
- Know the default. Check whether your bucket applies a default retention mode, and confirm it says compliance, not governance.
- Document it. Write down which buckets use which mode and why, so the next IT person doesn't have to guess.
Takeaway: For ransomware protection, use compliance mode, because a lock an admin can override is a lock an attacker can override.
Want this handled for you?
Carryl Technologies keeps standby copies of your website, ERP and executive email off your network, in two separate secure locations with 18 months of history. Our goal is to have you back up within minutes, and we guarantee it within 8 hours.