Resources /
Blog

Ransomware Backup Strategy for Salesforce: Scenario and Restore Steps

Submit your details to get a book

8
Min Read
Resources /
Blog

Ransomware Backup Strategy for Salesforce: Scenario and Restore Steps

Download

Submit your details to get a book

8
Min Read
Shield and padlock in an orbit ring linked to key and ID tiles, illustrating a ransomware backup strategy for Salesforce
Shield and padlock in an orbit ring linked to key and ID tiles, illustrating a ransomware backup strategy for Salesforce

A ransomware backup strategy for Salesforce has to plan for an attacker with API access who copies your data and then damages what's left. It keeps encrypted, tested copies of your data and metadata somewhere those credentials can't reach.

We'll walk through one scenario, a compromised integration user, for the admins, security teams and data owners who have to answer for recovery. The steps come from CISA's ransomware guidance, mapped onto Salesforce settings and Flosum Backup & Archive.

What does a ransomware attack mean for a Salesforce org?

CISA's #StopRansomware Guide starts with the classic case: "Ransomware is a form of malware designed to encrypt files on a device, rendering them and the systems that rely on them unusable." The guide calls adding data theft and leak threats "double extortion."

NIST's ransomware profile, revised in June 2026, describes the same two moves. Attackers encrypt data for ransom, and they may also steal it and ask for more to keep it private.

Some actors, CISA notes, threaten to release stolen data "as their sole form of extortion without employing ransomware." So plan for API exports and for deleted or overwritten records.

How could a compromised integration user lead to a ransom demand?

An integration user is the service account another system logs in as to call the Salesforce API. Our API integration security post recommends giving it a dedicated integration user license rather than a full one.

Google's threat intelligence team (GTIG) wrote up a real case in August 2025. A group it tracks as UNC6395 took stolen OAuth tokens from Salesloft Drift and used them to get into targeted Salesforce orgs.

The actor "systematically exported large volumes of data from numerous corporate Salesforce instances," GTIG wrote. It queried Cases, Accounts, Users and Opportunities, then went looking for secrets like AWS keys.

It deleted its query jobs too, though Google says the logs weren't affected. GTIG describes theft, not encrypted records.

A hypothetical scenario

That same access could end in a ransom demand. What follows is our own illustration, not a reported incident.

  1. An attacker steals the OAuth token of a middleware integration user that can read and edit Accounts, Contacts and Cases.
  2. From an IP address the integration has never used, they run queries and export those objects.
  3. They mass-update or delete the records the integration user can edit, then look for any backup the same credentials can open.
  4. A ransom note arrives, demanding payment to stop a leak and to hand back clean data.

Which Salesforce settings limit an integration user?

We pulled these settings from GTIG's Drift advice, CISA's guide and our integration security post. The table shows where each lives and what it limits.

ControlWhere it livesWhat it limits
Dedicated integration user licenseUser recordKeeps service accounts off full Salesforce licenses
API Enabled granted by permission setPermission sets, not profilesWhich users can call the API at all
Minimum OAuth scopesConnected app settingsWhat a stolen token can reach; avoid full access
IP Relaxation set to enforce IP restrictionsConnected app policiesToken use from outside trusted networks
Login IP rangesProfileLogins from outside trusted networks
Session timeoutSession SettingsHow long a stolen session stays valid
Least-privilege object accessPermission sets and permission set groupsWhich records the integration can read, change or delete

Take API Enabled off profiles. GTIG says to grant it to authorized users through a permission set, keep connected app scopes minimal and avoid full access.

GTIG advises setting the connected app's IP Relaxation policy to enforce IP restrictions. It also advises profile login IP ranges and shorter timeouts in Session Settings.

CISA's guide says to "Apply the principle of least privilege to all systems and services" and to audit accounts every quarter. Our permission sprawl post builds that in Salesforce out of minimum access profiles and permission sets.

How do you spot a compromised integration user early?

Our Event Monitoring guide lists what it captures: logins, API calls, report exports and URI access. Logs last one day on the free tier, up to a year paid.

After Drift, GTIG told customers to go through Event Monitoring for the integration's connection user. It also pointed them to UniqueQuery events, which record the SOQL queries a user ran.

Learn what normal activity looks like for each integration, then alert on export volumes and API calls from IP addresses it hasn't used before. CISA's guide also says to enable logging on all resources and alert on abnormal usage.

How do you protect backups of Salesforce data from ransomware?

CISA's first backup step reads: "Maintain offline, encrypted backups of critical data, and regularly test the availability and integrity of backups in a disaster recovery scenario". Many variants try to delete or encrypt whatever backups they can reach.

In the cloud, CISA says to back up often. It also recommends offline or cloud-to-cloud copies, delete protection or object lock, and versioning so you keep multiple variants of stored objects.

CISA adds a caution: "Use immutable storage with caution as it does not meet compliance criteria for certain regulations and misconfiguration can impose significant cost." Check retention locks with compliance first.

Start with what the integration user's token can reach. If it can open, delete or overwrite a backup, that backup won't survive the attack above.

See our posts on the 3-2-1 backup rule and immutable data backups for the general patterns. Metadata needs a copy too; see backing up metadata.

What Flosum Backup & Archive provides

Flosum Backup & Archive runs in Flosum's cloud or in your own cloud. Either way, backups are kept apart from Salesforce.

Backups are encrypted at rest and in transit. The app has its own login, either Flosum credentials or single sign-on over OIDC or SAML.

Backups are immutable: nothing outside Backup & Archive's own functions can change them. They stay unchanged through the retention period unless removed with Purge or a custom retention policy.

Whatever retention policies you set, Flosum always keeps each record's two latest versions. Purging is the exception: it permanently removes selected data from all backups, and it needs App Settings permission.

Anyone holding both App Settings and Restore permissions in Flosum could purge your backups and also write data back to production. Keep that pair to a few named people.

How do you recover Salesforce after a compromised integration user?

Your own plan comes first. These steps apply CISA's response checklist to Salesforce and Flosum Backup & Archive, and our incident response plan post covers writing a plan if you don't have one.

  1. Contain the account: revoke the connected app's tokens, as Salesloft and Salesforce did for Drift on August 20, 2025. Then revoke and rotate exposed keys and secrets, and reset passwords for linked accounts.
  2. Preserve evidence: export Event Monitoring logs and Setup Audit Trail, which keeps 180 days of history. CISA's checklist says to preserve evidence that is limited in retention.
  3. Scope the damage. Use API and UniqueQuery events to find what the user queried, changed and deleted, and when, because that window decides which backups you recover from.
  4. Report it: CISA lists CISA, your local FBI field office, IC3 and the Secret Service as places to report. If health data left the org, CISA notes you may need to notify the FTC or HHS; see our HIPAA guide.
  5. Pick the backups. In Flosum, select the Compromised Backup and the Correct Backup (the last clean one), and Flosum compares the two and restores only the records that changed.
  6. Catch hard deletes. If records were purged from the Recycle Bin, the Composite & Sync Backup flags them, so check one ran after the deletions before you prepare the restore.
  7. Restore narrowly: filter by object, record and field, and skip automation so chosen automation processes stay suspended during the restore. Review the request's Data tab before you click Run restore.
  8. Rotate and harden: once the org is clean, CISA says to issue password resets and update encryption keys as needed. Tighten the integration user's scopes, IP ranges and permissions before you reconnect it.
  9. Learn and test. Document lessons learned and update your plan; CISA says to test backup procedures on a regular basis, and our DR testing guide shows how.

Where does this fit in a wider data recovery plan?

A ransomware attack is one reason to restore among several. Our Salesforce disaster recovery guide covers the full plan, and you can set per-object targets with our RTO vs RPO post.

Regulated data brings its own retention and evidence rules. We cover GDPR, SOX and FedRAMP on Salesforce in separate guides.

On the access side, Flosum's Zero Trust Security page covers identity and access governance, configuration monitoring and release security for Salesforce.

FAQs

What is a ransomware backup strategy for Salesforce?

It's how you keep copies of Salesforce data and metadata where an attacker can't get at them, and how you restore from them. CISA's guide calls for backups that are offline, encrypted and tested regularly.

Is data theft without encryption still a ransomware risk?

Yes. Per CISA, some actors steal data and threaten to release it without using ransomware at all, so your plan has to cover theft as well as damaged records.

Why would attackers target a Salesforce integration user?

In the Drift campaign, attackers exported Salesforce data with a connected app's stolen OAuth tokens. A token can do whatever its user can, within the app's scopes, so an over-permissioned integration user means more damage.

Which Salesforce logs show a compromised integration user?

Event Monitoring records logins, API calls and report exports, and UniqueQuery events record SOQL queries. GTIG told Drift customers to check both for the Drift connection user.

How does Flosum restore only the damaged records?

You pick a compromised backup and the last correct backup, and Flosum restores only the records that changed between them. You can narrow it further by object, record and field, and skip automation.

Where should Salesforce backups be stored?

Anywhere the integration user's credentials can't reach.

Flosum Backup & Archive runs in Flosum's cloud or in your own cloud. Both keep backups outside Salesforce.

Book a demo to see how Flosum Backup & Archive restores only the records an attacker changed.

Table Of Contents
Author
Stay Up-to-Date
Get flosum.com news in your inbox.

Thank you for subscribing

Ship Salesforce changes faster
See how City and County of Denver cut routine deployments from up to 2 days to under 15 minutes.
Free to start  |  No credit card required