EOXLABS designs backups to survive an attacker who already controls production. That takes three properties: copies that no production credential can delete or overwrite, a signal that notices mass encryption before it reaches every retained version, and restores rehearsed often enough that their duration is a measured number rather than a hope.
Why do attackers go after backups first?
A working backup turns a ransom demand into an outage. Attackers know it. The #StopRansomware Guide, revised in September 2023 by CISA with the FBI and NSA as co-authors, says so directly:
It is important that backups are maintained offline, as many ransomware variants attempt to find and subsequently delete or encrypt accessible backups to make restoration impossible unless the ransom is paid.
The same guide lists built-in Windows tools such as vssadmin.exe and wbadmin.exe, then adds: "Misuse of these tools is a common ransomware technique to inhibit system recovery." The design consequence is blunt. Anything reachable with production's credentials sits inside the blast radius. A copy that the application server can delete is a second copy of production, not a backup.
What does immutability actually guarantee?
WORM storage (write once, read many) means an object, once written, cannot be overwritten or deleted until its retention ends. The question that matters is who can end retention early.
| Option | What it locks | Who can remove protection early | Notes |
|---|---|---|---|
| Amazon S3 Object Lock, compliance mode | Each object version | No user, including the account root user; AWS says the only way is to delete the account | Needs S3 Versioning; retention can be extended, never shortened |
| S3 Object Lock, governance mode | Each object version | Users with s3:BypassGovernanceRetention who send the bypass header | The S3 console sends that header by default |
| Cloudflare R2 bucket locks | Objects matching a prefix rule, by age, by date or indefinitely | Anyone who can edit the bucket's configuration can delete the rule from the dashboard, Wrangler or the API | Up to 1,000 rules; the longest retention wins; locks override lifecycle rules |
| Offline media | Whatever was written | Whoever holds the media | Physical custody is the control; slowest to restore |
R2 bucket locks behave closer to governance mode than to compliance mode. The protection lives in a bucket configuration that an account administrator can change, and the documentation describes no setting that stops that. This is workable if the design accounts for it: the credential that can edit bucket configuration must not exist anywhere production can reach. Where a contract requires that nobody can shorten retention, S3 compliance mode is the stronger primitive, with the matching cost that a mistaken retention period cannot be undone either.
CISA's guide adds its own caution: "Use immutable storage with caution as it does not meet compliance criteria for certain regulations and misconfiguration can impose significant cost." One concrete conflict: a deletion obligation cannot be met for a locked object until its lock expires. Whether that is acceptable is for the client's compliance owner to decide, not the backup design.
How should credentials and failure domains be split?
- Writer token. The backup job holds an R2 token with Object Read & Write, scoped to the backup bucket. Under R2's token permissions, editing bucket configuration, lock rules included, needs a separate Admin permission.
- New keys only. Every backup lands under a new key, built from a timestamp or content hash. A lock blocks overwrites of protected keys, so a writer that only adds keys never needs more.
- Admin outside automation. The credential that can change lock rules is held by named people, outside every CI pipeline and production secret store, and used under two-person review.
- Pull where possible. If the backup system pulls with a read-only credential, production holds no credential for the backup store at all.
- A second failure domain. A second copy lives in a different provider account. CISA suggests a multi-cloud approach for cloud-to-cloud backups "in case all accounts under the same vendor are impacted."
- Watch the watchers. Any change to a lock rule raises an alert from a log that production cannot edit.
One risk remains: a compromised writer can still add junk, and locked junk cannot be deleted until its retention ends. Per-prefix retention and storage-growth alerts keep that a cost problem, not a recovery problem. Encrypting backups under keys the attacker cannot reach is its own design question, covered in our note on envelope encryption for OAuth tokens.
How does entropy analysis spot mass encryption?
Shannon entropy over a file's bytes runs from 0 bits per byte (one repeated value) to 8 (every byte value equally likely). Good ciphertext sits at the top of that range.
export function shannonEntropy(bytes: Uint8Array): number {
if (bytes.length === 0) return 0;
const counts = new Uint32Array(256);
for (const b of bytes) counts[b]++;
let h = 0;
for (const c of counts) {
if (c === 0) continue;
const p = c / bytes.length;
h -= p * Math.log2(p);
}
return h; // bits per byte, 0 to 8
}
The trouble is that a lot of ordinary data already sits near 8. Pont, Arief and Hernandez-Castro tested randomness thresholds from published anti-ransomware work against 84,327 image, compressed and encrypted files and found false positive rates often above 50%, and above 90% on several occasions. They note that a JPEG typically measures 7.8 or higher. Compressed archives and files a user encrypted on purpose look the same. The paper also cites work showing ransomware can evade entropy checks with Base64 encoding or partial encryption.
So one file's entropy is never a verdict. The signals that hold up are changes:
- The entropy delta between the previous and current version of the same object, not its absolute value.
- Content that no longer matches its type, such as a PDF whose first bytes are no longer
%PDF, or a.docxthat no longer opens as a ZIP container. - The rate at which one principal rewrites objects, compared with its own baseline.
- Bulk renames and unfamiliar new extensions.
An alert pauses retention expiry and pages a person. It never deletes anything. BASTION, the EOXLABS immutable backup product listed on the products page, applies two of these ideas: entropy analysis flags mass-encryption patterns early, and snapshots are write-once within retention. It is designed for HIPAA-aligned deployments.
What do RPO and RTO mean once backups are immutable?
NIST SP 800-34 Rev. 1 defines the RPO as "the point in time, prior to a disruption or system outage, to which mission/business process data can be recovered", and the RTO as the maximum time a system resource can stay unavailable before the impact becomes unacceptable.
Immutability adds a third number: retention. Snapshot frequency sets the RPO. Retention sets how far back a clean copy can still exist. If an intruder stays quiet longer than the retention window, every retained copy may already carry the intruder's changes. Retention must exceed the time to detect plus the time to investigate, with margin. It is not free: longer retention costs storage, and locked data cannot leave early.
How do you know a restore will work?
CISA's guide asks for regular tests of backup availability and integrity. It also warns about the malware that delivered the attack: "Care must be taken to identify such dropper malware before rebuilding from backups to prevent continuing compromises." A restore drill that answers both looks like this:
- Restore into an isolated account with no network route to production.
- Verify checksums, then open and parse a sample of files. A checksum proves the copy matches what was written, not that what was written was clean.
- Scan the restored systems for the persistence the attacker may have left behind.
- Time the drill end to end. The measured duration is the real RTO; compare it with the target.
- Rotate who runs it, so the runbook works without its author, and record the result in the audit log.
These patterns sit inside security and resilience engineering at EOXLABS and build on R2 object storage. They matter most where records cannot be recreated, as in healthcare and cybersecurity. For how the same primitives carry across sectors, read one engineering company, many industries, or browse the engineering index.
— DL