Legacy applications become more exposed because lift-and-shift preserves existing authentication and access patterns while removing the traditional perimeter controls they relied on in the data center. If password-only access remains in place, an attacker who obtains credentials can reach the application directly. Cloud migration therefore shifts the security burden from network boundaries to identity, policy, and monitoring.
Why the traditional perimeter disappears after lift-and-shift
Lift-and-shift usually preserves the application’s original trust assumptions. That means legacy authentication flows, broad network reachability, embedded secrets, and long-lived admin paths often move into the cloud unchanged, even though the surrounding environment no longer has the same data center perimeter, segmentation model, or human review points that once constrained access.
The practical problem is not that the migration creates a new application weakness, but that it removes the compensating controls that previously made that weakness harder to exploit. A password-only login, a static API token, or an over-broad allowlist becomes more dangerous when the system is directly reachable from cloud networks, internet-facing load balancers, peered environments, and automation pipelines.
Legacy applications also tend to assume that the network is a trust boundary. In cloud environments, that assumption is fragile because access paths are more dynamic, shared services are common, and the boundary is enforced less by location than by policy. In other words, the attack surface shifts from “who is on the network” to “who can authenticate and what they can do once they are inside.”
For practitioners, the change is easiest to see when an application that was previously reachable only through VPN or internal routing is exposed through a cloud front door. If the app still relies on weak authentication, stale session handling, or hard-coded secrets, the migration can make those conditions visible to a much larger population of attackers and misconfigured integrations.
Which legacy controls stop compensating once the app is in cloud
Several control gaps typically become more important after migration. First, authentication that was “good enough” behind the firewall often becomes insufficient when direct access is possible. Second, authorization models built around coarse internal network trust may allow more than they should once the app sits beside cloud-native services and shared management planes. Third, logging and monitoring that relied on central on-prem tooling may no longer give full visibility into who accessed the application, from where, and through which identity.
Secret handling is another common failure point. Many legacy applications were designed before modern secrets management was standard, so credentials may live in configuration files, scripts, application servers, or deployment tooling. Once those systems are lifted into cloud environments, secret exposure can turn into direct application access or lateral movement into adjacent services.
NHIMG’s Ultimate Guide to Non-Human Identities is useful here because the cloud migration problem often includes service accounts, API keys, and other machine credentials that outlive the perimeter they once depended on. Related failure patterns are illustrated in 230M AWS environment compromise and CI/CD pipeline exploitation case study, both of which show how exposed secrets and automation paths can widen blast radius after migration.
Cloud security controls need to take over the work that the old perimeter used to do. That means identity-centric access control, strong authentication, policy enforcement, continuous logging, and explicit review of every path that can reach the application, whether that path is user-driven, service-driven, or pipeline-driven.
What practitioners should verify before calling the migration safe
Start by verifying the actual inbound access paths. If the application can be reached without a proxy, VPN, or tightly scoped policy layer, assume exposure has increased even if the app still “functions correctly.” Then check whether authentication has any meaningful resistance to stolen credentials, because lift-and-shift frequently preserves the exact login design that attackers target first.
What to verify: Confirm that every administrator, user, and automation identity has only the minimum access needed, and that no legacy credential still bypasses modern controls. Confirm that secrets are stored and rotated outside the application bundle, not just copied into a cloud VM or container image. Confirm that logs capture authentication events, privileged actions, and unusual source locations with enough fidelity to investigate compromise.
What good looks like: The application should be reachable only through a deliberate policy decision, not because it inherited an old internal trust assumption. Access should be attributable to a specific identity, secrets should be recoverable and rotatable, and the team should be able to answer who accessed the app, what they used, and whether the access was expected.
For a broader control lens, the CSA Cloud Controls Matrix is a good cloud governance reference because it ties together IAM, auditability, data security, and shared-responsibility expectations. Where the migration touches regulated or enterprise-standard control baselines, ISO/IEC 27001:2022 Information Security Management and NIST Cybersecurity Framework 2.0 both reinforce the same practitioner lesson: move from inherited network trust to explicit control, monitoring, and accountability.
Practitioner takeaway: A lift-and-shift is not secure because the code moved intact; it is secure only when the cloud landing zone replaces the old perimeter with stronger identity, access, and visibility controls than the application had before.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | 6 — Access Control Management | Legacy app exposure after migration is driven by weak access paths and overbroad permissions. |
| 8 — Audit Log Management | Migration safety depends on visibility into authentication and privileged access after perimeter loss. | |
| Recommendation — Tighten access paths and remove stale accounts, shared credentials, and unnecessary permissions. Centralize logs for authentication, admin activity, and unusual source locations. | ||
| NIST CSF 2.0 | PR.AC — Identity Management, Authentication and Access Control | The question centers on moving security from network perimeter to identity and policy. |
| DE.CM — Continuous Monitoring | Lift-and-shift increases the need to detect direct access and misuse in cloud runtime. | |
| GV.OC — Organizational Context | Cloud migration changes the trust boundary and operating model for the application. | |
| Recommendation — Rebuild access around explicit identity, authentication, and least-privilege policy. Continuously monitor login events, privilege use, and anomalous access paths. Document the new cloud trust assumptions and ownership for the migrated system. | ||
| NIST Zero Trust (SP 800-207) | 3.1 — Ensure All Resource Access Is Authenticated and Authorized | Lift-and-shift removes perimeter reliance, so each request must be explicitly checked. |
| 3.2 — Use Least Privilege Access to Resources | Legacy cloud exposure often comes from permissions inherited from the old environment. | |
| 3.4 — Inspect and Log All Resource Access | Cloud migration needs stronger traceability because network boundaries no longer provide assurance. | |
| Recommendation — Require explicit authentication and authorization for every application access request. Reduce user, admin, and service permissions to the minimum required set. Log access decisions and privileged actions for continuous investigation and response. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Secrets and Credential Exposure | Lift-and-shift often preserves embedded secrets that can directly expose the application. |
| NHI-03 — Overprivileged Non-Human Identities | Cloud migrations often keep service accounts and API keys with excessive access. | |
| Recommendation — Move secrets out of code and images, then rotate any exposed credentials. Audit machine identities and remove permissions that are broader than their task. | ||
Related resources from NHI Mgmt Group
- Why does cardholder data become harder to govern after cloud migration?
- How should organisations govern access consistently across ERP, cloud, and legacy applications as their environments become more heterogeneous?
- What do teams get wrong when they lift and shift identity systems to the cloud?
- How do teams keep SAP cloud security from drifting after migration?