Skip to main content

Your Data Is Never More Exposed Than During the Migration Itself

Before a migration, your data sits behind whatever controls you've already hardened. After, it sits behind whatever you built new. During the move itself, neither applies cleanly, data travels through unfamiliar paths, migration tooling often gets broader access than anything it's moving, and that gap is exactly where real incidents happen. The three decisions that close it, and a regulated migration that cleared NESA and TDRA with zero gaps.

Updated 6 min readMarkdown

TL;DR: Most security thinking about a migration treats it as a transition between two secured states, the hardened on-prem system before, the hardened cloud system after, with the move itself as a formality in between. That's backwards. The migration window is its own distinct risk state: data travels through paths it's never used before, migration tooling frequently gets broader access than anything it's actually moving, and compliance controls that were validated once, years ago, don't automatically re-validate themselves on the new side. A Dubai insurance group's regulated migration cleared NESA and TDRA with zero data loss specifically because the team treated the window itself as the thing to secure, not just the before and after.

Ask a team how they're securing a migration and most answers describe the destination: encryption at rest in the new environment, access controls on the new infrastructure, a compliance review of the target setup. All necessary. None of it addresses the period where the data isn't safely at either end, it's actively moving, often through a path that's never existed before and won't exist again once the migration finishes.

Why "before" and "after" being secure doesn't cover the middle

A production system that's been hardened over years has its access controls, its encryption, its monitoring, all shaped by a long history of incremental tightening. A freshly-built cloud environment, if built correctly, starts with those controls baked in from day one. Neither of those facts says anything about the migration tooling itself, the temporary pipes, scripts, and access grants that exist specifically to move data from one to the other, usually for a matter of weeks, built under time pressure, and torn down once the move is done. That temporary infrastructure is rarely held to the same scrutiny as either permanent system, precisely because it's temporary.

State What secures it How long it's been hardened
On-prem system, before Years of incremental access control and monitoring Years
Cloud system, after Built-in controls from a fresh, deliberate design Designed once, ideally correctly
The migration window itself Whatever the team remembered to set up for this specific move Weeks, built under deadline pressure

The three decisions that actually close the gap

Where the data travels. Sensitive workloads moving over the public internet, even encrypted, cross infrastructure neither side controls. A private connection (a dedicated link or VPN tunnel between the source and destination) keeps the transfer path itself inside infrastructure under your control, rather than merely encrypting data as it crosses something you don't.

What the migration tooling can actually reach. Migration tools frequently get broad access by default, it's faster to grant wide permissions than to scope them precisely, and the deadline pressure of a cutover window makes that shortcut tempting. The fix is least-privilege access for the migration tooling specifically, scoped to exactly what that wave needs to move, nothing broader, and revoked the moment that wave completes rather than left standing for the whole project.

Whether compliance gets re-validated, not assumed to carry over. A workload that was compliant on-prem doesn't automatically stay compliant mid-transfer or on the new side. Each workload needs validation against its actual compliance rules at the point of cutover, including, for regulated data, confirming it physically landed in the required region, not just that the application came back online.

Case study: the window that held, not just the endpoints

A Dubai insurance group needed to move off an aging on-prem data center while holding sensitive policyholder data under NESA and TDRA rules. A single day of unplanned downtime meant real lost business, and a compliance gap mid-move meant something worse. Seven-month phased migration, client engineers pairing throughout.

Exposure during the window What was built Result
Sensitive data crossing the move itself Private connection, not the public internet, for every sensitive wave No transfer-path exposure
Migration tooling's access scope Least-privilege access, scoped per wave, revoked after each one completed No standing broad access left behind
Compliance assumed to carry over Each workload validated against NESA/TDRA at cutover, including data residency confirmed per workload NESA + TDRA cleared, zero data loss

The headline numbers from this engagement, under 2 hours of total cutover downtime, 40+ workloads moved, usually get the spotlight. The compliance-clearance row is the one that specifically proves the window held, not just the two endpoints, because a gap during transfer would have shown up as exactly the kind of finding a NESA or TDRA review exists to catch, and none did.

FAQ

If our source and destination environments are both already secure, is the migration window really a meaningful extra risk? Yes, because the window isn't covered by either environment's existing controls. It's a third state with its own access paths and tooling, usually built under time pressure and torn down afterward, which is exactly the profile of infrastructure that tends to get under-scrutinized.

Does encrypting data in transit make the transfer path itself irrelevant? No, encryption protects the data's contents; it doesn't change what infrastructure that data physically crosses. A private connection and encryption solve different problems and are both worth having, not substitutes for each other.

How do we know if our migration tooling's access is actually scoped tightly enough? Check what it's been granted against what that specific wave actually needs to move, not against what's convenient to set up quickly. If the tooling's access would still let it reach data or systems outside that wave's actual scope, it's broader than it needs to be, and that's exactly the gap that matters only once, at the worst possible time.


Originally published on the Sherdil Cloud blog, the full piece (with the complete four-phase framework and secure-migration checklist) is here. For choosing a per-workload strategy once the move itself is secured, see legacy system modernization; for the broader security layer this connects to, cloud security best practices for enterprise.

About the author: Muhammad Usman is Head of DevOps at Sherdil Cloud, AWS DevOps Engineer Professional, Certified Kubernetes Administrator (CKA), and Alibaba Cloud Certified, building cloud and DevOps infrastructure for enterprises across Pakistan, the UAE, and the United States since 2014.

SSam3d ago

The migration window is often treated like a temporary technical phase, but that's exactly why it gets overlooked. I particularly like the distinction between encrypting the data and securing the path it travels through; those solve two different problems. Least-privilege access that gets revoked after each migration wave should be standard practice, not something teams remember to do after the cutover.

More from this blog