Join our Newsletter — 33% off our NHI Course

When does infrastructure import create more risk than it reduces?

Import becomes risky when teams treat it as a bulk conversion exercise instead of a controlled governance process. Risk rises if state is inaccurate, dependencies are missed, or access controls are too broad during migration. Organisations should prioritise change validation, rollback planning, and ownership review before accelerating coverage across critical Azure environments.

Why This Matters for Security Teams

Infrastructure import is useful when it reduces manual setup, standardises configuration, and reveals hidden dependencies before they become production incidents. It becomes dangerous when teams mistake coverage for control and let imported resources inherit trust, access, or lifecycle assumptions that were never validated. That is especially true in Azure environments, where identity links, role assignments, and resource relationships can be copied faster than they can be reviewed against policy. Current guidance from NIST Cybersecurity Framework 2.0 still points security teams toward governance, asset visibility, and change control rather than bulk automation as the safer path.

NHIMG research on non-human identity risk shows why this matters: in the 2024 ESG Report: Managing Non-Human Identities, Oasis Security & ESG found that 72% of organisations have experienced or suspect they have experienced a breach of non-human identities. Import workflows can unintentionally widen that attack surface if service principals, tokens, and automation accounts are brought in with overbroad permissions or stale ownership. In practice, many security teams discover the import mistake only after an already-trusted resource has been granted access it should never have had.

How It Works in Practice

A safe import process treats infrastructure as governed state, not just code to be replayed. The first question is whether the discovered resource matches the intended source of truth. If the imported object differs materially from the desired configuration, teams should pause and reconcile drift before committing it into managed lifecycle controls. The next question is whether dependencies are complete. Missing role bindings, network paths, key vault references, managed identities, or downstream automation can make the import look successful while leaving critical gaps that only appear during deployment.

Practitioners usually reduce risk by combining import with validation checkpoints:

  • Confirm ownership for each imported resource and map it to a named control owner.
  • Compare live state against policy-as-code rules before accepting the import.
  • Review permissions, especially for secrets, automation identities, and subscription-level roles.
  • Run a rollback test so a bad import can be reversed without creating orphaned access.
  • Stage imports in low-risk environments before touching production dependencies.

This approach aligns with the NHIMG view that NHI governance must account for the identity behind automation, not just the resource itself. The Top 10 NHI Issues highlights how excessive privilege and poor lifecycle control often travel together, which is exactly why import should never be treated as a simple migration step. In parallel, teams using OWASP NHI Top 10 guidance should verify that imported automation identities are bounded by least privilege and short-lived access where possible. These controls tend to break down when imports are performed across large, interconnected Azure estates with undocumented owner changes because the dependency graph is too incomplete to validate safely.

Common Variations and Edge Cases

Tighter import controls often increase delivery overhead, requiring organisations to balance faster standardisation against the risk of importing bad state at scale. That tradeoff is especially visible in legacy environments, where the live configuration has drifted far from documented design. In those cases, a full import may surface years of unmanaged exceptions, and a strict policy can block progress unless teams allocate time for remediation.

There is no universal standard for when partial import is acceptable, but current guidance suggests using it only when the imported scope can be isolated without inheriting unsafe permissions or shared dependencies. A controlled import is also harder in environments with cross-subscription references, manual break-glass accounts, or shared service identities because ownership and privilege boundaries are not cleanly separable. Security leaders should treat those conditions as signals to slow down rather than accelerate.

For broader governance context, Ultimate Guide to NHIs — Why NHI Security Matters Now explains why lifecycle control matters as much as initial provisioning, and the same logic applies to imports that reshape trust relationships. When imports affect critical identity paths, the safe default is to validate, not assume. In practice, the riskiest failures appear in heavily delegated environments where teams import infrastructure first and discover ownership, access, and rollback gaps only after production impact has already started.

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 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 ID.AM-1 Import risk starts with incomplete asset and dependency visibility.
OWASP Non-Human Identity Top 10 NHI-03 Imported automation identities often inherit stale or excessive permissions.
CSA MAESTRO GOV-01 Governance is needed to keep import from becoming unmanaged change.
NIST AI RMF AI-assisted import tools need human oversight and risk evaluation.

Inventory imported infrastructure, confirm dependencies, and reconcile drift before accepting it into managed state.