Onam
Data Security

DSPM best practices: 10 habits that keep cloud data safe after rollout

By Anup Yadav, Founder & CEO•November 28, 2026•10 min read

Would rather we looked for you? We run a free one-time audit scan of one cloud account and go through the results with you. No charge, no commitment.

Free audit scan

This guide covers the habits that keep DSPM useful once it is running. For the step-by-step first rollout, see the DSPM implementation checklist; for the basics, see What is DSPM?. It is tool-neutral until the last section, which describes Onam and is labelled.

What are DSPM best practices for a first rollout?

Five matter most in the first month:

  1. Write the sensitivity policy first. Three or four categories (personal, health, payment, secrets), each tied to the regulation or contract that makes it matter.
  2. Connect everything, not just production. Every account, subscription, project and region. Test environments loaded with production records are where weak controls tend to live.
  3. Name an owner for each sensitive store. "Unknown, needs triage" is a fine first owner. No owner at all is not.
  4. Map access, not only settings. A private, encrypted store that an over-privileged role can read is still exposed.
  5. Fix by exposure, not by the order you found things. Sensitive data reachable from the internet comes first.

DSPM best practices at a glance

#PracticeWhy it mattersSign it's working
1A short, written sensitivity policyLabels mean the same thing to every teamEvery label maps to a policy category
2Full coverage, including non-productionCopies outside production are where controls are weakestNew accounts and regions show up without a ticket
3A named owner for each sensitive storeFindings without an owner don't get fixedThe share of sensitive stores with an owner goes up
4A confidence level on every labelVague names produce wrong labelsLow-confidence labels go to a person to confirm
5Decide where content scanning runsPrivacy review, cost and trustScope written down and approved before it is switched on
6Map access from the data's sideExposure comes from identities and paths, not only the store's own settingsYou can answer "who can read this table?"
7Rank by sensitivity and reachabilityYou will find more than you can fixThe top of the list is reachable sensitive data
8Follow the copiesBackups, replicas and exports often don't keep the source's controlsEach sensitive store shows where its copies are
9Fix at the source, in the pipelineOne template can create a hundred exposed bucketsRepeat findings drop after a template fix
10Track trends, not just countsA falling total can hide new exposureFive numbers reviewed every month

1. Keep the sensitivity policy short and written down

Long classification schemes fail because nobody applies them the same way. Start with the categories your regulations and contracts actually name, and write one line for each: what it covers, why it matters, and who decides edge cases. Add categories later when a real case needs one.

2. Cover every account and region, and keep it that way

Coverage drifts. New accounts, new projects and new regions appear every quarter, and a DSPM programme that relies on someone remembering to connect them goes stale. Connect at the organisation level where your cloud allows it, so new accounts come in by default, and check regions you believe you don't use.

3. Give every sensitive store an owner

An owner is the person who can say "yes, this data should be here" or "delete it". Use the tags or labels your teams already apply, such as team or cost centre, to fill in most owners automatically, and send the rest to a triage queue with a deadline.

4. Record how confident each label is

A table with columns named ssn and date_of_birth is a confident label. A bucket called backup-old is a guess. Keep the confidence next to the label, send low-confidence labels to the owner to confirm, and don't let a guess drive an urgent ticket.

5. Decide where content scanning runs before you switch it on

Reading the contents of files and rows gives more precise labels than names and tags alone, but it is the part of DSPM your privacy and legal teams will ask about. Agree up front:

  • Where the scanner runs: in your own account, or in the vendor's.
  • Whether it samples or reads everything, and which stores are in scope.
  • What leaves your account: labels and counts only, or matched values too.
  • Who can see the results.

Write the answers down and get them approved. It is much easier than explaining them after the first scan.

6. Map access from the data's side

The useful question is not "what can this role do?" but "who can read this table?". For each sensitive store, list the identities that can read, write or delete it, any other accounts or external parties its policies let in, and whether it is reachable from the internet. Then compare what is granted with what is used: an identity that can read customer data but has not touched it in months is the cheapest fix you have. This is where DSPM meets CIEM.

7. Rank by sensitivity and reachability

You will find more issues than you can fix in a sprint. A simple order works:

  1. Sensitive data reachable from the internet.
  2. Sensitive data readable by identities that are over-privileged or unused.
  3. Sensitive data without encryption or access logging.
  4. Everything else.

A reachable path to the data matters more than the severity of any single setting. That is attack path analysis with the data store as the target.

8. Follow the copies

One production database becomes replicas, warehouse loads, nightly exports and a test copy. Each copy is made by a different team on a different day, with whatever settings were convenient. When a store is labelled sensitive, find its copies and treat them the same, and delete the ones nobody needs: a copy that no longer exists can't leak.

9. How does DSPM fit into DevSecOps?

Fix at the source. If one template creates every export bucket, fixing that template fixes every bucket it will ever create. In practice:

  • Declare sensitivity at creation. Tag data stores with a classification and an owner in your infrastructure code.
  • Check in the pipeline. A store tagged as restricted must have public access blocked, encryption on and logging on, or the change doesn't merge.
  • Confirm at runtime. DSPM checks that what was declared is what is actually there, and flags stores that were never tagged.

A Terraform example for an S3 bucket:

resource "aws_s3_bucket" "customer_exports" {
  bucket = "example-customer-exports"
  tags = {
    data-classification = "restricted"
    owner               = "payments-team"
  }
}

resource "aws_s3_bucket_public_access_block" "customer_exports" {
  bucket                  = aws_s3_bucket.customer_exports.id
  block_public_acls       = true
  block_public_policy     = true
  ignore_public_acls      = true
  restrict_public_buckets = true
}

To list the S3 buckets tagged as restricted, with a read-only call:

aws resourcegroupstaggingapi get-resources \
  --resource-type-filters s3 \
  --tag-filters Key=data-classification,Values=restricted \
  --query "ResourceTagMappingList[].ResourceARN"

The tagging API returns tagged resources, so compare its output with a full bucket list to find stores nobody has classified. Command from the AWS CLI reference: get-resources (accessed 28 November 2026).

10. Track five numbers every month

Counts of findings go up when coverage grows, so they say little on their own. These five show whether the programme is working:

  • The share of sensitive stores with a named owner.
  • The number of sensitive stores reachable from the internet.
  • The number of identities that can read sensitive data but have not used that access in the last 30 days.
  • The median days from finding to fix for the top-priority group.
  • The share of stores with no label or a low-confidence one.

How long does a DSPM rollout take?

It depends less on the tool than on three things: how many accounts and regions you have, whether content scanning needs a privacy review first, and how quickly owners can be named. Connecting accounts and building the first inventory is usually the quick part. Confirming labels and cleaning up access take longer, because they need people. Plan it in phases: connect and inventory; classify and confirm; map access and fix the top of the list; then make it continuous.

What DSPM capabilities does a cloud-first organisation need?

  • Discovery across the clouds and accounts you run, including managed databases, warehouses and streams, not only object storage.
  • Classification from metadata, with content scanning where you choose it, and a confidence level on each label.
  • Access mapping joined to identity: who is granted access, and who has actually used it.
  • Exposure context: public access, cross-account access, encryption, logging and data residency.
  • Lineage, so copies of sensitive data are found and held to the same standard.
  • A ranked list that puts reachable sensitive data first, with the fix for each item.

When you compare vendors, ask where scanning runs, what leaves your account, and whether copies are followed. Our DSPM vendor guide quotes the main vendors on those points from their own sites.

How Onam approaches it

Onam's Data Security engine is its DSPM. It inventories data stores across your connected clouds through read-only posture roles. By default it labels each store from metadata: its name, description, tags and schema. Where you choose to deploy Onam's DSPM scanner in your own cloud account (AWS: S3, RDS and Aurora snapshots; Azure: Blob, Files, Azure SQL; Google Cloud: Cloud Storage, BigQuery, Cloud SQL) or the on-premises collector, it also reads samples of files and rows and classifies their contents with country-specific detectors. Content scanning is opt-in per tenant: nothing configured means nothing scanned.

For practices 6 to 8, each store carries the ways it can be reached: the grants that make it public, the other accounts its policy lets in, the principals seen accessing it in the last 30 days, and the attack paths on the shared security graph that end at it. Data lineage follows copies across up to 8 hops of replication, backup, ETL, streaming and export. One limit: copies made by scripts are not visible today; only copies the cloud records are followed. The detail is in the DSPM documentation.

Want to see it on one of your accounts? Request a demo.

Frequently asked questions

What are the most important DSPM best practices?

Agree what "sensitive" means, cover every account including non-production, give each sensitive store an owner, map who can reach it, and fix in order of exposure. After that, follow the copies and fix problems in the templates that create stores.

How does DSPM fit into DevSecOps?

Tag data stores with a classification and an owner in infrastructure code, block changes in the pipeline that leave a restricted store public, unencrypted or unlogged, and use DSPM at runtime to confirm the declared state and catch stores that were never tagged.

Should a DSPM tool read the contents of our data?

It depends on how precise you need the labels to be. Metadata (names, tags, schemas) is less intrusive; reading sampled contents is more precise. Decide where the scanner runs, what it sends back and who can see results before switching it on.

How do you measure whether DSPM is working?

Track trends rather than finding counts: owner coverage, sensitive stores reachable from the internet, unused access to sensitive data, time to fix the top-priority findings, and the share of stores with no confident label.

Read next: DSPM implementation checklist, What is DSPM?, and What is CIEM?.

Try it on your own cloud

Start free. The free plan covers up to 25 units of cloud security, with API-based scanning only: posture (CSPM), identity and permissions (CIEM), data stores found through cloud APIs (DSPM checks, no content classification) and AI-SPM. Posture scanning connects through read-only cloud roles, the free plan deploys no agent or scanner, and no card is needed. Register, and the team emails you the login.

Start free · Book a demo

See this on your own cloud, free

The free plan covers up to 25 units of cloud security with read-only cloud API scanning. It deploys no agent or scanner and needs no card. Register, and the team emails you the login.